]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _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 PyObject* pyint = PyInt_FromLong(dashes[x]);
540 PyList_Append(retval, pyint);
541 Py_DECREF(pyint);
542 }
543 wxPyEndBlockThreads(blocked);
544 return retval;
545 }
546 void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
547 bool blocked = wxPyBeginBlockThreads();
548 int size = PyList_Size(pyDashes);
549 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
550
551 // black magic warning! The array of wxDashes needs to exist as
552 // long as the pen does because wxPen does not copy the array. So
553 // stick a copy in a Python string object and attach it to _self,
554 // and then call SetDashes with a pointer to that array. Then
555 // when the Python pen object is destroyed the array will be
556 // cleaned up too.
557 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
558 PyObject_SetAttrString(_self, "_dashes", strDashes);
559
560 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
561 delete [] dashes;
562 Py_DECREF(strDashes);
563 wxPyEndBlockThreads(blocked);
564 }
565 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
566 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
567
568 SWIGSTATICINLINE(short)
569 SWIG_AsShort(PyObject *obj)
570 {
571 return swig_numeric_cast(short,
572 SWIG_CheckLongInRange(SWIG_AsLong(obj),
573 "short", SHRT_MIN, SHRT_MAX));
574 }
575
576
577 SWIGSTATICINLINE(int)
578 SWIG_CheckShort(PyObject* obj)
579 {
580 SWIG_AsShort(obj);
581 if (PyErr_Occurred()) {
582 PyErr_Clear();
583 return 0;
584 } else {
585 return 1;
586 }
587 }
588
589
590 #include <wx/image.h>
591
592 static char** ConvertListOfStrings(PyObject* listOfStrings) {
593 char** cArray = NULL;
594 int count;
595
596 if (!PyList_Check(listOfStrings)) {
597 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
598 return NULL;
599 }
600 count = PyList_Size(listOfStrings);
601 cArray = new char*[count];
602
603 for(int x=0; x<count; x++) {
604 // TODO: Need some validation and error checking here
605 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
606 }
607 return cArray;
608 }
609
610
611 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
612 char** cArray = NULL;
613 wxBitmap* bmp;
614
615 cArray = ConvertListOfStrings(listOfStrings);
616 if (! cArray)
617 return NULL;
618 bmp = new wxBitmap(cArray);
619 delete [] cArray;
620 return bmp;
621 }
622 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
623 char* buf;
624 int length;
625 PyString_AsStringAndSize(bits, &buf, &length);
626 return new wxBitmap(buf, width, height, depth);
627 }
628 wxSize wxBitmap_GetSize(wxBitmap *self){
629 wxSize size(self->GetWidth(), self->GetHeight());
630 return size;
631 }
632 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
633 wxMask *mask = new wxMask(*self, colour);
634 self->SetMask(mask);
635 }
636 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
637 self->SetWidth(size.x);
638 self->SetHeight(size.y);
639 }
640 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
641 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
642 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
643 if ( !colour.Ok() )
644 return new wxMask(bitmap, *wxBLACK);
645 else
646 return new wxMask(bitmap, colour);
647 }
648
649 #include <wx/iconbndl.h>
650
651 wxIcon *new_wxIcon(wxBitmap const &bmp){
652 wxIcon* icon = new wxIcon();
653 icon->CopyFromBitmap(bmp);
654 return icon;
655 }
656 wxIcon *new_wxIcon(PyObject *listOfStrings){
657 char** cArray = NULL;
658 wxIcon* icon;
659
660 cArray = ConvertListOfStrings(listOfStrings);
661 if (! cArray)
662 return NULL;
663 icon = new wxIcon(cArray);
664 delete [] cArray;
665 return icon;
666 }
667 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
668
669
670
671 return new wxIconLocation(*filename);
672
673 }
674 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
675
676
677
678 // do nothing
679
680 }
681 int wxIconLocation_GetIndex(wxIconLocation *self){
682
683
684
685 return -1;
686
687 }
688
689 SWIGSTATICINLINE(int)
690 SWIG_CheckLong(PyObject* obj)
691 {
692 SWIG_AsLong(obj);
693 if (PyErr_Occurred()) {
694 PyErr_Clear();
695 return 0;
696 } else {
697 return 1;
698 }
699 }
700
701 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
702 #ifdef __WXGTK__
703 wxCHECK_MSG(False, NULL,
704 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
705 #else
706 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
707 #endif
708 }
709
710
711 void wxRegionIterator_Next(wxRegionIterator *self){
712 (*self) ++;
713 }
714 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
715 return self->operator bool();
716 }
717
718 #include <wx/fontutil.h>
719 #include <wx/fontmap.h>
720 #include <wx/fontenum.h>
721
722 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
723 return self->ToString();
724 }
725
726 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
727 static wxNativeEncodingInfo info;
728 if ( wxGetNativeFontEncoding(encoding, &info) )
729 return &info;
730 else
731 return NULL;
732 }
733
734 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
735 wxFontEncoding alt_enc;
736 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
737 return PyInt_FromLong(alt_enc);
738 else {
739 Py_INCREF(Py_None);
740 return Py_None;
741 }
742 }
743 wxFont *new_wxFont(wxString const &info){
744 wxNativeFontInfo nfi;
745 nfi.FromString(info);
746 return new wxFont(nfi);
747 }
748 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
749 return wxFont::New(pointSize, family, flags, face, encoding);
750 }
751 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
752 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
753
754 class wxPyFontEnumerator : public wxFontEnumerator {
755 public:
756 wxPyFontEnumerator() {}
757 ~wxPyFontEnumerator() {}
758
759 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
760 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
761
762 PYPRIVATE;
763 };
764
765 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
766 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
767
768
769 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
770 wxArrayString* arr = self->GetEncodings();
771 if (arr)
772 return wxArrayString2PyList_helper(*arr);
773 else
774 return PyList_New(0);
775 }
776 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
777 wxArrayString* arr = self->GetFacenames();
778 if (arr)
779 return wxArrayString2PyList_helper(*arr);
780 else
781 return PyList_New(0);
782 }
783
784
785 wxLocale *new_wxLocale(int language,int flags){
786 if (language == -1)
787 return new wxLocale();
788 else
789 return new wxLocale(language, flags);
790 }
791
792 #include "wx/wxPython/pydrawxxx.h"
793
794 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
795 wxColour col;
796 self->GetPixel(x, y, &col);
797 return col;
798 }
799 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
800 wxColour col;
801 self->GetPixel(pt, &col);
802 return col;
803 }
804
805 SWIGSTATICINLINE(double)
806 SWIG_AsDouble(PyObject *obj)
807 {
808 if (PyNumber_Check(obj))
809 return PyFloat_AsDouble(obj);
810 else {
811 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
812 obj->ob_type->tp_name);
813 PyErr_SetObject(PyExc_TypeError, errmsg);
814 Py_DECREF(errmsg);
815 return 0;
816 }
817 }
818
819
820 SWIGSTATICINLINE(int)
821 SWIG_CheckDouble(PyObject* obj)
822 {
823 SWIG_AsDouble(obj);
824 if (PyErr_Occurred()) {
825 PyErr_Clear();
826 return 0;
827 } else {
828 return 1;
829 }
830 }
831
832 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
833 wxRect rv;
834 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
835 return rv;
836 }
837 wxRect wxDC_GetClippingRect(wxDC *self){
838 wxRect rect;
839 self->GetClippingBox(rect);
840 return rect;
841 }
842 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
843 wxArrayInt widths;
844 self->GetPartialTextExtents(text, widths);
845 return widths;
846 }
847 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
848 self->SetLogicalOrigin(point.x, point.y);
849 }
850 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
851 self->SetDeviceOrigin(point.x, point.y);
852 }
853 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
854 self->CalcBoundingBox(point.x, point.y);
855 }
856 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
857 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
858 }
859 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
860 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
861 }
862 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
863 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
864 }
865 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
866 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
867 }
868 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
869 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
870 }
871 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
872 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
873 }
874
875 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
876 *x1 = dc->MinX();
877 *y1 = dc->MinY();
878 *x2 = dc->MaxX();
879 *y2 = dc->MaxY();
880 }
881
882
883 #include <wx/dcbuffer.h>
884
885
886 #include <wx/dcps.h>
887
888
889 #include <wx/metafile.h>
890
891
892
893 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
894 self->AddColour(name, wxColour(red, green, blue));
895 }
896
897 #include <wx/effects.h>
898
899 #ifdef __cplusplus
900 extern "C" {
901 #endif
902 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
903 PyObject *resultobj;
904 wxGDIObject *result;
905 char *kwnames[] = {
906 NULL
907 };
908
909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
910 {
911 if (!wxPyCheckForApp()) SWIG_fail;
912 PyThreadState* __tstate = wxPyBeginAllowThreads();
913 result = (wxGDIObject *)new wxGDIObject();
914
915 wxPyEndAllowThreads(__tstate);
916 if (PyErr_Occurred()) SWIG_fail;
917 }
918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
919 return resultobj;
920 fail:
921 return NULL;
922 }
923
924
925 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
926 PyObject *resultobj;
927 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
928 PyObject * obj0 = 0 ;
929 char *kwnames[] = {
930 (char *) "self", NULL
931 };
932
933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
936 {
937 PyThreadState* __tstate = wxPyBeginAllowThreads();
938 delete arg1;
939
940 wxPyEndAllowThreads(__tstate);
941 if (PyErr_Occurred()) SWIG_fail;
942 }
943 Py_INCREF(Py_None); resultobj = Py_None;
944 return resultobj;
945 fail:
946 return NULL;
947 }
948
949
950 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
951 PyObject *resultobj;
952 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
953 bool result;
954 PyObject * obj0 = 0 ;
955 char *kwnames[] = {
956 (char *) "self", NULL
957 };
958
959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
962 {
963 PyThreadState* __tstate = wxPyBeginAllowThreads();
964 result = (bool)(arg1)->GetVisible();
965
966 wxPyEndAllowThreads(__tstate);
967 if (PyErr_Occurred()) SWIG_fail;
968 }
969 {
970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
971 }
972 return resultobj;
973 fail:
974 return NULL;
975 }
976
977
978 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
979 PyObject *resultobj;
980 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
981 bool arg2 ;
982 PyObject * obj0 = 0 ;
983 PyObject * obj1 = 0 ;
984 char *kwnames[] = {
985 (char *) "self",(char *) "visible", NULL
986 };
987
988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
991 arg2 = (bool) SWIG_AsBool(obj1);
992 if (PyErr_Occurred()) SWIG_fail;
993 {
994 PyThreadState* __tstate = wxPyBeginAllowThreads();
995 (arg1)->SetVisible(arg2);
996
997 wxPyEndAllowThreads(__tstate);
998 if (PyErr_Occurred()) SWIG_fail;
999 }
1000 Py_INCREF(Py_None); resultobj = Py_None;
1001 return resultobj;
1002 fail:
1003 return NULL;
1004 }
1005
1006
1007 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1008 PyObject *resultobj;
1009 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1010 bool result;
1011 PyObject * obj0 = 0 ;
1012 char *kwnames[] = {
1013 (char *) "self", NULL
1014 };
1015
1016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1019 {
1020 PyThreadState* __tstate = wxPyBeginAllowThreads();
1021 result = (bool)(arg1)->IsNull();
1022
1023 wxPyEndAllowThreads(__tstate);
1024 if (PyErr_Occurred()) SWIG_fail;
1025 }
1026 {
1027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1028 }
1029 return resultobj;
1030 fail:
1031 return NULL;
1032 }
1033
1034
1035 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1036 PyObject *obj;
1037 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1038 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1039 Py_INCREF(obj);
1040 return Py_BuildValue((char *)"");
1041 }
1042 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1043 PyObject *resultobj;
1044 byte arg1 = (byte) 0 ;
1045 byte arg2 = (byte) 0 ;
1046 byte arg3 = (byte) 0 ;
1047 wxColour *result;
1048 PyObject * obj0 = 0 ;
1049 PyObject * obj1 = 0 ;
1050 PyObject * obj2 = 0 ;
1051 char *kwnames[] = {
1052 (char *) "red",(char *) "green",(char *) "blue", NULL
1053 };
1054
1055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1056 if (obj0) {
1057 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
1058 if (PyErr_Occurred()) SWIG_fail;
1059 }
1060 if (obj1) {
1061 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1062 if (PyErr_Occurred()) SWIG_fail;
1063 }
1064 if (obj2) {
1065 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1066 if (PyErr_Occurred()) SWIG_fail;
1067 }
1068 {
1069 PyThreadState* __tstate = wxPyBeginAllowThreads();
1070 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1071
1072 wxPyEndAllowThreads(__tstate);
1073 if (PyErr_Occurred()) SWIG_fail;
1074 }
1075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1076 return resultobj;
1077 fail:
1078 return NULL;
1079 }
1080
1081
1082 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1083 PyObject *resultobj;
1084 wxString *arg1 = 0 ;
1085 wxColour *result;
1086 bool temp1 = False ;
1087 PyObject * obj0 = 0 ;
1088 char *kwnames[] = {
1089 (char *) "colorName", NULL
1090 };
1091
1092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1093 {
1094 arg1 = wxString_in_helper(obj0);
1095 if (arg1 == NULL) SWIG_fail;
1096 temp1 = True;
1097 }
1098 {
1099 if (!wxPyCheckForApp()) SWIG_fail;
1100 PyThreadState* __tstate = wxPyBeginAllowThreads();
1101 result = (wxColour *)new wxColour((wxString const &)*arg1);
1102
1103 wxPyEndAllowThreads(__tstate);
1104 if (PyErr_Occurred()) SWIG_fail;
1105 }
1106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1107 {
1108 if (temp1)
1109 delete arg1;
1110 }
1111 return resultobj;
1112 fail:
1113 {
1114 if (temp1)
1115 delete arg1;
1116 }
1117 return NULL;
1118 }
1119
1120
1121 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1122 PyObject *resultobj;
1123 unsigned long arg1 ;
1124 wxColour *result;
1125 PyObject * obj0 = 0 ;
1126 char *kwnames[] = {
1127 (char *) "colRGB", NULL
1128 };
1129
1130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1131 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1132 if (PyErr_Occurred()) SWIG_fail;
1133 {
1134 PyThreadState* __tstate = wxPyBeginAllowThreads();
1135 result = (wxColour *)new wxColour(arg1);
1136
1137 wxPyEndAllowThreads(__tstate);
1138 if (PyErr_Occurred()) SWIG_fail;
1139 }
1140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1141 return resultobj;
1142 fail:
1143 return NULL;
1144 }
1145
1146
1147 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1148 PyObject *resultobj;
1149 wxColour *arg1 = (wxColour *) 0 ;
1150 PyObject * obj0 = 0 ;
1151 char *kwnames[] = {
1152 (char *) "self", NULL
1153 };
1154
1155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1158 {
1159 PyThreadState* __tstate = wxPyBeginAllowThreads();
1160 delete arg1;
1161
1162 wxPyEndAllowThreads(__tstate);
1163 if (PyErr_Occurred()) SWIG_fail;
1164 }
1165 Py_INCREF(Py_None); resultobj = Py_None;
1166 return resultobj;
1167 fail:
1168 return NULL;
1169 }
1170
1171
1172 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1173 PyObject *resultobj;
1174 wxColour *arg1 = (wxColour *) 0 ;
1175 byte result;
1176 PyObject * obj0 = 0 ;
1177 char *kwnames[] = {
1178 (char *) "self", NULL
1179 };
1180
1181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1184 {
1185 PyThreadState* __tstate = wxPyBeginAllowThreads();
1186 result = (byte)(arg1)->Red();
1187
1188 wxPyEndAllowThreads(__tstate);
1189 if (PyErr_Occurred()) SWIG_fail;
1190 }
1191 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1192 return resultobj;
1193 fail:
1194 return NULL;
1195 }
1196
1197
1198 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1199 PyObject *resultobj;
1200 wxColour *arg1 = (wxColour *) 0 ;
1201 byte result;
1202 PyObject * obj0 = 0 ;
1203 char *kwnames[] = {
1204 (char *) "self", NULL
1205 };
1206
1207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1210 {
1211 PyThreadState* __tstate = wxPyBeginAllowThreads();
1212 result = (byte)(arg1)->Green();
1213
1214 wxPyEndAllowThreads(__tstate);
1215 if (PyErr_Occurred()) SWIG_fail;
1216 }
1217 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1218 return resultobj;
1219 fail:
1220 return NULL;
1221 }
1222
1223
1224 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1225 PyObject *resultobj;
1226 wxColour *arg1 = (wxColour *) 0 ;
1227 byte result;
1228 PyObject * obj0 = 0 ;
1229 char *kwnames[] = {
1230 (char *) "self", NULL
1231 };
1232
1233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1236 {
1237 PyThreadState* __tstate = wxPyBeginAllowThreads();
1238 result = (byte)(arg1)->Blue();
1239
1240 wxPyEndAllowThreads(__tstate);
1241 if (PyErr_Occurred()) SWIG_fail;
1242 }
1243 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1244 return resultobj;
1245 fail:
1246 return NULL;
1247 }
1248
1249
1250 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1251 PyObject *resultobj;
1252 wxColour *arg1 = (wxColour *) 0 ;
1253 bool result;
1254 PyObject * obj0 = 0 ;
1255 char *kwnames[] = {
1256 (char *) "self", NULL
1257 };
1258
1259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1262 {
1263 PyThreadState* __tstate = wxPyBeginAllowThreads();
1264 result = (bool)(arg1)->Ok();
1265
1266 wxPyEndAllowThreads(__tstate);
1267 if (PyErr_Occurred()) SWIG_fail;
1268 }
1269 {
1270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1271 }
1272 return resultobj;
1273 fail:
1274 return NULL;
1275 }
1276
1277
1278 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1279 PyObject *resultobj;
1280 wxColour *arg1 = (wxColour *) 0 ;
1281 byte arg2 ;
1282 byte arg3 ;
1283 byte arg4 ;
1284 PyObject * obj0 = 0 ;
1285 PyObject * obj1 = 0 ;
1286 PyObject * obj2 = 0 ;
1287 PyObject * obj3 = 0 ;
1288 char *kwnames[] = {
1289 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1290 };
1291
1292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1295 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1296 if (PyErr_Occurred()) SWIG_fail;
1297 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1300 if (PyErr_Occurred()) SWIG_fail;
1301 {
1302 PyThreadState* __tstate = wxPyBeginAllowThreads();
1303 (arg1)->Set(arg2,arg3,arg4);
1304
1305 wxPyEndAllowThreads(__tstate);
1306 if (PyErr_Occurred()) SWIG_fail;
1307 }
1308 Py_INCREF(Py_None); resultobj = Py_None;
1309 return resultobj;
1310 fail:
1311 return NULL;
1312 }
1313
1314
1315 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1316 PyObject *resultobj;
1317 wxColour *arg1 = (wxColour *) 0 ;
1318 unsigned long arg2 ;
1319 PyObject * obj0 = 0 ;
1320 PyObject * obj1 = 0 ;
1321 char *kwnames[] = {
1322 (char *) "self",(char *) "colRGB", NULL
1323 };
1324
1325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1328 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1329 if (PyErr_Occurred()) SWIG_fail;
1330 {
1331 PyThreadState* __tstate = wxPyBeginAllowThreads();
1332 (arg1)->Set(arg2);
1333
1334 wxPyEndAllowThreads(__tstate);
1335 if (PyErr_Occurred()) SWIG_fail;
1336 }
1337 Py_INCREF(Py_None); resultobj = Py_None;
1338 return resultobj;
1339 fail:
1340 return NULL;
1341 }
1342
1343
1344 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1345 PyObject *resultobj;
1346 wxColour *arg1 = (wxColour *) 0 ;
1347 wxString *arg2 = 0 ;
1348 bool temp2 = False ;
1349 PyObject * obj0 = 0 ;
1350 PyObject * obj1 = 0 ;
1351 char *kwnames[] = {
1352 (char *) "self",(char *) "colourName", NULL
1353 };
1354
1355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1358 {
1359 arg2 = wxString_in_helper(obj1);
1360 if (arg2 == NULL) SWIG_fail;
1361 temp2 = True;
1362 }
1363 {
1364 PyThreadState* __tstate = wxPyBeginAllowThreads();
1365 (arg1)->InitFromName((wxString const &)*arg2);
1366
1367 wxPyEndAllowThreads(__tstate);
1368 if (PyErr_Occurred()) SWIG_fail;
1369 }
1370 Py_INCREF(Py_None); resultobj = Py_None;
1371 {
1372 if (temp2)
1373 delete arg2;
1374 }
1375 return resultobj;
1376 fail:
1377 {
1378 if (temp2)
1379 delete arg2;
1380 }
1381 return NULL;
1382 }
1383
1384
1385 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1386 PyObject *resultobj;
1387 wxColour *arg1 = (wxColour *) 0 ;
1388 long result;
1389 PyObject * obj0 = 0 ;
1390 char *kwnames[] = {
1391 (char *) "self", NULL
1392 };
1393
1394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1397 {
1398 PyThreadState* __tstate = wxPyBeginAllowThreads();
1399 result = (long)((wxColour const *)arg1)->GetPixel();
1400
1401 wxPyEndAllowThreads(__tstate);
1402 if (PyErr_Occurred()) SWIG_fail;
1403 }
1404 resultobj = SWIG_FromLong((long)result);
1405 return resultobj;
1406 fail:
1407 return NULL;
1408 }
1409
1410
1411 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1412 PyObject *resultobj;
1413 wxColour *arg1 = (wxColour *) 0 ;
1414 wxColour *arg2 = 0 ;
1415 bool result;
1416 wxColour temp2 ;
1417 PyObject * obj0 = 0 ;
1418 PyObject * obj1 = 0 ;
1419 char *kwnames[] = {
1420 (char *) "self",(char *) "colour", NULL
1421 };
1422
1423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1426 {
1427 arg2 = &temp2;
1428 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1429 }
1430 {
1431 PyThreadState* __tstate = wxPyBeginAllowThreads();
1432 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1433
1434 wxPyEndAllowThreads(__tstate);
1435 if (PyErr_Occurred()) SWIG_fail;
1436 }
1437 {
1438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1439 }
1440 return resultobj;
1441 fail:
1442 return NULL;
1443 }
1444
1445
1446 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1447 PyObject *resultobj;
1448 wxColour *arg1 = (wxColour *) 0 ;
1449 wxColour *arg2 = 0 ;
1450 bool result;
1451 wxColour temp2 ;
1452 PyObject * obj0 = 0 ;
1453 PyObject * obj1 = 0 ;
1454 char *kwnames[] = {
1455 (char *) "self",(char *) "colour", NULL
1456 };
1457
1458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1461 {
1462 arg2 = &temp2;
1463 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1464 }
1465 {
1466 PyThreadState* __tstate = wxPyBeginAllowThreads();
1467 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1468
1469 wxPyEndAllowThreads(__tstate);
1470 if (PyErr_Occurred()) SWIG_fail;
1471 }
1472 {
1473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1474 }
1475 return resultobj;
1476 fail:
1477 return NULL;
1478 }
1479
1480
1481 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1482 PyObject *resultobj;
1483 wxColour *arg1 = (wxColour *) 0 ;
1484 PyObject *result;
1485 PyObject * obj0 = 0 ;
1486 char *kwnames[] = {
1487 (char *) "self", NULL
1488 };
1489
1490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1493 {
1494 PyThreadState* __tstate = wxPyBeginAllowThreads();
1495 result = (PyObject *)wxColour_Get(arg1);
1496
1497 wxPyEndAllowThreads(__tstate);
1498 if (PyErr_Occurred()) SWIG_fail;
1499 }
1500 resultobj = result;
1501 return resultobj;
1502 fail:
1503 return NULL;
1504 }
1505
1506
1507 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1508 PyObject *resultobj;
1509 wxColour *arg1 = (wxColour *) 0 ;
1510 unsigned long result;
1511 PyObject * obj0 = 0 ;
1512 char *kwnames[] = {
1513 (char *) "self", NULL
1514 };
1515
1516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1519 {
1520 PyThreadState* __tstate = wxPyBeginAllowThreads();
1521 result = (unsigned long)wxColour_GetRGB(arg1);
1522
1523 wxPyEndAllowThreads(__tstate);
1524 if (PyErr_Occurred()) SWIG_fail;
1525 }
1526 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1527 return resultobj;
1528 fail:
1529 return NULL;
1530 }
1531
1532
1533 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1534 PyObject *obj;
1535 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1536 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1537 Py_INCREF(obj);
1538 return Py_BuildValue((char *)"");
1539 }
1540 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1541 PyObject *resultobj;
1542 int arg1 ;
1543 unsigned char *arg2 = (unsigned char *) 0 ;
1544 unsigned char *arg3 = (unsigned char *) 0 ;
1545 unsigned char *arg4 = (unsigned char *) 0 ;
1546 wxPalette *result;
1547 PyObject * obj0 = 0 ;
1548 PyObject * obj1 = 0 ;
1549 PyObject * obj2 = 0 ;
1550 PyObject * obj3 = 0 ;
1551 char *kwnames[] = {
1552 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1553 };
1554
1555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1556 arg1 = (int) SWIG_AsInt(obj0);
1557 if (PyErr_Occurred()) SWIG_fail;
1558 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1560 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1562 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1564 {
1565 if (!wxPyCheckForApp()) SWIG_fail;
1566 PyThreadState* __tstate = wxPyBeginAllowThreads();
1567 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1568
1569 wxPyEndAllowThreads(__tstate);
1570 if (PyErr_Occurred()) SWIG_fail;
1571 }
1572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1573 return resultobj;
1574 fail:
1575 return NULL;
1576 }
1577
1578
1579 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1580 PyObject *resultobj;
1581 wxPalette *arg1 = (wxPalette *) 0 ;
1582 PyObject * obj0 = 0 ;
1583 char *kwnames[] = {
1584 (char *) "self", NULL
1585 };
1586
1587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1590 {
1591 PyThreadState* __tstate = wxPyBeginAllowThreads();
1592 delete arg1;
1593
1594 wxPyEndAllowThreads(__tstate);
1595 if (PyErr_Occurred()) SWIG_fail;
1596 }
1597 Py_INCREF(Py_None); resultobj = Py_None;
1598 return resultobj;
1599 fail:
1600 return NULL;
1601 }
1602
1603
1604 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1605 PyObject *resultobj;
1606 wxPalette *arg1 = (wxPalette *) 0 ;
1607 byte arg2 ;
1608 byte arg3 ;
1609 byte arg4 ;
1610 int result;
1611 PyObject * obj0 = 0 ;
1612 PyObject * obj1 = 0 ;
1613 PyObject * obj2 = 0 ;
1614 PyObject * obj3 = 0 ;
1615 char *kwnames[] = {
1616 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1617 };
1618
1619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1622 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1623 if (PyErr_Occurred()) SWIG_fail;
1624 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1625 if (PyErr_Occurred()) SWIG_fail;
1626 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1627 if (PyErr_Occurred()) SWIG_fail;
1628 {
1629 PyThreadState* __tstate = wxPyBeginAllowThreads();
1630 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1631
1632 wxPyEndAllowThreads(__tstate);
1633 if (PyErr_Occurred()) SWIG_fail;
1634 }
1635 resultobj = SWIG_FromInt((int)result);
1636 return resultobj;
1637 fail:
1638 return NULL;
1639 }
1640
1641
1642 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1643 PyObject *resultobj;
1644 wxPalette *arg1 = (wxPalette *) 0 ;
1645 int arg2 ;
1646 byte *arg3 = (byte *) 0 ;
1647 byte *arg4 = (byte *) 0 ;
1648 byte *arg5 = (byte *) 0 ;
1649 bool result;
1650 byte temp3 ;
1651 byte temp4 ;
1652 byte temp5 ;
1653 PyObject * obj0 = 0 ;
1654 PyObject * obj1 = 0 ;
1655 char *kwnames[] = {
1656 (char *) "self",(char *) "pixel", NULL
1657 };
1658
1659 arg3 = &temp3;
1660 arg4 = &temp4;
1661 arg5 = &temp5;
1662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1665 arg2 = (int) SWIG_AsInt(obj1);
1666 if (PyErr_Occurred()) SWIG_fail;
1667 {
1668 PyThreadState* __tstate = wxPyBeginAllowThreads();
1669 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1670
1671 wxPyEndAllowThreads(__tstate);
1672 if (PyErr_Occurred()) SWIG_fail;
1673 }
1674 {
1675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1676 }
1677 {
1678 PyObject *o = PyInt_FromLong((long) (*arg3));
1679 resultobj = t_output_helper(resultobj,o);
1680 }
1681 {
1682 PyObject *o = PyInt_FromLong((long) (*arg4));
1683 resultobj = t_output_helper(resultobj,o);
1684 }
1685 {
1686 PyObject *o = PyInt_FromLong((long) (*arg5));
1687 resultobj = t_output_helper(resultobj,o);
1688 }
1689 return resultobj;
1690 fail:
1691 return NULL;
1692 }
1693
1694
1695 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1696 PyObject *resultobj;
1697 wxPalette *arg1 = (wxPalette *) 0 ;
1698 bool result;
1699 PyObject * obj0 = 0 ;
1700 char *kwnames[] = {
1701 (char *) "self", NULL
1702 };
1703
1704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1707 {
1708 PyThreadState* __tstate = wxPyBeginAllowThreads();
1709 result = (bool)(arg1)->Ok();
1710
1711 wxPyEndAllowThreads(__tstate);
1712 if (PyErr_Occurred()) SWIG_fail;
1713 }
1714 {
1715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1716 }
1717 return resultobj;
1718 fail:
1719 return NULL;
1720 }
1721
1722
1723 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1724 PyObject *obj;
1725 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1726 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1727 Py_INCREF(obj);
1728 return Py_BuildValue((char *)"");
1729 }
1730 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1731 PyObject *resultobj;
1732 wxColour *arg1 = 0 ;
1733 int arg2 = (int) 1 ;
1734 int arg3 = (int) wxSOLID ;
1735 wxPen *result;
1736 wxColour temp1 ;
1737 PyObject * obj0 = 0 ;
1738 PyObject * obj1 = 0 ;
1739 PyObject * obj2 = 0 ;
1740 char *kwnames[] = {
1741 (char *) "colour",(char *) "width",(char *) "style", NULL
1742 };
1743
1744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1745 {
1746 arg1 = &temp1;
1747 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1748 }
1749 if (obj1) {
1750 arg2 = (int) SWIG_AsInt(obj1);
1751 if (PyErr_Occurred()) SWIG_fail;
1752 }
1753 if (obj2) {
1754 arg3 = (int) SWIG_AsInt(obj2);
1755 if (PyErr_Occurred()) SWIG_fail;
1756 }
1757 {
1758 if (!wxPyCheckForApp()) SWIG_fail;
1759 PyThreadState* __tstate = wxPyBeginAllowThreads();
1760 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1761
1762 wxPyEndAllowThreads(__tstate);
1763 if (PyErr_Occurred()) SWIG_fail;
1764 }
1765 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1766 return resultobj;
1767 fail:
1768 return NULL;
1769 }
1770
1771
1772 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1773 PyObject *resultobj;
1774 wxPen *arg1 = (wxPen *) 0 ;
1775 PyObject * obj0 = 0 ;
1776 char *kwnames[] = {
1777 (char *) "self", NULL
1778 };
1779
1780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1783 {
1784 PyThreadState* __tstate = wxPyBeginAllowThreads();
1785 delete arg1;
1786
1787 wxPyEndAllowThreads(__tstate);
1788 if (PyErr_Occurred()) SWIG_fail;
1789 }
1790 Py_INCREF(Py_None); resultobj = Py_None;
1791 return resultobj;
1792 fail:
1793 return NULL;
1794 }
1795
1796
1797 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1798 PyObject *resultobj;
1799 wxPen *arg1 = (wxPen *) 0 ;
1800 int result;
1801 PyObject * obj0 = 0 ;
1802 char *kwnames[] = {
1803 (char *) "self", NULL
1804 };
1805
1806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1809 {
1810 PyThreadState* __tstate = wxPyBeginAllowThreads();
1811 result = (int)(arg1)->GetCap();
1812
1813 wxPyEndAllowThreads(__tstate);
1814 if (PyErr_Occurred()) SWIG_fail;
1815 }
1816 resultobj = SWIG_FromInt((int)result);
1817 return resultobj;
1818 fail:
1819 return NULL;
1820 }
1821
1822
1823 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1824 PyObject *resultobj;
1825 wxPen *arg1 = (wxPen *) 0 ;
1826 wxColour result;
1827 PyObject * obj0 = 0 ;
1828 char *kwnames[] = {
1829 (char *) "self", NULL
1830 };
1831
1832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1835 {
1836 PyThreadState* __tstate = wxPyBeginAllowThreads();
1837 result = (arg1)->GetColour();
1838
1839 wxPyEndAllowThreads(__tstate);
1840 if (PyErr_Occurred()) SWIG_fail;
1841 }
1842 {
1843 wxColour * resultptr;
1844 resultptr = new wxColour((wxColour &) result);
1845 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1846 }
1847 return resultobj;
1848 fail:
1849 return NULL;
1850 }
1851
1852
1853 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1854 PyObject *resultobj;
1855 wxPen *arg1 = (wxPen *) 0 ;
1856 int result;
1857 PyObject * obj0 = 0 ;
1858 char *kwnames[] = {
1859 (char *) "self", NULL
1860 };
1861
1862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1865 {
1866 PyThreadState* __tstate = wxPyBeginAllowThreads();
1867 result = (int)(arg1)->GetJoin();
1868
1869 wxPyEndAllowThreads(__tstate);
1870 if (PyErr_Occurred()) SWIG_fail;
1871 }
1872 resultobj = SWIG_FromInt((int)result);
1873 return resultobj;
1874 fail:
1875 return NULL;
1876 }
1877
1878
1879 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1880 PyObject *resultobj;
1881 wxPen *arg1 = (wxPen *) 0 ;
1882 int result;
1883 PyObject * obj0 = 0 ;
1884 char *kwnames[] = {
1885 (char *) "self", NULL
1886 };
1887
1888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1891 {
1892 PyThreadState* __tstate = wxPyBeginAllowThreads();
1893 result = (int)(arg1)->GetStyle();
1894
1895 wxPyEndAllowThreads(__tstate);
1896 if (PyErr_Occurred()) SWIG_fail;
1897 }
1898 resultobj = SWIG_FromInt((int)result);
1899 return resultobj;
1900 fail:
1901 return NULL;
1902 }
1903
1904
1905 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1906 PyObject *resultobj;
1907 wxPen *arg1 = (wxPen *) 0 ;
1908 int result;
1909 PyObject * obj0 = 0 ;
1910 char *kwnames[] = {
1911 (char *) "self", NULL
1912 };
1913
1914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1917 {
1918 PyThreadState* __tstate = wxPyBeginAllowThreads();
1919 result = (int)(arg1)->GetWidth();
1920
1921 wxPyEndAllowThreads(__tstate);
1922 if (PyErr_Occurred()) SWIG_fail;
1923 }
1924 resultobj = SWIG_FromInt((int)result);
1925 return resultobj;
1926 fail:
1927 return NULL;
1928 }
1929
1930
1931 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1932 PyObject *resultobj;
1933 wxPen *arg1 = (wxPen *) 0 ;
1934 bool result;
1935 PyObject * obj0 = 0 ;
1936 char *kwnames[] = {
1937 (char *) "self", NULL
1938 };
1939
1940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1943 {
1944 PyThreadState* __tstate = wxPyBeginAllowThreads();
1945 result = (bool)(arg1)->Ok();
1946
1947 wxPyEndAllowThreads(__tstate);
1948 if (PyErr_Occurred()) SWIG_fail;
1949 }
1950 {
1951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1952 }
1953 return resultobj;
1954 fail:
1955 return NULL;
1956 }
1957
1958
1959 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1960 PyObject *resultobj;
1961 wxPen *arg1 = (wxPen *) 0 ;
1962 int arg2 ;
1963 PyObject * obj0 = 0 ;
1964 PyObject * obj1 = 0 ;
1965 char *kwnames[] = {
1966 (char *) "self",(char *) "cap_style", NULL
1967 };
1968
1969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1972 arg2 = (int) SWIG_AsInt(obj1);
1973 if (PyErr_Occurred()) SWIG_fail;
1974 {
1975 PyThreadState* __tstate = wxPyBeginAllowThreads();
1976 (arg1)->SetCap(arg2);
1977
1978 wxPyEndAllowThreads(__tstate);
1979 if (PyErr_Occurred()) SWIG_fail;
1980 }
1981 Py_INCREF(Py_None); resultobj = Py_None;
1982 return resultobj;
1983 fail:
1984 return NULL;
1985 }
1986
1987
1988 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1989 PyObject *resultobj;
1990 wxPen *arg1 = (wxPen *) 0 ;
1991 wxColour *arg2 = 0 ;
1992 wxColour temp2 ;
1993 PyObject * obj0 = 0 ;
1994 PyObject * obj1 = 0 ;
1995 char *kwnames[] = {
1996 (char *) "self",(char *) "colour", NULL
1997 };
1998
1999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2002 {
2003 arg2 = &temp2;
2004 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2005 }
2006 {
2007 PyThreadState* __tstate = wxPyBeginAllowThreads();
2008 (arg1)->SetColour(*arg2);
2009
2010 wxPyEndAllowThreads(__tstate);
2011 if (PyErr_Occurred()) SWIG_fail;
2012 }
2013 Py_INCREF(Py_None); resultobj = Py_None;
2014 return resultobj;
2015 fail:
2016 return NULL;
2017 }
2018
2019
2020 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2021 PyObject *resultobj;
2022 wxPen *arg1 = (wxPen *) 0 ;
2023 int arg2 ;
2024 PyObject * obj0 = 0 ;
2025 PyObject * obj1 = 0 ;
2026 char *kwnames[] = {
2027 (char *) "self",(char *) "join_style", NULL
2028 };
2029
2030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2033 arg2 = (int) SWIG_AsInt(obj1);
2034 if (PyErr_Occurred()) SWIG_fail;
2035 {
2036 PyThreadState* __tstate = wxPyBeginAllowThreads();
2037 (arg1)->SetJoin(arg2);
2038
2039 wxPyEndAllowThreads(__tstate);
2040 if (PyErr_Occurred()) SWIG_fail;
2041 }
2042 Py_INCREF(Py_None); resultobj = Py_None;
2043 return resultobj;
2044 fail:
2045 return NULL;
2046 }
2047
2048
2049 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2050 PyObject *resultobj;
2051 wxPen *arg1 = (wxPen *) 0 ;
2052 int arg2 ;
2053 PyObject * obj0 = 0 ;
2054 PyObject * obj1 = 0 ;
2055 char *kwnames[] = {
2056 (char *) "self",(char *) "style", NULL
2057 };
2058
2059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2062 arg2 = (int) SWIG_AsInt(obj1);
2063 if (PyErr_Occurred()) SWIG_fail;
2064 {
2065 PyThreadState* __tstate = wxPyBeginAllowThreads();
2066 (arg1)->SetStyle(arg2);
2067
2068 wxPyEndAllowThreads(__tstate);
2069 if (PyErr_Occurred()) SWIG_fail;
2070 }
2071 Py_INCREF(Py_None); resultobj = Py_None;
2072 return resultobj;
2073 fail:
2074 return NULL;
2075 }
2076
2077
2078 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2079 PyObject *resultobj;
2080 wxPen *arg1 = (wxPen *) 0 ;
2081 int arg2 ;
2082 PyObject * obj0 = 0 ;
2083 PyObject * obj1 = 0 ;
2084 char *kwnames[] = {
2085 (char *) "self",(char *) "width", NULL
2086 };
2087
2088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2091 arg2 = (int) SWIG_AsInt(obj1);
2092 if (PyErr_Occurred()) SWIG_fail;
2093 {
2094 PyThreadState* __tstate = wxPyBeginAllowThreads();
2095 (arg1)->SetWidth(arg2);
2096
2097 wxPyEndAllowThreads(__tstate);
2098 if (PyErr_Occurred()) SWIG_fail;
2099 }
2100 Py_INCREF(Py_None); resultobj = Py_None;
2101 return resultobj;
2102 fail:
2103 return NULL;
2104 }
2105
2106
2107 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2108 PyObject *resultobj;
2109 wxPen *arg1 = (wxPen *) 0 ;
2110 int arg2 ;
2111 wxDash *arg3 = (wxDash *) 0 ;
2112 PyObject * obj0 = 0 ;
2113 PyObject * obj1 = 0 ;
2114 char *kwnames[] = {
2115 (char *) "self",(char *) "dashes", NULL
2116 };
2117
2118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2121 {
2122 arg2 = PyList_Size(obj1);
2123 arg3 = (wxDash*)byte_LIST_helper(obj1);
2124 if (arg3 == NULL) SWIG_fail;
2125 }
2126 {
2127 PyThreadState* __tstate = wxPyBeginAllowThreads();
2128 (arg1)->SetDashes(arg2,arg3);
2129
2130 wxPyEndAllowThreads(__tstate);
2131 if (PyErr_Occurred()) SWIG_fail;
2132 }
2133 Py_INCREF(Py_None); resultobj = Py_None;
2134 {
2135 if (arg3) delete [] arg3;
2136 }
2137 return resultobj;
2138 fail:
2139 {
2140 if (arg3) delete [] arg3;
2141 }
2142 return NULL;
2143 }
2144
2145
2146 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2147 PyObject *resultobj;
2148 wxPen *arg1 = (wxPen *) 0 ;
2149 PyObject *result;
2150 PyObject * obj0 = 0 ;
2151 char *kwnames[] = {
2152 (char *) "self", NULL
2153 };
2154
2155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2158 {
2159 PyThreadState* __tstate = wxPyBeginAllowThreads();
2160 result = (PyObject *)wxPen_GetDashes(arg1);
2161
2162 wxPyEndAllowThreads(__tstate);
2163 if (PyErr_Occurred()) SWIG_fail;
2164 }
2165 resultobj = result;
2166 return resultobj;
2167 fail:
2168 return NULL;
2169 }
2170
2171
2172 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2173 PyObject *resultobj;
2174 wxPen *arg1 = (wxPen *) 0 ;
2175 PyObject *arg2 = (PyObject *) 0 ;
2176 PyObject *arg3 = (PyObject *) 0 ;
2177 PyObject * obj0 = 0 ;
2178 PyObject * obj1 = 0 ;
2179 PyObject * obj2 = 0 ;
2180 char *kwnames[] = {
2181 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2182 };
2183
2184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2187 arg2 = obj1;
2188 arg3 = obj2;
2189 {
2190 PyThreadState* __tstate = wxPyBeginAllowThreads();
2191 wxPen__SetDashes(arg1,arg2,arg3);
2192
2193 wxPyEndAllowThreads(__tstate);
2194 if (PyErr_Occurred()) SWIG_fail;
2195 }
2196 Py_INCREF(Py_None); resultobj = Py_None;
2197 return resultobj;
2198 fail:
2199 return NULL;
2200 }
2201
2202
2203 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2204 PyObject *resultobj;
2205 wxPen *arg1 = (wxPen *) 0 ;
2206 wxPen *arg2 = (wxPen *) 0 ;
2207 bool result;
2208 PyObject * obj0 = 0 ;
2209 PyObject * obj1 = 0 ;
2210 char *kwnames[] = {
2211 (char *) "self",(char *) "other", NULL
2212 };
2213
2214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2217 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2219 {
2220 PyThreadState* __tstate = wxPyBeginAllowThreads();
2221 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2222
2223 wxPyEndAllowThreads(__tstate);
2224 if (PyErr_Occurred()) SWIG_fail;
2225 }
2226 {
2227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2228 }
2229 return resultobj;
2230 fail:
2231 return NULL;
2232 }
2233
2234
2235 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2236 PyObject *resultobj;
2237 wxPen *arg1 = (wxPen *) 0 ;
2238 wxPen *arg2 = (wxPen *) 0 ;
2239 bool result;
2240 PyObject * obj0 = 0 ;
2241 PyObject * obj1 = 0 ;
2242 char *kwnames[] = {
2243 (char *) "self",(char *) "other", NULL
2244 };
2245
2246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2249 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2251 {
2252 PyThreadState* __tstate = wxPyBeginAllowThreads();
2253 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2254
2255 wxPyEndAllowThreads(__tstate);
2256 if (PyErr_Occurred()) SWIG_fail;
2257 }
2258 {
2259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2260 }
2261 return resultobj;
2262 fail:
2263 return NULL;
2264 }
2265
2266
2267 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2268 PyObject *obj;
2269 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2270 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2271 Py_INCREF(obj);
2272 return Py_BuildValue((char *)"");
2273 }
2274 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2275 PyObject *resultobj;
2276 wxColour *arg1 = 0 ;
2277 int arg2 = (int) wxSOLID ;
2278 wxBrush *result;
2279 wxColour temp1 ;
2280 PyObject * obj0 = 0 ;
2281 PyObject * obj1 = 0 ;
2282 char *kwnames[] = {
2283 (char *) "colour",(char *) "style", NULL
2284 };
2285
2286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2287 {
2288 arg1 = &temp1;
2289 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2290 }
2291 if (obj1) {
2292 arg2 = (int) SWIG_AsInt(obj1);
2293 if (PyErr_Occurred()) SWIG_fail;
2294 }
2295 {
2296 if (!wxPyCheckForApp()) SWIG_fail;
2297 PyThreadState* __tstate = wxPyBeginAllowThreads();
2298 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2299
2300 wxPyEndAllowThreads(__tstate);
2301 if (PyErr_Occurred()) SWIG_fail;
2302 }
2303 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2304 return resultobj;
2305 fail:
2306 return NULL;
2307 }
2308
2309
2310 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2311 PyObject *resultobj;
2312 wxBrush *arg1 = (wxBrush *) 0 ;
2313 PyObject * obj0 = 0 ;
2314 char *kwnames[] = {
2315 (char *) "self", NULL
2316 };
2317
2318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2321 {
2322 PyThreadState* __tstate = wxPyBeginAllowThreads();
2323 delete arg1;
2324
2325 wxPyEndAllowThreads(__tstate);
2326 if (PyErr_Occurred()) SWIG_fail;
2327 }
2328 Py_INCREF(Py_None); resultobj = Py_None;
2329 return resultobj;
2330 fail:
2331 return NULL;
2332 }
2333
2334
2335 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2336 PyObject *resultobj;
2337 wxBrush *arg1 = (wxBrush *) 0 ;
2338 wxColour *arg2 = 0 ;
2339 wxColour temp2 ;
2340 PyObject * obj0 = 0 ;
2341 PyObject * obj1 = 0 ;
2342 char *kwnames[] = {
2343 (char *) "self",(char *) "col", NULL
2344 };
2345
2346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2349 {
2350 arg2 = &temp2;
2351 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2352 }
2353 {
2354 PyThreadState* __tstate = wxPyBeginAllowThreads();
2355 (arg1)->SetColour((wxColour const &)*arg2);
2356
2357 wxPyEndAllowThreads(__tstate);
2358 if (PyErr_Occurred()) SWIG_fail;
2359 }
2360 Py_INCREF(Py_None); resultobj = Py_None;
2361 return resultobj;
2362 fail:
2363 return NULL;
2364 }
2365
2366
2367 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2368 PyObject *resultobj;
2369 wxBrush *arg1 = (wxBrush *) 0 ;
2370 int arg2 ;
2371 PyObject * obj0 = 0 ;
2372 PyObject * obj1 = 0 ;
2373 char *kwnames[] = {
2374 (char *) "self",(char *) "style", NULL
2375 };
2376
2377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2380 arg2 = (int) SWIG_AsInt(obj1);
2381 if (PyErr_Occurred()) SWIG_fail;
2382 {
2383 PyThreadState* __tstate = wxPyBeginAllowThreads();
2384 (arg1)->SetStyle(arg2);
2385
2386 wxPyEndAllowThreads(__tstate);
2387 if (PyErr_Occurred()) SWIG_fail;
2388 }
2389 Py_INCREF(Py_None); resultobj = Py_None;
2390 return resultobj;
2391 fail:
2392 return NULL;
2393 }
2394
2395
2396 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2397 PyObject *resultobj;
2398 wxBrush *arg1 = (wxBrush *) 0 ;
2399 wxBitmap *arg2 = 0 ;
2400 PyObject * obj0 = 0 ;
2401 PyObject * obj1 = 0 ;
2402 char *kwnames[] = {
2403 (char *) "self",(char *) "stipple", NULL
2404 };
2405
2406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2409 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2410 SWIG_POINTER_EXCEPTION | 0)) == -1)
2411 SWIG_fail;
2412 if (arg2 == NULL) {
2413 PyErr_SetString(PyExc_TypeError,"null reference");
2414 SWIG_fail;
2415 }
2416 {
2417 PyThreadState* __tstate = wxPyBeginAllowThreads();
2418 (arg1)->SetStipple((wxBitmap const &)*arg2);
2419
2420 wxPyEndAllowThreads(__tstate);
2421 if (PyErr_Occurred()) SWIG_fail;
2422 }
2423 Py_INCREF(Py_None); resultobj = Py_None;
2424 return resultobj;
2425 fail:
2426 return NULL;
2427 }
2428
2429
2430 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2431 PyObject *resultobj;
2432 wxBrush *arg1 = (wxBrush *) 0 ;
2433 wxColour result;
2434 PyObject * obj0 = 0 ;
2435 char *kwnames[] = {
2436 (char *) "self", NULL
2437 };
2438
2439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2442 {
2443 PyThreadState* __tstate = wxPyBeginAllowThreads();
2444 result = ((wxBrush const *)arg1)->GetColour();
2445
2446 wxPyEndAllowThreads(__tstate);
2447 if (PyErr_Occurred()) SWIG_fail;
2448 }
2449 {
2450 wxColour * resultptr;
2451 resultptr = new wxColour((wxColour &) result);
2452 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2453 }
2454 return resultobj;
2455 fail:
2456 return NULL;
2457 }
2458
2459
2460 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2461 PyObject *resultobj;
2462 wxBrush *arg1 = (wxBrush *) 0 ;
2463 int result;
2464 PyObject * obj0 = 0 ;
2465 char *kwnames[] = {
2466 (char *) "self", NULL
2467 };
2468
2469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2472 {
2473 PyThreadState* __tstate = wxPyBeginAllowThreads();
2474 result = (int)((wxBrush const *)arg1)->GetStyle();
2475
2476 wxPyEndAllowThreads(__tstate);
2477 if (PyErr_Occurred()) SWIG_fail;
2478 }
2479 resultobj = SWIG_FromInt((int)result);
2480 return resultobj;
2481 fail:
2482 return NULL;
2483 }
2484
2485
2486 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2487 PyObject *resultobj;
2488 wxBrush *arg1 = (wxBrush *) 0 ;
2489 wxBitmap *result;
2490 PyObject * obj0 = 0 ;
2491 char *kwnames[] = {
2492 (char *) "self", NULL
2493 };
2494
2495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2498 {
2499 PyThreadState* __tstate = wxPyBeginAllowThreads();
2500 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2501
2502 wxPyEndAllowThreads(__tstate);
2503 if (PyErr_Occurred()) SWIG_fail;
2504 }
2505 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2506 return resultobj;
2507 fail:
2508 return NULL;
2509 }
2510
2511
2512 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2513 PyObject *resultobj;
2514 wxBrush *arg1 = (wxBrush *) 0 ;
2515 bool result;
2516 PyObject * obj0 = 0 ;
2517 char *kwnames[] = {
2518 (char *) "self", NULL
2519 };
2520
2521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2524 {
2525 PyThreadState* __tstate = wxPyBeginAllowThreads();
2526 result = (bool)(arg1)->Ok();
2527
2528 wxPyEndAllowThreads(__tstate);
2529 if (PyErr_Occurred()) SWIG_fail;
2530 }
2531 {
2532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2533 }
2534 return resultobj;
2535 fail:
2536 return NULL;
2537 }
2538
2539
2540 static PyObject *_wrap_Brush_MacGetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2541 PyObject *resultobj;
2542 wxBrush *arg1 = (wxBrush *) 0 ;
2543 short result;
2544 PyObject * obj0 = 0 ;
2545 char *kwnames[] = {
2546 (char *) "self", NULL
2547 };
2548
2549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2552 {
2553 PyThreadState* __tstate = wxPyBeginAllowThreads();
2554 result = (short)(arg1)->MacGetTheme();
2555
2556 wxPyEndAllowThreads(__tstate);
2557 if (PyErr_Occurred()) SWIG_fail;
2558 }
2559 resultobj = SWIG_FromShort((short)result);
2560 return resultobj;
2561 fail:
2562 return NULL;
2563 }
2564
2565
2566 static PyObject *_wrap_Brush_MacSetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2567 PyObject *resultobj;
2568 wxBrush *arg1 = (wxBrush *) 0 ;
2569 short arg2 ;
2570 PyObject * obj0 = 0 ;
2571 PyObject * obj1 = 0 ;
2572 char *kwnames[] = {
2573 (char *) "self",(char *) "macThemeBrush", NULL
2574 };
2575
2576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2579 arg2 = (short) SWIG_AsShort(obj1);
2580 if (PyErr_Occurred()) SWIG_fail;
2581 {
2582 PyThreadState* __tstate = wxPyBeginAllowThreads();
2583 (arg1)->MacSetTheme(arg2);
2584
2585 wxPyEndAllowThreads(__tstate);
2586 if (PyErr_Occurred()) SWIG_fail;
2587 }
2588 Py_INCREF(Py_None); resultobj = Py_None;
2589 return resultobj;
2590 fail:
2591 return NULL;
2592 }
2593
2594
2595 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2596 PyObject *obj;
2597 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2598 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2599 Py_INCREF(obj);
2600 return Py_BuildValue((char *)"");
2601 }
2602 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2603 PyObject *resultobj;
2604 wxString *arg1 = 0 ;
2605 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2606 wxBitmap *result;
2607 bool temp1 = False ;
2608 PyObject * obj0 = 0 ;
2609 PyObject * obj1 = 0 ;
2610 char *kwnames[] = {
2611 (char *) "name",(char *) "type", NULL
2612 };
2613
2614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2615 {
2616 arg1 = wxString_in_helper(obj0);
2617 if (arg1 == NULL) SWIG_fail;
2618 temp1 = True;
2619 }
2620 if (obj1) {
2621 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2622 if (PyErr_Occurred()) SWIG_fail;
2623 }
2624 {
2625 if (!wxPyCheckForApp()) SWIG_fail;
2626 PyThreadState* __tstate = wxPyBeginAllowThreads();
2627 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2628
2629 wxPyEndAllowThreads(__tstate);
2630 if (PyErr_Occurred()) SWIG_fail;
2631 }
2632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2633 {
2634 if (temp1)
2635 delete arg1;
2636 }
2637 return resultobj;
2638 fail:
2639 {
2640 if (temp1)
2641 delete arg1;
2642 }
2643 return NULL;
2644 }
2645
2646
2647 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2648 PyObject *resultobj;
2649 wxBitmap *arg1 = (wxBitmap *) 0 ;
2650 PyObject * obj0 = 0 ;
2651 char *kwnames[] = {
2652 (char *) "self", NULL
2653 };
2654
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2658 {
2659 PyThreadState* __tstate = wxPyBeginAllowThreads();
2660 delete arg1;
2661
2662 wxPyEndAllowThreads(__tstate);
2663 if (PyErr_Occurred()) SWIG_fail;
2664 }
2665 Py_INCREF(Py_None); resultobj = Py_None;
2666 return resultobj;
2667 fail:
2668 return NULL;
2669 }
2670
2671
2672 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2673 PyObject *resultobj;
2674 int arg1 ;
2675 int arg2 ;
2676 int arg3 = (int) -1 ;
2677 wxBitmap *result;
2678 PyObject * obj0 = 0 ;
2679 PyObject * obj1 = 0 ;
2680 PyObject * obj2 = 0 ;
2681 char *kwnames[] = {
2682 (char *) "width",(char *) "height",(char *) "depth", NULL
2683 };
2684
2685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2686 arg1 = (int) SWIG_AsInt(obj0);
2687 if (PyErr_Occurred()) SWIG_fail;
2688 arg2 = (int) SWIG_AsInt(obj1);
2689 if (PyErr_Occurred()) SWIG_fail;
2690 if (obj2) {
2691 arg3 = (int) SWIG_AsInt(obj2);
2692 if (PyErr_Occurred()) SWIG_fail;
2693 }
2694 {
2695 if (!wxPyCheckForApp()) SWIG_fail;
2696 PyThreadState* __tstate = wxPyBeginAllowThreads();
2697 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2698
2699 wxPyEndAllowThreads(__tstate);
2700 if (PyErr_Occurred()) SWIG_fail;
2701 }
2702 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2703 return resultobj;
2704 fail:
2705 return NULL;
2706 }
2707
2708
2709 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2710 PyObject *resultobj;
2711 wxIcon *arg1 = 0 ;
2712 wxBitmap *result;
2713 PyObject * obj0 = 0 ;
2714 char *kwnames[] = {
2715 (char *) "icon", NULL
2716 };
2717
2718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2720 SWIG_POINTER_EXCEPTION | 0)) == -1)
2721 SWIG_fail;
2722 if (arg1 == NULL) {
2723 PyErr_SetString(PyExc_TypeError,"null reference");
2724 SWIG_fail;
2725 }
2726 {
2727 if (!wxPyCheckForApp()) SWIG_fail;
2728 PyThreadState* __tstate = wxPyBeginAllowThreads();
2729 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2730
2731 wxPyEndAllowThreads(__tstate);
2732 if (PyErr_Occurred()) SWIG_fail;
2733 }
2734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2735 return resultobj;
2736 fail:
2737 return NULL;
2738 }
2739
2740
2741 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2742 PyObject *resultobj;
2743 wxImage *arg1 = 0 ;
2744 int arg2 = (int) -1 ;
2745 wxBitmap *result;
2746 PyObject * obj0 = 0 ;
2747 PyObject * obj1 = 0 ;
2748 char *kwnames[] = {
2749 (char *) "image",(char *) "depth", NULL
2750 };
2751
2752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2754 SWIG_POINTER_EXCEPTION | 0)) == -1)
2755 SWIG_fail;
2756 if (arg1 == NULL) {
2757 PyErr_SetString(PyExc_TypeError,"null reference");
2758 SWIG_fail;
2759 }
2760 if (obj1) {
2761 arg2 = (int) SWIG_AsInt(obj1);
2762 if (PyErr_Occurred()) SWIG_fail;
2763 }
2764 {
2765 if (!wxPyCheckForApp()) SWIG_fail;
2766 PyThreadState* __tstate = wxPyBeginAllowThreads();
2767 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2768
2769 wxPyEndAllowThreads(__tstate);
2770 if (PyErr_Occurred()) SWIG_fail;
2771 }
2772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2773 return resultobj;
2774 fail:
2775 return NULL;
2776 }
2777
2778
2779 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2780 PyObject *resultobj;
2781 PyObject *arg1 = (PyObject *) 0 ;
2782 wxBitmap *result;
2783 PyObject * obj0 = 0 ;
2784 char *kwnames[] = {
2785 (char *) "listOfStrings", NULL
2786 };
2787
2788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2789 arg1 = obj0;
2790 {
2791 if (!wxPyCheckForApp()) SWIG_fail;
2792 PyThreadState* __tstate = wxPyBeginAllowThreads();
2793 result = (wxBitmap *)new_wxBitmap(arg1);
2794
2795 wxPyEndAllowThreads(__tstate);
2796 if (PyErr_Occurred()) SWIG_fail;
2797 }
2798 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2799 return resultobj;
2800 fail:
2801 return NULL;
2802 }
2803
2804
2805 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2806 PyObject *resultobj;
2807 PyObject *arg1 = (PyObject *) 0 ;
2808 int arg2 ;
2809 int arg3 ;
2810 int arg4 = (int) 1 ;
2811 wxBitmap *result;
2812 PyObject * obj0 = 0 ;
2813 PyObject * obj1 = 0 ;
2814 PyObject * obj2 = 0 ;
2815 PyObject * obj3 = 0 ;
2816 char *kwnames[] = {
2817 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2818 };
2819
2820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2821 arg1 = obj0;
2822 arg2 = (int) SWIG_AsInt(obj1);
2823 if (PyErr_Occurred()) SWIG_fail;
2824 arg3 = (int) SWIG_AsInt(obj2);
2825 if (PyErr_Occurred()) SWIG_fail;
2826 if (obj3) {
2827 arg4 = (int) SWIG_AsInt(obj3);
2828 if (PyErr_Occurred()) SWIG_fail;
2829 }
2830 {
2831 if (!wxPyCheckForApp()) SWIG_fail;
2832 PyThreadState* __tstate = wxPyBeginAllowThreads();
2833 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2834
2835 wxPyEndAllowThreads(__tstate);
2836 if (PyErr_Occurred()) SWIG_fail;
2837 }
2838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2839 return resultobj;
2840 fail:
2841 return NULL;
2842 }
2843
2844
2845 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2846 PyObject *resultobj;
2847 wxBitmap *arg1 = (wxBitmap *) 0 ;
2848 bool result;
2849 PyObject * obj0 = 0 ;
2850 char *kwnames[] = {
2851 (char *) "self", NULL
2852 };
2853
2854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2857 {
2858 PyThreadState* __tstate = wxPyBeginAllowThreads();
2859 result = (bool)(arg1)->Ok();
2860
2861 wxPyEndAllowThreads(__tstate);
2862 if (PyErr_Occurred()) SWIG_fail;
2863 }
2864 {
2865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2866 }
2867 return resultobj;
2868 fail:
2869 return NULL;
2870 }
2871
2872
2873 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2874 PyObject *resultobj;
2875 wxBitmap *arg1 = (wxBitmap *) 0 ;
2876 int result;
2877 PyObject * obj0 = 0 ;
2878 char *kwnames[] = {
2879 (char *) "self", NULL
2880 };
2881
2882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2885 {
2886 PyThreadState* __tstate = wxPyBeginAllowThreads();
2887 result = (int)(arg1)->GetWidth();
2888
2889 wxPyEndAllowThreads(__tstate);
2890 if (PyErr_Occurred()) SWIG_fail;
2891 }
2892 resultobj = SWIG_FromInt((int)result);
2893 return resultobj;
2894 fail:
2895 return NULL;
2896 }
2897
2898
2899 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2900 PyObject *resultobj;
2901 wxBitmap *arg1 = (wxBitmap *) 0 ;
2902 int result;
2903 PyObject * obj0 = 0 ;
2904 char *kwnames[] = {
2905 (char *) "self", NULL
2906 };
2907
2908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2911 {
2912 PyThreadState* __tstate = wxPyBeginAllowThreads();
2913 result = (int)(arg1)->GetHeight();
2914
2915 wxPyEndAllowThreads(__tstate);
2916 if (PyErr_Occurred()) SWIG_fail;
2917 }
2918 resultobj = SWIG_FromInt((int)result);
2919 return resultobj;
2920 fail:
2921 return NULL;
2922 }
2923
2924
2925 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2926 PyObject *resultobj;
2927 wxBitmap *arg1 = (wxBitmap *) 0 ;
2928 int result;
2929 PyObject * obj0 = 0 ;
2930 char *kwnames[] = {
2931 (char *) "self", NULL
2932 };
2933
2934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2937 {
2938 PyThreadState* __tstate = wxPyBeginAllowThreads();
2939 result = (int)(arg1)->GetDepth();
2940
2941 wxPyEndAllowThreads(__tstate);
2942 if (PyErr_Occurred()) SWIG_fail;
2943 }
2944 resultobj = SWIG_FromInt((int)result);
2945 return resultobj;
2946 fail:
2947 return NULL;
2948 }
2949
2950
2951 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2952 PyObject *resultobj;
2953 wxBitmap *arg1 = (wxBitmap *) 0 ;
2954 wxSize result;
2955 PyObject * obj0 = 0 ;
2956 char *kwnames[] = {
2957 (char *) "self", NULL
2958 };
2959
2960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
2961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2963 {
2964 PyThreadState* __tstate = wxPyBeginAllowThreads();
2965 result = wxBitmap_GetSize(arg1);
2966
2967 wxPyEndAllowThreads(__tstate);
2968 if (PyErr_Occurred()) SWIG_fail;
2969 }
2970 {
2971 wxSize * resultptr;
2972 resultptr = new wxSize((wxSize &) result);
2973 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2974 }
2975 return resultobj;
2976 fail:
2977 return NULL;
2978 }
2979
2980
2981 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2982 PyObject *resultobj;
2983 wxBitmap *arg1 = (wxBitmap *) 0 ;
2984 SwigValueWrapper< wxImage > result;
2985 PyObject * obj0 = 0 ;
2986 char *kwnames[] = {
2987 (char *) "self", NULL
2988 };
2989
2990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2993 {
2994 PyThreadState* __tstate = wxPyBeginAllowThreads();
2995 result = ((wxBitmap const *)arg1)->ConvertToImage();
2996
2997 wxPyEndAllowThreads(__tstate);
2998 if (PyErr_Occurred()) SWIG_fail;
2999 }
3000 {
3001 wxImage * resultptr;
3002 resultptr = new wxImage((wxImage &) result);
3003 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3004 }
3005 return resultobj;
3006 fail:
3007 return NULL;
3008 }
3009
3010
3011 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3012 PyObject *resultobj;
3013 wxBitmap *arg1 = (wxBitmap *) 0 ;
3014 wxMask *result;
3015 PyObject * obj0 = 0 ;
3016 char *kwnames[] = {
3017 (char *) "self", NULL
3018 };
3019
3020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3023 {
3024 PyThreadState* __tstate = wxPyBeginAllowThreads();
3025 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3026
3027 wxPyEndAllowThreads(__tstate);
3028 if (PyErr_Occurred()) SWIG_fail;
3029 }
3030 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3031 return resultobj;
3032 fail:
3033 return NULL;
3034 }
3035
3036
3037 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3038 PyObject *resultobj;
3039 wxBitmap *arg1 = (wxBitmap *) 0 ;
3040 wxMask *arg2 = (wxMask *) 0 ;
3041 PyObject * obj0 = 0 ;
3042 PyObject * obj1 = 0 ;
3043 char *kwnames[] = {
3044 (char *) "self",(char *) "mask", NULL
3045 };
3046
3047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3050 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3052 {
3053 PyThreadState* __tstate = wxPyBeginAllowThreads();
3054 (arg1)->SetMask(arg2);
3055
3056 wxPyEndAllowThreads(__tstate);
3057 if (PyErr_Occurred()) SWIG_fail;
3058 }
3059 Py_INCREF(Py_None); resultobj = Py_None;
3060 return resultobj;
3061 fail:
3062 return NULL;
3063 }
3064
3065
3066 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3067 PyObject *resultobj;
3068 wxBitmap *arg1 = (wxBitmap *) 0 ;
3069 wxColour *arg2 = 0 ;
3070 wxColour temp2 ;
3071 PyObject * obj0 = 0 ;
3072 PyObject * obj1 = 0 ;
3073 char *kwnames[] = {
3074 (char *) "self",(char *) "colour", NULL
3075 };
3076
3077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3080 {
3081 arg2 = &temp2;
3082 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3083 }
3084 {
3085 PyThreadState* __tstate = wxPyBeginAllowThreads();
3086 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3087
3088 wxPyEndAllowThreads(__tstate);
3089 if (PyErr_Occurred()) SWIG_fail;
3090 }
3091 Py_INCREF(Py_None); resultobj = Py_None;
3092 return resultobj;
3093 fail:
3094 return NULL;
3095 }
3096
3097
3098 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3099 PyObject *resultobj;
3100 wxBitmap *arg1 = (wxBitmap *) 0 ;
3101 wxRect *arg2 = 0 ;
3102 SwigValueWrapper< wxBitmap > result;
3103 wxRect temp2 ;
3104 PyObject * obj0 = 0 ;
3105 PyObject * obj1 = 0 ;
3106 char *kwnames[] = {
3107 (char *) "self",(char *) "rect", NULL
3108 };
3109
3110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3113 {
3114 arg2 = &temp2;
3115 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3116 }
3117 {
3118 PyThreadState* __tstate = wxPyBeginAllowThreads();
3119 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3120
3121 wxPyEndAllowThreads(__tstate);
3122 if (PyErr_Occurred()) SWIG_fail;
3123 }
3124 {
3125 wxBitmap * resultptr;
3126 resultptr = new wxBitmap((wxBitmap &) result);
3127 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3128 }
3129 return resultobj;
3130 fail:
3131 return NULL;
3132 }
3133
3134
3135 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3136 PyObject *resultobj;
3137 wxBitmap *arg1 = (wxBitmap *) 0 ;
3138 wxString *arg2 = 0 ;
3139 int arg3 ;
3140 wxPalette *arg4 = (wxPalette *) NULL ;
3141 bool result;
3142 bool temp2 = False ;
3143 PyObject * obj0 = 0 ;
3144 PyObject * obj1 = 0 ;
3145 PyObject * obj2 = 0 ;
3146 PyObject * obj3 = 0 ;
3147 char *kwnames[] = {
3148 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3149 };
3150
3151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3154 {
3155 arg2 = wxString_in_helper(obj1);
3156 if (arg2 == NULL) SWIG_fail;
3157 temp2 = True;
3158 }
3159 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3160 if (PyErr_Occurred()) SWIG_fail;
3161 if (obj3) {
3162 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3164 }
3165 {
3166 PyThreadState* __tstate = wxPyBeginAllowThreads();
3167 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3168
3169 wxPyEndAllowThreads(__tstate);
3170 if (PyErr_Occurred()) SWIG_fail;
3171 }
3172 {
3173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3174 }
3175 {
3176 if (temp2)
3177 delete arg2;
3178 }
3179 return resultobj;
3180 fail:
3181 {
3182 if (temp2)
3183 delete arg2;
3184 }
3185 return NULL;
3186 }
3187
3188
3189 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3190 PyObject *resultobj;
3191 wxBitmap *arg1 = (wxBitmap *) 0 ;
3192 wxString *arg2 = 0 ;
3193 int arg3 ;
3194 bool result;
3195 bool temp2 = False ;
3196 PyObject * obj0 = 0 ;
3197 PyObject * obj1 = 0 ;
3198 PyObject * obj2 = 0 ;
3199 char *kwnames[] = {
3200 (char *) "self",(char *) "name",(char *) "type", NULL
3201 };
3202
3203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3206 {
3207 arg2 = wxString_in_helper(obj1);
3208 if (arg2 == NULL) SWIG_fail;
3209 temp2 = True;
3210 }
3211 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3212 if (PyErr_Occurred()) SWIG_fail;
3213 {
3214 PyThreadState* __tstate = wxPyBeginAllowThreads();
3215 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3216
3217 wxPyEndAllowThreads(__tstate);
3218 if (PyErr_Occurred()) SWIG_fail;
3219 }
3220 {
3221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3222 }
3223 {
3224 if (temp2)
3225 delete arg2;
3226 }
3227 return resultobj;
3228 fail:
3229 {
3230 if (temp2)
3231 delete arg2;
3232 }
3233 return NULL;
3234 }
3235
3236
3237 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3238 PyObject *resultobj;
3239 wxBitmap *arg1 = (wxBitmap *) 0 ;
3240 wxIcon *arg2 = 0 ;
3241 bool result;
3242 PyObject * obj0 = 0 ;
3243 PyObject * obj1 = 0 ;
3244 char *kwnames[] = {
3245 (char *) "self",(char *) "icon", NULL
3246 };
3247
3248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3251 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3252 SWIG_POINTER_EXCEPTION | 0)) == -1)
3253 SWIG_fail;
3254 if (arg2 == NULL) {
3255 PyErr_SetString(PyExc_TypeError,"null reference");
3256 SWIG_fail;
3257 }
3258 {
3259 PyThreadState* __tstate = wxPyBeginAllowThreads();
3260 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3261
3262 wxPyEndAllowThreads(__tstate);
3263 if (PyErr_Occurred()) SWIG_fail;
3264 }
3265 {
3266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3267 }
3268 return resultobj;
3269 fail:
3270 return NULL;
3271 }
3272
3273
3274 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3275 PyObject *resultobj;
3276 wxBitmap *arg1 = (wxBitmap *) 0 ;
3277 int arg2 ;
3278 PyObject * obj0 = 0 ;
3279 PyObject * obj1 = 0 ;
3280 char *kwnames[] = {
3281 (char *) "self",(char *) "height", NULL
3282 };
3283
3284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3287 arg2 = (int) SWIG_AsInt(obj1);
3288 if (PyErr_Occurred()) SWIG_fail;
3289 {
3290 PyThreadState* __tstate = wxPyBeginAllowThreads();
3291 (arg1)->SetHeight(arg2);
3292
3293 wxPyEndAllowThreads(__tstate);
3294 if (PyErr_Occurred()) SWIG_fail;
3295 }
3296 Py_INCREF(Py_None); resultobj = Py_None;
3297 return resultobj;
3298 fail:
3299 return NULL;
3300 }
3301
3302
3303 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3304 PyObject *resultobj;
3305 wxBitmap *arg1 = (wxBitmap *) 0 ;
3306 int arg2 ;
3307 PyObject * obj0 = 0 ;
3308 PyObject * obj1 = 0 ;
3309 char *kwnames[] = {
3310 (char *) "self",(char *) "width", NULL
3311 };
3312
3313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3316 arg2 = (int) SWIG_AsInt(obj1);
3317 if (PyErr_Occurred()) SWIG_fail;
3318 {
3319 PyThreadState* __tstate = wxPyBeginAllowThreads();
3320 (arg1)->SetWidth(arg2);
3321
3322 wxPyEndAllowThreads(__tstate);
3323 if (PyErr_Occurred()) SWIG_fail;
3324 }
3325 Py_INCREF(Py_None); resultobj = Py_None;
3326 return resultobj;
3327 fail:
3328 return NULL;
3329 }
3330
3331
3332 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3333 PyObject *resultobj;
3334 wxBitmap *arg1 = (wxBitmap *) 0 ;
3335 int arg2 ;
3336 PyObject * obj0 = 0 ;
3337 PyObject * obj1 = 0 ;
3338 char *kwnames[] = {
3339 (char *) "self",(char *) "depth", NULL
3340 };
3341
3342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3345 arg2 = (int) SWIG_AsInt(obj1);
3346 if (PyErr_Occurred()) SWIG_fail;
3347 {
3348 PyThreadState* __tstate = wxPyBeginAllowThreads();
3349 (arg1)->SetDepth(arg2);
3350
3351 wxPyEndAllowThreads(__tstate);
3352 if (PyErr_Occurred()) SWIG_fail;
3353 }
3354 Py_INCREF(Py_None); resultobj = Py_None;
3355 return resultobj;
3356 fail:
3357 return NULL;
3358 }
3359
3360
3361 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3362 PyObject *resultobj;
3363 wxBitmap *arg1 = (wxBitmap *) 0 ;
3364 wxSize *arg2 = 0 ;
3365 wxSize temp2 ;
3366 PyObject * obj0 = 0 ;
3367 PyObject * obj1 = 0 ;
3368 char *kwnames[] = {
3369 (char *) "self",(char *) "size", NULL
3370 };
3371
3372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3375 {
3376 arg2 = &temp2;
3377 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3378 }
3379 {
3380 PyThreadState* __tstate = wxPyBeginAllowThreads();
3381 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3382
3383 wxPyEndAllowThreads(__tstate);
3384 if (PyErr_Occurred()) SWIG_fail;
3385 }
3386 Py_INCREF(Py_None); resultobj = Py_None;
3387 return resultobj;
3388 fail:
3389 return NULL;
3390 }
3391
3392
3393 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3394 PyObject *resultobj;
3395 wxBitmap *arg1 = (wxBitmap *) 0 ;
3396 wxBitmap *arg2 = (wxBitmap *) 0 ;
3397 bool result;
3398 PyObject * obj0 = 0 ;
3399 PyObject * obj1 = 0 ;
3400 char *kwnames[] = {
3401 (char *) "self",(char *) "other", NULL
3402 };
3403
3404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3409 {
3410 PyThreadState* __tstate = wxPyBeginAllowThreads();
3411 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3412
3413 wxPyEndAllowThreads(__tstate);
3414 if (PyErr_Occurred()) SWIG_fail;
3415 }
3416 {
3417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3418 }
3419 return resultobj;
3420 fail:
3421 return NULL;
3422 }
3423
3424
3425 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3426 PyObject *resultobj;
3427 wxBitmap *arg1 = (wxBitmap *) 0 ;
3428 wxBitmap *arg2 = (wxBitmap *) 0 ;
3429 bool result;
3430 PyObject * obj0 = 0 ;
3431 PyObject * obj1 = 0 ;
3432 char *kwnames[] = {
3433 (char *) "self",(char *) "other", NULL
3434 };
3435
3436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3441 {
3442 PyThreadState* __tstate = wxPyBeginAllowThreads();
3443 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3444
3445 wxPyEndAllowThreads(__tstate);
3446 if (PyErr_Occurred()) SWIG_fail;
3447 }
3448 {
3449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3450 }
3451 return resultobj;
3452 fail:
3453 return NULL;
3454 }
3455
3456
3457 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3458 PyObject *obj;
3459 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3460 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3461 Py_INCREF(obj);
3462 return Py_BuildValue((char *)"");
3463 }
3464 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3465 PyObject *resultobj;
3466 wxBitmap *arg1 = 0 ;
3467 wxColour const &arg2_defvalue = wxNullColour ;
3468 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3469 wxMask *result;
3470 wxColour temp2 ;
3471 PyObject * obj0 = 0 ;
3472 PyObject * obj1 = 0 ;
3473 char *kwnames[] = {
3474 (char *) "bitmap",(char *) "colour", NULL
3475 };
3476
3477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3479 SWIG_POINTER_EXCEPTION | 0)) == -1)
3480 SWIG_fail;
3481 if (arg1 == NULL) {
3482 PyErr_SetString(PyExc_TypeError,"null reference");
3483 SWIG_fail;
3484 }
3485 if (obj1) {
3486 {
3487 arg2 = &temp2;
3488 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3489 }
3490 }
3491 {
3492 if (!wxPyCheckForApp()) SWIG_fail;
3493 PyThreadState* __tstate = wxPyBeginAllowThreads();
3494 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3495
3496 wxPyEndAllowThreads(__tstate);
3497 if (PyErr_Occurred()) SWIG_fail;
3498 }
3499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3500 return resultobj;
3501 fail:
3502 return NULL;
3503 }
3504
3505
3506 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3507 PyObject *obj;
3508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3509 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3510 Py_INCREF(obj);
3511 return Py_BuildValue((char *)"");
3512 }
3513 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3514 PyObject *resultobj;
3515 wxString *arg1 = 0 ;
3516 int arg2 ;
3517 int arg3 = (int) -1 ;
3518 int arg4 = (int) -1 ;
3519 wxIcon *result;
3520 bool temp1 = False ;
3521 PyObject * obj0 = 0 ;
3522 PyObject * obj1 = 0 ;
3523 PyObject * obj2 = 0 ;
3524 PyObject * obj3 = 0 ;
3525 char *kwnames[] = {
3526 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3527 };
3528
3529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3530 {
3531 arg1 = wxString_in_helper(obj0);
3532 if (arg1 == NULL) SWIG_fail;
3533 temp1 = True;
3534 }
3535 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3536 if (PyErr_Occurred()) SWIG_fail;
3537 if (obj2) {
3538 arg3 = (int) SWIG_AsInt(obj2);
3539 if (PyErr_Occurred()) SWIG_fail;
3540 }
3541 if (obj3) {
3542 arg4 = (int) SWIG_AsInt(obj3);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 }
3545 {
3546 if (!wxPyCheckForApp()) SWIG_fail;
3547 PyThreadState* __tstate = wxPyBeginAllowThreads();
3548 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3549
3550 wxPyEndAllowThreads(__tstate);
3551 if (PyErr_Occurred()) SWIG_fail;
3552 }
3553 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3554 {
3555 if (temp1)
3556 delete arg1;
3557 }
3558 return resultobj;
3559 fail:
3560 {
3561 if (temp1)
3562 delete arg1;
3563 }
3564 return NULL;
3565 }
3566
3567
3568 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3569 PyObject *resultobj;
3570 wxIcon *arg1 = (wxIcon *) 0 ;
3571 PyObject * obj0 = 0 ;
3572 char *kwnames[] = {
3573 (char *) "self", NULL
3574 };
3575
3576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3579 {
3580 PyThreadState* __tstate = wxPyBeginAllowThreads();
3581 delete arg1;
3582
3583 wxPyEndAllowThreads(__tstate);
3584 if (PyErr_Occurred()) SWIG_fail;
3585 }
3586 Py_INCREF(Py_None); resultobj = Py_None;
3587 return resultobj;
3588 fail:
3589 return NULL;
3590 }
3591
3592
3593 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3594 PyObject *resultobj;
3595 wxIcon *result;
3596 char *kwnames[] = {
3597 NULL
3598 };
3599
3600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3601 {
3602 if (!wxPyCheckForApp()) SWIG_fail;
3603 PyThreadState* __tstate = wxPyBeginAllowThreads();
3604 result = (wxIcon *)new wxIcon();
3605
3606 wxPyEndAllowThreads(__tstate);
3607 if (PyErr_Occurred()) SWIG_fail;
3608 }
3609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3610 return resultobj;
3611 fail:
3612 return NULL;
3613 }
3614
3615
3616 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3617 PyObject *resultobj;
3618 wxIconLocation *arg1 = 0 ;
3619 wxIcon *result;
3620 PyObject * obj0 = 0 ;
3621 char *kwnames[] = {
3622 (char *) "loc", NULL
3623 };
3624
3625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3627 SWIG_POINTER_EXCEPTION | 0)) == -1)
3628 SWIG_fail;
3629 if (arg1 == NULL) {
3630 PyErr_SetString(PyExc_TypeError,"null reference");
3631 SWIG_fail;
3632 }
3633 {
3634 if (!wxPyCheckForApp()) SWIG_fail;
3635 PyThreadState* __tstate = wxPyBeginAllowThreads();
3636 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3637
3638 wxPyEndAllowThreads(__tstate);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3642 return resultobj;
3643 fail:
3644 return NULL;
3645 }
3646
3647
3648 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3649 PyObject *resultobj;
3650 wxBitmap *arg1 = 0 ;
3651 wxIcon *result;
3652 PyObject * obj0 = 0 ;
3653 char *kwnames[] = {
3654 (char *) "bmp", NULL
3655 };
3656
3657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3659 SWIG_POINTER_EXCEPTION | 0)) == -1)
3660 SWIG_fail;
3661 if (arg1 == NULL) {
3662 PyErr_SetString(PyExc_TypeError,"null reference");
3663 SWIG_fail;
3664 }
3665 {
3666 if (!wxPyCheckForApp()) SWIG_fail;
3667 PyThreadState* __tstate = wxPyBeginAllowThreads();
3668 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3669
3670 wxPyEndAllowThreads(__tstate);
3671 if (PyErr_Occurred()) SWIG_fail;
3672 }
3673 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3674 return resultobj;
3675 fail:
3676 return NULL;
3677 }
3678
3679
3680 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3681 PyObject *resultobj;
3682 PyObject *arg1 = (PyObject *) 0 ;
3683 wxIcon *result;
3684 PyObject * obj0 = 0 ;
3685 char *kwnames[] = {
3686 (char *) "listOfStrings", NULL
3687 };
3688
3689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3690 arg1 = obj0;
3691 {
3692 if (!wxPyCheckForApp()) SWIG_fail;
3693 PyThreadState* __tstate = wxPyBeginAllowThreads();
3694 result = (wxIcon *)new_wxIcon(arg1);
3695
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3700 return resultobj;
3701 fail:
3702 return NULL;
3703 }
3704
3705
3706 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3707 PyObject *resultobj;
3708 wxIcon *arg1 = (wxIcon *) 0 ;
3709 bool result;
3710 PyObject * obj0 = 0 ;
3711 char *kwnames[] = {
3712 (char *) "self", NULL
3713 };
3714
3715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3718 {
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 result = (bool)(arg1)->Ok();
3721
3722 wxPyEndAllowThreads(__tstate);
3723 if (PyErr_Occurred()) SWIG_fail;
3724 }
3725 {
3726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3727 }
3728 return resultobj;
3729 fail:
3730 return NULL;
3731 }
3732
3733
3734 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3735 PyObject *resultobj;
3736 wxIcon *arg1 = (wxIcon *) 0 ;
3737 int result;
3738 PyObject * obj0 = 0 ;
3739 char *kwnames[] = {
3740 (char *) "self", NULL
3741 };
3742
3743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3746 {
3747 PyThreadState* __tstate = wxPyBeginAllowThreads();
3748 result = (int)(arg1)->GetWidth();
3749
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_FromInt((int)result);
3754 return resultobj;
3755 fail:
3756 return NULL;
3757 }
3758
3759
3760 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3761 PyObject *resultobj;
3762 wxIcon *arg1 = (wxIcon *) 0 ;
3763 int result;
3764 PyObject * obj0 = 0 ;
3765 char *kwnames[] = {
3766 (char *) "self", NULL
3767 };
3768
3769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3772 {
3773 PyThreadState* __tstate = wxPyBeginAllowThreads();
3774 result = (int)(arg1)->GetHeight();
3775
3776 wxPyEndAllowThreads(__tstate);
3777 if (PyErr_Occurred()) SWIG_fail;
3778 }
3779 resultobj = SWIG_FromInt((int)result);
3780 return resultobj;
3781 fail:
3782 return NULL;
3783 }
3784
3785
3786 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3787 PyObject *resultobj;
3788 wxIcon *arg1 = (wxIcon *) 0 ;
3789 int result;
3790 PyObject * obj0 = 0 ;
3791 char *kwnames[] = {
3792 (char *) "self", NULL
3793 };
3794
3795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3798 {
3799 PyThreadState* __tstate = wxPyBeginAllowThreads();
3800 result = (int)(arg1)->GetDepth();
3801
3802 wxPyEndAllowThreads(__tstate);
3803 if (PyErr_Occurred()) SWIG_fail;
3804 }
3805 resultobj = SWIG_FromInt((int)result);
3806 return resultobj;
3807 fail:
3808 return NULL;
3809 }
3810
3811
3812 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3813 PyObject *resultobj;
3814 wxIcon *arg1 = (wxIcon *) 0 ;
3815 int arg2 ;
3816 PyObject * obj0 = 0 ;
3817 PyObject * obj1 = 0 ;
3818 char *kwnames[] = {
3819 (char *) "self",(char *) "w", NULL
3820 };
3821
3822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3825 arg2 = (int) SWIG_AsInt(obj1);
3826 if (PyErr_Occurred()) SWIG_fail;
3827 {
3828 PyThreadState* __tstate = wxPyBeginAllowThreads();
3829 (arg1)->SetWidth(arg2);
3830
3831 wxPyEndAllowThreads(__tstate);
3832 if (PyErr_Occurred()) SWIG_fail;
3833 }
3834 Py_INCREF(Py_None); resultobj = Py_None;
3835 return resultobj;
3836 fail:
3837 return NULL;
3838 }
3839
3840
3841 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3842 PyObject *resultobj;
3843 wxIcon *arg1 = (wxIcon *) 0 ;
3844 int arg2 ;
3845 PyObject * obj0 = 0 ;
3846 PyObject * obj1 = 0 ;
3847 char *kwnames[] = {
3848 (char *) "self",(char *) "h", NULL
3849 };
3850
3851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3854 arg2 = (int) SWIG_AsInt(obj1);
3855 if (PyErr_Occurred()) SWIG_fail;
3856 {
3857 PyThreadState* __tstate = wxPyBeginAllowThreads();
3858 (arg1)->SetHeight(arg2);
3859
3860 wxPyEndAllowThreads(__tstate);
3861 if (PyErr_Occurred()) SWIG_fail;
3862 }
3863 Py_INCREF(Py_None); resultobj = Py_None;
3864 return resultobj;
3865 fail:
3866 return NULL;
3867 }
3868
3869
3870 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3871 PyObject *resultobj;
3872 wxIcon *arg1 = (wxIcon *) 0 ;
3873 int arg2 ;
3874 PyObject * obj0 = 0 ;
3875 PyObject * obj1 = 0 ;
3876 char *kwnames[] = {
3877 (char *) "self",(char *) "d", NULL
3878 };
3879
3880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3883 arg2 = (int) SWIG_AsInt(obj1);
3884 if (PyErr_Occurred()) SWIG_fail;
3885 {
3886 PyThreadState* __tstate = wxPyBeginAllowThreads();
3887 (arg1)->SetDepth(arg2);
3888
3889 wxPyEndAllowThreads(__tstate);
3890 if (PyErr_Occurred()) SWIG_fail;
3891 }
3892 Py_INCREF(Py_None); resultobj = Py_None;
3893 return resultobj;
3894 fail:
3895 return NULL;
3896 }
3897
3898
3899 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3900 PyObject *resultobj;
3901 wxIcon *arg1 = (wxIcon *) 0 ;
3902 wxBitmap *arg2 = 0 ;
3903 PyObject * obj0 = 0 ;
3904 PyObject * obj1 = 0 ;
3905 char *kwnames[] = {
3906 (char *) "self",(char *) "bmp", NULL
3907 };
3908
3909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3912 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3913 SWIG_POINTER_EXCEPTION | 0)) == -1)
3914 SWIG_fail;
3915 if (arg2 == NULL) {
3916 PyErr_SetString(PyExc_TypeError,"null reference");
3917 SWIG_fail;
3918 }
3919 {
3920 PyThreadState* __tstate = wxPyBeginAllowThreads();
3921 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3922
3923 wxPyEndAllowThreads(__tstate);
3924 if (PyErr_Occurred()) SWIG_fail;
3925 }
3926 Py_INCREF(Py_None); resultobj = Py_None;
3927 return resultobj;
3928 fail:
3929 return NULL;
3930 }
3931
3932
3933 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3934 PyObject *obj;
3935 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3936 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3937 Py_INCREF(obj);
3938 return Py_BuildValue((char *)"");
3939 }
3940 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3941 PyObject *resultobj;
3942 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3943 int arg2 = (int) 0 ;
3944 wxIconLocation *result;
3945 bool temp1 = False ;
3946 PyObject * obj0 = 0 ;
3947 PyObject * obj1 = 0 ;
3948 char *kwnames[] = {
3949 (char *) "filename",(char *) "num", NULL
3950 };
3951
3952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3953 if (obj0) {
3954 {
3955 arg1 = wxString_in_helper(obj0);
3956 if (arg1 == NULL) SWIG_fail;
3957 temp1 = True;
3958 }
3959 }
3960 if (obj1) {
3961 arg2 = (int) SWIG_AsInt(obj1);
3962 if (PyErr_Occurred()) SWIG_fail;
3963 }
3964 {
3965 PyThreadState* __tstate = wxPyBeginAllowThreads();
3966 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3967
3968 wxPyEndAllowThreads(__tstate);
3969 if (PyErr_Occurred()) SWIG_fail;
3970 }
3971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
3972 {
3973 if (temp1)
3974 delete arg1;
3975 }
3976 return resultobj;
3977 fail:
3978 {
3979 if (temp1)
3980 delete arg1;
3981 }
3982 return NULL;
3983 }
3984
3985
3986 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3987 PyObject *resultobj;
3988 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3989 PyObject * obj0 = 0 ;
3990 char *kwnames[] = {
3991 (char *) "self", NULL
3992 };
3993
3994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3997 {
3998 PyThreadState* __tstate = wxPyBeginAllowThreads();
3999 delete arg1;
4000
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
4004 Py_INCREF(Py_None); resultobj = Py_None;
4005 return resultobj;
4006 fail:
4007 return NULL;
4008 }
4009
4010
4011 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4012 PyObject *resultobj;
4013 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4014 bool result;
4015 PyObject * obj0 = 0 ;
4016 char *kwnames[] = {
4017 (char *) "self", NULL
4018 };
4019
4020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4023 {
4024 PyThreadState* __tstate = wxPyBeginAllowThreads();
4025 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4026
4027 wxPyEndAllowThreads(__tstate);
4028 if (PyErr_Occurred()) SWIG_fail;
4029 }
4030 {
4031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4032 }
4033 return resultobj;
4034 fail:
4035 return NULL;
4036 }
4037
4038
4039 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4040 PyObject *resultobj;
4041 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4042 wxString *arg2 = 0 ;
4043 bool temp2 = False ;
4044 PyObject * obj0 = 0 ;
4045 PyObject * obj1 = 0 ;
4046 char *kwnames[] = {
4047 (char *) "self",(char *) "filename", NULL
4048 };
4049
4050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4053 {
4054 arg2 = wxString_in_helper(obj1);
4055 if (arg2 == NULL) SWIG_fail;
4056 temp2 = True;
4057 }
4058 {
4059 PyThreadState* __tstate = wxPyBeginAllowThreads();
4060 (arg1)->SetFileName((wxString const &)*arg2);
4061
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 Py_INCREF(Py_None); resultobj = Py_None;
4066 {
4067 if (temp2)
4068 delete arg2;
4069 }
4070 return resultobj;
4071 fail:
4072 {
4073 if (temp2)
4074 delete arg2;
4075 }
4076 return NULL;
4077 }
4078
4079
4080 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4081 PyObject *resultobj;
4082 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4083 wxString *result;
4084 PyObject * obj0 = 0 ;
4085 char *kwnames[] = {
4086 (char *) "self", NULL
4087 };
4088
4089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4092 {
4093 PyThreadState* __tstate = wxPyBeginAllowThreads();
4094 {
4095 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4096 result = (wxString *) &_result_ref;
4097 }
4098
4099 wxPyEndAllowThreads(__tstate);
4100 if (PyErr_Occurred()) SWIG_fail;
4101 }
4102 {
4103 #if wxUSE_UNICODE
4104 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4105 #else
4106 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4107 #endif
4108 }
4109 return resultobj;
4110 fail:
4111 return NULL;
4112 }
4113
4114
4115 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4116 PyObject *resultobj;
4117 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4118 int arg2 ;
4119 PyObject * obj0 = 0 ;
4120 PyObject * obj1 = 0 ;
4121 char *kwnames[] = {
4122 (char *) "self",(char *) "num", NULL
4123 };
4124
4125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4128 arg2 = (int) SWIG_AsInt(obj1);
4129 if (PyErr_Occurred()) SWIG_fail;
4130 {
4131 PyThreadState* __tstate = wxPyBeginAllowThreads();
4132 wxIconLocation_SetIndex(arg1,arg2);
4133
4134 wxPyEndAllowThreads(__tstate);
4135 if (PyErr_Occurred()) SWIG_fail;
4136 }
4137 Py_INCREF(Py_None); resultobj = Py_None;
4138 return resultobj;
4139 fail:
4140 return NULL;
4141 }
4142
4143
4144 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4145 PyObject *resultobj;
4146 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4147 int result;
4148 PyObject * obj0 = 0 ;
4149 char *kwnames[] = {
4150 (char *) "self", NULL
4151 };
4152
4153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 result = (int)wxIconLocation_GetIndex(arg1);
4159
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 resultobj = SWIG_FromInt((int)result);
4164 return resultobj;
4165 fail:
4166 return NULL;
4167 }
4168
4169
4170 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4171 PyObject *obj;
4172 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4173 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4174 Py_INCREF(obj);
4175 return Py_BuildValue((char *)"");
4176 }
4177 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4178 PyObject *resultobj;
4179 wxIconBundle *result;
4180 char *kwnames[] = {
4181 NULL
4182 };
4183
4184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 result = (wxIconBundle *)new wxIconBundle();
4188
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 }
4192 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4193 return resultobj;
4194 fail:
4195 return NULL;
4196 }
4197
4198
4199 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4200 PyObject *resultobj;
4201 wxString *arg1 = 0 ;
4202 long arg2 ;
4203 wxIconBundle *result;
4204 bool temp1 = False ;
4205 PyObject * obj0 = 0 ;
4206 PyObject * obj1 = 0 ;
4207 char *kwnames[] = {
4208 (char *) "file",(char *) "type", NULL
4209 };
4210
4211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4212 {
4213 arg1 = wxString_in_helper(obj0);
4214 if (arg1 == NULL) SWIG_fail;
4215 temp1 = True;
4216 }
4217 arg2 = (long) SWIG_AsLong(obj1);
4218 if (PyErr_Occurred()) SWIG_fail;
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4222
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4227 {
4228 if (temp1)
4229 delete arg1;
4230 }
4231 return resultobj;
4232 fail:
4233 {
4234 if (temp1)
4235 delete arg1;
4236 }
4237 return NULL;
4238 }
4239
4240
4241 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4242 PyObject *resultobj;
4243 wxIcon *arg1 = 0 ;
4244 wxIconBundle *result;
4245 PyObject * obj0 = 0 ;
4246 char *kwnames[] = {
4247 (char *) "icon", NULL
4248 };
4249
4250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4252 SWIG_POINTER_EXCEPTION | 0)) == -1)
4253 SWIG_fail;
4254 if (arg1 == NULL) {
4255 PyErr_SetString(PyExc_TypeError,"null reference");
4256 SWIG_fail;
4257 }
4258 {
4259 PyThreadState* __tstate = wxPyBeginAllowThreads();
4260 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4261
4262 wxPyEndAllowThreads(__tstate);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4266 return resultobj;
4267 fail:
4268 return NULL;
4269 }
4270
4271
4272 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4273 PyObject *resultobj;
4274 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4275 PyObject * obj0 = 0 ;
4276 char *kwnames[] = {
4277 (char *) "self", NULL
4278 };
4279
4280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4283 {
4284 PyThreadState* __tstate = wxPyBeginAllowThreads();
4285 delete arg1;
4286
4287 wxPyEndAllowThreads(__tstate);
4288 if (PyErr_Occurred()) SWIG_fail;
4289 }
4290 Py_INCREF(Py_None); resultobj = Py_None;
4291 return resultobj;
4292 fail:
4293 return NULL;
4294 }
4295
4296
4297 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4298 PyObject *resultobj;
4299 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4300 wxIcon *arg2 = 0 ;
4301 PyObject * obj0 = 0 ;
4302 PyObject * obj1 = 0 ;
4303 char *kwnames[] = {
4304 (char *) "self",(char *) "icon", NULL
4305 };
4306
4307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4310 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4311 SWIG_POINTER_EXCEPTION | 0)) == -1)
4312 SWIG_fail;
4313 if (arg2 == NULL) {
4314 PyErr_SetString(PyExc_TypeError,"null reference");
4315 SWIG_fail;
4316 }
4317 {
4318 PyThreadState* __tstate = wxPyBeginAllowThreads();
4319 (arg1)->AddIcon((wxIcon const &)*arg2);
4320
4321 wxPyEndAllowThreads(__tstate);
4322 if (PyErr_Occurred()) SWIG_fail;
4323 }
4324 Py_INCREF(Py_None); resultobj = Py_None;
4325 return resultobj;
4326 fail:
4327 return NULL;
4328 }
4329
4330
4331 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4332 PyObject *resultobj;
4333 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4334 wxString *arg2 = 0 ;
4335 long arg3 ;
4336 bool temp2 = False ;
4337 PyObject * obj0 = 0 ;
4338 PyObject * obj1 = 0 ;
4339 PyObject * obj2 = 0 ;
4340 char *kwnames[] = {
4341 (char *) "self",(char *) "file",(char *) "type", NULL
4342 };
4343
4344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
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 arg3 = (long) SWIG_AsLong(obj2);
4353 if (PyErr_Occurred()) SWIG_fail;
4354 {
4355 PyThreadState* __tstate = wxPyBeginAllowThreads();
4356 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4357
4358 wxPyEndAllowThreads(__tstate);
4359 if (PyErr_Occurred()) SWIG_fail;
4360 }
4361 Py_INCREF(Py_None); resultobj = Py_None;
4362 {
4363 if (temp2)
4364 delete arg2;
4365 }
4366 return resultobj;
4367 fail:
4368 {
4369 if (temp2)
4370 delete arg2;
4371 }
4372 return NULL;
4373 }
4374
4375
4376 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4377 PyObject *resultobj;
4378 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4379 wxSize *arg2 = 0 ;
4380 wxIcon *result;
4381 wxSize temp2 ;
4382 PyObject * obj0 = 0 ;
4383 PyObject * obj1 = 0 ;
4384 char *kwnames[] = {
4385 (char *) "self",(char *) "size", NULL
4386 };
4387
4388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4391 {
4392 arg2 = &temp2;
4393 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4394 }
4395 {
4396 PyThreadState* __tstate = wxPyBeginAllowThreads();
4397 {
4398 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4399 result = (wxIcon *) &_result_ref;
4400 }
4401
4402 wxPyEndAllowThreads(__tstate);
4403 if (PyErr_Occurred()) SWIG_fail;
4404 }
4405 {
4406 wxIcon* resultptr = new wxIcon(*result);
4407 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4408 }
4409 return resultobj;
4410 fail:
4411 return NULL;
4412 }
4413
4414
4415 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4416 PyObject *obj;
4417 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4418 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4419 Py_INCREF(obj);
4420 return Py_BuildValue((char *)"");
4421 }
4422 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4423 PyObject *resultobj;
4424 wxString *arg1 = (wxString *) 0 ;
4425 long arg2 ;
4426 int arg3 = (int) 0 ;
4427 int arg4 = (int) 0 ;
4428 wxCursor *result;
4429 bool temp1 = False ;
4430 PyObject * obj0 = 0 ;
4431 PyObject * obj1 = 0 ;
4432 PyObject * obj2 = 0 ;
4433 PyObject * obj3 = 0 ;
4434 char *kwnames[] = {
4435 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4436 };
4437
4438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4439 {
4440 arg1 = wxString_in_helper(obj0);
4441 if (arg1 == NULL) SWIG_fail;
4442 temp1 = True;
4443 }
4444 arg2 = (long) SWIG_AsLong(obj1);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 if (obj2) {
4447 arg3 = (int) SWIG_AsInt(obj2);
4448 if (PyErr_Occurred()) SWIG_fail;
4449 }
4450 if (obj3) {
4451 arg4 = (int) SWIG_AsInt(obj3);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 {
4455 if (!wxPyCheckForApp()) SWIG_fail;
4456 PyThreadState* __tstate = wxPyBeginAllowThreads();
4457 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4458
4459 wxPyEndAllowThreads(__tstate);
4460 if (PyErr_Occurred()) SWIG_fail;
4461 }
4462 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4463 {
4464 if (temp1)
4465 delete arg1;
4466 }
4467 return resultobj;
4468 fail:
4469 {
4470 if (temp1)
4471 delete arg1;
4472 }
4473 return NULL;
4474 }
4475
4476
4477 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4478 PyObject *resultobj;
4479 wxCursor *arg1 = (wxCursor *) 0 ;
4480 PyObject * obj0 = 0 ;
4481 char *kwnames[] = {
4482 (char *) "self", NULL
4483 };
4484
4485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4488 {
4489 PyThreadState* __tstate = wxPyBeginAllowThreads();
4490 delete arg1;
4491
4492 wxPyEndAllowThreads(__tstate);
4493 if (PyErr_Occurred()) SWIG_fail;
4494 }
4495 Py_INCREF(Py_None); resultobj = Py_None;
4496 return resultobj;
4497 fail:
4498 return NULL;
4499 }
4500
4501
4502 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4503 PyObject *resultobj;
4504 int arg1 ;
4505 wxCursor *result;
4506 PyObject * obj0 = 0 ;
4507 char *kwnames[] = {
4508 (char *) "id", NULL
4509 };
4510
4511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4512 arg1 = (int) SWIG_AsInt(obj0);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 {
4515 if (!wxPyCheckForApp()) SWIG_fail;
4516 PyThreadState* __tstate = wxPyBeginAllowThreads();
4517 result = (wxCursor *)new wxCursor(arg1);
4518
4519 wxPyEndAllowThreads(__tstate);
4520 if (PyErr_Occurred()) SWIG_fail;
4521 }
4522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4523 return resultobj;
4524 fail:
4525 return NULL;
4526 }
4527
4528
4529 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4530 PyObject *resultobj;
4531 wxImage *arg1 = 0 ;
4532 wxCursor *result;
4533 PyObject * obj0 = 0 ;
4534 char *kwnames[] = {
4535 (char *) "image", NULL
4536 };
4537
4538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4540 SWIG_POINTER_EXCEPTION | 0)) == -1)
4541 SWIG_fail;
4542 if (arg1 == NULL) {
4543 PyErr_SetString(PyExc_TypeError,"null reference");
4544 SWIG_fail;
4545 }
4546 {
4547 if (!wxPyCheckForApp()) SWIG_fail;
4548 PyThreadState* __tstate = wxPyBeginAllowThreads();
4549 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4550
4551 wxPyEndAllowThreads(__tstate);
4552 if (PyErr_Occurred()) SWIG_fail;
4553 }
4554 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4555 return resultobj;
4556 fail:
4557 return NULL;
4558 }
4559
4560
4561 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4562 PyObject *resultobj;
4563 wxCursor *arg1 = (wxCursor *) 0 ;
4564 bool result;
4565 PyObject * obj0 = 0 ;
4566 char *kwnames[] = {
4567 (char *) "self", NULL
4568 };
4569
4570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4573 {
4574 PyThreadState* __tstate = wxPyBeginAllowThreads();
4575 result = (bool)(arg1)->Ok();
4576
4577 wxPyEndAllowThreads(__tstate);
4578 if (PyErr_Occurred()) SWIG_fail;
4579 }
4580 {
4581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4582 }
4583 return resultobj;
4584 fail:
4585 return NULL;
4586 }
4587
4588
4589 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4590 PyObject *obj;
4591 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4592 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4593 Py_INCREF(obj);
4594 return Py_BuildValue((char *)"");
4595 }
4596 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4597 PyObject *resultobj;
4598 int arg1 = (int) 0 ;
4599 int arg2 = (int) 0 ;
4600 int arg3 = (int) 0 ;
4601 int arg4 = (int) 0 ;
4602 wxRegion *result;
4603 PyObject * obj0 = 0 ;
4604 PyObject * obj1 = 0 ;
4605 PyObject * obj2 = 0 ;
4606 PyObject * obj3 = 0 ;
4607 char *kwnames[] = {
4608 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4609 };
4610
4611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4612 if (obj0) {
4613 arg1 = (int) SWIG_AsInt(obj0);
4614 if (PyErr_Occurred()) SWIG_fail;
4615 }
4616 if (obj1) {
4617 arg2 = (int) SWIG_AsInt(obj1);
4618 if (PyErr_Occurred()) SWIG_fail;
4619 }
4620 if (obj2) {
4621 arg3 = (int) SWIG_AsInt(obj2);
4622 if (PyErr_Occurred()) SWIG_fail;
4623 }
4624 if (obj3) {
4625 arg4 = (int) SWIG_AsInt(obj3);
4626 if (PyErr_Occurred()) SWIG_fail;
4627 }
4628 {
4629 if (!wxPyCheckForApp()) SWIG_fail;
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4632
4633 wxPyEndAllowThreads(__tstate);
4634 if (PyErr_Occurred()) SWIG_fail;
4635 }
4636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4637 return resultobj;
4638 fail:
4639 return NULL;
4640 }
4641
4642
4643 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4644 PyObject *resultobj;
4645 wxBitmap *arg1 = 0 ;
4646 wxRegion *result;
4647 PyObject * obj0 = 0 ;
4648 char *kwnames[] = {
4649 (char *) "bmp", NULL
4650 };
4651
4652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4654 SWIG_POINTER_EXCEPTION | 0)) == -1)
4655 SWIG_fail;
4656 if (arg1 == NULL) {
4657 PyErr_SetString(PyExc_TypeError,"null reference");
4658 SWIG_fail;
4659 }
4660 {
4661 if (!wxPyCheckForApp()) SWIG_fail;
4662 PyThreadState* __tstate = wxPyBeginAllowThreads();
4663 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4664
4665 wxPyEndAllowThreads(__tstate);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 }
4668 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4669 return resultobj;
4670 fail:
4671 return NULL;
4672 }
4673
4674
4675 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4676 PyObject *resultobj;
4677 wxBitmap *arg1 = 0 ;
4678 wxColour *arg2 = 0 ;
4679 int arg3 = (int) 0 ;
4680 wxRegion *result;
4681 wxColour temp2 ;
4682 PyObject * obj0 = 0 ;
4683 PyObject * obj1 = 0 ;
4684 PyObject * obj2 = 0 ;
4685 char *kwnames[] = {
4686 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4687 };
4688
4689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
4690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4691 SWIG_POINTER_EXCEPTION | 0)) == -1)
4692 SWIG_fail;
4693 if (arg1 == NULL) {
4694 PyErr_SetString(PyExc_TypeError,"null reference");
4695 SWIG_fail;
4696 }
4697 {
4698 arg2 = &temp2;
4699 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4700 }
4701 if (obj2) {
4702 arg3 = (int) SWIG_AsInt(obj2);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 {
4706 if (!wxPyCheckForApp()) SWIG_fail;
4707 PyThreadState* __tstate = wxPyBeginAllowThreads();
4708 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4709
4710 wxPyEndAllowThreads(__tstate);
4711 if (PyErr_Occurred()) SWIG_fail;
4712 }
4713 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4714 return resultobj;
4715 fail:
4716 return NULL;
4717 }
4718
4719
4720 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4721 PyObject *resultobj;
4722 int arg1 ;
4723 wxPoint *arg2 = (wxPoint *) 0 ;
4724 int arg3 = (int) wxWINDING_RULE ;
4725 wxRegion *result;
4726 PyObject * obj0 = 0 ;
4727 PyObject * obj1 = 0 ;
4728 char *kwnames[] = {
4729 (char *) "points",(char *) "fillStyle", NULL
4730 };
4731
4732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4733 {
4734 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4735 if (arg2 == NULL) SWIG_fail;
4736 }
4737 if (obj1) {
4738 arg3 = (int) SWIG_AsInt(obj1);
4739 if (PyErr_Occurred()) SWIG_fail;
4740 }
4741 {
4742 if (!wxPyCheckForApp()) SWIG_fail;
4743 PyThreadState* __tstate = wxPyBeginAllowThreads();
4744 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4745
4746 wxPyEndAllowThreads(__tstate);
4747 if (PyErr_Occurred()) SWIG_fail;
4748 }
4749 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4750 {
4751 if (arg2) delete [] arg2;
4752 }
4753 return resultobj;
4754 fail:
4755 {
4756 if (arg2) delete [] arg2;
4757 }
4758 return NULL;
4759 }
4760
4761
4762 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4763 PyObject *resultobj;
4764 wxRegion *arg1 = (wxRegion *) 0 ;
4765 PyObject * obj0 = 0 ;
4766 char *kwnames[] = {
4767 (char *) "self", NULL
4768 };
4769
4770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 delete arg1;
4776
4777 wxPyEndAllowThreads(__tstate);
4778 if (PyErr_Occurred()) SWIG_fail;
4779 }
4780 Py_INCREF(Py_None); resultobj = Py_None;
4781 return resultobj;
4782 fail:
4783 return NULL;
4784 }
4785
4786
4787 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4788 PyObject *resultobj;
4789 wxRegion *arg1 = (wxRegion *) 0 ;
4790 PyObject * obj0 = 0 ;
4791 char *kwnames[] = {
4792 (char *) "self", NULL
4793 };
4794
4795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4798 {
4799 PyThreadState* __tstate = wxPyBeginAllowThreads();
4800 (arg1)->Clear();
4801
4802 wxPyEndAllowThreads(__tstate);
4803 if (PyErr_Occurred()) SWIG_fail;
4804 }
4805 Py_INCREF(Py_None); resultobj = Py_None;
4806 return resultobj;
4807 fail:
4808 return NULL;
4809 }
4810
4811
4812 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4813 PyObject *resultobj;
4814 wxRegion *arg1 = (wxRegion *) 0 ;
4815 int arg2 ;
4816 int arg3 ;
4817 int result;
4818 PyObject * obj0 = 0 ;
4819 PyObject * obj1 = 0 ;
4820 PyObject * obj2 = 0 ;
4821 char *kwnames[] = {
4822 (char *) "self",(char *) "x",(char *) "y", NULL
4823 };
4824
4825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4828 arg2 = (int) SWIG_AsInt(obj1);
4829 if (PyErr_Occurred()) SWIG_fail;
4830 arg3 = (int) SWIG_AsInt(obj2);
4831 if (PyErr_Occurred()) SWIG_fail;
4832 {
4833 PyThreadState* __tstate = wxPyBeginAllowThreads();
4834 result = (int)(arg1)->Contains(arg2,arg3);
4835
4836 wxPyEndAllowThreads(__tstate);
4837 if (PyErr_Occurred()) SWIG_fail;
4838 }
4839 resultobj = SWIG_FromInt((int)result);
4840 return resultobj;
4841 fail:
4842 return NULL;
4843 }
4844
4845
4846 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4847 PyObject *resultobj;
4848 wxRegion *arg1 = (wxRegion *) 0 ;
4849 wxPoint *arg2 = 0 ;
4850 int result;
4851 wxPoint temp2 ;
4852 PyObject * obj0 = 0 ;
4853 PyObject * obj1 = 0 ;
4854 char *kwnames[] = {
4855 (char *) "self",(char *) "pt", NULL
4856 };
4857
4858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4861 {
4862 arg2 = &temp2;
4863 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4864 }
4865 {
4866 PyThreadState* __tstate = wxPyBeginAllowThreads();
4867 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4868
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 resultobj = SWIG_FromInt((int)result);
4873 return resultobj;
4874 fail:
4875 return NULL;
4876 }
4877
4878
4879 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4880 PyObject *resultobj;
4881 wxRegion *arg1 = (wxRegion *) 0 ;
4882 wxRect *arg2 = 0 ;
4883 int result;
4884 wxRect temp2 ;
4885 PyObject * obj0 = 0 ;
4886 PyObject * obj1 = 0 ;
4887 char *kwnames[] = {
4888 (char *) "self",(char *) "rect", NULL
4889 };
4890
4891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4894 {
4895 arg2 = &temp2;
4896 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4897 }
4898 {
4899 PyThreadState* __tstate = wxPyBeginAllowThreads();
4900 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4901
4902 wxPyEndAllowThreads(__tstate);
4903 if (PyErr_Occurred()) SWIG_fail;
4904 }
4905 resultobj = SWIG_FromInt((int)result);
4906 return resultobj;
4907 fail:
4908 return NULL;
4909 }
4910
4911
4912 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4913 PyObject *resultobj;
4914 wxRegion *arg1 = (wxRegion *) 0 ;
4915 int arg2 ;
4916 int arg3 ;
4917 int arg4 ;
4918 int arg5 ;
4919 int result;
4920 PyObject * obj0 = 0 ;
4921 PyObject * obj1 = 0 ;
4922 PyObject * obj2 = 0 ;
4923 PyObject * obj3 = 0 ;
4924 PyObject * obj4 = 0 ;
4925 char *kwnames[] = {
4926 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4927 };
4928
4929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4932 arg2 = (int) SWIG_AsInt(obj1);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 arg3 = (int) SWIG_AsInt(obj2);
4935 if (PyErr_Occurred()) SWIG_fail;
4936 arg4 = (int) SWIG_AsInt(obj3);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 arg5 = (int) SWIG_AsInt(obj4);
4939 if (PyErr_Occurred()) SWIG_fail;
4940 {
4941 PyThreadState* __tstate = wxPyBeginAllowThreads();
4942 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4943
4944 wxPyEndAllowThreads(__tstate);
4945 if (PyErr_Occurred()) SWIG_fail;
4946 }
4947 resultobj = SWIG_FromInt((int)result);
4948 return resultobj;
4949 fail:
4950 return NULL;
4951 }
4952
4953
4954 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4955 PyObject *resultobj;
4956 wxRegion *arg1 = (wxRegion *) 0 ;
4957 wxRect result;
4958 PyObject * obj0 = 0 ;
4959 char *kwnames[] = {
4960 (char *) "self", NULL
4961 };
4962
4963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4966 {
4967 PyThreadState* __tstate = wxPyBeginAllowThreads();
4968 result = (arg1)->GetBox();
4969
4970 wxPyEndAllowThreads(__tstate);
4971 if (PyErr_Occurred()) SWIG_fail;
4972 }
4973 {
4974 wxRect * resultptr;
4975 resultptr = new wxRect((wxRect &) result);
4976 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4977 }
4978 return resultobj;
4979 fail:
4980 return NULL;
4981 }
4982
4983
4984 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4985 PyObject *resultobj;
4986 wxRegion *arg1 = (wxRegion *) 0 ;
4987 int arg2 ;
4988 int arg3 ;
4989 int arg4 ;
4990 int arg5 ;
4991 bool result;
4992 PyObject * obj0 = 0 ;
4993 PyObject * obj1 = 0 ;
4994 PyObject * obj2 = 0 ;
4995 PyObject * obj3 = 0 ;
4996 PyObject * obj4 = 0 ;
4997 char *kwnames[] = {
4998 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4999 };
5000
5001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5004 arg2 = (int) SWIG_AsInt(obj1);
5005 if (PyErr_Occurred()) SWIG_fail;
5006 arg3 = (int) SWIG_AsInt(obj2);
5007 if (PyErr_Occurred()) SWIG_fail;
5008 arg4 = (int) SWIG_AsInt(obj3);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 arg5 = (int) SWIG_AsInt(obj4);
5011 if (PyErr_Occurred()) SWIG_fail;
5012 {
5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
5014 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5015
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 }
5019 {
5020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5021 }
5022 return resultobj;
5023 fail:
5024 return NULL;
5025 }
5026
5027
5028 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5029 PyObject *resultobj;
5030 wxRegion *arg1 = (wxRegion *) 0 ;
5031 wxRect *arg2 = 0 ;
5032 bool result;
5033 wxRect temp2 ;
5034 PyObject * obj0 = 0 ;
5035 PyObject * obj1 = 0 ;
5036 char *kwnames[] = {
5037 (char *) "self",(char *) "rect", NULL
5038 };
5039
5040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5043 {
5044 arg2 = &temp2;
5045 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5046 }
5047 {
5048 PyThreadState* __tstate = wxPyBeginAllowThreads();
5049 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5050
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 {
5055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5056 }
5057 return resultobj;
5058 fail:
5059 return NULL;
5060 }
5061
5062
5063 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5064 PyObject *resultobj;
5065 wxRegion *arg1 = (wxRegion *) 0 ;
5066 wxRegion *arg2 = 0 ;
5067 bool result;
5068 PyObject * obj0 = 0 ;
5069 PyObject * obj1 = 0 ;
5070 char *kwnames[] = {
5071 (char *) "self",(char *) "region", NULL
5072 };
5073
5074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5077 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5078 SWIG_POINTER_EXCEPTION | 0)) == -1)
5079 SWIG_fail;
5080 if (arg2 == NULL) {
5081 PyErr_SetString(PyExc_TypeError,"null reference");
5082 SWIG_fail;
5083 }
5084 {
5085 PyThreadState* __tstate = wxPyBeginAllowThreads();
5086 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5087
5088 wxPyEndAllowThreads(__tstate);
5089 if (PyErr_Occurred()) SWIG_fail;
5090 }
5091 {
5092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5093 }
5094 return resultobj;
5095 fail:
5096 return NULL;
5097 }
5098
5099
5100 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5101 PyObject *resultobj;
5102 wxRegion *arg1 = (wxRegion *) 0 ;
5103 bool result;
5104 PyObject * obj0 = 0 ;
5105 char *kwnames[] = {
5106 (char *) "self", NULL
5107 };
5108
5109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5112 {
5113 PyThreadState* __tstate = wxPyBeginAllowThreads();
5114 result = (bool)(arg1)->IsEmpty();
5115
5116 wxPyEndAllowThreads(__tstate);
5117 if (PyErr_Occurred()) SWIG_fail;
5118 }
5119 {
5120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5121 }
5122 return resultobj;
5123 fail:
5124 return NULL;
5125 }
5126
5127
5128 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5129 PyObject *resultobj;
5130 wxRegion *arg1 = (wxRegion *) 0 ;
5131 int arg2 ;
5132 int arg3 ;
5133 int arg4 ;
5134 int arg5 ;
5135 bool result;
5136 PyObject * obj0 = 0 ;
5137 PyObject * obj1 = 0 ;
5138 PyObject * obj2 = 0 ;
5139 PyObject * obj3 = 0 ;
5140 PyObject * obj4 = 0 ;
5141 char *kwnames[] = {
5142 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5143 };
5144
5145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5148 arg2 = (int) SWIG_AsInt(obj1);
5149 if (PyErr_Occurred()) SWIG_fail;
5150 arg3 = (int) SWIG_AsInt(obj2);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 arg4 = (int) SWIG_AsInt(obj3);
5153 if (PyErr_Occurred()) SWIG_fail;
5154 arg5 = (int) SWIG_AsInt(obj4);
5155 if (PyErr_Occurred()) SWIG_fail;
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5159
5160 wxPyEndAllowThreads(__tstate);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 }
5163 {
5164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5165 }
5166 return resultobj;
5167 fail:
5168 return NULL;
5169 }
5170
5171
5172 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5173 PyObject *resultobj;
5174 wxRegion *arg1 = (wxRegion *) 0 ;
5175 wxRect *arg2 = 0 ;
5176 bool result;
5177 wxRect temp2 ;
5178 PyObject * obj0 = 0 ;
5179 PyObject * obj1 = 0 ;
5180 char *kwnames[] = {
5181 (char *) "self",(char *) "rect", NULL
5182 };
5183
5184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5187 {
5188 arg2 = &temp2;
5189 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5190 }
5191 {
5192 PyThreadState* __tstate = wxPyBeginAllowThreads();
5193 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5194
5195 wxPyEndAllowThreads(__tstate);
5196 if (PyErr_Occurred()) SWIG_fail;
5197 }
5198 {
5199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5200 }
5201 return resultobj;
5202 fail:
5203 return NULL;
5204 }
5205
5206
5207 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5208 PyObject *resultobj;
5209 wxRegion *arg1 = (wxRegion *) 0 ;
5210 wxRegion *arg2 = 0 ;
5211 bool result;
5212 PyObject * obj0 = 0 ;
5213 PyObject * obj1 = 0 ;
5214 char *kwnames[] = {
5215 (char *) "self",(char *) "region", NULL
5216 };
5217
5218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5222 SWIG_POINTER_EXCEPTION | 0)) == -1)
5223 SWIG_fail;
5224 if (arg2 == NULL) {
5225 PyErr_SetString(PyExc_TypeError,"null reference");
5226 SWIG_fail;
5227 }
5228 {
5229 PyThreadState* __tstate = wxPyBeginAllowThreads();
5230 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5231
5232 wxPyEndAllowThreads(__tstate);
5233 if (PyErr_Occurred()) SWIG_fail;
5234 }
5235 {
5236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5237 }
5238 return resultobj;
5239 fail:
5240 return NULL;
5241 }
5242
5243
5244 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5245 PyObject *resultobj;
5246 wxRegion *arg1 = (wxRegion *) 0 ;
5247 int arg2 ;
5248 int arg3 ;
5249 int arg4 ;
5250 int arg5 ;
5251 bool result;
5252 PyObject * obj0 = 0 ;
5253 PyObject * obj1 = 0 ;
5254 PyObject * obj2 = 0 ;
5255 PyObject * obj3 = 0 ;
5256 PyObject * obj4 = 0 ;
5257 char *kwnames[] = {
5258 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5259 };
5260
5261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5264 arg2 = (int) SWIG_AsInt(obj1);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 arg3 = (int) SWIG_AsInt(obj2);
5267 if (PyErr_Occurred()) SWIG_fail;
5268 arg4 = (int) SWIG_AsInt(obj3);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 arg5 = (int) SWIG_AsInt(obj4);
5271 if (PyErr_Occurred()) SWIG_fail;
5272 {
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
5274 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5275
5276 wxPyEndAllowThreads(__tstate);
5277 if (PyErr_Occurred()) SWIG_fail;
5278 }
5279 {
5280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5281 }
5282 return resultobj;
5283 fail:
5284 return NULL;
5285 }
5286
5287
5288 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5289 PyObject *resultobj;
5290 wxRegion *arg1 = (wxRegion *) 0 ;
5291 wxRect *arg2 = 0 ;
5292 bool result;
5293 wxRect temp2 ;
5294 PyObject * obj0 = 0 ;
5295 PyObject * obj1 = 0 ;
5296 char *kwnames[] = {
5297 (char *) "self",(char *) "rect", NULL
5298 };
5299
5300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5303 {
5304 arg2 = &temp2;
5305 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5306 }
5307 {
5308 PyThreadState* __tstate = wxPyBeginAllowThreads();
5309 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5310
5311 wxPyEndAllowThreads(__tstate);
5312 if (PyErr_Occurred()) SWIG_fail;
5313 }
5314 {
5315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5316 }
5317 return resultobj;
5318 fail:
5319 return NULL;
5320 }
5321
5322
5323 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5324 PyObject *resultobj;
5325 wxRegion *arg1 = (wxRegion *) 0 ;
5326 wxRegion *arg2 = 0 ;
5327 bool result;
5328 PyObject * obj0 = 0 ;
5329 PyObject * obj1 = 0 ;
5330 char *kwnames[] = {
5331 (char *) "self",(char *) "region", NULL
5332 };
5333
5334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5337 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5338 SWIG_POINTER_EXCEPTION | 0)) == -1)
5339 SWIG_fail;
5340 if (arg2 == NULL) {
5341 PyErr_SetString(PyExc_TypeError,"null reference");
5342 SWIG_fail;
5343 }
5344 {
5345 PyThreadState* __tstate = wxPyBeginAllowThreads();
5346 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5347
5348 wxPyEndAllowThreads(__tstate);
5349 if (PyErr_Occurred()) SWIG_fail;
5350 }
5351 {
5352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5353 }
5354 return resultobj;
5355 fail:
5356 return NULL;
5357 }
5358
5359
5360 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5361 PyObject *resultobj;
5362 wxRegion *arg1 = (wxRegion *) 0 ;
5363 int arg2 ;
5364 int arg3 ;
5365 int arg4 ;
5366 int arg5 ;
5367 bool result;
5368 PyObject * obj0 = 0 ;
5369 PyObject * obj1 = 0 ;
5370 PyObject * obj2 = 0 ;
5371 PyObject * obj3 = 0 ;
5372 PyObject * obj4 = 0 ;
5373 char *kwnames[] = {
5374 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5375 };
5376
5377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5380 arg2 = (int) SWIG_AsInt(obj1);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 arg3 = (int) SWIG_AsInt(obj2);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 arg4 = (int) SWIG_AsInt(obj3);
5385 if (PyErr_Occurred()) SWIG_fail;
5386 arg5 = (int) SWIG_AsInt(obj4);
5387 if (PyErr_Occurred()) SWIG_fail;
5388 {
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5391
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
5395 {
5396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5397 }
5398 return resultobj;
5399 fail:
5400 return NULL;
5401 }
5402
5403
5404 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5405 PyObject *resultobj;
5406 wxRegion *arg1 = (wxRegion *) 0 ;
5407 wxRect *arg2 = 0 ;
5408 bool result;
5409 wxRect temp2 ;
5410 PyObject * obj0 = 0 ;
5411 PyObject * obj1 = 0 ;
5412 char *kwnames[] = {
5413 (char *) "self",(char *) "rect", NULL
5414 };
5415
5416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5419 {
5420 arg2 = &temp2;
5421 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5422 }
5423 {
5424 PyThreadState* __tstate = wxPyBeginAllowThreads();
5425 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5426
5427 wxPyEndAllowThreads(__tstate);
5428 if (PyErr_Occurred()) SWIG_fail;
5429 }
5430 {
5431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5432 }
5433 return resultobj;
5434 fail:
5435 return NULL;
5436 }
5437
5438
5439 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5440 PyObject *resultobj;
5441 wxRegion *arg1 = (wxRegion *) 0 ;
5442 wxRegion *arg2 = 0 ;
5443 bool result;
5444 PyObject * obj0 = 0 ;
5445 PyObject * obj1 = 0 ;
5446 char *kwnames[] = {
5447 (char *) "self",(char *) "region", NULL
5448 };
5449
5450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5453 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5454 SWIG_POINTER_EXCEPTION | 0)) == -1)
5455 SWIG_fail;
5456 if (arg2 == NULL) {
5457 PyErr_SetString(PyExc_TypeError,"null reference");
5458 SWIG_fail;
5459 }
5460 {
5461 PyThreadState* __tstate = wxPyBeginAllowThreads();
5462 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5463
5464 wxPyEndAllowThreads(__tstate);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 }
5467 {
5468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5469 }
5470 return resultobj;
5471 fail:
5472 return NULL;
5473 }
5474
5475
5476 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5477 PyObject *resultobj;
5478 wxRegion *arg1 = (wxRegion *) 0 ;
5479 SwigValueWrapper< wxBitmap > result;
5480 PyObject * obj0 = 0 ;
5481 char *kwnames[] = {
5482 (char *) "self", NULL
5483 };
5484
5485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5488 {
5489 PyThreadState* __tstate = wxPyBeginAllowThreads();
5490 result = (arg1)->ConvertToBitmap();
5491
5492 wxPyEndAllowThreads(__tstate);
5493 if (PyErr_Occurred()) SWIG_fail;
5494 }
5495 {
5496 wxBitmap * resultptr;
5497 resultptr = new wxBitmap((wxBitmap &) result);
5498 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5499 }
5500 return resultobj;
5501 fail:
5502 return NULL;
5503 }
5504
5505
5506 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5507 PyObject *resultobj;
5508 wxRegion *arg1 = (wxRegion *) 0 ;
5509 wxBitmap *arg2 = 0 ;
5510 bool result;
5511 PyObject * obj0 = 0 ;
5512 PyObject * obj1 = 0 ;
5513 char *kwnames[] = {
5514 (char *) "self",(char *) "bmp", NULL
5515 };
5516
5517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5520 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5521 SWIG_POINTER_EXCEPTION | 0)) == -1)
5522 SWIG_fail;
5523 if (arg2 == NULL) {
5524 PyErr_SetString(PyExc_TypeError,"null reference");
5525 SWIG_fail;
5526 }
5527 {
5528 PyThreadState* __tstate = wxPyBeginAllowThreads();
5529 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5530
5531 wxPyEndAllowThreads(__tstate);
5532 if (PyErr_Occurred()) SWIG_fail;
5533 }
5534 {
5535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5536 }
5537 return resultobj;
5538 fail:
5539 return NULL;
5540 }
5541
5542
5543 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5544 PyObject *resultobj;
5545 wxRegion *arg1 = (wxRegion *) 0 ;
5546 wxBitmap *arg2 = 0 ;
5547 wxColour *arg3 = 0 ;
5548 int arg4 = (int) 0 ;
5549 bool result;
5550 wxColour temp3 ;
5551 PyObject * obj0 = 0 ;
5552 PyObject * obj1 = 0 ;
5553 PyObject * obj2 = 0 ;
5554 PyObject * obj3 = 0 ;
5555 char *kwnames[] = {
5556 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5557 };
5558
5559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5562 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5563 SWIG_POINTER_EXCEPTION | 0)) == -1)
5564 SWIG_fail;
5565 if (arg2 == NULL) {
5566 PyErr_SetString(PyExc_TypeError,"null reference");
5567 SWIG_fail;
5568 }
5569 {
5570 arg3 = &temp3;
5571 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5572 }
5573 if (obj3) {
5574 arg4 = (int) SWIG_AsInt(obj3);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 {
5578 PyThreadState* __tstate = wxPyBeginAllowThreads();
5579 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5580
5581 wxPyEndAllowThreads(__tstate);
5582 if (PyErr_Occurred()) SWIG_fail;
5583 }
5584 {
5585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5586 }
5587 return resultobj;
5588 fail:
5589 return NULL;
5590 }
5591
5592
5593 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5594 PyObject *obj;
5595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5596 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5597 Py_INCREF(obj);
5598 return Py_BuildValue((char *)"");
5599 }
5600 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5601 PyObject *resultobj;
5602 wxRegion *arg1 = 0 ;
5603 wxRegionIterator *result;
5604 PyObject * obj0 = 0 ;
5605 char *kwnames[] = {
5606 (char *) "region", NULL
5607 };
5608
5609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5611 SWIG_POINTER_EXCEPTION | 0)) == -1)
5612 SWIG_fail;
5613 if (arg1 == NULL) {
5614 PyErr_SetString(PyExc_TypeError,"null reference");
5615 SWIG_fail;
5616 }
5617 {
5618 if (!wxPyCheckForApp()) SWIG_fail;
5619 PyThreadState* __tstate = wxPyBeginAllowThreads();
5620 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5621
5622 wxPyEndAllowThreads(__tstate);
5623 if (PyErr_Occurred()) SWIG_fail;
5624 }
5625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5626 return resultobj;
5627 fail:
5628 return NULL;
5629 }
5630
5631
5632 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5633 PyObject *resultobj;
5634 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5635 PyObject * obj0 = 0 ;
5636 char *kwnames[] = {
5637 (char *) "self", NULL
5638 };
5639
5640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5643 {
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 delete arg1;
5646
5647 wxPyEndAllowThreads(__tstate);
5648 if (PyErr_Occurred()) SWIG_fail;
5649 }
5650 Py_INCREF(Py_None); resultobj = Py_None;
5651 return resultobj;
5652 fail:
5653 return NULL;
5654 }
5655
5656
5657 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5658 PyObject *resultobj;
5659 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5660 int result;
5661 PyObject * obj0 = 0 ;
5662 char *kwnames[] = {
5663 (char *) "self", NULL
5664 };
5665
5666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5669 {
5670 PyThreadState* __tstate = wxPyBeginAllowThreads();
5671 result = (int)(arg1)->GetX();
5672
5673 wxPyEndAllowThreads(__tstate);
5674 if (PyErr_Occurred()) SWIG_fail;
5675 }
5676 resultobj = SWIG_FromInt((int)result);
5677 return resultobj;
5678 fail:
5679 return NULL;
5680 }
5681
5682
5683 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5684 PyObject *resultobj;
5685 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5686 int result;
5687 PyObject * obj0 = 0 ;
5688 char *kwnames[] = {
5689 (char *) "self", NULL
5690 };
5691
5692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5695 {
5696 PyThreadState* __tstate = wxPyBeginAllowThreads();
5697 result = (int)(arg1)->GetY();
5698
5699 wxPyEndAllowThreads(__tstate);
5700 if (PyErr_Occurred()) SWIG_fail;
5701 }
5702 resultobj = SWIG_FromInt((int)result);
5703 return resultobj;
5704 fail:
5705 return NULL;
5706 }
5707
5708
5709 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5710 PyObject *resultobj;
5711 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5712 int result;
5713 PyObject * obj0 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "self", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 result = (int)(arg1)->GetW();
5724
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 resultobj = SWIG_FromInt((int)result);
5729 return resultobj;
5730 fail:
5731 return NULL;
5732 }
5733
5734
5735 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5736 PyObject *resultobj;
5737 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5738 int result;
5739 PyObject * obj0 = 0 ;
5740 char *kwnames[] = {
5741 (char *) "self", NULL
5742 };
5743
5744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5747 {
5748 PyThreadState* __tstate = wxPyBeginAllowThreads();
5749 result = (int)(arg1)->GetWidth();
5750
5751 wxPyEndAllowThreads(__tstate);
5752 if (PyErr_Occurred()) SWIG_fail;
5753 }
5754 resultobj = SWIG_FromInt((int)result);
5755 return resultobj;
5756 fail:
5757 return NULL;
5758 }
5759
5760
5761 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5762 PyObject *resultobj;
5763 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5764 int result;
5765 PyObject * obj0 = 0 ;
5766 char *kwnames[] = {
5767 (char *) "self", NULL
5768 };
5769
5770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5773 {
5774 PyThreadState* __tstate = wxPyBeginAllowThreads();
5775 result = (int)(arg1)->GetH();
5776
5777 wxPyEndAllowThreads(__tstate);
5778 if (PyErr_Occurred()) SWIG_fail;
5779 }
5780 resultobj = SWIG_FromInt((int)result);
5781 return resultobj;
5782 fail:
5783 return NULL;
5784 }
5785
5786
5787 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5788 PyObject *resultobj;
5789 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5790 int result;
5791 PyObject * obj0 = 0 ;
5792 char *kwnames[] = {
5793 (char *) "self", NULL
5794 };
5795
5796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5799 {
5800 PyThreadState* __tstate = wxPyBeginAllowThreads();
5801 result = (int)(arg1)->GetHeight();
5802
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 resultobj = SWIG_FromInt((int)result);
5807 return resultobj;
5808 fail:
5809 return NULL;
5810 }
5811
5812
5813 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj;
5815 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5816 wxRect result;
5817 PyObject * obj0 = 0 ;
5818 char *kwnames[] = {
5819 (char *) "self", NULL
5820 };
5821
5822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 result = (arg1)->GetRect();
5828
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 {
5833 wxRect * resultptr;
5834 resultptr = new wxRect((wxRect &) result);
5835 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5836 }
5837 return resultobj;
5838 fail:
5839 return NULL;
5840 }
5841
5842
5843 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5844 PyObject *resultobj;
5845 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5846 bool result;
5847 PyObject * obj0 = 0 ;
5848 char *kwnames[] = {
5849 (char *) "self", NULL
5850 };
5851
5852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5855 {
5856 PyThreadState* __tstate = wxPyBeginAllowThreads();
5857 result = (bool)(arg1)->HaveRects();
5858
5859 wxPyEndAllowThreads(__tstate);
5860 if (PyErr_Occurred()) SWIG_fail;
5861 }
5862 {
5863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5864 }
5865 return resultobj;
5866 fail:
5867 return NULL;
5868 }
5869
5870
5871 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5872 PyObject *resultobj;
5873 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5874 PyObject * obj0 = 0 ;
5875 char *kwnames[] = {
5876 (char *) "self", NULL
5877 };
5878
5879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5882 {
5883 PyThreadState* __tstate = wxPyBeginAllowThreads();
5884 (arg1)->Reset();
5885
5886 wxPyEndAllowThreads(__tstate);
5887 if (PyErr_Occurred()) SWIG_fail;
5888 }
5889 Py_INCREF(Py_None); resultobj = Py_None;
5890 return resultobj;
5891 fail:
5892 return NULL;
5893 }
5894
5895
5896 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5897 PyObject *resultobj;
5898 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5899 PyObject * obj0 = 0 ;
5900 char *kwnames[] = {
5901 (char *) "self", NULL
5902 };
5903
5904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 wxRegionIterator_Next(arg1);
5910
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 Py_INCREF(Py_None); resultobj = Py_None;
5915 return resultobj;
5916 fail:
5917 return NULL;
5918 }
5919
5920
5921 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5922 PyObject *resultobj;
5923 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5924 bool result;
5925 PyObject * obj0 = 0 ;
5926 char *kwnames[] = {
5927 (char *) "self", NULL
5928 };
5929
5930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 result = (bool)wxRegionIterator___nonzero__(arg1);
5936
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 {
5941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5942 }
5943 return resultobj;
5944 fail:
5945 return NULL;
5946 }
5947
5948
5949 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5950 PyObject *obj;
5951 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5952 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5953 Py_INCREF(obj);
5954 return Py_BuildValue((char *)"");
5955 }
5956 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5957 PyObject *resultobj;
5958 wxNativeFontInfo *result;
5959 char *kwnames[] = {
5960 NULL
5961 };
5962
5963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5967
5968 wxPyEndAllowThreads(__tstate);
5969 if (PyErr_Occurred()) SWIG_fail;
5970 }
5971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5972 return resultobj;
5973 fail:
5974 return NULL;
5975 }
5976
5977
5978 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5979 PyObject *resultobj;
5980 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5981 PyObject * obj0 = 0 ;
5982 char *kwnames[] = {
5983 (char *) "self", NULL
5984 };
5985
5986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5989 {
5990 PyThreadState* __tstate = wxPyBeginAllowThreads();
5991 delete arg1;
5992
5993 wxPyEndAllowThreads(__tstate);
5994 if (PyErr_Occurred()) SWIG_fail;
5995 }
5996 Py_INCREF(Py_None); resultobj = Py_None;
5997 return resultobj;
5998 fail:
5999 return NULL;
6000 }
6001
6002
6003 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6004 PyObject *resultobj;
6005 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6006 PyObject * obj0 = 0 ;
6007 char *kwnames[] = {
6008 (char *) "self", NULL
6009 };
6010
6011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6014 {
6015 PyThreadState* __tstate = wxPyBeginAllowThreads();
6016 (arg1)->Init();
6017
6018 wxPyEndAllowThreads(__tstate);
6019 if (PyErr_Occurred()) SWIG_fail;
6020 }
6021 Py_INCREF(Py_None); resultobj = Py_None;
6022 return resultobj;
6023 fail:
6024 return NULL;
6025 }
6026
6027
6028 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6029 PyObject *resultobj;
6030 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6031 wxFont *arg2 = 0 ;
6032 PyObject * obj0 = 0 ;
6033 PyObject * obj1 = 0 ;
6034 char *kwnames[] = {
6035 (char *) "self",(char *) "font", NULL
6036 };
6037
6038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6041 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6042 SWIG_POINTER_EXCEPTION | 0)) == -1)
6043 SWIG_fail;
6044 if (arg2 == NULL) {
6045 PyErr_SetString(PyExc_TypeError,"null reference");
6046 SWIG_fail;
6047 }
6048 {
6049 PyThreadState* __tstate = wxPyBeginAllowThreads();
6050 (arg1)->InitFromFont((wxFont const &)*arg2);
6051
6052 wxPyEndAllowThreads(__tstate);
6053 if (PyErr_Occurred()) SWIG_fail;
6054 }
6055 Py_INCREF(Py_None); resultobj = Py_None;
6056 return resultobj;
6057 fail:
6058 return NULL;
6059 }
6060
6061
6062 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6063 PyObject *resultobj;
6064 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6065 int result;
6066 PyObject * obj0 = 0 ;
6067 char *kwnames[] = {
6068 (char *) "self", NULL
6069 };
6070
6071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6074 {
6075 PyThreadState* __tstate = wxPyBeginAllowThreads();
6076 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6077
6078 wxPyEndAllowThreads(__tstate);
6079 if (PyErr_Occurred()) SWIG_fail;
6080 }
6081 resultobj = SWIG_FromInt((int)result);
6082 return resultobj;
6083 fail:
6084 return NULL;
6085 }
6086
6087
6088 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6089 PyObject *resultobj;
6090 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6091 int result;
6092 PyObject * obj0 = 0 ;
6093 char *kwnames[] = {
6094 (char *) "self", NULL
6095 };
6096
6097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6100 {
6101 PyThreadState* __tstate = wxPyBeginAllowThreads();
6102 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6103
6104 wxPyEndAllowThreads(__tstate);
6105 if (PyErr_Occurred()) SWIG_fail;
6106 }
6107 resultobj = SWIG_FromInt((int)result);
6108 return resultobj;
6109 fail:
6110 return NULL;
6111 }
6112
6113
6114 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6115 PyObject *resultobj;
6116 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6117 int result;
6118 PyObject * obj0 = 0 ;
6119 char *kwnames[] = {
6120 (char *) "self", NULL
6121 };
6122
6123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6126 {
6127 PyThreadState* __tstate = wxPyBeginAllowThreads();
6128 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6129
6130 wxPyEndAllowThreads(__tstate);
6131 if (PyErr_Occurred()) SWIG_fail;
6132 }
6133 resultobj = SWIG_FromInt((int)result);
6134 return resultobj;
6135 fail:
6136 return NULL;
6137 }
6138
6139
6140 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6141 PyObject *resultobj;
6142 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6143 bool result;
6144 PyObject * obj0 = 0 ;
6145 char *kwnames[] = {
6146 (char *) "self", NULL
6147 };
6148
6149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6152 {
6153 PyThreadState* __tstate = wxPyBeginAllowThreads();
6154 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6155
6156 wxPyEndAllowThreads(__tstate);
6157 if (PyErr_Occurred()) SWIG_fail;
6158 }
6159 {
6160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6161 }
6162 return resultobj;
6163 fail:
6164 return NULL;
6165 }
6166
6167
6168 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6169 PyObject *resultobj;
6170 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6171 wxString result;
6172 PyObject * obj0 = 0 ;
6173 char *kwnames[] = {
6174 (char *) "self", NULL
6175 };
6176
6177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6183
6184 wxPyEndAllowThreads(__tstate);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 }
6187 {
6188 #if wxUSE_UNICODE
6189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6190 #else
6191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6192 #endif
6193 }
6194 return resultobj;
6195 fail:
6196 return NULL;
6197 }
6198
6199
6200 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6201 PyObject *resultobj;
6202 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6203 int result;
6204 PyObject * obj0 = 0 ;
6205 char *kwnames[] = {
6206 (char *) "self", NULL
6207 };
6208
6209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6215
6216 wxPyEndAllowThreads(__tstate);
6217 if (PyErr_Occurred()) SWIG_fail;
6218 }
6219 resultobj = SWIG_FromInt((int)result);
6220 return resultobj;
6221 fail:
6222 return NULL;
6223 }
6224
6225
6226 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6227 PyObject *resultobj;
6228 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6229 int result;
6230 PyObject * obj0 = 0 ;
6231 char *kwnames[] = {
6232 (char *) "self", NULL
6233 };
6234
6235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6238 {
6239 PyThreadState* __tstate = wxPyBeginAllowThreads();
6240 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6241
6242 wxPyEndAllowThreads(__tstate);
6243 if (PyErr_Occurred()) SWIG_fail;
6244 }
6245 resultobj = SWIG_FromInt((int)result);
6246 return resultobj;
6247 fail:
6248 return NULL;
6249 }
6250
6251
6252 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6253 PyObject *resultobj;
6254 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6255 int arg2 ;
6256 PyObject * obj0 = 0 ;
6257 PyObject * obj1 = 0 ;
6258 char *kwnames[] = {
6259 (char *) "self",(char *) "pointsize", NULL
6260 };
6261
6262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6265 arg2 = (int) SWIG_AsInt(obj1);
6266 if (PyErr_Occurred()) SWIG_fail;
6267 {
6268 PyThreadState* __tstate = wxPyBeginAllowThreads();
6269 (arg1)->SetPointSize(arg2);
6270
6271 wxPyEndAllowThreads(__tstate);
6272 if (PyErr_Occurred()) SWIG_fail;
6273 }
6274 Py_INCREF(Py_None); resultobj = Py_None;
6275 return resultobj;
6276 fail:
6277 return NULL;
6278 }
6279
6280
6281 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6282 PyObject *resultobj;
6283 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6284 int arg2 ;
6285 PyObject * obj0 = 0 ;
6286 PyObject * obj1 = 0 ;
6287 char *kwnames[] = {
6288 (char *) "self",(char *) "style", NULL
6289 };
6290
6291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6294 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6295 if (PyErr_Occurred()) SWIG_fail;
6296 {
6297 PyThreadState* __tstate = wxPyBeginAllowThreads();
6298 (arg1)->SetStyle((wxFontStyle )arg2);
6299
6300 wxPyEndAllowThreads(__tstate);
6301 if (PyErr_Occurred()) SWIG_fail;
6302 }
6303 Py_INCREF(Py_None); resultobj = Py_None;
6304 return resultobj;
6305 fail:
6306 return NULL;
6307 }
6308
6309
6310 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6311 PyObject *resultobj;
6312 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6313 int arg2 ;
6314 PyObject * obj0 = 0 ;
6315 PyObject * obj1 = 0 ;
6316 char *kwnames[] = {
6317 (char *) "self",(char *) "weight", NULL
6318 };
6319
6320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6323 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6324 if (PyErr_Occurred()) SWIG_fail;
6325 {
6326 PyThreadState* __tstate = wxPyBeginAllowThreads();
6327 (arg1)->SetWeight((wxFontWeight )arg2);
6328
6329 wxPyEndAllowThreads(__tstate);
6330 if (PyErr_Occurred()) SWIG_fail;
6331 }
6332 Py_INCREF(Py_None); resultobj = Py_None;
6333 return resultobj;
6334 fail:
6335 return NULL;
6336 }
6337
6338
6339 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6340 PyObject *resultobj;
6341 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6342 bool arg2 ;
6343 PyObject * obj0 = 0 ;
6344 PyObject * obj1 = 0 ;
6345 char *kwnames[] = {
6346 (char *) "self",(char *) "underlined", NULL
6347 };
6348
6349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6352 arg2 = (bool) SWIG_AsBool(obj1);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 {
6355 PyThreadState* __tstate = wxPyBeginAllowThreads();
6356 (arg1)->SetUnderlined(arg2);
6357
6358 wxPyEndAllowThreads(__tstate);
6359 if (PyErr_Occurred()) SWIG_fail;
6360 }
6361 Py_INCREF(Py_None); resultobj = Py_None;
6362 return resultobj;
6363 fail:
6364 return NULL;
6365 }
6366
6367
6368 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6369 PyObject *resultobj;
6370 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6371 wxString arg2 ;
6372 PyObject * obj0 = 0 ;
6373 PyObject * obj1 = 0 ;
6374 char *kwnames[] = {
6375 (char *) "self",(char *) "facename", NULL
6376 };
6377
6378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6381 {
6382 wxString* sptr = wxString_in_helper(obj1);
6383 if (sptr == NULL) SWIG_fail;
6384 arg2 = *sptr;
6385 delete sptr;
6386 }
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->SetFaceName(arg2);
6390
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 Py_INCREF(Py_None); resultobj = Py_None;
6395 return resultobj;
6396 fail:
6397 return NULL;
6398 }
6399
6400
6401 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6402 PyObject *resultobj;
6403 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6404 int arg2 ;
6405 PyObject * obj0 = 0 ;
6406 PyObject * obj1 = 0 ;
6407 char *kwnames[] = {
6408 (char *) "self",(char *) "family", NULL
6409 };
6410
6411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6414 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6415 if (PyErr_Occurred()) SWIG_fail;
6416 {
6417 PyThreadState* __tstate = wxPyBeginAllowThreads();
6418 (arg1)->SetFamily((wxFontFamily )arg2);
6419
6420 wxPyEndAllowThreads(__tstate);
6421 if (PyErr_Occurred()) SWIG_fail;
6422 }
6423 Py_INCREF(Py_None); resultobj = Py_None;
6424 return resultobj;
6425 fail:
6426 return NULL;
6427 }
6428
6429
6430 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6431 PyObject *resultobj;
6432 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6433 int arg2 ;
6434 PyObject * obj0 = 0 ;
6435 PyObject * obj1 = 0 ;
6436 char *kwnames[] = {
6437 (char *) "self",(char *) "encoding", NULL
6438 };
6439
6440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6443 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6444 if (PyErr_Occurred()) SWIG_fail;
6445 {
6446 PyThreadState* __tstate = wxPyBeginAllowThreads();
6447 (arg1)->SetEncoding((wxFontEncoding )arg2);
6448
6449 wxPyEndAllowThreads(__tstate);
6450 if (PyErr_Occurred()) SWIG_fail;
6451 }
6452 Py_INCREF(Py_None); resultobj = Py_None;
6453 return resultobj;
6454 fail:
6455 return NULL;
6456 }
6457
6458
6459 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6460 PyObject *resultobj;
6461 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6462 wxString *arg2 = 0 ;
6463 bool result;
6464 bool temp2 = False ;
6465 PyObject * obj0 = 0 ;
6466 PyObject * obj1 = 0 ;
6467 char *kwnames[] = {
6468 (char *) "self",(char *) "s", NULL
6469 };
6470
6471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6474 {
6475 arg2 = wxString_in_helper(obj1);
6476 if (arg2 == NULL) SWIG_fail;
6477 temp2 = True;
6478 }
6479 {
6480 PyThreadState* __tstate = wxPyBeginAllowThreads();
6481 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6482
6483 wxPyEndAllowThreads(__tstate);
6484 if (PyErr_Occurred()) SWIG_fail;
6485 }
6486 {
6487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6488 }
6489 {
6490 if (temp2)
6491 delete arg2;
6492 }
6493 return resultobj;
6494 fail:
6495 {
6496 if (temp2)
6497 delete arg2;
6498 }
6499 return NULL;
6500 }
6501
6502
6503 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6504 PyObject *resultobj;
6505 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6506 wxString result;
6507 PyObject * obj0 = 0 ;
6508 char *kwnames[] = {
6509 (char *) "self", NULL
6510 };
6511
6512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6515 {
6516 PyThreadState* __tstate = wxPyBeginAllowThreads();
6517 result = ((wxNativeFontInfo const *)arg1)->ToString();
6518
6519 wxPyEndAllowThreads(__tstate);
6520 if (PyErr_Occurred()) SWIG_fail;
6521 }
6522 {
6523 #if wxUSE_UNICODE
6524 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6525 #else
6526 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6527 #endif
6528 }
6529 return resultobj;
6530 fail:
6531 return NULL;
6532 }
6533
6534
6535 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6536 PyObject *resultobj;
6537 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6538 wxString result;
6539 PyObject * obj0 = 0 ;
6540 char *kwnames[] = {
6541 (char *) "self", NULL
6542 };
6543
6544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6547 {
6548 PyThreadState* __tstate = wxPyBeginAllowThreads();
6549 result = wxNativeFontInfo___str__(arg1);
6550
6551 wxPyEndAllowThreads(__tstate);
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 {
6555 #if wxUSE_UNICODE
6556 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6557 #else
6558 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6559 #endif
6560 }
6561 return resultobj;
6562 fail:
6563 return NULL;
6564 }
6565
6566
6567 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6568 PyObject *resultobj;
6569 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6570 wxString *arg2 = 0 ;
6571 bool result;
6572 bool temp2 = False ;
6573 PyObject * obj0 = 0 ;
6574 PyObject * obj1 = 0 ;
6575 char *kwnames[] = {
6576 (char *) "self",(char *) "s", NULL
6577 };
6578
6579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6582 {
6583 arg2 = wxString_in_helper(obj1);
6584 if (arg2 == NULL) SWIG_fail;
6585 temp2 = True;
6586 }
6587 {
6588 PyThreadState* __tstate = wxPyBeginAllowThreads();
6589 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6590
6591 wxPyEndAllowThreads(__tstate);
6592 if (PyErr_Occurred()) SWIG_fail;
6593 }
6594 {
6595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6596 }
6597 {
6598 if (temp2)
6599 delete arg2;
6600 }
6601 return resultobj;
6602 fail:
6603 {
6604 if (temp2)
6605 delete arg2;
6606 }
6607 return NULL;
6608 }
6609
6610
6611 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6612 PyObject *resultobj;
6613 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6614 wxString result;
6615 PyObject * obj0 = 0 ;
6616 char *kwnames[] = {
6617 (char *) "self", NULL
6618 };
6619
6620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6623 {
6624 PyThreadState* __tstate = wxPyBeginAllowThreads();
6625 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6626
6627 wxPyEndAllowThreads(__tstate);
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 {
6631 #if wxUSE_UNICODE
6632 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6633 #else
6634 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6635 #endif
6636 }
6637 return resultobj;
6638 fail:
6639 return NULL;
6640 }
6641
6642
6643 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6644 PyObject *obj;
6645 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6646 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6647 Py_INCREF(obj);
6648 return Py_BuildValue((char *)"");
6649 }
6650 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj;
6652 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6653 wxString *arg2 = (wxString *) 0 ;
6654 bool temp2 = False ;
6655 PyObject * obj0 = 0 ;
6656 PyObject * obj1 = 0 ;
6657 char *kwnames[] = {
6658 (char *) "self",(char *) "facename", NULL
6659 };
6660
6661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6664 {
6665 arg2 = wxString_in_helper(obj1);
6666 if (arg2 == NULL) SWIG_fail;
6667 temp2 = True;
6668 }
6669 if (arg1) (arg1)->facename = *arg2;
6670
6671 Py_INCREF(Py_None); resultobj = Py_None;
6672 {
6673 if (temp2)
6674 delete arg2;
6675 }
6676 return resultobj;
6677 fail:
6678 {
6679 if (temp2)
6680 delete arg2;
6681 }
6682 return NULL;
6683 }
6684
6685
6686 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6687 PyObject *resultobj;
6688 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6689 wxString *result;
6690 PyObject * obj0 = 0 ;
6691 char *kwnames[] = {
6692 (char *) "self", NULL
6693 };
6694
6695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6698 result = (wxString *)& ((arg1)->facename);
6699
6700 {
6701 #if wxUSE_UNICODE
6702 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6703 #else
6704 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6705 #endif
6706 }
6707 return resultobj;
6708 fail:
6709 return NULL;
6710 }
6711
6712
6713 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6714 PyObject *resultobj;
6715 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6716 int arg2 ;
6717 PyObject * obj0 = 0 ;
6718 PyObject * obj1 = 0 ;
6719 char *kwnames[] = {
6720 (char *) "self",(char *) "encoding", NULL
6721 };
6722
6723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6726 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6727 if (PyErr_Occurred()) SWIG_fail;
6728 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6729
6730 Py_INCREF(Py_None); resultobj = Py_None;
6731 return resultobj;
6732 fail:
6733 return NULL;
6734 }
6735
6736
6737 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6738 PyObject *resultobj;
6739 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6740 int result;
6741 PyObject * obj0 = 0 ;
6742 char *kwnames[] = {
6743 (char *) "self", NULL
6744 };
6745
6746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6749 result = (int) ((arg1)->encoding);
6750
6751 resultobj = SWIG_FromInt((int)result);
6752 return resultobj;
6753 fail:
6754 return NULL;
6755 }
6756
6757
6758 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6759 PyObject *resultobj;
6760 wxNativeEncodingInfo *result;
6761 char *kwnames[] = {
6762 NULL
6763 };
6764
6765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6766 {
6767 PyThreadState* __tstate = wxPyBeginAllowThreads();
6768 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6769
6770 wxPyEndAllowThreads(__tstate);
6771 if (PyErr_Occurred()) SWIG_fail;
6772 }
6773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6774 return resultobj;
6775 fail:
6776 return NULL;
6777 }
6778
6779
6780 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6781 PyObject *resultobj;
6782 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6783 PyObject * obj0 = 0 ;
6784 char *kwnames[] = {
6785 (char *) "self", NULL
6786 };
6787
6788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6791 {
6792 PyThreadState* __tstate = wxPyBeginAllowThreads();
6793 delete arg1;
6794
6795 wxPyEndAllowThreads(__tstate);
6796 if (PyErr_Occurred()) SWIG_fail;
6797 }
6798 Py_INCREF(Py_None); resultobj = Py_None;
6799 return resultobj;
6800 fail:
6801 return NULL;
6802 }
6803
6804
6805 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6806 PyObject *resultobj;
6807 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6808 wxString *arg2 = 0 ;
6809 bool result;
6810 bool temp2 = False ;
6811 PyObject * obj0 = 0 ;
6812 PyObject * obj1 = 0 ;
6813 char *kwnames[] = {
6814 (char *) "self",(char *) "s", NULL
6815 };
6816
6817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6820 {
6821 arg2 = wxString_in_helper(obj1);
6822 if (arg2 == NULL) SWIG_fail;
6823 temp2 = True;
6824 }
6825 {
6826 PyThreadState* __tstate = wxPyBeginAllowThreads();
6827 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6828
6829 wxPyEndAllowThreads(__tstate);
6830 if (PyErr_Occurred()) SWIG_fail;
6831 }
6832 {
6833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6834 }
6835 {
6836 if (temp2)
6837 delete arg2;
6838 }
6839 return resultobj;
6840 fail:
6841 {
6842 if (temp2)
6843 delete arg2;
6844 }
6845 return NULL;
6846 }
6847
6848
6849 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj;
6851 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6852 wxString result;
6853 PyObject * obj0 = 0 ;
6854 char *kwnames[] = {
6855 (char *) "self", NULL
6856 };
6857
6858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6861 {
6862 PyThreadState* __tstate = wxPyBeginAllowThreads();
6863 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6864
6865 wxPyEndAllowThreads(__tstate);
6866 if (PyErr_Occurred()) SWIG_fail;
6867 }
6868 {
6869 #if wxUSE_UNICODE
6870 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6871 #else
6872 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6873 #endif
6874 }
6875 return resultobj;
6876 fail:
6877 return NULL;
6878 }
6879
6880
6881 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6882 PyObject *obj;
6883 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6884 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6885 Py_INCREF(obj);
6886 return Py_BuildValue((char *)"");
6887 }
6888 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6889 PyObject *resultobj;
6890 int arg1 ;
6891 wxNativeEncodingInfo *result;
6892 PyObject * obj0 = 0 ;
6893 char *kwnames[] = {
6894 (char *) "encoding", NULL
6895 };
6896
6897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6898 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6899 if (PyErr_Occurred()) SWIG_fail;
6900 {
6901 PyThreadState* __tstate = wxPyBeginAllowThreads();
6902 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6903
6904 wxPyEndAllowThreads(__tstate);
6905 if (PyErr_Occurred()) SWIG_fail;
6906 }
6907 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6908 return resultobj;
6909 fail:
6910 return NULL;
6911 }
6912
6913
6914 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6915 PyObject *resultobj;
6916 wxNativeEncodingInfo *arg1 = 0 ;
6917 bool result;
6918 PyObject * obj0 = 0 ;
6919 char *kwnames[] = {
6920 (char *) "info", NULL
6921 };
6922
6923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6925 SWIG_POINTER_EXCEPTION | 0)) == -1)
6926 SWIG_fail;
6927 if (arg1 == NULL) {
6928 PyErr_SetString(PyExc_TypeError,"null reference");
6929 SWIG_fail;
6930 }
6931 {
6932 PyThreadState* __tstate = wxPyBeginAllowThreads();
6933 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6934
6935 wxPyEndAllowThreads(__tstate);
6936 if (PyErr_Occurred()) SWIG_fail;
6937 }
6938 {
6939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6940 }
6941 return resultobj;
6942 fail:
6943 return NULL;
6944 }
6945
6946
6947 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6948 PyObject *resultobj;
6949 wxFontMapper *result;
6950 char *kwnames[] = {
6951 NULL
6952 };
6953
6954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6955 {
6956 PyThreadState* __tstate = wxPyBeginAllowThreads();
6957 result = (wxFontMapper *)new wxFontMapper();
6958
6959 wxPyEndAllowThreads(__tstate);
6960 if (PyErr_Occurred()) SWIG_fail;
6961 }
6962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6963 return resultobj;
6964 fail:
6965 return NULL;
6966 }
6967
6968
6969 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6970 PyObject *resultobj;
6971 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6972 PyObject * obj0 = 0 ;
6973 char *kwnames[] = {
6974 (char *) "self", NULL
6975 };
6976
6977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6980 {
6981 PyThreadState* __tstate = wxPyBeginAllowThreads();
6982 delete arg1;
6983
6984 wxPyEndAllowThreads(__tstate);
6985 if (PyErr_Occurred()) SWIG_fail;
6986 }
6987 Py_INCREF(Py_None); resultobj = Py_None;
6988 return resultobj;
6989 fail:
6990 return NULL;
6991 }
6992
6993
6994 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6995 PyObject *resultobj;
6996 wxFontMapper *result;
6997 char *kwnames[] = {
6998 NULL
6999 };
7000
7001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 result = (wxFontMapper *)wxFontMapper::Get();
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7010 return resultobj;
7011 fail:
7012 return NULL;
7013 }
7014
7015
7016 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7017 PyObject *resultobj;
7018 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7019 wxFontMapper *result;
7020 PyObject * obj0 = 0 ;
7021 char *kwnames[] = {
7022 (char *) "mapper", NULL
7023 };
7024
7025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7028 {
7029 PyThreadState* __tstate = wxPyBeginAllowThreads();
7030 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7031
7032 wxPyEndAllowThreads(__tstate);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7036 return resultobj;
7037 fail:
7038 return NULL;
7039 }
7040
7041
7042 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj;
7044 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7045 wxString *arg2 = 0 ;
7046 bool arg3 = (bool) True ;
7047 int result;
7048 bool temp2 = False ;
7049 PyObject * obj0 = 0 ;
7050 PyObject * obj1 = 0 ;
7051 PyObject * obj2 = 0 ;
7052 char *kwnames[] = {
7053 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7059 {
7060 arg2 = wxString_in_helper(obj1);
7061 if (arg2 == NULL) SWIG_fail;
7062 temp2 = True;
7063 }
7064 if (obj2) {
7065 arg3 = (bool) SWIG_AsBool(obj2);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 {
7069 PyThreadState* __tstate = wxPyBeginAllowThreads();
7070 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7071
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 resultobj = SWIG_FromInt((int)result);
7076 {
7077 if (temp2)
7078 delete arg2;
7079 }
7080 return resultobj;
7081 fail:
7082 {
7083 if (temp2)
7084 delete arg2;
7085 }
7086 return NULL;
7087 }
7088
7089
7090 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7091 PyObject *resultobj;
7092 size_t result;
7093 char *kwnames[] = {
7094 NULL
7095 };
7096
7097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7098 {
7099 PyThreadState* __tstate = wxPyBeginAllowThreads();
7100 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7101
7102 wxPyEndAllowThreads(__tstate);
7103 if (PyErr_Occurred()) SWIG_fail;
7104 }
7105 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7106 return resultobj;
7107 fail:
7108 return NULL;
7109 }
7110
7111
7112 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7113 PyObject *resultobj;
7114 size_t arg1 ;
7115 int result;
7116 PyObject * obj0 = 0 ;
7117 char *kwnames[] = {
7118 (char *) "n", NULL
7119 };
7120
7121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7122 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7123 if (PyErr_Occurred()) SWIG_fail;
7124 {
7125 PyThreadState* __tstate = wxPyBeginAllowThreads();
7126 result = (int)wxFontMapper::GetEncoding(arg1);
7127
7128 wxPyEndAllowThreads(__tstate);
7129 if (PyErr_Occurred()) SWIG_fail;
7130 }
7131 resultobj = SWIG_FromInt((int)result);
7132 return resultobj;
7133 fail:
7134 return NULL;
7135 }
7136
7137
7138 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7139 PyObject *resultobj;
7140 int arg1 ;
7141 wxString result;
7142 PyObject * obj0 = 0 ;
7143 char *kwnames[] = {
7144 (char *) "encoding", NULL
7145 };
7146
7147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7148 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7149 if (PyErr_Occurred()) SWIG_fail;
7150 {
7151 PyThreadState* __tstate = wxPyBeginAllowThreads();
7152 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7153
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 {
7158 #if wxUSE_UNICODE
7159 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7160 #else
7161 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7162 #endif
7163 }
7164 return resultobj;
7165 fail:
7166 return NULL;
7167 }
7168
7169
7170 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7171 PyObject *resultobj;
7172 int arg1 ;
7173 wxString result;
7174 PyObject * obj0 = 0 ;
7175 char *kwnames[] = {
7176 (char *) "encoding", NULL
7177 };
7178
7179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7180 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7181 if (PyErr_Occurred()) SWIG_fail;
7182 {
7183 PyThreadState* __tstate = wxPyBeginAllowThreads();
7184 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7185
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 {
7190 #if wxUSE_UNICODE
7191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7192 #else
7193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7194 #endif
7195 }
7196 return resultobj;
7197 fail:
7198 return NULL;
7199 }
7200
7201
7202 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7203 PyObject *resultobj;
7204 wxString *arg1 = 0 ;
7205 int result;
7206 bool temp1 = False ;
7207 PyObject * obj0 = 0 ;
7208 char *kwnames[] = {
7209 (char *) "name", NULL
7210 };
7211
7212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7213 {
7214 arg1 = wxString_in_helper(obj0);
7215 if (arg1 == NULL) SWIG_fail;
7216 temp1 = True;
7217 }
7218 {
7219 PyThreadState* __tstate = wxPyBeginAllowThreads();
7220 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7221
7222 wxPyEndAllowThreads(__tstate);
7223 if (PyErr_Occurred()) SWIG_fail;
7224 }
7225 resultobj = SWIG_FromInt((int)result);
7226 {
7227 if (temp1)
7228 delete arg1;
7229 }
7230 return resultobj;
7231 fail:
7232 {
7233 if (temp1)
7234 delete arg1;
7235 }
7236 return NULL;
7237 }
7238
7239
7240 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7241 PyObject *resultobj;
7242 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7243 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7244 PyObject * obj0 = 0 ;
7245 PyObject * obj1 = 0 ;
7246 char *kwnames[] = {
7247 (char *) "self",(char *) "config", NULL
7248 };
7249
7250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7255 {
7256 PyThreadState* __tstate = wxPyBeginAllowThreads();
7257 (arg1)->SetConfig(arg2);
7258
7259 wxPyEndAllowThreads(__tstate);
7260 if (PyErr_Occurred()) SWIG_fail;
7261 }
7262 Py_INCREF(Py_None); resultobj = Py_None;
7263 return resultobj;
7264 fail:
7265 return NULL;
7266 }
7267
7268
7269 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7270 PyObject *resultobj;
7271 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7272 wxString *arg2 = 0 ;
7273 bool temp2 = False ;
7274 PyObject * obj0 = 0 ;
7275 PyObject * obj1 = 0 ;
7276 char *kwnames[] = {
7277 (char *) "self",(char *) "prefix", NULL
7278 };
7279
7280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7283 {
7284 arg2 = wxString_in_helper(obj1);
7285 if (arg2 == NULL) SWIG_fail;
7286 temp2 = True;
7287 }
7288 {
7289 PyThreadState* __tstate = wxPyBeginAllowThreads();
7290 (arg1)->SetConfigPath((wxString const &)*arg2);
7291
7292 wxPyEndAllowThreads(__tstate);
7293 if (PyErr_Occurred()) SWIG_fail;
7294 }
7295 Py_INCREF(Py_None); resultobj = Py_None;
7296 {
7297 if (temp2)
7298 delete arg2;
7299 }
7300 return resultobj;
7301 fail:
7302 {
7303 if (temp2)
7304 delete arg2;
7305 }
7306 return NULL;
7307 }
7308
7309
7310 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7311 PyObject *resultobj;
7312 wxString result;
7313 char *kwnames[] = {
7314 NULL
7315 };
7316
7317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7318 {
7319 PyThreadState* __tstate = wxPyBeginAllowThreads();
7320 result = wxFontMapper::GetDefaultConfigPath();
7321
7322 wxPyEndAllowThreads(__tstate);
7323 if (PyErr_Occurred()) SWIG_fail;
7324 }
7325 {
7326 #if wxUSE_UNICODE
7327 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7328 #else
7329 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7330 #endif
7331 }
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7339 PyObject *resultobj;
7340 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7341 int arg2 ;
7342 wxString const &arg3_defvalue = wxPyEmptyString ;
7343 wxString *arg3 = (wxString *) &arg3_defvalue ;
7344 bool arg4 = (bool) True ;
7345 PyObject *result;
7346 bool temp3 = False ;
7347 PyObject * obj0 = 0 ;
7348 PyObject * obj1 = 0 ;
7349 PyObject * obj2 = 0 ;
7350 PyObject * obj3 = 0 ;
7351 char *kwnames[] = {
7352 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7353 };
7354
7355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7358 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7359 if (PyErr_Occurred()) SWIG_fail;
7360 if (obj2) {
7361 {
7362 arg3 = wxString_in_helper(obj2);
7363 if (arg3 == NULL) SWIG_fail;
7364 temp3 = True;
7365 }
7366 }
7367 if (obj3) {
7368 arg4 = (bool) SWIG_AsBool(obj3);
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 {
7372 PyThreadState* __tstate = wxPyBeginAllowThreads();
7373 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7374
7375 wxPyEndAllowThreads(__tstate);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
7378 resultobj = result;
7379 {
7380 if (temp3)
7381 delete arg3;
7382 }
7383 return resultobj;
7384 fail:
7385 {
7386 if (temp3)
7387 delete arg3;
7388 }
7389 return NULL;
7390 }
7391
7392
7393 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7394 PyObject *resultobj;
7395 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7396 int arg2 ;
7397 wxString const &arg3_defvalue = wxPyEmptyString ;
7398 wxString *arg3 = (wxString *) &arg3_defvalue ;
7399 bool result;
7400 bool temp3 = False ;
7401 PyObject * obj0 = 0 ;
7402 PyObject * obj1 = 0 ;
7403 PyObject * obj2 = 0 ;
7404 char *kwnames[] = {
7405 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7406 };
7407
7408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7411 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7412 if (PyErr_Occurred()) SWIG_fail;
7413 if (obj2) {
7414 {
7415 arg3 = wxString_in_helper(obj2);
7416 if (arg3 == NULL) SWIG_fail;
7417 temp3 = True;
7418 }
7419 }
7420 {
7421 PyThreadState* __tstate = wxPyBeginAllowThreads();
7422 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7423
7424 wxPyEndAllowThreads(__tstate);
7425 if (PyErr_Occurred()) SWIG_fail;
7426 }
7427 {
7428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7429 }
7430 {
7431 if (temp3)
7432 delete arg3;
7433 }
7434 return resultobj;
7435 fail:
7436 {
7437 if (temp3)
7438 delete arg3;
7439 }
7440 return NULL;
7441 }
7442
7443
7444 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7445 PyObject *resultobj;
7446 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7447 wxWindow *arg2 = (wxWindow *) 0 ;
7448 PyObject * obj0 = 0 ;
7449 PyObject * obj1 = 0 ;
7450 char *kwnames[] = {
7451 (char *) "self",(char *) "parent", NULL
7452 };
7453
7454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7457 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7459 {
7460 PyThreadState* __tstate = wxPyBeginAllowThreads();
7461 (arg1)->SetDialogParent(arg2);
7462
7463 wxPyEndAllowThreads(__tstate);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 Py_INCREF(Py_None); resultobj = Py_None;
7467 return resultobj;
7468 fail:
7469 return NULL;
7470 }
7471
7472
7473 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7474 PyObject *resultobj;
7475 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7476 wxString *arg2 = 0 ;
7477 bool temp2 = False ;
7478 PyObject * obj0 = 0 ;
7479 PyObject * obj1 = 0 ;
7480 char *kwnames[] = {
7481 (char *) "self",(char *) "title", NULL
7482 };
7483
7484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7487 {
7488 arg2 = wxString_in_helper(obj1);
7489 if (arg2 == NULL) SWIG_fail;
7490 temp2 = True;
7491 }
7492 {
7493 PyThreadState* __tstate = wxPyBeginAllowThreads();
7494 (arg1)->SetDialogTitle((wxString const &)*arg2);
7495
7496 wxPyEndAllowThreads(__tstate);
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 Py_INCREF(Py_None); resultobj = Py_None;
7500 {
7501 if (temp2)
7502 delete arg2;
7503 }
7504 return resultobj;
7505 fail:
7506 {
7507 if (temp2)
7508 delete arg2;
7509 }
7510 return NULL;
7511 }
7512
7513
7514 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7515 PyObject *obj;
7516 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7517 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7518 Py_INCREF(obj);
7519 return Py_BuildValue((char *)"");
7520 }
7521 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7522 PyObject *resultobj;
7523 int arg1 ;
7524 int arg2 ;
7525 int arg3 ;
7526 int arg4 ;
7527 bool arg5 = (bool) False ;
7528 wxString const &arg6_defvalue = wxPyEmptyString ;
7529 wxString *arg6 = (wxString *) &arg6_defvalue ;
7530 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7531 wxFont *result;
7532 bool temp6 = False ;
7533 PyObject * obj0 = 0 ;
7534 PyObject * obj1 = 0 ;
7535 PyObject * obj2 = 0 ;
7536 PyObject * obj3 = 0 ;
7537 PyObject * obj4 = 0 ;
7538 PyObject * obj5 = 0 ;
7539 PyObject * obj6 = 0 ;
7540 char *kwnames[] = {
7541 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7542 };
7543
7544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7545 arg1 = (int) SWIG_AsInt(obj0);
7546 if (PyErr_Occurred()) SWIG_fail;
7547 arg2 = (int) SWIG_AsInt(obj1);
7548 if (PyErr_Occurred()) SWIG_fail;
7549 arg3 = (int) SWIG_AsInt(obj2);
7550 if (PyErr_Occurred()) SWIG_fail;
7551 arg4 = (int) SWIG_AsInt(obj3);
7552 if (PyErr_Occurred()) SWIG_fail;
7553 if (obj4) {
7554 arg5 = (bool) SWIG_AsBool(obj4);
7555 if (PyErr_Occurred()) SWIG_fail;
7556 }
7557 if (obj5) {
7558 {
7559 arg6 = wxString_in_helper(obj5);
7560 if (arg6 == NULL) SWIG_fail;
7561 temp6 = True;
7562 }
7563 }
7564 if (obj6) {
7565 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 {
7569 if (!wxPyCheckForApp()) SWIG_fail;
7570 PyThreadState* __tstate = wxPyBeginAllowThreads();
7571 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7572
7573 wxPyEndAllowThreads(__tstate);
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7577 {
7578 if (temp6)
7579 delete arg6;
7580 }
7581 return resultobj;
7582 fail:
7583 {
7584 if (temp6)
7585 delete arg6;
7586 }
7587 return NULL;
7588 }
7589
7590
7591 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7592 PyObject *resultobj;
7593 wxFont *arg1 = (wxFont *) 0 ;
7594 PyObject * obj0 = 0 ;
7595 char *kwnames[] = {
7596 (char *) "self", NULL
7597 };
7598
7599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7602 {
7603 PyThreadState* __tstate = wxPyBeginAllowThreads();
7604 delete arg1;
7605
7606 wxPyEndAllowThreads(__tstate);
7607 if (PyErr_Occurred()) SWIG_fail;
7608 }
7609 Py_INCREF(Py_None); resultobj = Py_None;
7610 return resultobj;
7611 fail:
7612 return NULL;
7613 }
7614
7615
7616 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7617 PyObject *resultobj;
7618 wxNativeFontInfo *arg1 = 0 ;
7619 wxFont *result;
7620 PyObject * obj0 = 0 ;
7621 char *kwnames[] = {
7622 (char *) "info", NULL
7623 };
7624
7625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7627 SWIG_POINTER_EXCEPTION | 0)) == -1)
7628 SWIG_fail;
7629 if (arg1 == NULL) {
7630 PyErr_SetString(PyExc_TypeError,"null reference");
7631 SWIG_fail;
7632 }
7633 {
7634 if (!wxPyCheckForApp()) SWIG_fail;
7635 PyThreadState* __tstate = wxPyBeginAllowThreads();
7636 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7637
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7642 return resultobj;
7643 fail:
7644 return NULL;
7645 }
7646
7647
7648 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7649 PyObject *resultobj;
7650 wxString *arg1 = 0 ;
7651 wxFont *result;
7652 bool temp1 = False ;
7653 PyObject * obj0 = 0 ;
7654 char *kwnames[] = {
7655 (char *) "info", NULL
7656 };
7657
7658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7659 {
7660 arg1 = wxString_in_helper(obj0);
7661 if (arg1 == NULL) SWIG_fail;
7662 temp1 = True;
7663 }
7664 {
7665 if (!wxPyCheckForApp()) SWIG_fail;
7666 PyThreadState* __tstate = wxPyBeginAllowThreads();
7667 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7668
7669 wxPyEndAllowThreads(__tstate);
7670 if (PyErr_Occurred()) SWIG_fail;
7671 }
7672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7673 {
7674 if (temp1)
7675 delete arg1;
7676 }
7677 return resultobj;
7678 fail:
7679 {
7680 if (temp1)
7681 delete arg1;
7682 }
7683 return NULL;
7684 }
7685
7686
7687 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7688 PyObject *resultobj;
7689 int arg1 ;
7690 int arg2 ;
7691 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7692 wxString const &arg4_defvalue = wxPyEmptyString ;
7693 wxString *arg4 = (wxString *) &arg4_defvalue ;
7694 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7695 wxFont *result;
7696 bool temp4 = False ;
7697 PyObject * obj0 = 0 ;
7698 PyObject * obj1 = 0 ;
7699 PyObject * obj2 = 0 ;
7700 PyObject * obj3 = 0 ;
7701 PyObject * obj4 = 0 ;
7702 char *kwnames[] = {
7703 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7704 };
7705
7706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7707 arg1 = (int) SWIG_AsInt(obj0);
7708 if (PyErr_Occurred()) SWIG_fail;
7709 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7710 if (PyErr_Occurred()) SWIG_fail;
7711 if (obj2) {
7712 arg3 = (int) SWIG_AsInt(obj2);
7713 if (PyErr_Occurred()) SWIG_fail;
7714 }
7715 if (obj3) {
7716 {
7717 arg4 = wxString_in_helper(obj3);
7718 if (arg4 == NULL) SWIG_fail;
7719 temp4 = True;
7720 }
7721 }
7722 if (obj4) {
7723 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7724 if (PyErr_Occurred()) SWIG_fail;
7725 }
7726 {
7727 if (!wxPyCheckForApp()) SWIG_fail;
7728 PyThreadState* __tstate = wxPyBeginAllowThreads();
7729 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7730
7731 wxPyEndAllowThreads(__tstate);
7732 if (PyErr_Occurred()) SWIG_fail;
7733 }
7734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7735 {
7736 if (temp4)
7737 delete arg4;
7738 }
7739 return resultobj;
7740 fail:
7741 {
7742 if (temp4)
7743 delete arg4;
7744 }
7745 return NULL;
7746 }
7747
7748
7749 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7750 PyObject *resultobj;
7751 wxFont *arg1 = (wxFont *) 0 ;
7752 bool result;
7753 PyObject * obj0 = 0 ;
7754 char *kwnames[] = {
7755 (char *) "self", NULL
7756 };
7757
7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7761 {
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 result = (bool)((wxFont const *)arg1)->Ok();
7764
7765 wxPyEndAllowThreads(__tstate);
7766 if (PyErr_Occurred()) SWIG_fail;
7767 }
7768 {
7769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7770 }
7771 return resultobj;
7772 fail:
7773 return NULL;
7774 }
7775
7776
7777 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7778 PyObject *resultobj;
7779 wxFont *arg1 = (wxFont *) 0 ;
7780 wxFont *arg2 = (wxFont *) 0 ;
7781 bool result;
7782 PyObject * obj0 = 0 ;
7783 PyObject * obj1 = 0 ;
7784 char *kwnames[] = {
7785 (char *) "self",(char *) "other", NULL
7786 };
7787
7788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7791 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7793 {
7794 PyThreadState* __tstate = wxPyBeginAllowThreads();
7795 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7796
7797 wxPyEndAllowThreads(__tstate);
7798 if (PyErr_Occurred()) SWIG_fail;
7799 }
7800 {
7801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7802 }
7803 return resultobj;
7804 fail:
7805 return NULL;
7806 }
7807
7808
7809 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7810 PyObject *resultobj;
7811 wxFont *arg1 = (wxFont *) 0 ;
7812 wxFont *arg2 = (wxFont *) 0 ;
7813 bool result;
7814 PyObject * obj0 = 0 ;
7815 PyObject * obj1 = 0 ;
7816 char *kwnames[] = {
7817 (char *) "self",(char *) "other", NULL
7818 };
7819
7820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7823 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7825 {
7826 PyThreadState* __tstate = wxPyBeginAllowThreads();
7827 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7828
7829 wxPyEndAllowThreads(__tstate);
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 {
7833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7834 }
7835 return resultobj;
7836 fail:
7837 return NULL;
7838 }
7839
7840
7841 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj;
7843 wxFont *arg1 = (wxFont *) 0 ;
7844 int result;
7845 PyObject * obj0 = 0 ;
7846 char *kwnames[] = {
7847 (char *) "self", NULL
7848 };
7849
7850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7853 {
7854 PyThreadState* __tstate = wxPyBeginAllowThreads();
7855 result = (int)((wxFont const *)arg1)->GetPointSize();
7856
7857 wxPyEndAllowThreads(__tstate);
7858 if (PyErr_Occurred()) SWIG_fail;
7859 }
7860 resultobj = SWIG_FromInt((int)result);
7861 return resultobj;
7862 fail:
7863 return NULL;
7864 }
7865
7866
7867 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7868 PyObject *resultobj;
7869 wxFont *arg1 = (wxFont *) 0 ;
7870 int result;
7871 PyObject * obj0 = 0 ;
7872 char *kwnames[] = {
7873 (char *) "self", NULL
7874 };
7875
7876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7879 {
7880 PyThreadState* __tstate = wxPyBeginAllowThreads();
7881 result = (int)((wxFont const *)arg1)->GetFamily();
7882
7883 wxPyEndAllowThreads(__tstate);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 resultobj = SWIG_FromInt((int)result);
7887 return resultobj;
7888 fail:
7889 return NULL;
7890 }
7891
7892
7893 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7894 PyObject *resultobj;
7895 wxFont *arg1 = (wxFont *) 0 ;
7896 int result;
7897 PyObject * obj0 = 0 ;
7898 char *kwnames[] = {
7899 (char *) "self", NULL
7900 };
7901
7902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7905 {
7906 PyThreadState* __tstate = wxPyBeginAllowThreads();
7907 result = (int)((wxFont const *)arg1)->GetStyle();
7908
7909 wxPyEndAllowThreads(__tstate);
7910 if (PyErr_Occurred()) SWIG_fail;
7911 }
7912 resultobj = SWIG_FromInt((int)result);
7913 return resultobj;
7914 fail:
7915 return NULL;
7916 }
7917
7918
7919 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7920 PyObject *resultobj;
7921 wxFont *arg1 = (wxFont *) 0 ;
7922 int result;
7923 PyObject * obj0 = 0 ;
7924 char *kwnames[] = {
7925 (char *) "self", NULL
7926 };
7927
7928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7931 {
7932 PyThreadState* __tstate = wxPyBeginAllowThreads();
7933 result = (int)((wxFont const *)arg1)->GetWeight();
7934
7935 wxPyEndAllowThreads(__tstate);
7936 if (PyErr_Occurred()) SWIG_fail;
7937 }
7938 resultobj = SWIG_FromInt((int)result);
7939 return resultobj;
7940 fail:
7941 return NULL;
7942 }
7943
7944
7945 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7946 PyObject *resultobj;
7947 wxFont *arg1 = (wxFont *) 0 ;
7948 bool result;
7949 PyObject * obj0 = 0 ;
7950 char *kwnames[] = {
7951 (char *) "self", NULL
7952 };
7953
7954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7957 {
7958 PyThreadState* __tstate = wxPyBeginAllowThreads();
7959 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7960
7961 wxPyEndAllowThreads(__tstate);
7962 if (PyErr_Occurred()) SWIG_fail;
7963 }
7964 {
7965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7966 }
7967 return resultobj;
7968 fail:
7969 return NULL;
7970 }
7971
7972
7973 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7974 PyObject *resultobj;
7975 wxFont *arg1 = (wxFont *) 0 ;
7976 wxString result;
7977 PyObject * obj0 = 0 ;
7978 char *kwnames[] = {
7979 (char *) "self", NULL
7980 };
7981
7982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = ((wxFont const *)arg1)->GetFaceName();
7988
7989 wxPyEndAllowThreads(__tstate);
7990 if (PyErr_Occurred()) SWIG_fail;
7991 }
7992 {
7993 #if wxUSE_UNICODE
7994 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7995 #else
7996 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7997 #endif
7998 }
7999 return resultobj;
8000 fail:
8001 return NULL;
8002 }
8003
8004
8005 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8006 PyObject *resultobj;
8007 wxFont *arg1 = (wxFont *) 0 ;
8008 int result;
8009 PyObject * obj0 = 0 ;
8010 char *kwnames[] = {
8011 (char *) "self", NULL
8012 };
8013
8014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8017 {
8018 PyThreadState* __tstate = wxPyBeginAllowThreads();
8019 result = (int)((wxFont const *)arg1)->GetEncoding();
8020
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 resultobj = SWIG_FromInt((int)result);
8025 return resultobj;
8026 fail:
8027 return NULL;
8028 }
8029
8030
8031 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8032 PyObject *resultobj;
8033 wxFont *arg1 = (wxFont *) 0 ;
8034 wxNativeFontInfo *result;
8035 PyObject * obj0 = 0 ;
8036 char *kwnames[] = {
8037 (char *) "self", NULL
8038 };
8039
8040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8043 {
8044 PyThreadState* __tstate = wxPyBeginAllowThreads();
8045 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8046
8047 wxPyEndAllowThreads(__tstate);
8048 if (PyErr_Occurred()) SWIG_fail;
8049 }
8050 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8051 return resultobj;
8052 fail:
8053 return NULL;
8054 }
8055
8056
8057 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8058 PyObject *resultobj;
8059 wxFont *arg1 = (wxFont *) 0 ;
8060 bool result;
8061 PyObject * obj0 = 0 ;
8062 char *kwnames[] = {
8063 (char *) "self", NULL
8064 };
8065
8066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8069 {
8070 PyThreadState* __tstate = wxPyBeginAllowThreads();
8071 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8072
8073 wxPyEndAllowThreads(__tstate);
8074 if (PyErr_Occurred()) SWIG_fail;
8075 }
8076 {
8077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8078 }
8079 return resultobj;
8080 fail:
8081 return NULL;
8082 }
8083
8084
8085 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8086 PyObject *resultobj;
8087 wxFont *arg1 = (wxFont *) 0 ;
8088 wxString result;
8089 PyObject * obj0 = 0 ;
8090 char *kwnames[] = {
8091 (char *) "self", NULL
8092 };
8093
8094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8097 {
8098 PyThreadState* __tstate = wxPyBeginAllowThreads();
8099 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8100
8101 wxPyEndAllowThreads(__tstate);
8102 if (PyErr_Occurred()) SWIG_fail;
8103 }
8104 {
8105 #if wxUSE_UNICODE
8106 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8107 #else
8108 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8109 #endif
8110 }
8111 return resultobj;
8112 fail:
8113 return NULL;
8114 }
8115
8116
8117 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8118 PyObject *resultobj;
8119 wxFont *arg1 = (wxFont *) 0 ;
8120 wxString result;
8121 PyObject * obj0 = 0 ;
8122 char *kwnames[] = {
8123 (char *) "self", NULL
8124 };
8125
8126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8129 {
8130 PyThreadState* __tstate = wxPyBeginAllowThreads();
8131 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8132
8133 wxPyEndAllowThreads(__tstate);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 }
8136 {
8137 #if wxUSE_UNICODE
8138 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8139 #else
8140 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8141 #endif
8142 }
8143 return resultobj;
8144 fail:
8145 return NULL;
8146 }
8147
8148
8149 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8150 PyObject *resultobj;
8151 wxFont *arg1 = (wxFont *) 0 ;
8152 int arg2 ;
8153 PyObject * obj0 = 0 ;
8154 PyObject * obj1 = 0 ;
8155 char *kwnames[] = {
8156 (char *) "self",(char *) "pointSize", NULL
8157 };
8158
8159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8162 arg2 = (int) SWIG_AsInt(obj1);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 {
8165 PyThreadState* __tstate = wxPyBeginAllowThreads();
8166 (arg1)->SetPointSize(arg2);
8167
8168 wxPyEndAllowThreads(__tstate);
8169 if (PyErr_Occurred()) SWIG_fail;
8170 }
8171 Py_INCREF(Py_None); resultobj = Py_None;
8172 return resultobj;
8173 fail:
8174 return NULL;
8175 }
8176
8177
8178 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8179 PyObject *resultobj;
8180 wxFont *arg1 = (wxFont *) 0 ;
8181 int arg2 ;
8182 PyObject * obj0 = 0 ;
8183 PyObject * obj1 = 0 ;
8184 char *kwnames[] = {
8185 (char *) "self",(char *) "family", NULL
8186 };
8187
8188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8191 arg2 = (int) SWIG_AsInt(obj1);
8192 if (PyErr_Occurred()) SWIG_fail;
8193 {
8194 PyThreadState* __tstate = wxPyBeginAllowThreads();
8195 (arg1)->SetFamily(arg2);
8196
8197 wxPyEndAllowThreads(__tstate);
8198 if (PyErr_Occurred()) SWIG_fail;
8199 }
8200 Py_INCREF(Py_None); resultobj = Py_None;
8201 return resultobj;
8202 fail:
8203 return NULL;
8204 }
8205
8206
8207 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8208 PyObject *resultobj;
8209 wxFont *arg1 = (wxFont *) 0 ;
8210 int arg2 ;
8211 PyObject * obj0 = 0 ;
8212 PyObject * obj1 = 0 ;
8213 char *kwnames[] = {
8214 (char *) "self",(char *) "style", NULL
8215 };
8216
8217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8220 arg2 = (int) SWIG_AsInt(obj1);
8221 if (PyErr_Occurred()) SWIG_fail;
8222 {
8223 PyThreadState* __tstate = wxPyBeginAllowThreads();
8224 (arg1)->SetStyle(arg2);
8225
8226 wxPyEndAllowThreads(__tstate);
8227 if (PyErr_Occurred()) SWIG_fail;
8228 }
8229 Py_INCREF(Py_None); resultobj = Py_None;
8230 return resultobj;
8231 fail:
8232 return NULL;
8233 }
8234
8235
8236 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8237 PyObject *resultobj;
8238 wxFont *arg1 = (wxFont *) 0 ;
8239 int arg2 ;
8240 PyObject * obj0 = 0 ;
8241 PyObject * obj1 = 0 ;
8242 char *kwnames[] = {
8243 (char *) "self",(char *) "weight", NULL
8244 };
8245
8246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8249 arg2 = (int) SWIG_AsInt(obj1);
8250 if (PyErr_Occurred()) SWIG_fail;
8251 {
8252 PyThreadState* __tstate = wxPyBeginAllowThreads();
8253 (arg1)->SetWeight(arg2);
8254
8255 wxPyEndAllowThreads(__tstate);
8256 if (PyErr_Occurred()) SWIG_fail;
8257 }
8258 Py_INCREF(Py_None); resultobj = Py_None;
8259 return resultobj;
8260 fail:
8261 return NULL;
8262 }
8263
8264
8265 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8266 PyObject *resultobj;
8267 wxFont *arg1 = (wxFont *) 0 ;
8268 wxString *arg2 = 0 ;
8269 bool temp2 = False ;
8270 PyObject * obj0 = 0 ;
8271 PyObject * obj1 = 0 ;
8272 char *kwnames[] = {
8273 (char *) "self",(char *) "faceName", NULL
8274 };
8275
8276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8279 {
8280 arg2 = wxString_in_helper(obj1);
8281 if (arg2 == NULL) SWIG_fail;
8282 temp2 = True;
8283 }
8284 {
8285 PyThreadState* __tstate = wxPyBeginAllowThreads();
8286 (arg1)->SetFaceName((wxString const &)*arg2);
8287
8288 wxPyEndAllowThreads(__tstate);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 Py_INCREF(Py_None); resultobj = Py_None;
8292 {
8293 if (temp2)
8294 delete arg2;
8295 }
8296 return resultobj;
8297 fail:
8298 {
8299 if (temp2)
8300 delete arg2;
8301 }
8302 return NULL;
8303 }
8304
8305
8306 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8307 PyObject *resultobj;
8308 wxFont *arg1 = (wxFont *) 0 ;
8309 bool arg2 ;
8310 PyObject * obj0 = 0 ;
8311 PyObject * obj1 = 0 ;
8312 char *kwnames[] = {
8313 (char *) "self",(char *) "underlined", NULL
8314 };
8315
8316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8319 arg2 = (bool) SWIG_AsBool(obj1);
8320 if (PyErr_Occurred()) SWIG_fail;
8321 {
8322 PyThreadState* __tstate = wxPyBeginAllowThreads();
8323 (arg1)->SetUnderlined(arg2);
8324
8325 wxPyEndAllowThreads(__tstate);
8326 if (PyErr_Occurred()) SWIG_fail;
8327 }
8328 Py_INCREF(Py_None); resultobj = Py_None;
8329 return resultobj;
8330 fail:
8331 return NULL;
8332 }
8333
8334
8335 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8336 PyObject *resultobj;
8337 wxFont *arg1 = (wxFont *) 0 ;
8338 int arg2 ;
8339 PyObject * obj0 = 0 ;
8340 PyObject * obj1 = 0 ;
8341 char *kwnames[] = {
8342 (char *) "self",(char *) "encoding", NULL
8343 };
8344
8345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8348 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8349 if (PyErr_Occurred()) SWIG_fail;
8350 {
8351 PyThreadState* __tstate = wxPyBeginAllowThreads();
8352 (arg1)->SetEncoding((wxFontEncoding )arg2);
8353
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 Py_INCREF(Py_None); resultobj = Py_None;
8358 return resultobj;
8359 fail:
8360 return NULL;
8361 }
8362
8363
8364 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8365 PyObject *resultobj;
8366 wxFont *arg1 = (wxFont *) 0 ;
8367 wxNativeFontInfo *arg2 = 0 ;
8368 PyObject * obj0 = 0 ;
8369 PyObject * obj1 = 0 ;
8370 char *kwnames[] = {
8371 (char *) "self",(char *) "info", NULL
8372 };
8373
8374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8378 SWIG_POINTER_EXCEPTION | 0)) == -1)
8379 SWIG_fail;
8380 if (arg2 == NULL) {
8381 PyErr_SetString(PyExc_TypeError,"null reference");
8382 SWIG_fail;
8383 }
8384 {
8385 PyThreadState* __tstate = wxPyBeginAllowThreads();
8386 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8387
8388 wxPyEndAllowThreads(__tstate);
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 Py_INCREF(Py_None); resultobj = Py_None;
8392 return resultobj;
8393 fail:
8394 return NULL;
8395 }
8396
8397
8398 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8399 PyObject *resultobj;
8400 wxFont *arg1 = (wxFont *) 0 ;
8401 wxString *arg2 = 0 ;
8402 bool temp2 = False ;
8403 PyObject * obj0 = 0 ;
8404 PyObject * obj1 = 0 ;
8405 char *kwnames[] = {
8406 (char *) "self",(char *) "info", NULL
8407 };
8408
8409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8412 {
8413 arg2 = wxString_in_helper(obj1);
8414 if (arg2 == NULL) SWIG_fail;
8415 temp2 = True;
8416 }
8417 {
8418 PyThreadState* __tstate = wxPyBeginAllowThreads();
8419 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8420
8421 wxPyEndAllowThreads(__tstate);
8422 if (PyErr_Occurred()) SWIG_fail;
8423 }
8424 Py_INCREF(Py_None); resultobj = Py_None;
8425 {
8426 if (temp2)
8427 delete arg2;
8428 }
8429 return resultobj;
8430 fail:
8431 {
8432 if (temp2)
8433 delete arg2;
8434 }
8435 return NULL;
8436 }
8437
8438
8439 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8440 PyObject *resultobj;
8441 wxFont *arg1 = (wxFont *) 0 ;
8442 wxString *arg2 = 0 ;
8443 bool temp2 = False ;
8444 PyObject * obj0 = 0 ;
8445 PyObject * obj1 = 0 ;
8446 char *kwnames[] = {
8447 (char *) "self",(char *) "info", NULL
8448 };
8449
8450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8453 {
8454 arg2 = wxString_in_helper(obj1);
8455 if (arg2 == NULL) SWIG_fail;
8456 temp2 = True;
8457 }
8458 {
8459 PyThreadState* __tstate = wxPyBeginAllowThreads();
8460 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8461
8462 wxPyEndAllowThreads(__tstate);
8463 if (PyErr_Occurred()) SWIG_fail;
8464 }
8465 Py_INCREF(Py_None); resultobj = Py_None;
8466 {
8467 if (temp2)
8468 delete arg2;
8469 }
8470 return resultobj;
8471 fail:
8472 {
8473 if (temp2)
8474 delete arg2;
8475 }
8476 return NULL;
8477 }
8478
8479
8480 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8481 PyObject *resultobj;
8482 wxFont *arg1 = (wxFont *) 0 ;
8483 wxString result;
8484 PyObject * obj0 = 0 ;
8485 char *kwnames[] = {
8486 (char *) "self", NULL
8487 };
8488
8489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8492 {
8493 PyThreadState* __tstate = wxPyBeginAllowThreads();
8494 result = ((wxFont const *)arg1)->GetFamilyString();
8495
8496 wxPyEndAllowThreads(__tstate);
8497 if (PyErr_Occurred()) SWIG_fail;
8498 }
8499 {
8500 #if wxUSE_UNICODE
8501 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8502 #else
8503 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8504 #endif
8505 }
8506 return resultobj;
8507 fail:
8508 return NULL;
8509 }
8510
8511
8512 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8513 PyObject *resultobj;
8514 wxFont *arg1 = (wxFont *) 0 ;
8515 wxString result;
8516 PyObject * obj0 = 0 ;
8517 char *kwnames[] = {
8518 (char *) "self", NULL
8519 };
8520
8521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8524 {
8525 PyThreadState* __tstate = wxPyBeginAllowThreads();
8526 result = ((wxFont const *)arg1)->GetStyleString();
8527
8528 wxPyEndAllowThreads(__tstate);
8529 if (PyErr_Occurred()) SWIG_fail;
8530 }
8531 {
8532 #if wxUSE_UNICODE
8533 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8534 #else
8535 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8536 #endif
8537 }
8538 return resultobj;
8539 fail:
8540 return NULL;
8541 }
8542
8543
8544 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8545 PyObject *resultobj;
8546 wxFont *arg1 = (wxFont *) 0 ;
8547 wxString result;
8548 PyObject * obj0 = 0 ;
8549 char *kwnames[] = {
8550 (char *) "self", NULL
8551 };
8552
8553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8556 {
8557 PyThreadState* __tstate = wxPyBeginAllowThreads();
8558 result = ((wxFont const *)arg1)->GetWeightString();
8559
8560 wxPyEndAllowThreads(__tstate);
8561 if (PyErr_Occurred()) SWIG_fail;
8562 }
8563 {
8564 #if wxUSE_UNICODE
8565 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8566 #else
8567 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8568 #endif
8569 }
8570 return resultobj;
8571 fail:
8572 return NULL;
8573 }
8574
8575
8576 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8577 PyObject *resultobj;
8578 wxFont *arg1 = (wxFont *) 0 ;
8579 bool arg2 = (bool) True ;
8580 PyObject * obj0 = 0 ;
8581 PyObject * obj1 = 0 ;
8582 char *kwnames[] = {
8583 (char *) "self",(char *) "no", NULL
8584 };
8585
8586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8589 if (obj1) {
8590 arg2 = (bool) SWIG_AsBool(obj1);
8591 if (PyErr_Occurred()) SWIG_fail;
8592 }
8593 {
8594 PyThreadState* __tstate = wxPyBeginAllowThreads();
8595 (arg1)->SetNoAntiAliasing(arg2);
8596
8597 wxPyEndAllowThreads(__tstate);
8598 if (PyErr_Occurred()) SWIG_fail;
8599 }
8600 Py_INCREF(Py_None); resultobj = Py_None;
8601 return resultobj;
8602 fail:
8603 return NULL;
8604 }
8605
8606
8607 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8608 PyObject *resultobj;
8609 wxFont *arg1 = (wxFont *) 0 ;
8610 bool result;
8611 PyObject * obj0 = 0 ;
8612 char *kwnames[] = {
8613 (char *) "self", NULL
8614 };
8615
8616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8619 {
8620 PyThreadState* __tstate = wxPyBeginAllowThreads();
8621 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
8622
8623 wxPyEndAllowThreads(__tstate);
8624 if (PyErr_Occurred()) SWIG_fail;
8625 }
8626 {
8627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8628 }
8629 return resultobj;
8630 fail:
8631 return NULL;
8632 }
8633
8634
8635 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8636 PyObject *resultobj;
8637 int result;
8638 char *kwnames[] = {
8639 NULL
8640 };
8641
8642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8643 {
8644 if (!wxPyCheckForApp()) SWIG_fail;
8645 PyThreadState* __tstate = wxPyBeginAllowThreads();
8646 result = (int)wxFont::GetDefaultEncoding();
8647
8648 wxPyEndAllowThreads(__tstate);
8649 if (PyErr_Occurred()) SWIG_fail;
8650 }
8651 resultobj = SWIG_FromInt((int)result);
8652 return resultobj;
8653 fail:
8654 return NULL;
8655 }
8656
8657
8658 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8659 PyObject *resultobj;
8660 int arg1 ;
8661 PyObject * obj0 = 0 ;
8662 char *kwnames[] = {
8663 (char *) "encoding", NULL
8664 };
8665
8666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8667 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8668 if (PyErr_Occurred()) SWIG_fail;
8669 {
8670 if (!wxPyCheckForApp()) SWIG_fail;
8671 PyThreadState* __tstate = wxPyBeginAllowThreads();
8672 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8673
8674 wxPyEndAllowThreads(__tstate);
8675 if (PyErr_Occurred()) SWIG_fail;
8676 }
8677 Py_INCREF(Py_None); resultobj = Py_None;
8678 return resultobj;
8679 fail:
8680 return NULL;
8681 }
8682
8683
8684 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8685 PyObject *obj;
8686 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8687 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8688 Py_INCREF(obj);
8689 return Py_BuildValue((char *)"");
8690 }
8691 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8692 PyObject *resultobj;
8693 wxPyFontEnumerator *result;
8694 char *kwnames[] = {
8695 NULL
8696 };
8697
8698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8699 {
8700 if (!wxPyCheckForApp()) SWIG_fail;
8701 PyThreadState* __tstate = wxPyBeginAllowThreads();
8702 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8703
8704 wxPyEndAllowThreads(__tstate);
8705 if (PyErr_Occurred()) SWIG_fail;
8706 }
8707 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8708 return resultobj;
8709 fail:
8710 return NULL;
8711 }
8712
8713
8714 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8715 PyObject *resultobj;
8716 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8717 PyObject * obj0 = 0 ;
8718 char *kwnames[] = {
8719 (char *) "self", NULL
8720 };
8721
8722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8725 {
8726 PyThreadState* __tstate = wxPyBeginAllowThreads();
8727 delete arg1;
8728
8729 wxPyEndAllowThreads(__tstate);
8730 if (PyErr_Occurred()) SWIG_fail;
8731 }
8732 Py_INCREF(Py_None); resultobj = Py_None;
8733 return resultobj;
8734 fail:
8735 return NULL;
8736 }
8737
8738
8739 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8740 PyObject *resultobj;
8741 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8742 PyObject *arg2 = (PyObject *) 0 ;
8743 PyObject *arg3 = (PyObject *) 0 ;
8744 bool arg4 ;
8745 PyObject * obj0 = 0 ;
8746 PyObject * obj1 = 0 ;
8747 PyObject * obj2 = 0 ;
8748 PyObject * obj3 = 0 ;
8749 char *kwnames[] = {
8750 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8751 };
8752
8753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8756 arg2 = obj1;
8757 arg3 = obj2;
8758 arg4 = (bool) SWIG_AsBool(obj3);
8759 if (PyErr_Occurred()) SWIG_fail;
8760 {
8761 PyThreadState* __tstate = wxPyBeginAllowThreads();
8762 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8763
8764 wxPyEndAllowThreads(__tstate);
8765 if (PyErr_Occurred()) SWIG_fail;
8766 }
8767 Py_INCREF(Py_None); resultobj = Py_None;
8768 return resultobj;
8769 fail:
8770 return NULL;
8771 }
8772
8773
8774 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8775 PyObject *resultobj;
8776 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8777 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8778 bool arg3 = (bool) False ;
8779 bool result;
8780 PyObject * obj0 = 0 ;
8781 PyObject * obj1 = 0 ;
8782 PyObject * obj2 = 0 ;
8783 char *kwnames[] = {
8784 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8785 };
8786
8787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8790 if (obj1) {
8791 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 if (obj2) {
8795 arg3 = (bool) SWIG_AsBool(obj2);
8796 if (PyErr_Occurred()) SWIG_fail;
8797 }
8798 {
8799 PyThreadState* __tstate = wxPyBeginAllowThreads();
8800 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8801
8802 wxPyEndAllowThreads(__tstate);
8803 if (PyErr_Occurred()) SWIG_fail;
8804 }
8805 {
8806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8807 }
8808 return resultobj;
8809 fail:
8810 return NULL;
8811 }
8812
8813
8814 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8815 PyObject *resultobj;
8816 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8817 wxString const &arg2_defvalue = wxPyEmptyString ;
8818 wxString *arg2 = (wxString *) &arg2_defvalue ;
8819 bool result;
8820 bool temp2 = False ;
8821 PyObject * obj0 = 0 ;
8822 PyObject * obj1 = 0 ;
8823 char *kwnames[] = {
8824 (char *) "self",(char *) "facename", NULL
8825 };
8826
8827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8830 if (obj1) {
8831 {
8832 arg2 = wxString_in_helper(obj1);
8833 if (arg2 == NULL) SWIG_fail;
8834 temp2 = True;
8835 }
8836 }
8837 {
8838 PyThreadState* __tstate = wxPyBeginAllowThreads();
8839 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8840
8841 wxPyEndAllowThreads(__tstate);
8842 if (PyErr_Occurred()) SWIG_fail;
8843 }
8844 {
8845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8846 }
8847 {
8848 if (temp2)
8849 delete arg2;
8850 }
8851 return resultobj;
8852 fail:
8853 {
8854 if (temp2)
8855 delete arg2;
8856 }
8857 return NULL;
8858 }
8859
8860
8861 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8862 PyObject *resultobj;
8863 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8864 PyObject *result;
8865 PyObject * obj0 = 0 ;
8866 char *kwnames[] = {
8867 (char *) "self", NULL
8868 };
8869
8870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8873 {
8874 PyThreadState* __tstate = wxPyBeginAllowThreads();
8875 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8876
8877 wxPyEndAllowThreads(__tstate);
8878 if (PyErr_Occurred()) SWIG_fail;
8879 }
8880 resultobj = result;
8881 return resultobj;
8882 fail:
8883 return NULL;
8884 }
8885
8886
8887 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8888 PyObject *resultobj;
8889 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8890 PyObject *result;
8891 PyObject * obj0 = 0 ;
8892 char *kwnames[] = {
8893 (char *) "self", NULL
8894 };
8895
8896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8899 {
8900 PyThreadState* __tstate = wxPyBeginAllowThreads();
8901 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8902
8903 wxPyEndAllowThreads(__tstate);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 resultobj = result;
8907 return resultobj;
8908 fail:
8909 return NULL;
8910 }
8911
8912
8913 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8914 PyObject *obj;
8915 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8916 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8917 Py_INCREF(obj);
8918 return Py_BuildValue((char *)"");
8919 }
8920 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8921 PyObject *resultobj;
8922 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8923 int arg2 ;
8924 PyObject * obj0 = 0 ;
8925 PyObject * obj1 = 0 ;
8926 char *kwnames[] = {
8927 (char *) "self",(char *) "Language", NULL
8928 };
8929
8930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8933 arg2 = (int) SWIG_AsInt(obj1);
8934 if (PyErr_Occurred()) SWIG_fail;
8935 if (arg1) (arg1)->Language = arg2;
8936
8937 Py_INCREF(Py_None); resultobj = Py_None;
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj;
8946 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8947 int result;
8948 PyObject * obj0 = 0 ;
8949 char *kwnames[] = {
8950 (char *) "self", NULL
8951 };
8952
8953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8956 result = (int) ((arg1)->Language);
8957
8958 resultobj = SWIG_FromInt((int)result);
8959 return resultobj;
8960 fail:
8961 return NULL;
8962 }
8963
8964
8965 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8966 PyObject *resultobj;
8967 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8968 wxString *arg2 = (wxString *) 0 ;
8969 bool temp2 = False ;
8970 PyObject * obj0 = 0 ;
8971 PyObject * obj1 = 0 ;
8972 char *kwnames[] = {
8973 (char *) "self",(char *) "CanonicalName", NULL
8974 };
8975
8976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8979 {
8980 arg2 = wxString_in_helper(obj1);
8981 if (arg2 == NULL) SWIG_fail;
8982 temp2 = True;
8983 }
8984 if (arg1) (arg1)->CanonicalName = *arg2;
8985
8986 Py_INCREF(Py_None); resultobj = Py_None;
8987 {
8988 if (temp2)
8989 delete arg2;
8990 }
8991 return resultobj;
8992 fail:
8993 {
8994 if (temp2)
8995 delete arg2;
8996 }
8997 return NULL;
8998 }
8999
9000
9001 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9002 PyObject *resultobj;
9003 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9004 wxString *result;
9005 PyObject * obj0 = 0 ;
9006 char *kwnames[] = {
9007 (char *) "self", NULL
9008 };
9009
9010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9013 result = (wxString *)& ((arg1)->CanonicalName);
9014
9015 {
9016 #if wxUSE_UNICODE
9017 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9018 #else
9019 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9020 #endif
9021 }
9022 return resultobj;
9023 fail:
9024 return NULL;
9025 }
9026
9027
9028 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9029 PyObject *resultobj;
9030 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9031 wxString *arg2 = (wxString *) 0 ;
9032 bool temp2 = False ;
9033 PyObject * obj0 = 0 ;
9034 PyObject * obj1 = 0 ;
9035 char *kwnames[] = {
9036 (char *) "self",(char *) "Description", NULL
9037 };
9038
9039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9042 {
9043 arg2 = wxString_in_helper(obj1);
9044 if (arg2 == NULL) SWIG_fail;
9045 temp2 = True;
9046 }
9047 if (arg1) (arg1)->Description = *arg2;
9048
9049 Py_INCREF(Py_None); resultobj = Py_None;
9050 {
9051 if (temp2)
9052 delete arg2;
9053 }
9054 return resultobj;
9055 fail:
9056 {
9057 if (temp2)
9058 delete arg2;
9059 }
9060 return NULL;
9061 }
9062
9063
9064 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9065 PyObject *resultobj;
9066 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9067 wxString *result;
9068 PyObject * obj0 = 0 ;
9069 char *kwnames[] = {
9070 (char *) "self", NULL
9071 };
9072
9073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9076 result = (wxString *)& ((arg1)->Description);
9077
9078 {
9079 #if wxUSE_UNICODE
9080 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9081 #else
9082 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9083 #endif
9084 }
9085 return resultobj;
9086 fail:
9087 return NULL;
9088 }
9089
9090
9091 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9092 PyObject *obj;
9093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9094 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9095 Py_INCREF(obj);
9096 return Py_BuildValue((char *)"");
9097 }
9098 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9099 PyObject *resultobj;
9100 int arg1 = (int) -1 ;
9101 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9102 wxLocale *result;
9103 PyObject * obj0 = 0 ;
9104 PyObject * obj1 = 0 ;
9105 char *kwnames[] = {
9106 (char *) "language",(char *) "flags", NULL
9107 };
9108
9109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9110 if (obj0) {
9111 arg1 = (int) SWIG_AsInt(obj0);
9112 if (PyErr_Occurred()) SWIG_fail;
9113 }
9114 if (obj1) {
9115 arg2 = (int) SWIG_AsInt(obj1);
9116 if (PyErr_Occurred()) SWIG_fail;
9117 }
9118 {
9119 PyThreadState* __tstate = wxPyBeginAllowThreads();
9120 result = (wxLocale *)new_wxLocale(arg1,arg2);
9121
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 }
9125 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9126 return resultobj;
9127 fail:
9128 return NULL;
9129 }
9130
9131
9132 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9133 PyObject *resultobj;
9134 wxLocale *arg1 = (wxLocale *) 0 ;
9135 PyObject * obj0 = 0 ;
9136 char *kwnames[] = {
9137 (char *) "self", NULL
9138 };
9139
9140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9143 {
9144 PyThreadState* __tstate = wxPyBeginAllowThreads();
9145 delete arg1;
9146
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 Py_INCREF(Py_None); resultobj = Py_None;
9151 return resultobj;
9152 fail:
9153 return NULL;
9154 }
9155
9156
9157 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9158 PyObject *resultobj;
9159 wxLocale *arg1 = (wxLocale *) 0 ;
9160 wxString *arg2 = 0 ;
9161 wxString const &arg3_defvalue = wxPyEmptyString ;
9162 wxString *arg3 = (wxString *) &arg3_defvalue ;
9163 wxString const &arg4_defvalue = wxPyEmptyString ;
9164 wxString *arg4 = (wxString *) &arg4_defvalue ;
9165 bool arg5 = (bool) True ;
9166 bool arg6 = (bool) False ;
9167 bool result;
9168 bool temp2 = False ;
9169 bool temp3 = False ;
9170 bool temp4 = False ;
9171 PyObject * obj0 = 0 ;
9172 PyObject * obj1 = 0 ;
9173 PyObject * obj2 = 0 ;
9174 PyObject * obj3 = 0 ;
9175 PyObject * obj4 = 0 ;
9176 PyObject * obj5 = 0 ;
9177 char *kwnames[] = {
9178 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9179 };
9180
9181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9184 {
9185 arg2 = wxString_in_helper(obj1);
9186 if (arg2 == NULL) SWIG_fail;
9187 temp2 = True;
9188 }
9189 if (obj2) {
9190 {
9191 arg3 = wxString_in_helper(obj2);
9192 if (arg3 == NULL) SWIG_fail;
9193 temp3 = True;
9194 }
9195 }
9196 if (obj3) {
9197 {
9198 arg4 = wxString_in_helper(obj3);
9199 if (arg4 == NULL) SWIG_fail;
9200 temp4 = True;
9201 }
9202 }
9203 if (obj4) {
9204 arg5 = (bool) SWIG_AsBool(obj4);
9205 if (PyErr_Occurred()) SWIG_fail;
9206 }
9207 if (obj5) {
9208 arg6 = (bool) SWIG_AsBool(obj5);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 {
9212 PyThreadState* __tstate = wxPyBeginAllowThreads();
9213 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9214
9215 wxPyEndAllowThreads(__tstate);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 {
9219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9220 }
9221 {
9222 if (temp2)
9223 delete arg2;
9224 }
9225 {
9226 if (temp3)
9227 delete arg3;
9228 }
9229 {
9230 if (temp4)
9231 delete arg4;
9232 }
9233 return resultobj;
9234 fail:
9235 {
9236 if (temp2)
9237 delete arg2;
9238 }
9239 {
9240 if (temp3)
9241 delete arg3;
9242 }
9243 {
9244 if (temp4)
9245 delete arg4;
9246 }
9247 return NULL;
9248 }
9249
9250
9251 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9252 PyObject *resultobj;
9253 wxLocale *arg1 = (wxLocale *) 0 ;
9254 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9255 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9256 bool result;
9257 PyObject * obj0 = 0 ;
9258 PyObject * obj1 = 0 ;
9259 PyObject * obj2 = 0 ;
9260 char *kwnames[] = {
9261 (char *) "self",(char *) "language",(char *) "flags", NULL
9262 };
9263
9264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9267 if (obj1) {
9268 arg2 = (int) SWIG_AsInt(obj1);
9269 if (PyErr_Occurred()) SWIG_fail;
9270 }
9271 if (obj2) {
9272 arg3 = (int) SWIG_AsInt(obj2);
9273 if (PyErr_Occurred()) SWIG_fail;
9274 }
9275 {
9276 PyThreadState* __tstate = wxPyBeginAllowThreads();
9277 result = (bool)(arg1)->Init(arg2,arg3);
9278
9279 wxPyEndAllowThreads(__tstate);
9280 if (PyErr_Occurred()) SWIG_fail;
9281 }
9282 {
9283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9284 }
9285 return resultobj;
9286 fail:
9287 return NULL;
9288 }
9289
9290
9291 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9292 PyObject *resultobj;
9293 int result;
9294 char *kwnames[] = {
9295 NULL
9296 };
9297
9298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9299 {
9300 PyThreadState* __tstate = wxPyBeginAllowThreads();
9301 result = (int)wxLocale::GetSystemLanguage();
9302
9303 wxPyEndAllowThreads(__tstate);
9304 if (PyErr_Occurred()) SWIG_fail;
9305 }
9306 resultobj = SWIG_FromInt((int)result);
9307 return resultobj;
9308 fail:
9309 return NULL;
9310 }
9311
9312
9313 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9314 PyObject *resultobj;
9315 int result;
9316 char *kwnames[] = {
9317 NULL
9318 };
9319
9320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9321 {
9322 PyThreadState* __tstate = wxPyBeginAllowThreads();
9323 result = (int)wxLocale::GetSystemEncoding();
9324
9325 wxPyEndAllowThreads(__tstate);
9326 if (PyErr_Occurred()) SWIG_fail;
9327 }
9328 resultobj = SWIG_FromInt((int)result);
9329 return resultobj;
9330 fail:
9331 return NULL;
9332 }
9333
9334
9335 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9336 PyObject *resultobj;
9337 wxString result;
9338 char *kwnames[] = {
9339 NULL
9340 };
9341
9342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9343 {
9344 PyThreadState* __tstate = wxPyBeginAllowThreads();
9345 result = wxLocale::GetSystemEncodingName();
9346
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 {
9351 #if wxUSE_UNICODE
9352 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9353 #else
9354 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9355 #endif
9356 }
9357 return resultobj;
9358 fail:
9359 return NULL;
9360 }
9361
9362
9363 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9364 PyObject *resultobj;
9365 wxLocale *arg1 = (wxLocale *) 0 ;
9366 bool result;
9367 PyObject * obj0 = 0 ;
9368 char *kwnames[] = {
9369 (char *) "self", NULL
9370 };
9371
9372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9375 {
9376 PyThreadState* __tstate = wxPyBeginAllowThreads();
9377 result = (bool)((wxLocale const *)arg1)->IsOk();
9378
9379 wxPyEndAllowThreads(__tstate);
9380 if (PyErr_Occurred()) SWIG_fail;
9381 }
9382 {
9383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9384 }
9385 return resultobj;
9386 fail:
9387 return NULL;
9388 }
9389
9390
9391 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9392 PyObject *resultobj;
9393 wxLocale *arg1 = (wxLocale *) 0 ;
9394 wxString result;
9395 PyObject * obj0 = 0 ;
9396 char *kwnames[] = {
9397 (char *) "self", NULL
9398 };
9399
9400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9403 {
9404 PyThreadState* __tstate = wxPyBeginAllowThreads();
9405 result = ((wxLocale const *)arg1)->GetLocale();
9406
9407 wxPyEndAllowThreads(__tstate);
9408 if (PyErr_Occurred()) SWIG_fail;
9409 }
9410 {
9411 #if wxUSE_UNICODE
9412 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9413 #else
9414 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9415 #endif
9416 }
9417 return resultobj;
9418 fail:
9419 return NULL;
9420 }
9421
9422
9423 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9424 PyObject *resultobj;
9425 wxLocale *arg1 = (wxLocale *) 0 ;
9426 int result;
9427 PyObject * obj0 = 0 ;
9428 char *kwnames[] = {
9429 (char *) "self", NULL
9430 };
9431
9432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9435 {
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 result = (int)((wxLocale const *)arg1)->GetLanguage();
9438
9439 wxPyEndAllowThreads(__tstate);
9440 if (PyErr_Occurred()) SWIG_fail;
9441 }
9442 resultobj = SWIG_FromInt((int)result);
9443 return resultobj;
9444 fail:
9445 return NULL;
9446 }
9447
9448
9449 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9450 PyObject *resultobj;
9451 wxLocale *arg1 = (wxLocale *) 0 ;
9452 wxString result;
9453 PyObject * obj0 = 0 ;
9454 char *kwnames[] = {
9455 (char *) "self", NULL
9456 };
9457
9458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9461 {
9462 PyThreadState* __tstate = wxPyBeginAllowThreads();
9463 result = ((wxLocale const *)arg1)->GetSysName();
9464
9465 wxPyEndAllowThreads(__tstate);
9466 if (PyErr_Occurred()) SWIG_fail;
9467 }
9468 {
9469 #if wxUSE_UNICODE
9470 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9471 #else
9472 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9473 #endif
9474 }
9475 return resultobj;
9476 fail:
9477 return NULL;
9478 }
9479
9480
9481 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9482 PyObject *resultobj;
9483 wxLocale *arg1 = (wxLocale *) 0 ;
9484 wxString result;
9485 PyObject * obj0 = 0 ;
9486 char *kwnames[] = {
9487 (char *) "self", NULL
9488 };
9489
9490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9493 {
9494 PyThreadState* __tstate = wxPyBeginAllowThreads();
9495 result = ((wxLocale const *)arg1)->GetCanonicalName();
9496
9497 wxPyEndAllowThreads(__tstate);
9498 if (PyErr_Occurred()) SWIG_fail;
9499 }
9500 {
9501 #if wxUSE_UNICODE
9502 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9503 #else
9504 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9505 #endif
9506 }
9507 return resultobj;
9508 fail:
9509 return NULL;
9510 }
9511
9512
9513 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9514 PyObject *resultobj;
9515 wxString *arg1 = 0 ;
9516 bool temp1 = False ;
9517 PyObject * obj0 = 0 ;
9518 char *kwnames[] = {
9519 (char *) "prefix", NULL
9520 };
9521
9522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9523 {
9524 arg1 = wxString_in_helper(obj0);
9525 if (arg1 == NULL) SWIG_fail;
9526 temp1 = True;
9527 }
9528 {
9529 PyThreadState* __tstate = wxPyBeginAllowThreads();
9530 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9531
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 Py_INCREF(Py_None); resultobj = Py_None;
9536 {
9537 if (temp1)
9538 delete arg1;
9539 }
9540 return resultobj;
9541 fail:
9542 {
9543 if (temp1)
9544 delete arg1;
9545 }
9546 return NULL;
9547 }
9548
9549
9550 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9551 PyObject *resultobj;
9552 wxLocale *arg1 = (wxLocale *) 0 ;
9553 wxString *arg2 = 0 ;
9554 bool result;
9555 bool temp2 = False ;
9556 PyObject * obj0 = 0 ;
9557 PyObject * obj1 = 0 ;
9558 char *kwnames[] = {
9559 (char *) "self",(char *) "szDomain", NULL
9560 };
9561
9562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9565 {
9566 arg2 = wxString_in_helper(obj1);
9567 if (arg2 == NULL) SWIG_fail;
9568 temp2 = True;
9569 }
9570 {
9571 PyThreadState* __tstate = wxPyBeginAllowThreads();
9572 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9573
9574 wxPyEndAllowThreads(__tstate);
9575 if (PyErr_Occurred()) SWIG_fail;
9576 }
9577 {
9578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9579 }
9580 {
9581 if (temp2)
9582 delete arg2;
9583 }
9584 return resultobj;
9585 fail:
9586 {
9587 if (temp2)
9588 delete arg2;
9589 }
9590 return NULL;
9591 }
9592
9593
9594 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9595 PyObject *resultobj;
9596 wxLocale *arg1 = (wxLocale *) 0 ;
9597 wxString *arg2 = 0 ;
9598 bool result;
9599 bool temp2 = False ;
9600 PyObject * obj0 = 0 ;
9601 PyObject * obj1 = 0 ;
9602 char *kwnames[] = {
9603 (char *) "self",(char *) "szDomain", NULL
9604 };
9605
9606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9609 {
9610 arg2 = wxString_in_helper(obj1);
9611 if (arg2 == NULL) SWIG_fail;
9612 temp2 = True;
9613 }
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9617
9618 wxPyEndAllowThreads(__tstate);
9619 if (PyErr_Occurred()) SWIG_fail;
9620 }
9621 {
9622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9623 }
9624 {
9625 if (temp2)
9626 delete arg2;
9627 }
9628 return resultobj;
9629 fail:
9630 {
9631 if (temp2)
9632 delete arg2;
9633 }
9634 return NULL;
9635 }
9636
9637
9638 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9639 PyObject *resultobj;
9640 int arg1 ;
9641 wxLanguageInfo *result;
9642 PyObject * obj0 = 0 ;
9643 char *kwnames[] = {
9644 (char *) "lang", NULL
9645 };
9646
9647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9648 arg1 = (int) SWIG_AsInt(obj0);
9649 if (PyErr_Occurred()) SWIG_fail;
9650 {
9651 PyThreadState* __tstate = wxPyBeginAllowThreads();
9652 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9653
9654 wxPyEndAllowThreads(__tstate);
9655 if (PyErr_Occurred()) SWIG_fail;
9656 }
9657 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9658 return resultobj;
9659 fail:
9660 return NULL;
9661 }
9662
9663
9664 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9665 PyObject *resultobj;
9666 int arg1 ;
9667 wxString result;
9668 PyObject * obj0 = 0 ;
9669 char *kwnames[] = {
9670 (char *) "lang", NULL
9671 };
9672
9673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9674 arg1 = (int) SWIG_AsInt(obj0);
9675 if (PyErr_Occurred()) SWIG_fail;
9676 {
9677 PyThreadState* __tstate = wxPyBeginAllowThreads();
9678 result = wxLocale::GetLanguageName(arg1);
9679
9680 wxPyEndAllowThreads(__tstate);
9681 if (PyErr_Occurred()) SWIG_fail;
9682 }
9683 {
9684 #if wxUSE_UNICODE
9685 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9686 #else
9687 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9688 #endif
9689 }
9690 return resultobj;
9691 fail:
9692 return NULL;
9693 }
9694
9695
9696 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9697 PyObject *resultobj;
9698 wxString *arg1 = 0 ;
9699 wxLanguageInfo *result;
9700 bool temp1 = False ;
9701 PyObject * obj0 = 0 ;
9702 char *kwnames[] = {
9703 (char *) "locale", NULL
9704 };
9705
9706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9707 {
9708 arg1 = wxString_in_helper(obj0);
9709 if (arg1 == NULL) SWIG_fail;
9710 temp1 = True;
9711 }
9712 {
9713 PyThreadState* __tstate = wxPyBeginAllowThreads();
9714 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9715
9716 wxPyEndAllowThreads(__tstate);
9717 if (PyErr_Occurred()) SWIG_fail;
9718 }
9719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9720 {
9721 if (temp1)
9722 delete arg1;
9723 }
9724 return resultobj;
9725 fail:
9726 {
9727 if (temp1)
9728 delete arg1;
9729 }
9730 return NULL;
9731 }
9732
9733
9734 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9735 PyObject *resultobj;
9736 wxLanguageInfo *arg1 = 0 ;
9737 PyObject * obj0 = 0 ;
9738 char *kwnames[] = {
9739 (char *) "info", NULL
9740 };
9741
9742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9744 SWIG_POINTER_EXCEPTION | 0)) == -1)
9745 SWIG_fail;
9746 if (arg1 == NULL) {
9747 PyErr_SetString(PyExc_TypeError,"null reference");
9748 SWIG_fail;
9749 }
9750 {
9751 PyThreadState* __tstate = wxPyBeginAllowThreads();
9752 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9753
9754 wxPyEndAllowThreads(__tstate);
9755 if (PyErr_Occurred()) SWIG_fail;
9756 }
9757 Py_INCREF(Py_None); resultobj = Py_None;
9758 return resultobj;
9759 fail:
9760 return NULL;
9761 }
9762
9763
9764 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9765 PyObject *resultobj;
9766 wxLocale *arg1 = (wxLocale *) 0 ;
9767 wxString *arg2 = 0 ;
9768 wxString const &arg3_defvalue = wxPyEmptyString ;
9769 wxString *arg3 = (wxString *) &arg3_defvalue ;
9770 wxString result;
9771 bool temp2 = False ;
9772 bool temp3 = False ;
9773 PyObject * obj0 = 0 ;
9774 PyObject * obj1 = 0 ;
9775 PyObject * obj2 = 0 ;
9776 char *kwnames[] = {
9777 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9778 };
9779
9780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9783 {
9784 arg2 = wxString_in_helper(obj1);
9785 if (arg2 == NULL) SWIG_fail;
9786 temp2 = True;
9787 }
9788 if (obj2) {
9789 {
9790 arg3 = wxString_in_helper(obj2);
9791 if (arg3 == NULL) SWIG_fail;
9792 temp3 = True;
9793 }
9794 }
9795 {
9796 PyThreadState* __tstate = wxPyBeginAllowThreads();
9797 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9798
9799 wxPyEndAllowThreads(__tstate);
9800 if (PyErr_Occurred()) SWIG_fail;
9801 }
9802 {
9803 #if wxUSE_UNICODE
9804 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9805 #else
9806 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9807 #endif
9808 }
9809 {
9810 if (temp2)
9811 delete arg2;
9812 }
9813 {
9814 if (temp3)
9815 delete arg3;
9816 }
9817 return resultobj;
9818 fail:
9819 {
9820 if (temp2)
9821 delete arg2;
9822 }
9823 {
9824 if (temp3)
9825 delete arg3;
9826 }
9827 return NULL;
9828 }
9829
9830
9831 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9832 PyObject *resultobj;
9833 wxLocale *arg1 = (wxLocale *) 0 ;
9834 wxString *result;
9835 PyObject * obj0 = 0 ;
9836 char *kwnames[] = {
9837 (char *) "self", NULL
9838 };
9839
9840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9843 {
9844 PyThreadState* __tstate = wxPyBeginAllowThreads();
9845 {
9846 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9847 result = (wxString *) &_result_ref;
9848 }
9849
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 {
9854 #if wxUSE_UNICODE
9855 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9856 #else
9857 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9858 #endif
9859 }
9860 return resultobj;
9861 fail:
9862 return NULL;
9863 }
9864
9865
9866 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9867 PyObject *obj;
9868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9869 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9870 Py_INCREF(obj);
9871 return Py_BuildValue((char *)"");
9872 }
9873 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9874 PyObject *resultobj;
9875 wxLocale *result;
9876 char *kwnames[] = {
9877 NULL
9878 };
9879
9880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9881 {
9882 PyThreadState* __tstate = wxPyBeginAllowThreads();
9883 result = (wxLocale *)wxGetLocale();
9884
9885 wxPyEndAllowThreads(__tstate);
9886 if (PyErr_Occurred()) SWIG_fail;
9887 }
9888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9889 return resultobj;
9890 fail:
9891 return NULL;
9892 }
9893
9894
9895 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9896 PyObject *resultobj;
9897 wxString *arg1 = 0 ;
9898 wxString result;
9899 bool temp1 = False ;
9900 PyObject * obj0 = 0 ;
9901
9902 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9903 {
9904 arg1 = wxString_in_helper(obj0);
9905 if (arg1 == NULL) SWIG_fail;
9906 temp1 = True;
9907 }
9908 {
9909 PyThreadState* __tstate = wxPyBeginAllowThreads();
9910 result = wxGetTranslation((wxString const &)*arg1);
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 {
9923 if (temp1)
9924 delete arg1;
9925 }
9926 return resultobj;
9927 fail:
9928 {
9929 if (temp1)
9930 delete arg1;
9931 }
9932 return NULL;
9933 }
9934
9935
9936 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9937 PyObject *resultobj;
9938 wxString *arg1 = 0 ;
9939 wxString *arg2 = 0 ;
9940 size_t arg3 ;
9941 wxString result;
9942 bool temp1 = False ;
9943 bool temp2 = False ;
9944 PyObject * obj0 = 0 ;
9945 PyObject * obj1 = 0 ;
9946 PyObject * obj2 = 0 ;
9947
9948 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9949 {
9950 arg1 = wxString_in_helper(obj0);
9951 if (arg1 == NULL) SWIG_fail;
9952 temp1 = True;
9953 }
9954 {
9955 arg2 = wxString_in_helper(obj1);
9956 if (arg2 == NULL) SWIG_fail;
9957 temp2 = True;
9958 }
9959 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9960 if (PyErr_Occurred()) SWIG_fail;
9961 {
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
9963 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9964
9965 wxPyEndAllowThreads(__tstate);
9966 if (PyErr_Occurred()) SWIG_fail;
9967 }
9968 {
9969 #if wxUSE_UNICODE
9970 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9971 #else
9972 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9973 #endif
9974 }
9975 {
9976 if (temp1)
9977 delete arg1;
9978 }
9979 {
9980 if (temp2)
9981 delete arg2;
9982 }
9983 return resultobj;
9984 fail:
9985 {
9986 if (temp1)
9987 delete arg1;
9988 }
9989 {
9990 if (temp2)
9991 delete arg2;
9992 }
9993 return NULL;
9994 }
9995
9996
9997 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9998 int argc;
9999 PyObject *argv[4];
10000 int ii;
10001
10002 argc = PyObject_Length(args);
10003 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10004 argv[ii] = PyTuple_GetItem(args,ii);
10005 }
10006 if (argc == 1) {
10007 int _v;
10008 {
10009 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10010 }
10011 if (_v) {
10012 return _wrap_GetTranslation__SWIG_0(self,args);
10013 }
10014 }
10015 if (argc == 3) {
10016 int _v;
10017 {
10018 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10019 }
10020 if (_v) {
10021 {
10022 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10023 }
10024 if (_v) {
10025 _v = SWIG_CheckUnsignedLong(argv[2]);
10026 if (_v) {
10027 return _wrap_GetTranslation__SWIG_1(self,args);
10028 }
10029 }
10030 }
10031 }
10032
10033 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10034 return NULL;
10035 }
10036
10037
10038 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10039 PyObject *resultobj;
10040 wxEncodingConverter *result;
10041 char *kwnames[] = {
10042 NULL
10043 };
10044
10045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10046 {
10047 PyThreadState* __tstate = wxPyBeginAllowThreads();
10048 result = (wxEncodingConverter *)new wxEncodingConverter();
10049
10050 wxPyEndAllowThreads(__tstate);
10051 if (PyErr_Occurred()) SWIG_fail;
10052 }
10053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10054 return resultobj;
10055 fail:
10056 return NULL;
10057 }
10058
10059
10060 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10061 PyObject *resultobj;
10062 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10063 PyObject * obj0 = 0 ;
10064 char *kwnames[] = {
10065 (char *) "self", NULL
10066 };
10067
10068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10071 {
10072 PyThreadState* __tstate = wxPyBeginAllowThreads();
10073 delete arg1;
10074
10075 wxPyEndAllowThreads(__tstate);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 }
10078 Py_INCREF(Py_None); resultobj = Py_None;
10079 return resultobj;
10080 fail:
10081 return NULL;
10082 }
10083
10084
10085 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10086 PyObject *resultobj;
10087 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10088 int arg2 ;
10089 int arg3 ;
10090 int arg4 = (int) wxCONVERT_STRICT ;
10091 bool result;
10092 PyObject * obj0 = 0 ;
10093 PyObject * obj1 = 0 ;
10094 PyObject * obj2 = 0 ;
10095 PyObject * obj3 = 0 ;
10096 char *kwnames[] = {
10097 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10098 };
10099
10100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10103 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10104 if (PyErr_Occurred()) SWIG_fail;
10105 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10106 if (PyErr_Occurred()) SWIG_fail;
10107 if (obj3) {
10108 arg4 = (int) SWIG_AsInt(obj3);
10109 if (PyErr_Occurred()) SWIG_fail;
10110 }
10111 {
10112 PyThreadState* __tstate = wxPyBeginAllowThreads();
10113 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10114
10115 wxPyEndAllowThreads(__tstate);
10116 if (PyErr_Occurred()) SWIG_fail;
10117 }
10118 {
10119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10120 }
10121 return resultobj;
10122 fail:
10123 return NULL;
10124 }
10125
10126
10127 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10128 PyObject *resultobj;
10129 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10130 wxString *arg2 = 0 ;
10131 wxString result;
10132 bool temp2 = False ;
10133 PyObject * obj0 = 0 ;
10134 PyObject * obj1 = 0 ;
10135 char *kwnames[] = {
10136 (char *) "self",(char *) "input", NULL
10137 };
10138
10139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10142 {
10143 arg2 = wxString_in_helper(obj1);
10144 if (arg2 == NULL) SWIG_fail;
10145 temp2 = True;
10146 }
10147 {
10148 PyThreadState* __tstate = wxPyBeginAllowThreads();
10149 result = (arg1)->Convert((wxString const &)*arg2);
10150
10151 wxPyEndAllowThreads(__tstate);
10152 if (PyErr_Occurred()) SWIG_fail;
10153 }
10154 {
10155 #if wxUSE_UNICODE
10156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10157 #else
10158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10159 #endif
10160 }
10161 {
10162 if (temp2)
10163 delete arg2;
10164 }
10165 return resultobj;
10166 fail:
10167 {
10168 if (temp2)
10169 delete arg2;
10170 }
10171 return NULL;
10172 }
10173
10174
10175 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10176 PyObject *resultobj;
10177 int arg1 ;
10178 int arg2 = (int) wxPLATFORM_CURRENT ;
10179 wxFontEncodingArray result;
10180 PyObject * obj0 = 0 ;
10181 PyObject * obj1 = 0 ;
10182 char *kwnames[] = {
10183 (char *) "enc",(char *) "platform", NULL
10184 };
10185
10186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10187 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10188 if (PyErr_Occurred()) SWIG_fail;
10189 if (obj1) {
10190 arg2 = (int) SWIG_AsInt(obj1);
10191 if (PyErr_Occurred()) SWIG_fail;
10192 }
10193 {
10194 PyThreadState* __tstate = wxPyBeginAllowThreads();
10195 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10196
10197 wxPyEndAllowThreads(__tstate);
10198 if (PyErr_Occurred()) SWIG_fail;
10199 }
10200 {
10201 resultobj = PyList_New(0);
10202 for (size_t i=0; i < (&result)->GetCount(); i++) {
10203 PyObject* number = PyInt_FromLong((&result)->Item(i));
10204 PyList_Append(resultobj, number);
10205 Py_DECREF(number);
10206 }
10207 }
10208 return resultobj;
10209 fail:
10210 return NULL;
10211 }
10212
10213
10214 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10215 PyObject *resultobj;
10216 int arg1 ;
10217 wxFontEncodingArray result;
10218 PyObject * obj0 = 0 ;
10219 char *kwnames[] = {
10220 (char *) "enc", NULL
10221 };
10222
10223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10224 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10225 if (PyErr_Occurred()) SWIG_fail;
10226 {
10227 PyThreadState* __tstate = wxPyBeginAllowThreads();
10228 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10229
10230 wxPyEndAllowThreads(__tstate);
10231 if (PyErr_Occurred()) SWIG_fail;
10232 }
10233 {
10234 resultobj = PyList_New(0);
10235 for (size_t i=0; i < (&result)->GetCount(); i++) {
10236 PyObject* number = PyInt_FromLong((&result)->Item(i));
10237 PyList_Append(resultobj, number);
10238 Py_DECREF(number);
10239 }
10240 }
10241 return resultobj;
10242 fail:
10243 return NULL;
10244 }
10245
10246
10247 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10248 PyObject *resultobj;
10249 int arg1 ;
10250 int arg2 ;
10251 bool result;
10252 PyObject * obj0 = 0 ;
10253 PyObject * obj1 = 0 ;
10254 char *kwnames[] = {
10255 (char *) "encIn",(char *) "encOut", NULL
10256 };
10257
10258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10259 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10260 if (PyErr_Occurred()) SWIG_fail;
10261 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10262 if (PyErr_Occurred()) SWIG_fail;
10263 {
10264 PyThreadState* __tstate = wxPyBeginAllowThreads();
10265 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10266
10267 wxPyEndAllowThreads(__tstate);
10268 if (PyErr_Occurred()) SWIG_fail;
10269 }
10270 {
10271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10272 }
10273 return resultobj;
10274 fail:
10275 return NULL;
10276 }
10277
10278
10279 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10280 PyObject *obj;
10281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10282 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10283 Py_INCREF(obj);
10284 return Py_BuildValue((char *)"");
10285 }
10286 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10287 PyObject *resultobj;
10288 wxDC *arg1 = (wxDC *) 0 ;
10289 PyObject * obj0 = 0 ;
10290 char *kwnames[] = {
10291 (char *) "self", NULL
10292 };
10293
10294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10297 {
10298 PyThreadState* __tstate = wxPyBeginAllowThreads();
10299 delete arg1;
10300
10301 wxPyEndAllowThreads(__tstate);
10302 if (PyErr_Occurred()) SWIG_fail;
10303 }
10304 Py_INCREF(Py_None); resultobj = Py_None;
10305 return resultobj;
10306 fail:
10307 return NULL;
10308 }
10309
10310
10311 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10312 PyObject *resultobj;
10313 wxDC *arg1 = (wxDC *) 0 ;
10314 PyObject * obj0 = 0 ;
10315 char *kwnames[] = {
10316 (char *) "self", NULL
10317 };
10318
10319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10322 {
10323 PyThreadState* __tstate = wxPyBeginAllowThreads();
10324 (arg1)->BeginDrawing();
10325
10326 wxPyEndAllowThreads(__tstate);
10327 if (PyErr_Occurred()) SWIG_fail;
10328 }
10329 Py_INCREF(Py_None); resultobj = Py_None;
10330 return resultobj;
10331 fail:
10332 return NULL;
10333 }
10334
10335
10336 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10337 PyObject *resultobj;
10338 wxDC *arg1 = (wxDC *) 0 ;
10339 PyObject * obj0 = 0 ;
10340 char *kwnames[] = {
10341 (char *) "self", NULL
10342 };
10343
10344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10347 {
10348 PyThreadState* __tstate = wxPyBeginAllowThreads();
10349 (arg1)->EndDrawing();
10350
10351 wxPyEndAllowThreads(__tstate);
10352 if (PyErr_Occurred()) SWIG_fail;
10353 }
10354 Py_INCREF(Py_None); resultobj = Py_None;
10355 return resultobj;
10356 fail:
10357 return NULL;
10358 }
10359
10360
10361 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10362 PyObject *resultobj;
10363 wxDC *arg1 = (wxDC *) 0 ;
10364 int arg2 ;
10365 int arg3 ;
10366 wxColour *arg4 = 0 ;
10367 int arg5 = (int) wxFLOOD_SURFACE ;
10368 bool result;
10369 wxColour temp4 ;
10370 PyObject * obj0 = 0 ;
10371 PyObject * obj1 = 0 ;
10372 PyObject * obj2 = 0 ;
10373 PyObject * obj3 = 0 ;
10374 PyObject * obj4 = 0 ;
10375 char *kwnames[] = {
10376 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10377 };
10378
10379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10382 arg2 = (int) SWIG_AsInt(obj1);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 arg3 = (int) SWIG_AsInt(obj2);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 {
10387 arg4 = &temp4;
10388 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10389 }
10390 if (obj4) {
10391 arg5 = (int) SWIG_AsInt(obj4);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 {
10402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10403 }
10404 return resultobj;
10405 fail:
10406 return NULL;
10407 }
10408
10409
10410 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10411 PyObject *resultobj;
10412 wxDC *arg1 = (wxDC *) 0 ;
10413 wxPoint *arg2 = 0 ;
10414 wxColour *arg3 = 0 ;
10415 int arg4 = (int) wxFLOOD_SURFACE ;
10416 bool result;
10417 wxPoint temp2 ;
10418 wxColour temp3 ;
10419 PyObject * obj0 = 0 ;
10420 PyObject * obj1 = 0 ;
10421 PyObject * obj2 = 0 ;
10422 PyObject * obj3 = 0 ;
10423 char *kwnames[] = {
10424 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10425 };
10426
10427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10430 {
10431 arg2 = &temp2;
10432 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10433 }
10434 {
10435 arg3 = &temp3;
10436 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10437 }
10438 if (obj3) {
10439 arg4 = (int) SWIG_AsInt(obj3);
10440 if (PyErr_Occurred()) SWIG_fail;
10441 }
10442 {
10443 PyThreadState* __tstate = wxPyBeginAllowThreads();
10444 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10445
10446 wxPyEndAllowThreads(__tstate);
10447 if (PyErr_Occurred()) SWIG_fail;
10448 }
10449 {
10450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10451 }
10452 return resultobj;
10453 fail:
10454 return NULL;
10455 }
10456
10457
10458 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10459 PyObject *resultobj;
10460 wxDC *arg1 = (wxDC *) 0 ;
10461 int arg2 ;
10462 int arg3 ;
10463 wxColour result;
10464 PyObject * obj0 = 0 ;
10465 PyObject * obj1 = 0 ;
10466 PyObject * obj2 = 0 ;
10467 char *kwnames[] = {
10468 (char *) "self",(char *) "x",(char *) "y", NULL
10469 };
10470
10471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10474 arg2 = (int) SWIG_AsInt(obj1);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 arg3 = (int) SWIG_AsInt(obj2);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = wxDC_GetPixel(arg1,arg2,arg3);
10481
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 {
10486 wxColour * resultptr;
10487 resultptr = new wxColour((wxColour &) result);
10488 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10489 }
10490 return resultobj;
10491 fail:
10492 return NULL;
10493 }
10494
10495
10496 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10497 PyObject *resultobj;
10498 wxDC *arg1 = (wxDC *) 0 ;
10499 wxPoint *arg2 = 0 ;
10500 wxColour result;
10501 wxPoint temp2 ;
10502 PyObject * obj0 = 0 ;
10503 PyObject * obj1 = 0 ;
10504 char *kwnames[] = {
10505 (char *) "self",(char *) "pt", NULL
10506 };
10507
10508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10511 {
10512 arg2 = &temp2;
10513 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10514 }
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10518
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 {
10523 wxColour * resultptr;
10524 resultptr = new wxColour((wxColour &) result);
10525 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10526 }
10527 return resultobj;
10528 fail:
10529 return NULL;
10530 }
10531
10532
10533 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10534 PyObject *resultobj;
10535 wxDC *arg1 = (wxDC *) 0 ;
10536 int arg2 ;
10537 int arg3 ;
10538 int arg4 ;
10539 int arg5 ;
10540 PyObject * obj0 = 0 ;
10541 PyObject * obj1 = 0 ;
10542 PyObject * obj2 = 0 ;
10543 PyObject * obj3 = 0 ;
10544 PyObject * obj4 = 0 ;
10545 char *kwnames[] = {
10546 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10547 };
10548
10549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10552 arg2 = (int) SWIG_AsInt(obj1);
10553 if (PyErr_Occurred()) SWIG_fail;
10554 arg3 = (int) SWIG_AsInt(obj2);
10555 if (PyErr_Occurred()) SWIG_fail;
10556 arg4 = (int) SWIG_AsInt(obj3);
10557 if (PyErr_Occurred()) SWIG_fail;
10558 arg5 = (int) SWIG_AsInt(obj4);
10559 if (PyErr_Occurred()) SWIG_fail;
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
10562 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10563
10564 wxPyEndAllowThreads(__tstate);
10565 if (PyErr_Occurred()) SWIG_fail;
10566 }
10567 Py_INCREF(Py_None); resultobj = Py_None;
10568 return resultobj;
10569 fail:
10570 return NULL;
10571 }
10572
10573
10574 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10575 PyObject *resultobj;
10576 wxDC *arg1 = (wxDC *) 0 ;
10577 wxPoint *arg2 = 0 ;
10578 wxPoint *arg3 = 0 ;
10579 wxPoint temp2 ;
10580 wxPoint temp3 ;
10581 PyObject * obj0 = 0 ;
10582 PyObject * obj1 = 0 ;
10583 PyObject * obj2 = 0 ;
10584 char *kwnames[] = {
10585 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10586 };
10587
10588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10591 {
10592 arg2 = &temp2;
10593 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10594 }
10595 {
10596 arg3 = &temp3;
10597 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10598 }
10599 {
10600 PyThreadState* __tstate = wxPyBeginAllowThreads();
10601 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10602
10603 wxPyEndAllowThreads(__tstate);
10604 if (PyErr_Occurred()) SWIG_fail;
10605 }
10606 Py_INCREF(Py_None); resultobj = Py_None;
10607 return resultobj;
10608 fail:
10609 return NULL;
10610 }
10611
10612
10613 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10614 PyObject *resultobj;
10615 wxDC *arg1 = (wxDC *) 0 ;
10616 int arg2 ;
10617 int arg3 ;
10618 PyObject * obj0 = 0 ;
10619 PyObject * obj1 = 0 ;
10620 PyObject * obj2 = 0 ;
10621 char *kwnames[] = {
10622 (char *) "self",(char *) "x",(char *) "y", NULL
10623 };
10624
10625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
10626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10628 arg2 = (int) SWIG_AsInt(obj1);
10629 if (PyErr_Occurred()) SWIG_fail;
10630 arg3 = (int) SWIG_AsInt(obj2);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 {
10633 PyThreadState* __tstate = wxPyBeginAllowThreads();
10634 (arg1)->CrossHair(arg2,arg3);
10635
10636 wxPyEndAllowThreads(__tstate);
10637 if (PyErr_Occurred()) SWIG_fail;
10638 }
10639 Py_INCREF(Py_None); resultobj = Py_None;
10640 return resultobj;
10641 fail:
10642 return NULL;
10643 }
10644
10645
10646 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10647 PyObject *resultobj;
10648 wxDC *arg1 = (wxDC *) 0 ;
10649 wxPoint *arg2 = 0 ;
10650 wxPoint temp2 ;
10651 PyObject * obj0 = 0 ;
10652 PyObject * obj1 = 0 ;
10653 char *kwnames[] = {
10654 (char *) "self",(char *) "pt", NULL
10655 };
10656
10657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
10658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10660 {
10661 arg2 = &temp2;
10662 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10663 }
10664 {
10665 PyThreadState* __tstate = wxPyBeginAllowThreads();
10666 (arg1)->CrossHair((wxPoint const &)*arg2);
10667
10668 wxPyEndAllowThreads(__tstate);
10669 if (PyErr_Occurred()) SWIG_fail;
10670 }
10671 Py_INCREF(Py_None); resultobj = Py_None;
10672 return resultobj;
10673 fail:
10674 return NULL;
10675 }
10676
10677
10678 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10679 PyObject *resultobj;
10680 wxDC *arg1 = (wxDC *) 0 ;
10681 int arg2 ;
10682 int arg3 ;
10683 int arg4 ;
10684 int arg5 ;
10685 int arg6 ;
10686 int arg7 ;
10687 PyObject * obj0 = 0 ;
10688 PyObject * obj1 = 0 ;
10689 PyObject * obj2 = 0 ;
10690 PyObject * obj3 = 0 ;
10691 PyObject * obj4 = 0 ;
10692 PyObject * obj5 = 0 ;
10693 PyObject * obj6 = 0 ;
10694 char *kwnames[] = {
10695 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10696 };
10697
10698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10701 arg2 = (int) SWIG_AsInt(obj1);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 arg3 = (int) SWIG_AsInt(obj2);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 arg4 = (int) SWIG_AsInt(obj3);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 arg5 = (int) SWIG_AsInt(obj4);
10708 if (PyErr_Occurred()) SWIG_fail;
10709 arg6 = (int) SWIG_AsInt(obj5);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 arg7 = (int) SWIG_AsInt(obj6);
10712 if (PyErr_Occurred()) SWIG_fail;
10713 {
10714 PyThreadState* __tstate = wxPyBeginAllowThreads();
10715 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10716
10717 wxPyEndAllowThreads(__tstate);
10718 if (PyErr_Occurred()) SWIG_fail;
10719 }
10720 Py_INCREF(Py_None); resultobj = Py_None;
10721 return resultobj;
10722 fail:
10723 return NULL;
10724 }
10725
10726
10727 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10728 PyObject *resultobj;
10729 wxDC *arg1 = (wxDC *) 0 ;
10730 wxPoint *arg2 = 0 ;
10731 wxPoint *arg3 = 0 ;
10732 wxPoint *arg4 = 0 ;
10733 wxPoint temp2 ;
10734 wxPoint temp3 ;
10735 wxPoint temp4 ;
10736 PyObject * obj0 = 0 ;
10737 PyObject * obj1 = 0 ;
10738 PyObject * obj2 = 0 ;
10739 PyObject * obj3 = 0 ;
10740 char *kwnames[] = {
10741 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
10742 };
10743
10744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10747 {
10748 arg2 = &temp2;
10749 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10750 }
10751 {
10752 arg3 = &temp3;
10753 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10754 }
10755 {
10756 arg4 = &temp4;
10757 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10758 }
10759 {
10760 PyThreadState* __tstate = wxPyBeginAllowThreads();
10761 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10762
10763 wxPyEndAllowThreads(__tstate);
10764 if (PyErr_Occurred()) SWIG_fail;
10765 }
10766 Py_INCREF(Py_None); resultobj = Py_None;
10767 return resultobj;
10768 fail:
10769 return NULL;
10770 }
10771
10772
10773 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10774 PyObject *resultobj;
10775 wxDC *arg1 = (wxDC *) 0 ;
10776 int arg2 ;
10777 int arg3 ;
10778 int arg4 ;
10779 int arg5 ;
10780 PyObject * obj0 = 0 ;
10781 PyObject * obj1 = 0 ;
10782 PyObject * obj2 = 0 ;
10783 PyObject * obj3 = 0 ;
10784 PyObject * obj4 = 0 ;
10785 char *kwnames[] = {
10786 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10787 };
10788
10789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10792 arg2 = (int) SWIG_AsInt(obj1);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 arg3 = (int) SWIG_AsInt(obj2);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 arg4 = (int) SWIG_AsInt(obj3);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 arg5 = (int) SWIG_AsInt(obj4);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 {
10801 PyThreadState* __tstate = wxPyBeginAllowThreads();
10802 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10803
10804 wxPyEndAllowThreads(__tstate);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 Py_INCREF(Py_None); resultobj = Py_None;
10808 return resultobj;
10809 fail:
10810 return NULL;
10811 }
10812
10813
10814 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj;
10816 wxDC *arg1 = (wxDC *) 0 ;
10817 wxRect *arg2 = 0 ;
10818 wxRect temp2 ;
10819 PyObject * obj0 = 0 ;
10820 PyObject * obj1 = 0 ;
10821 char *kwnames[] = {
10822 (char *) "self",(char *) "rect", NULL
10823 };
10824
10825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
10826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10828 {
10829 arg2 = &temp2;
10830 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10831 }
10832 {
10833 PyThreadState* __tstate = wxPyBeginAllowThreads();
10834 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10835
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 Py_INCREF(Py_None); resultobj = Py_None;
10840 return resultobj;
10841 fail:
10842 return NULL;
10843 }
10844
10845
10846 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10847 PyObject *resultobj;
10848 wxDC *arg1 = (wxDC *) 0 ;
10849 int arg2 ;
10850 int arg3 ;
10851 int arg4 ;
10852 int arg5 ;
10853 double arg6 ;
10854 double arg7 ;
10855 PyObject * obj0 = 0 ;
10856 PyObject * obj1 = 0 ;
10857 PyObject * obj2 = 0 ;
10858 PyObject * obj3 = 0 ;
10859 PyObject * obj4 = 0 ;
10860 PyObject * obj5 = 0 ;
10861 PyObject * obj6 = 0 ;
10862 char *kwnames[] = {
10863 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
10864 };
10865
10866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10869 arg2 = (int) SWIG_AsInt(obj1);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 arg3 = (int) SWIG_AsInt(obj2);
10872 if (PyErr_Occurred()) SWIG_fail;
10873 arg4 = (int) SWIG_AsInt(obj3);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 arg5 = (int) SWIG_AsInt(obj4);
10876 if (PyErr_Occurred()) SWIG_fail;
10877 arg6 = (double) SWIG_AsDouble(obj5);
10878 if (PyErr_Occurred()) SWIG_fail;
10879 arg7 = (double) SWIG_AsDouble(obj6);
10880 if (PyErr_Occurred()) SWIG_fail;
10881 {
10882 PyThreadState* __tstate = wxPyBeginAllowThreads();
10883 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10884
10885 wxPyEndAllowThreads(__tstate);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 }
10888 Py_INCREF(Py_None); resultobj = Py_None;
10889 return resultobj;
10890 fail:
10891 return NULL;
10892 }
10893
10894
10895 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10896 PyObject *resultobj;
10897 wxDC *arg1 = (wxDC *) 0 ;
10898 wxPoint *arg2 = 0 ;
10899 wxSize *arg3 = 0 ;
10900 double arg4 ;
10901 double arg5 ;
10902 wxPoint temp2 ;
10903 wxSize temp3 ;
10904 PyObject * obj0 = 0 ;
10905 PyObject * obj1 = 0 ;
10906 PyObject * obj2 = 0 ;
10907 PyObject * obj3 = 0 ;
10908 PyObject * obj4 = 0 ;
10909 char *kwnames[] = {
10910 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
10911 };
10912
10913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10916 {
10917 arg2 = &temp2;
10918 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10919 }
10920 {
10921 arg3 = &temp3;
10922 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10923 }
10924 arg4 = (double) SWIG_AsDouble(obj3);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 arg5 = (double) SWIG_AsDouble(obj4);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 {
10929 PyThreadState* __tstate = wxPyBeginAllowThreads();
10930 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10931
10932 wxPyEndAllowThreads(__tstate);
10933 if (PyErr_Occurred()) SWIG_fail;
10934 }
10935 Py_INCREF(Py_None); resultobj = Py_None;
10936 return resultobj;
10937 fail:
10938 return NULL;
10939 }
10940
10941
10942 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10943 PyObject *resultobj;
10944 wxDC *arg1 = (wxDC *) 0 ;
10945 int arg2 ;
10946 int arg3 ;
10947 PyObject * obj0 = 0 ;
10948 PyObject * obj1 = 0 ;
10949 PyObject * obj2 = 0 ;
10950 char *kwnames[] = {
10951 (char *) "self",(char *) "x",(char *) "y", NULL
10952 };
10953
10954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10957 arg2 = (int) SWIG_AsInt(obj1);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 arg3 = (int) SWIG_AsInt(obj2);
10960 if (PyErr_Occurred()) SWIG_fail;
10961 {
10962 PyThreadState* __tstate = wxPyBeginAllowThreads();
10963 (arg1)->DrawPoint(arg2,arg3);
10964
10965 wxPyEndAllowThreads(__tstate);
10966 if (PyErr_Occurred()) SWIG_fail;
10967 }
10968 Py_INCREF(Py_None); resultobj = Py_None;
10969 return resultobj;
10970 fail:
10971 return NULL;
10972 }
10973
10974
10975 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10976 PyObject *resultobj;
10977 wxDC *arg1 = (wxDC *) 0 ;
10978 wxPoint *arg2 = 0 ;
10979 wxPoint temp2 ;
10980 PyObject * obj0 = 0 ;
10981 PyObject * obj1 = 0 ;
10982 char *kwnames[] = {
10983 (char *) "self",(char *) "pt", NULL
10984 };
10985
10986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
10987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10989 {
10990 arg2 = &temp2;
10991 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10992 }
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 (arg1)->DrawPoint((wxPoint const &)*arg2);
10996
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 Py_INCREF(Py_None); resultobj = Py_None;
11001 return resultobj;
11002 fail:
11003 return NULL;
11004 }
11005
11006
11007 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj;
11009 wxDC *arg1 = (wxDC *) 0 ;
11010 int arg2 ;
11011 int arg3 ;
11012 int arg4 ;
11013 int arg5 ;
11014 PyObject * obj0 = 0 ;
11015 PyObject * obj1 = 0 ;
11016 PyObject * obj2 = 0 ;
11017 PyObject * obj3 = 0 ;
11018 PyObject * obj4 = 0 ;
11019 char *kwnames[] = {
11020 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11021 };
11022
11023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11026 arg2 = (int) SWIG_AsInt(obj1);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 arg3 = (int) SWIG_AsInt(obj2);
11029 if (PyErr_Occurred()) SWIG_fail;
11030 arg4 = (int) SWIG_AsInt(obj3);
11031 if (PyErr_Occurred()) SWIG_fail;
11032 arg5 = (int) SWIG_AsInt(obj4);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 {
11035 PyThreadState* __tstate = wxPyBeginAllowThreads();
11036 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11037
11038 wxPyEndAllowThreads(__tstate);
11039 if (PyErr_Occurred()) SWIG_fail;
11040 }
11041 Py_INCREF(Py_None); resultobj = Py_None;
11042 return resultobj;
11043 fail:
11044 return NULL;
11045 }
11046
11047
11048 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11049 PyObject *resultobj;
11050 wxDC *arg1 = (wxDC *) 0 ;
11051 wxRect *arg2 = 0 ;
11052 wxRect temp2 ;
11053 PyObject * obj0 = 0 ;
11054 PyObject * obj1 = 0 ;
11055 char *kwnames[] = {
11056 (char *) "self",(char *) "rect", NULL
11057 };
11058
11059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11062 {
11063 arg2 = &temp2;
11064 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11065 }
11066 {
11067 PyThreadState* __tstate = wxPyBeginAllowThreads();
11068 (arg1)->DrawRectangle((wxRect const &)*arg2);
11069
11070 wxPyEndAllowThreads(__tstate);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 Py_INCREF(Py_None); resultobj = Py_None;
11074 return resultobj;
11075 fail:
11076 return NULL;
11077 }
11078
11079
11080 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11081 PyObject *resultobj;
11082 wxDC *arg1 = (wxDC *) 0 ;
11083 wxPoint *arg2 = 0 ;
11084 wxSize *arg3 = 0 ;
11085 wxPoint temp2 ;
11086 wxSize temp3 ;
11087 PyObject * obj0 = 0 ;
11088 PyObject * obj1 = 0 ;
11089 PyObject * obj2 = 0 ;
11090 char *kwnames[] = {
11091 (char *) "self",(char *) "pt",(char *) "sz", NULL
11092 };
11093
11094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11097 {
11098 arg2 = &temp2;
11099 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11100 }
11101 {
11102 arg3 = &temp3;
11103 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11104 }
11105 {
11106 PyThreadState* __tstate = wxPyBeginAllowThreads();
11107 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11108
11109 wxPyEndAllowThreads(__tstate);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 }
11112 Py_INCREF(Py_None); resultobj = Py_None;
11113 return resultobj;
11114 fail:
11115 return NULL;
11116 }
11117
11118
11119 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11120 PyObject *resultobj;
11121 wxDC *arg1 = (wxDC *) 0 ;
11122 int arg2 ;
11123 int arg3 ;
11124 int arg4 ;
11125 int arg5 ;
11126 double arg6 ;
11127 PyObject * obj0 = 0 ;
11128 PyObject * obj1 = 0 ;
11129 PyObject * obj2 = 0 ;
11130 PyObject * obj3 = 0 ;
11131 PyObject * obj4 = 0 ;
11132 PyObject * obj5 = 0 ;
11133 char *kwnames[] = {
11134 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11135 };
11136
11137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11140 arg2 = (int) SWIG_AsInt(obj1);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 arg3 = (int) SWIG_AsInt(obj2);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 arg4 = (int) SWIG_AsInt(obj3);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 arg5 = (int) SWIG_AsInt(obj4);
11147 if (PyErr_Occurred()) SWIG_fail;
11148 arg6 = (double) SWIG_AsDouble(obj5);
11149 if (PyErr_Occurred()) SWIG_fail;
11150 {
11151 PyThreadState* __tstate = wxPyBeginAllowThreads();
11152 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11153
11154 wxPyEndAllowThreads(__tstate);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 }
11157 Py_INCREF(Py_None); resultobj = Py_None;
11158 return resultobj;
11159 fail:
11160 return NULL;
11161 }
11162
11163
11164 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11165 PyObject *resultobj;
11166 wxDC *arg1 = (wxDC *) 0 ;
11167 wxRect *arg2 = 0 ;
11168 double arg3 ;
11169 wxRect temp2 ;
11170 PyObject * obj0 = 0 ;
11171 PyObject * obj1 = 0 ;
11172 PyObject * obj2 = 0 ;
11173 char *kwnames[] = {
11174 (char *) "self",(char *) "r",(char *) "radius", NULL
11175 };
11176
11177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11180 {
11181 arg2 = &temp2;
11182 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11183 }
11184 arg3 = (double) SWIG_AsDouble(obj2);
11185 if (PyErr_Occurred()) SWIG_fail;
11186 {
11187 PyThreadState* __tstate = wxPyBeginAllowThreads();
11188 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11189
11190 wxPyEndAllowThreads(__tstate);
11191 if (PyErr_Occurred()) SWIG_fail;
11192 }
11193 Py_INCREF(Py_None); resultobj = Py_None;
11194 return resultobj;
11195 fail:
11196 return NULL;
11197 }
11198
11199
11200 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11201 PyObject *resultobj;
11202 wxDC *arg1 = (wxDC *) 0 ;
11203 wxPoint *arg2 = 0 ;
11204 wxSize *arg3 = 0 ;
11205 double arg4 ;
11206 wxPoint temp2 ;
11207 wxSize temp3 ;
11208 PyObject * obj0 = 0 ;
11209 PyObject * obj1 = 0 ;
11210 PyObject * obj2 = 0 ;
11211 PyObject * obj3 = 0 ;
11212 char *kwnames[] = {
11213 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11214 };
11215
11216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11219 {
11220 arg2 = &temp2;
11221 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11222 }
11223 {
11224 arg3 = &temp3;
11225 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11226 }
11227 arg4 = (double) SWIG_AsDouble(obj3);
11228 if (PyErr_Occurred()) SWIG_fail;
11229 {
11230 PyThreadState* __tstate = wxPyBeginAllowThreads();
11231 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11232
11233 wxPyEndAllowThreads(__tstate);
11234 if (PyErr_Occurred()) SWIG_fail;
11235 }
11236 Py_INCREF(Py_None); resultobj = Py_None;
11237 return resultobj;
11238 fail:
11239 return NULL;
11240 }
11241
11242
11243 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11244 PyObject *resultobj;
11245 wxDC *arg1 = (wxDC *) 0 ;
11246 int arg2 ;
11247 int arg3 ;
11248 int arg4 ;
11249 PyObject * obj0 = 0 ;
11250 PyObject * obj1 = 0 ;
11251 PyObject * obj2 = 0 ;
11252 PyObject * obj3 = 0 ;
11253 char *kwnames[] = {
11254 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11255 };
11256
11257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11260 arg2 = (int) SWIG_AsInt(obj1);
11261 if (PyErr_Occurred()) SWIG_fail;
11262 arg3 = (int) SWIG_AsInt(obj2);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 arg4 = (int) SWIG_AsInt(obj3);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 {
11267 PyThreadState* __tstate = wxPyBeginAllowThreads();
11268 (arg1)->DrawCircle(arg2,arg3,arg4);
11269
11270 wxPyEndAllowThreads(__tstate);
11271 if (PyErr_Occurred()) SWIG_fail;
11272 }
11273 Py_INCREF(Py_None); resultobj = Py_None;
11274 return resultobj;
11275 fail:
11276 return NULL;
11277 }
11278
11279
11280 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11281 PyObject *resultobj;
11282 wxDC *arg1 = (wxDC *) 0 ;
11283 wxPoint *arg2 = 0 ;
11284 int arg3 ;
11285 wxPoint temp2 ;
11286 PyObject * obj0 = 0 ;
11287 PyObject * obj1 = 0 ;
11288 PyObject * obj2 = 0 ;
11289 char *kwnames[] = {
11290 (char *) "self",(char *) "pt",(char *) "radius", NULL
11291 };
11292
11293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11296 {
11297 arg2 = &temp2;
11298 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11299 }
11300 arg3 = (int) SWIG_AsInt(obj2);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 {
11303 PyThreadState* __tstate = wxPyBeginAllowThreads();
11304 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11305
11306 wxPyEndAllowThreads(__tstate);
11307 if (PyErr_Occurred()) SWIG_fail;
11308 }
11309 Py_INCREF(Py_None); resultobj = Py_None;
11310 return resultobj;
11311 fail:
11312 return NULL;
11313 }
11314
11315
11316 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11317 PyObject *resultobj;
11318 wxDC *arg1 = (wxDC *) 0 ;
11319 int arg2 ;
11320 int arg3 ;
11321 int arg4 ;
11322 int arg5 ;
11323 PyObject * obj0 = 0 ;
11324 PyObject * obj1 = 0 ;
11325 PyObject * obj2 = 0 ;
11326 PyObject * obj3 = 0 ;
11327 PyObject * obj4 = 0 ;
11328 char *kwnames[] = {
11329 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11330 };
11331
11332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11335 arg2 = (int) SWIG_AsInt(obj1);
11336 if (PyErr_Occurred()) SWIG_fail;
11337 arg3 = (int) SWIG_AsInt(obj2);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 arg4 = (int) SWIG_AsInt(obj3);
11340 if (PyErr_Occurred()) SWIG_fail;
11341 arg5 = (int) SWIG_AsInt(obj4);
11342 if (PyErr_Occurred()) SWIG_fail;
11343 {
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11346
11347 wxPyEndAllowThreads(__tstate);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 }
11350 Py_INCREF(Py_None); resultobj = Py_None;
11351 return resultobj;
11352 fail:
11353 return NULL;
11354 }
11355
11356
11357 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11358 PyObject *resultobj;
11359 wxDC *arg1 = (wxDC *) 0 ;
11360 wxRect *arg2 = 0 ;
11361 wxRect temp2 ;
11362 PyObject * obj0 = 0 ;
11363 PyObject * obj1 = 0 ;
11364 char *kwnames[] = {
11365 (char *) "self",(char *) "rect", NULL
11366 };
11367
11368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11371 {
11372 arg2 = &temp2;
11373 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11374 }
11375 {
11376 PyThreadState* __tstate = wxPyBeginAllowThreads();
11377 (arg1)->DrawEllipse((wxRect const &)*arg2);
11378
11379 wxPyEndAllowThreads(__tstate);
11380 if (PyErr_Occurred()) SWIG_fail;
11381 }
11382 Py_INCREF(Py_None); resultobj = Py_None;
11383 return resultobj;
11384 fail:
11385 return NULL;
11386 }
11387
11388
11389 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11390 PyObject *resultobj;
11391 wxDC *arg1 = (wxDC *) 0 ;
11392 wxPoint *arg2 = 0 ;
11393 wxSize *arg3 = 0 ;
11394 wxPoint temp2 ;
11395 wxSize temp3 ;
11396 PyObject * obj0 = 0 ;
11397 PyObject * obj1 = 0 ;
11398 PyObject * obj2 = 0 ;
11399 char *kwnames[] = {
11400 (char *) "self",(char *) "pt",(char *) "sz", NULL
11401 };
11402
11403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11406 {
11407 arg2 = &temp2;
11408 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11409 }
11410 {
11411 arg3 = &temp3;
11412 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11413 }
11414 {
11415 PyThreadState* __tstate = wxPyBeginAllowThreads();
11416 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11417
11418 wxPyEndAllowThreads(__tstate);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 Py_INCREF(Py_None); resultobj = Py_None;
11422 return resultobj;
11423 fail:
11424 return NULL;
11425 }
11426
11427
11428 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11429 PyObject *resultobj;
11430 wxDC *arg1 = (wxDC *) 0 ;
11431 wxIcon *arg2 = 0 ;
11432 int arg3 ;
11433 int arg4 ;
11434 PyObject * obj0 = 0 ;
11435 PyObject * obj1 = 0 ;
11436 PyObject * obj2 = 0 ;
11437 PyObject * obj3 = 0 ;
11438 char *kwnames[] = {
11439 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11440 };
11441
11442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11446 SWIG_POINTER_EXCEPTION | 0)) == -1)
11447 SWIG_fail;
11448 if (arg2 == NULL) {
11449 PyErr_SetString(PyExc_TypeError,"null reference");
11450 SWIG_fail;
11451 }
11452 arg3 = (int) SWIG_AsInt(obj2);
11453 if (PyErr_Occurred()) SWIG_fail;
11454 arg4 = (int) SWIG_AsInt(obj3);
11455 if (PyErr_Occurred()) SWIG_fail;
11456 {
11457 PyThreadState* __tstate = wxPyBeginAllowThreads();
11458 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11459
11460 wxPyEndAllowThreads(__tstate);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 }
11463 Py_INCREF(Py_None); resultobj = Py_None;
11464 return resultobj;
11465 fail:
11466 return NULL;
11467 }
11468
11469
11470 static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11471 PyObject *resultobj;
11472 wxDC *arg1 = (wxDC *) 0 ;
11473 wxIcon *arg2 = 0 ;
11474 wxPoint *arg3 = 0 ;
11475 wxPoint temp3 ;
11476 PyObject * obj0 = 0 ;
11477 PyObject * obj1 = 0 ;
11478 PyObject * obj2 = 0 ;
11479 char *kwnames[] = {
11480 (char *) "self",(char *) "icon",(char *) "pt", NULL
11481 };
11482
11483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11486 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11487 SWIG_POINTER_EXCEPTION | 0)) == -1)
11488 SWIG_fail;
11489 if (arg2 == NULL) {
11490 PyErr_SetString(PyExc_TypeError,"null reference");
11491 SWIG_fail;
11492 }
11493 {
11494 arg3 = &temp3;
11495 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11496 }
11497 {
11498 PyThreadState* __tstate = wxPyBeginAllowThreads();
11499 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11500
11501 wxPyEndAllowThreads(__tstate);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 Py_INCREF(Py_None); resultobj = Py_None;
11505 return resultobj;
11506 fail:
11507 return NULL;
11508 }
11509
11510
11511 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11512 PyObject *resultobj;
11513 wxDC *arg1 = (wxDC *) 0 ;
11514 wxBitmap *arg2 = 0 ;
11515 int arg3 ;
11516 int arg4 ;
11517 bool arg5 = (bool) False ;
11518 PyObject * obj0 = 0 ;
11519 PyObject * obj1 = 0 ;
11520 PyObject * obj2 = 0 ;
11521 PyObject * obj3 = 0 ;
11522 PyObject * obj4 = 0 ;
11523 char *kwnames[] = {
11524 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11525 };
11526
11527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11531 SWIG_POINTER_EXCEPTION | 0)) == -1)
11532 SWIG_fail;
11533 if (arg2 == NULL) {
11534 PyErr_SetString(PyExc_TypeError,"null reference");
11535 SWIG_fail;
11536 }
11537 arg3 = (int) SWIG_AsInt(obj2);
11538 if (PyErr_Occurred()) SWIG_fail;
11539 arg4 = (int) SWIG_AsInt(obj3);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 if (obj4) {
11542 arg5 = (bool) SWIG_AsBool(obj4);
11543 if (PyErr_Occurred()) SWIG_fail;
11544 }
11545 {
11546 PyThreadState* __tstate = wxPyBeginAllowThreads();
11547 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11548
11549 wxPyEndAllowThreads(__tstate);
11550 if (PyErr_Occurred()) SWIG_fail;
11551 }
11552 Py_INCREF(Py_None); resultobj = Py_None;
11553 return resultobj;
11554 fail:
11555 return NULL;
11556 }
11557
11558
11559 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11560 PyObject *resultobj;
11561 wxDC *arg1 = (wxDC *) 0 ;
11562 wxBitmap *arg2 = 0 ;
11563 wxPoint *arg3 = 0 ;
11564 bool arg4 = (bool) False ;
11565 wxPoint temp3 ;
11566 PyObject * obj0 = 0 ;
11567 PyObject * obj1 = 0 ;
11568 PyObject * obj2 = 0 ;
11569 PyObject * obj3 = 0 ;
11570 char *kwnames[] = {
11571 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11572 };
11573
11574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11577 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11578 SWIG_POINTER_EXCEPTION | 0)) == -1)
11579 SWIG_fail;
11580 if (arg2 == NULL) {
11581 PyErr_SetString(PyExc_TypeError,"null reference");
11582 SWIG_fail;
11583 }
11584 {
11585 arg3 = &temp3;
11586 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11587 }
11588 if (obj3) {
11589 arg4 = (bool) SWIG_AsBool(obj3);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 {
11593 PyThreadState* __tstate = wxPyBeginAllowThreads();
11594 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11595
11596 wxPyEndAllowThreads(__tstate);
11597 if (PyErr_Occurred()) SWIG_fail;
11598 }
11599 Py_INCREF(Py_None); resultobj = Py_None;
11600 return resultobj;
11601 fail:
11602 return NULL;
11603 }
11604
11605
11606 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11607 PyObject *resultobj;
11608 wxDC *arg1 = (wxDC *) 0 ;
11609 wxString *arg2 = 0 ;
11610 int arg3 ;
11611 int arg4 ;
11612 bool temp2 = False ;
11613 PyObject * obj0 = 0 ;
11614 PyObject * obj1 = 0 ;
11615 PyObject * obj2 = 0 ;
11616 PyObject * obj3 = 0 ;
11617 char *kwnames[] = {
11618 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11619 };
11620
11621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11624 {
11625 arg2 = wxString_in_helper(obj1);
11626 if (arg2 == NULL) SWIG_fail;
11627 temp2 = True;
11628 }
11629 arg3 = (int) SWIG_AsInt(obj2);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 arg4 = (int) SWIG_AsInt(obj3);
11632 if (PyErr_Occurred()) SWIG_fail;
11633 {
11634 PyThreadState* __tstate = wxPyBeginAllowThreads();
11635 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11636
11637 wxPyEndAllowThreads(__tstate);
11638 if (PyErr_Occurred()) SWIG_fail;
11639 }
11640 Py_INCREF(Py_None); resultobj = Py_None;
11641 {
11642 if (temp2)
11643 delete arg2;
11644 }
11645 return resultobj;
11646 fail:
11647 {
11648 if (temp2)
11649 delete arg2;
11650 }
11651 return NULL;
11652 }
11653
11654
11655 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11656 PyObject *resultobj;
11657 wxDC *arg1 = (wxDC *) 0 ;
11658 wxString *arg2 = 0 ;
11659 wxPoint *arg3 = 0 ;
11660 bool temp2 = False ;
11661 wxPoint temp3 ;
11662 PyObject * obj0 = 0 ;
11663 PyObject * obj1 = 0 ;
11664 PyObject * obj2 = 0 ;
11665 char *kwnames[] = {
11666 (char *) "self",(char *) "text",(char *) "pt", NULL
11667 };
11668
11669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11672 {
11673 arg2 = wxString_in_helper(obj1);
11674 if (arg2 == NULL) SWIG_fail;
11675 temp2 = True;
11676 }
11677 {
11678 arg3 = &temp3;
11679 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11680 }
11681 {
11682 PyThreadState* __tstate = wxPyBeginAllowThreads();
11683 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11684
11685 wxPyEndAllowThreads(__tstate);
11686 if (PyErr_Occurred()) SWIG_fail;
11687 }
11688 Py_INCREF(Py_None); resultobj = Py_None;
11689 {
11690 if (temp2)
11691 delete arg2;
11692 }
11693 return resultobj;
11694 fail:
11695 {
11696 if (temp2)
11697 delete arg2;
11698 }
11699 return NULL;
11700 }
11701
11702
11703 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11704 PyObject *resultobj;
11705 wxDC *arg1 = (wxDC *) 0 ;
11706 wxString *arg2 = 0 ;
11707 int arg3 ;
11708 int arg4 ;
11709 double arg5 ;
11710 bool temp2 = False ;
11711 PyObject * obj0 = 0 ;
11712 PyObject * obj1 = 0 ;
11713 PyObject * obj2 = 0 ;
11714 PyObject * obj3 = 0 ;
11715 PyObject * obj4 = 0 ;
11716 char *kwnames[] = {
11717 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11718 };
11719
11720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11723 {
11724 arg2 = wxString_in_helper(obj1);
11725 if (arg2 == NULL) SWIG_fail;
11726 temp2 = True;
11727 }
11728 arg3 = (int) SWIG_AsInt(obj2);
11729 if (PyErr_Occurred()) SWIG_fail;
11730 arg4 = (int) SWIG_AsInt(obj3);
11731 if (PyErr_Occurred()) SWIG_fail;
11732 arg5 = (double) SWIG_AsDouble(obj4);
11733 if (PyErr_Occurred()) SWIG_fail;
11734 {
11735 PyThreadState* __tstate = wxPyBeginAllowThreads();
11736 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11737
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 Py_INCREF(Py_None); resultobj = Py_None;
11742 {
11743 if (temp2)
11744 delete arg2;
11745 }
11746 return resultobj;
11747 fail:
11748 {
11749 if (temp2)
11750 delete arg2;
11751 }
11752 return NULL;
11753 }
11754
11755
11756 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11757 PyObject *resultobj;
11758 wxDC *arg1 = (wxDC *) 0 ;
11759 wxString *arg2 = 0 ;
11760 wxPoint *arg3 = 0 ;
11761 double arg4 ;
11762 bool temp2 = False ;
11763 wxPoint temp3 ;
11764 PyObject * obj0 = 0 ;
11765 PyObject * obj1 = 0 ;
11766 PyObject * obj2 = 0 ;
11767 PyObject * obj3 = 0 ;
11768 char *kwnames[] = {
11769 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11770 };
11771
11772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11775 {
11776 arg2 = wxString_in_helper(obj1);
11777 if (arg2 == NULL) SWIG_fail;
11778 temp2 = True;
11779 }
11780 {
11781 arg3 = &temp3;
11782 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11783 }
11784 arg4 = (double) SWIG_AsDouble(obj3);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 {
11787 PyThreadState* __tstate = wxPyBeginAllowThreads();
11788 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11789
11790 wxPyEndAllowThreads(__tstate);
11791 if (PyErr_Occurred()) SWIG_fail;
11792 }
11793 Py_INCREF(Py_None); resultobj = Py_None;
11794 {
11795 if (temp2)
11796 delete arg2;
11797 }
11798 return resultobj;
11799 fail:
11800 {
11801 if (temp2)
11802 delete arg2;
11803 }
11804 return NULL;
11805 }
11806
11807
11808 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11809 PyObject *resultobj;
11810 wxDC *arg1 = (wxDC *) 0 ;
11811 int arg2 ;
11812 int arg3 ;
11813 int arg4 ;
11814 int arg5 ;
11815 wxDC *arg6 = (wxDC *) 0 ;
11816 int arg7 ;
11817 int arg8 ;
11818 int arg9 = (int) wxCOPY ;
11819 bool arg10 = (bool) False ;
11820 int arg11 = (int) -1 ;
11821 int arg12 = (int) -1 ;
11822 bool result;
11823 PyObject * obj0 = 0 ;
11824 PyObject * obj1 = 0 ;
11825 PyObject * obj2 = 0 ;
11826 PyObject * obj3 = 0 ;
11827 PyObject * obj4 = 0 ;
11828 PyObject * obj5 = 0 ;
11829 PyObject * obj6 = 0 ;
11830 PyObject * obj7 = 0 ;
11831 PyObject * obj8 = 0 ;
11832 PyObject * obj9 = 0 ;
11833 PyObject * obj10 = 0 ;
11834 PyObject * obj11 = 0 ;
11835 char *kwnames[] = {
11836 (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
11837 };
11838
11839 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;
11840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11842 arg2 = (int) SWIG_AsInt(obj1);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 arg3 = (int) SWIG_AsInt(obj2);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 arg4 = (int) SWIG_AsInt(obj3);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 arg5 = (int) SWIG_AsInt(obj4);
11849 if (PyErr_Occurred()) SWIG_fail;
11850 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11852 arg7 = (int) SWIG_AsInt(obj6);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 arg8 = (int) SWIG_AsInt(obj7);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 if (obj8) {
11857 arg9 = (int) SWIG_AsInt(obj8);
11858 if (PyErr_Occurred()) SWIG_fail;
11859 }
11860 if (obj9) {
11861 arg10 = (bool) SWIG_AsBool(obj9);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 if (obj10) {
11865 arg11 = (int) SWIG_AsInt(obj10);
11866 if (PyErr_Occurred()) SWIG_fail;
11867 }
11868 if (obj11) {
11869 arg12 = (int) SWIG_AsInt(obj11);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 {
11873 PyThreadState* __tstate = wxPyBeginAllowThreads();
11874 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11875
11876 wxPyEndAllowThreads(__tstate);
11877 if (PyErr_Occurred()) SWIG_fail;
11878 }
11879 {
11880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11881 }
11882 return resultobj;
11883 fail:
11884 return NULL;
11885 }
11886
11887
11888 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11889 PyObject *resultobj;
11890 wxDC *arg1 = (wxDC *) 0 ;
11891 wxPoint *arg2 = 0 ;
11892 wxSize *arg3 = 0 ;
11893 wxDC *arg4 = (wxDC *) 0 ;
11894 wxPoint *arg5 = 0 ;
11895 int arg6 = (int) wxCOPY ;
11896 bool arg7 = (bool) False ;
11897 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11898 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11899 bool result;
11900 wxPoint temp2 ;
11901 wxSize temp3 ;
11902 wxPoint temp5 ;
11903 wxPoint temp8 ;
11904 PyObject * obj0 = 0 ;
11905 PyObject * obj1 = 0 ;
11906 PyObject * obj2 = 0 ;
11907 PyObject * obj3 = 0 ;
11908 PyObject * obj4 = 0 ;
11909 PyObject * obj5 = 0 ;
11910 PyObject * obj6 = 0 ;
11911 PyObject * obj7 = 0 ;
11912 char *kwnames[] = {
11913 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11914 };
11915
11916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11919 {
11920 arg2 = &temp2;
11921 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11922 }
11923 {
11924 arg3 = &temp3;
11925 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11926 }
11927 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11929 {
11930 arg5 = &temp5;
11931 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11932 }
11933 if (obj5) {
11934 arg6 = (int) SWIG_AsInt(obj5);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 if (obj6) {
11938 arg7 = (bool) SWIG_AsBool(obj6);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 }
11941 if (obj7) {
11942 {
11943 arg8 = &temp8;
11944 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11945 }
11946 }
11947 {
11948 PyThreadState* __tstate = wxPyBeginAllowThreads();
11949 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11950
11951 wxPyEndAllowThreads(__tstate);
11952 if (PyErr_Occurred()) SWIG_fail;
11953 }
11954 {
11955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11956 }
11957 return resultobj;
11958 fail:
11959 return NULL;
11960 }
11961
11962
11963 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11964 PyObject *resultobj;
11965 wxDC *arg1 = (wxDC *) 0 ;
11966 int arg2 ;
11967 int arg3 ;
11968 int arg4 ;
11969 int arg5 ;
11970 PyObject * obj0 = 0 ;
11971 PyObject * obj1 = 0 ;
11972 PyObject * obj2 = 0 ;
11973 PyObject * obj3 = 0 ;
11974 PyObject * obj4 = 0 ;
11975 char *kwnames[] = {
11976 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11977 };
11978
11979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11982 arg2 = (int) SWIG_AsInt(obj1);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 arg3 = (int) SWIG_AsInt(obj2);
11985 if (PyErr_Occurred()) SWIG_fail;
11986 arg4 = (int) SWIG_AsInt(obj3);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 arg5 = (int) SWIG_AsInt(obj4);
11989 if (PyErr_Occurred()) SWIG_fail;
11990 {
11991 PyThreadState* __tstate = wxPyBeginAllowThreads();
11992 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11993
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 Py_INCREF(Py_None); resultobj = Py_None;
11998 return resultobj;
11999 fail:
12000 return NULL;
12001 }
12002
12003
12004 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12005 PyObject *resultobj;
12006 wxDC *arg1 = (wxDC *) 0 ;
12007 wxPoint *arg2 = 0 ;
12008 wxSize *arg3 = 0 ;
12009 wxPoint temp2 ;
12010 wxSize temp3 ;
12011 PyObject * obj0 = 0 ;
12012 PyObject * obj1 = 0 ;
12013 PyObject * obj2 = 0 ;
12014 char *kwnames[] = {
12015 (char *) "self",(char *) "pt",(char *) "sz", NULL
12016 };
12017
12018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12021 {
12022 arg2 = &temp2;
12023 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12024 }
12025 {
12026 arg3 = &temp3;
12027 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12028 }
12029 {
12030 PyThreadState* __tstate = wxPyBeginAllowThreads();
12031 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12032
12033 wxPyEndAllowThreads(__tstate);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 }
12036 Py_INCREF(Py_None); resultobj = Py_None;
12037 return resultobj;
12038 fail:
12039 return NULL;
12040 }
12041
12042
12043 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj;
12045 wxDC *arg1 = (wxDC *) 0 ;
12046 wxRegion *arg2 = 0 ;
12047 PyObject * obj0 = 0 ;
12048 PyObject * obj1 = 0 ;
12049 char *kwnames[] = {
12050 (char *) "self",(char *) "region", NULL
12051 };
12052
12053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12056 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12057 SWIG_POINTER_EXCEPTION | 0)) == -1)
12058 SWIG_fail;
12059 if (arg2 == NULL) {
12060 PyErr_SetString(PyExc_TypeError,"null reference");
12061 SWIG_fail;
12062 }
12063 {
12064 PyThreadState* __tstate = wxPyBeginAllowThreads();
12065 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12066
12067 wxPyEndAllowThreads(__tstate);
12068 if (PyErr_Occurred()) SWIG_fail;
12069 }
12070 Py_INCREF(Py_None); resultobj = Py_None;
12071 return resultobj;
12072 fail:
12073 return NULL;
12074 }
12075
12076
12077 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12078 PyObject *resultobj;
12079 wxDC *arg1 = (wxDC *) 0 ;
12080 wxRect *arg2 = 0 ;
12081 wxRect temp2 ;
12082 PyObject * obj0 = 0 ;
12083 PyObject * obj1 = 0 ;
12084 char *kwnames[] = {
12085 (char *) "self",(char *) "rect", NULL
12086 };
12087
12088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12091 {
12092 arg2 = &temp2;
12093 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12094 }
12095 {
12096 PyThreadState* __tstate = wxPyBeginAllowThreads();
12097 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12098
12099 wxPyEndAllowThreads(__tstate);
12100 if (PyErr_Occurred()) SWIG_fail;
12101 }
12102 Py_INCREF(Py_None); resultobj = Py_None;
12103 return resultobj;
12104 fail:
12105 return NULL;
12106 }
12107
12108
12109 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12110 PyObject *resultobj;
12111 wxDC *arg1 = (wxDC *) 0 ;
12112 int arg2 ;
12113 wxPoint *arg3 = (wxPoint *) 0 ;
12114 int arg4 = (int) 0 ;
12115 int arg5 = (int) 0 ;
12116 PyObject * obj0 = 0 ;
12117 PyObject * obj1 = 0 ;
12118 PyObject * obj2 = 0 ;
12119 PyObject * obj3 = 0 ;
12120 char *kwnames[] = {
12121 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12122 };
12123
12124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12127 {
12128 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12129 if (arg3 == NULL) SWIG_fail;
12130 }
12131 if (obj2) {
12132 arg4 = (int) SWIG_AsInt(obj2);
12133 if (PyErr_Occurred()) SWIG_fail;
12134 }
12135 if (obj3) {
12136 arg5 = (int) SWIG_AsInt(obj3);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12142
12143 wxPyEndAllowThreads(__tstate);
12144 if (PyErr_Occurred()) SWIG_fail;
12145 }
12146 Py_INCREF(Py_None); resultobj = Py_None;
12147 {
12148 if (arg3) delete [] arg3;
12149 }
12150 return resultobj;
12151 fail:
12152 {
12153 if (arg3) delete [] arg3;
12154 }
12155 return NULL;
12156 }
12157
12158
12159 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12160 PyObject *resultobj;
12161 wxDC *arg1 = (wxDC *) 0 ;
12162 int arg2 ;
12163 wxPoint *arg3 = (wxPoint *) 0 ;
12164 int arg4 = (int) 0 ;
12165 int arg5 = (int) 0 ;
12166 int arg6 = (int) wxODDEVEN_RULE ;
12167 PyObject * obj0 = 0 ;
12168 PyObject * obj1 = 0 ;
12169 PyObject * obj2 = 0 ;
12170 PyObject * obj3 = 0 ;
12171 PyObject * obj4 = 0 ;
12172 char *kwnames[] = {
12173 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12174 };
12175
12176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12179 {
12180 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12181 if (arg3 == NULL) SWIG_fail;
12182 }
12183 if (obj2) {
12184 arg4 = (int) SWIG_AsInt(obj2);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 if (obj3) {
12188 arg5 = (int) SWIG_AsInt(obj3);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 if (obj4) {
12192 arg6 = (int) SWIG_AsInt(obj4);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 {
12196 PyThreadState* __tstate = wxPyBeginAllowThreads();
12197 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12198
12199 wxPyEndAllowThreads(__tstate);
12200 if (PyErr_Occurred()) SWIG_fail;
12201 }
12202 Py_INCREF(Py_None); resultobj = Py_None;
12203 {
12204 if (arg3) delete [] arg3;
12205 }
12206 return resultobj;
12207 fail:
12208 {
12209 if (arg3) delete [] arg3;
12210 }
12211 return NULL;
12212 }
12213
12214
12215 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12216 PyObject *resultobj;
12217 wxDC *arg1 = (wxDC *) 0 ;
12218 wxString *arg2 = 0 ;
12219 wxRect *arg3 = 0 ;
12220 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12221 int arg5 = (int) -1 ;
12222 bool temp2 = False ;
12223 wxRect temp3 ;
12224 PyObject * obj0 = 0 ;
12225 PyObject * obj1 = 0 ;
12226 PyObject * obj2 = 0 ;
12227 PyObject * obj3 = 0 ;
12228 PyObject * obj4 = 0 ;
12229 char *kwnames[] = {
12230 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12231 };
12232
12233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12236 {
12237 arg2 = wxString_in_helper(obj1);
12238 if (arg2 == NULL) SWIG_fail;
12239 temp2 = True;
12240 }
12241 {
12242 arg3 = &temp3;
12243 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12244 }
12245 if (obj3) {
12246 arg4 = (int) SWIG_AsInt(obj3);
12247 if (PyErr_Occurred()) SWIG_fail;
12248 }
12249 if (obj4) {
12250 arg5 = (int) SWIG_AsInt(obj4);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 {
12254 PyThreadState* __tstate = wxPyBeginAllowThreads();
12255 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12256
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) SWIG_fail;
12259 }
12260 Py_INCREF(Py_None); resultobj = Py_None;
12261 {
12262 if (temp2)
12263 delete arg2;
12264 }
12265 return resultobj;
12266 fail:
12267 {
12268 if (temp2)
12269 delete arg2;
12270 }
12271 return NULL;
12272 }
12273
12274
12275 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12276 PyObject *resultobj;
12277 wxDC *arg1 = (wxDC *) 0 ;
12278 wxString *arg2 = 0 ;
12279 wxBitmap *arg3 = 0 ;
12280 wxRect *arg4 = 0 ;
12281 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12282 int arg6 = (int) -1 ;
12283 wxRect result;
12284 bool temp2 = False ;
12285 wxRect temp4 ;
12286 PyObject * obj0 = 0 ;
12287 PyObject * obj1 = 0 ;
12288 PyObject * obj2 = 0 ;
12289 PyObject * obj3 = 0 ;
12290 PyObject * obj4 = 0 ;
12291 PyObject * obj5 = 0 ;
12292 char *kwnames[] = {
12293 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12294 };
12295
12296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12299 {
12300 arg2 = wxString_in_helper(obj1);
12301 if (arg2 == NULL) SWIG_fail;
12302 temp2 = True;
12303 }
12304 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12305 SWIG_POINTER_EXCEPTION | 0)) == -1)
12306 SWIG_fail;
12307 if (arg3 == NULL) {
12308 PyErr_SetString(PyExc_TypeError,"null reference");
12309 SWIG_fail;
12310 }
12311 {
12312 arg4 = &temp4;
12313 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12314 }
12315 if (obj4) {
12316 arg5 = (int) SWIG_AsInt(obj4);
12317 if (PyErr_Occurred()) SWIG_fail;
12318 }
12319 if (obj5) {
12320 arg6 = (int) SWIG_AsInt(obj5);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 {
12324 PyThreadState* __tstate = wxPyBeginAllowThreads();
12325 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12326
12327 wxPyEndAllowThreads(__tstate);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 }
12330 {
12331 wxRect * resultptr;
12332 resultptr = new wxRect((wxRect &) result);
12333 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12334 }
12335 {
12336 if (temp2)
12337 delete arg2;
12338 }
12339 return resultobj;
12340 fail:
12341 {
12342 if (temp2)
12343 delete arg2;
12344 }
12345 return NULL;
12346 }
12347
12348
12349 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12350 PyObject *resultobj;
12351 wxDC *arg1 = (wxDC *) 0 ;
12352 int arg2 ;
12353 wxPoint *arg3 = (wxPoint *) 0 ;
12354 PyObject * obj0 = 0 ;
12355 PyObject * obj1 = 0 ;
12356 char *kwnames[] = {
12357 (char *) "self",(char *) "points", NULL
12358 };
12359
12360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12363 {
12364 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12365 if (arg3 == NULL) SWIG_fail;
12366 }
12367 {
12368 PyThreadState* __tstate = wxPyBeginAllowThreads();
12369 (arg1)->DrawSpline(arg2,arg3);
12370
12371 wxPyEndAllowThreads(__tstate);
12372 if (PyErr_Occurred()) SWIG_fail;
12373 }
12374 Py_INCREF(Py_None); resultobj = Py_None;
12375 {
12376 if (arg3) delete [] arg3;
12377 }
12378 return resultobj;
12379 fail:
12380 {
12381 if (arg3) delete [] arg3;
12382 }
12383 return NULL;
12384 }
12385
12386
12387 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12388 PyObject *resultobj;
12389 wxDC *arg1 = (wxDC *) 0 ;
12390 PyObject * obj0 = 0 ;
12391 char *kwnames[] = {
12392 (char *) "self", NULL
12393 };
12394
12395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12398 {
12399 PyThreadState* __tstate = wxPyBeginAllowThreads();
12400 (arg1)->Clear();
12401
12402 wxPyEndAllowThreads(__tstate);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 Py_INCREF(Py_None); resultobj = Py_None;
12406 return resultobj;
12407 fail:
12408 return NULL;
12409 }
12410
12411
12412 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12413 PyObject *resultobj;
12414 wxDC *arg1 = (wxDC *) 0 ;
12415 wxString *arg2 = 0 ;
12416 bool result;
12417 bool temp2 = False ;
12418 PyObject * obj0 = 0 ;
12419 PyObject * obj1 = 0 ;
12420 char *kwnames[] = {
12421 (char *) "self",(char *) "message", NULL
12422 };
12423
12424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12427 {
12428 arg2 = wxString_in_helper(obj1);
12429 if (arg2 == NULL) SWIG_fail;
12430 temp2 = True;
12431 }
12432 {
12433 PyThreadState* __tstate = wxPyBeginAllowThreads();
12434 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12435
12436 wxPyEndAllowThreads(__tstate);
12437 if (PyErr_Occurred()) SWIG_fail;
12438 }
12439 {
12440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12441 }
12442 {
12443 if (temp2)
12444 delete arg2;
12445 }
12446 return resultobj;
12447 fail:
12448 {
12449 if (temp2)
12450 delete arg2;
12451 }
12452 return NULL;
12453 }
12454
12455
12456 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12457 PyObject *resultobj;
12458 wxDC *arg1 = (wxDC *) 0 ;
12459 PyObject * obj0 = 0 ;
12460 char *kwnames[] = {
12461 (char *) "self", NULL
12462 };
12463
12464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12467 {
12468 PyThreadState* __tstate = wxPyBeginAllowThreads();
12469 (arg1)->EndDoc();
12470
12471 wxPyEndAllowThreads(__tstate);
12472 if (PyErr_Occurred()) SWIG_fail;
12473 }
12474 Py_INCREF(Py_None); resultobj = Py_None;
12475 return resultobj;
12476 fail:
12477 return NULL;
12478 }
12479
12480
12481 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12482 PyObject *resultobj;
12483 wxDC *arg1 = (wxDC *) 0 ;
12484 PyObject * obj0 = 0 ;
12485 char *kwnames[] = {
12486 (char *) "self", NULL
12487 };
12488
12489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12492 {
12493 PyThreadState* __tstate = wxPyBeginAllowThreads();
12494 (arg1)->StartPage();
12495
12496 wxPyEndAllowThreads(__tstate);
12497 if (PyErr_Occurred()) SWIG_fail;
12498 }
12499 Py_INCREF(Py_None); resultobj = Py_None;
12500 return resultobj;
12501 fail:
12502 return NULL;
12503 }
12504
12505
12506 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12507 PyObject *resultobj;
12508 wxDC *arg1 = (wxDC *) 0 ;
12509 PyObject * obj0 = 0 ;
12510 char *kwnames[] = {
12511 (char *) "self", NULL
12512 };
12513
12514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12517 {
12518 PyThreadState* __tstate = wxPyBeginAllowThreads();
12519 (arg1)->EndPage();
12520
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 Py_INCREF(Py_None); resultobj = Py_None;
12525 return resultobj;
12526 fail:
12527 return NULL;
12528 }
12529
12530
12531 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12532 PyObject *resultobj;
12533 wxDC *arg1 = (wxDC *) 0 ;
12534 wxFont *arg2 = 0 ;
12535 PyObject * obj0 = 0 ;
12536 PyObject * obj1 = 0 ;
12537 char *kwnames[] = {
12538 (char *) "self",(char *) "font", NULL
12539 };
12540
12541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12544 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12545 SWIG_POINTER_EXCEPTION | 0)) == -1)
12546 SWIG_fail;
12547 if (arg2 == NULL) {
12548 PyErr_SetString(PyExc_TypeError,"null reference");
12549 SWIG_fail;
12550 }
12551 {
12552 PyThreadState* __tstate = wxPyBeginAllowThreads();
12553 (arg1)->SetFont((wxFont const &)*arg2);
12554
12555 wxPyEndAllowThreads(__tstate);
12556 if (PyErr_Occurred()) SWIG_fail;
12557 }
12558 Py_INCREF(Py_None); resultobj = Py_None;
12559 return resultobj;
12560 fail:
12561 return NULL;
12562 }
12563
12564
12565 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12566 PyObject *resultobj;
12567 wxDC *arg1 = (wxDC *) 0 ;
12568 wxPen *arg2 = 0 ;
12569 PyObject * obj0 = 0 ;
12570 PyObject * obj1 = 0 ;
12571 char *kwnames[] = {
12572 (char *) "self",(char *) "pen", NULL
12573 };
12574
12575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12579 SWIG_POINTER_EXCEPTION | 0)) == -1)
12580 SWIG_fail;
12581 if (arg2 == NULL) {
12582 PyErr_SetString(PyExc_TypeError,"null reference");
12583 SWIG_fail;
12584 }
12585 {
12586 PyThreadState* __tstate = wxPyBeginAllowThreads();
12587 (arg1)->SetPen((wxPen const &)*arg2);
12588
12589 wxPyEndAllowThreads(__tstate);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 }
12592 Py_INCREF(Py_None); resultobj = Py_None;
12593 return resultobj;
12594 fail:
12595 return NULL;
12596 }
12597
12598
12599 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12600 PyObject *resultobj;
12601 wxDC *arg1 = (wxDC *) 0 ;
12602 wxBrush *arg2 = 0 ;
12603 PyObject * obj0 = 0 ;
12604 PyObject * obj1 = 0 ;
12605 char *kwnames[] = {
12606 (char *) "self",(char *) "brush", NULL
12607 };
12608
12609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12612 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12613 SWIG_POINTER_EXCEPTION | 0)) == -1)
12614 SWIG_fail;
12615 if (arg2 == NULL) {
12616 PyErr_SetString(PyExc_TypeError,"null reference");
12617 SWIG_fail;
12618 }
12619 {
12620 PyThreadState* __tstate = wxPyBeginAllowThreads();
12621 (arg1)->SetBrush((wxBrush const &)*arg2);
12622
12623 wxPyEndAllowThreads(__tstate);
12624 if (PyErr_Occurred()) SWIG_fail;
12625 }
12626 Py_INCREF(Py_None); resultobj = Py_None;
12627 return resultobj;
12628 fail:
12629 return NULL;
12630 }
12631
12632
12633 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12634 PyObject *resultobj;
12635 wxDC *arg1 = (wxDC *) 0 ;
12636 wxBrush *arg2 = 0 ;
12637 PyObject * obj0 = 0 ;
12638 PyObject * obj1 = 0 ;
12639 char *kwnames[] = {
12640 (char *) "self",(char *) "brush", NULL
12641 };
12642
12643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12646 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12647 SWIG_POINTER_EXCEPTION | 0)) == -1)
12648 SWIG_fail;
12649 if (arg2 == NULL) {
12650 PyErr_SetString(PyExc_TypeError,"null reference");
12651 SWIG_fail;
12652 }
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 (arg1)->SetBackground((wxBrush const &)*arg2);
12656
12657 wxPyEndAllowThreads(__tstate);
12658 if (PyErr_Occurred()) SWIG_fail;
12659 }
12660 Py_INCREF(Py_None); resultobj = Py_None;
12661 return resultobj;
12662 fail:
12663 return NULL;
12664 }
12665
12666
12667 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12668 PyObject *resultobj;
12669 wxDC *arg1 = (wxDC *) 0 ;
12670 int arg2 ;
12671 PyObject * obj0 = 0 ;
12672 PyObject * obj1 = 0 ;
12673 char *kwnames[] = {
12674 (char *) "self",(char *) "mode", NULL
12675 };
12676
12677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12680 arg2 = (int) SWIG_AsInt(obj1);
12681 if (PyErr_Occurred()) SWIG_fail;
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 (arg1)->SetBackgroundMode(arg2);
12685
12686 wxPyEndAllowThreads(__tstate);
12687 if (PyErr_Occurred()) SWIG_fail;
12688 }
12689 Py_INCREF(Py_None); resultobj = Py_None;
12690 return resultobj;
12691 fail:
12692 return NULL;
12693 }
12694
12695
12696 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12697 PyObject *resultobj;
12698 wxDC *arg1 = (wxDC *) 0 ;
12699 wxPalette *arg2 = 0 ;
12700 PyObject * obj0 = 0 ;
12701 PyObject * obj1 = 0 ;
12702 char *kwnames[] = {
12703 (char *) "self",(char *) "palette", NULL
12704 };
12705
12706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12709 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12710 SWIG_POINTER_EXCEPTION | 0)) == -1)
12711 SWIG_fail;
12712 if (arg2 == NULL) {
12713 PyErr_SetString(PyExc_TypeError,"null reference");
12714 SWIG_fail;
12715 }
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 (arg1)->SetPalette((wxPalette const &)*arg2);
12719
12720 wxPyEndAllowThreads(__tstate);
12721 if (PyErr_Occurred()) SWIG_fail;
12722 }
12723 Py_INCREF(Py_None); resultobj = Py_None;
12724 return resultobj;
12725 fail:
12726 return NULL;
12727 }
12728
12729
12730 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12731 PyObject *resultobj;
12732 wxDC *arg1 = (wxDC *) 0 ;
12733 PyObject * obj0 = 0 ;
12734 char *kwnames[] = {
12735 (char *) "self", NULL
12736 };
12737
12738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12741 {
12742 PyThreadState* __tstate = wxPyBeginAllowThreads();
12743 (arg1)->DestroyClippingRegion();
12744
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 Py_INCREF(Py_None); resultobj = Py_None;
12749 return resultobj;
12750 fail:
12751 return NULL;
12752 }
12753
12754
12755 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12756 PyObject *resultobj;
12757 wxDC *arg1 = (wxDC *) 0 ;
12758 int *arg2 = (int *) 0 ;
12759 int *arg3 = (int *) 0 ;
12760 int *arg4 = (int *) 0 ;
12761 int *arg5 = (int *) 0 ;
12762 int temp2 ;
12763 int temp3 ;
12764 int temp4 ;
12765 int temp5 ;
12766 PyObject * obj0 = 0 ;
12767 char *kwnames[] = {
12768 (char *) "self", NULL
12769 };
12770
12771 arg2 = &temp2;
12772 arg3 = &temp3;
12773 arg4 = &temp4;
12774 arg5 = &temp5;
12775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12778 {
12779 PyThreadState* __tstate = wxPyBeginAllowThreads();
12780 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12781
12782 wxPyEndAllowThreads(__tstate);
12783 if (PyErr_Occurred()) SWIG_fail;
12784 }
12785 Py_INCREF(Py_None); resultobj = Py_None;
12786 {
12787 PyObject *o = PyInt_FromLong((long) (*arg2));
12788 resultobj = t_output_helper(resultobj,o);
12789 }
12790 {
12791 PyObject *o = PyInt_FromLong((long) (*arg3));
12792 resultobj = t_output_helper(resultobj,o);
12793 }
12794 {
12795 PyObject *o = PyInt_FromLong((long) (*arg4));
12796 resultobj = t_output_helper(resultobj,o);
12797 }
12798 {
12799 PyObject *o = PyInt_FromLong((long) (*arg5));
12800 resultobj = t_output_helper(resultobj,o);
12801 }
12802 return resultobj;
12803 fail:
12804 return NULL;
12805 }
12806
12807
12808 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12809 PyObject *resultobj;
12810 wxDC *arg1 = (wxDC *) 0 ;
12811 wxRect result;
12812 PyObject * obj0 = 0 ;
12813 char *kwnames[] = {
12814 (char *) "self", NULL
12815 };
12816
12817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12820 {
12821 PyThreadState* __tstate = wxPyBeginAllowThreads();
12822 result = wxDC_GetClippingRect(arg1);
12823
12824 wxPyEndAllowThreads(__tstate);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 {
12828 wxRect * resultptr;
12829 resultptr = new wxRect((wxRect &) result);
12830 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12831 }
12832 return resultobj;
12833 fail:
12834 return NULL;
12835 }
12836
12837
12838 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12839 PyObject *resultobj;
12840 wxDC *arg1 = (wxDC *) 0 ;
12841 int result;
12842 PyObject * obj0 = 0 ;
12843 char *kwnames[] = {
12844 (char *) "self", NULL
12845 };
12846
12847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12850 {
12851 PyThreadState* __tstate = wxPyBeginAllowThreads();
12852 result = (int)((wxDC const *)arg1)->GetCharHeight();
12853
12854 wxPyEndAllowThreads(__tstate);
12855 if (PyErr_Occurred()) SWIG_fail;
12856 }
12857 resultobj = SWIG_FromInt((int)result);
12858 return resultobj;
12859 fail:
12860 return NULL;
12861 }
12862
12863
12864 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj;
12866 wxDC *arg1 = (wxDC *) 0 ;
12867 int result;
12868 PyObject * obj0 = 0 ;
12869 char *kwnames[] = {
12870 (char *) "self", NULL
12871 };
12872
12873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 result = (int)((wxDC const *)arg1)->GetCharWidth();
12879
12880 wxPyEndAllowThreads(__tstate);
12881 if (PyErr_Occurred()) SWIG_fail;
12882 }
12883 resultobj = SWIG_FromInt((int)result);
12884 return resultobj;
12885 fail:
12886 return NULL;
12887 }
12888
12889
12890 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12891 PyObject *resultobj;
12892 wxDC *arg1 = (wxDC *) 0 ;
12893 wxString *arg2 = 0 ;
12894 int *arg3 = (int *) 0 ;
12895 int *arg4 = (int *) 0 ;
12896 bool temp2 = False ;
12897 int temp3 ;
12898 int temp4 ;
12899 PyObject * obj0 = 0 ;
12900 PyObject * obj1 = 0 ;
12901 char *kwnames[] = {
12902 (char *) "self",(char *) "string", NULL
12903 };
12904
12905 arg3 = &temp3;
12906 arg4 = &temp4;
12907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12910 {
12911 arg2 = wxString_in_helper(obj1);
12912 if (arg2 == NULL) SWIG_fail;
12913 temp2 = True;
12914 }
12915 {
12916 PyThreadState* __tstate = wxPyBeginAllowThreads();
12917 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12918
12919 wxPyEndAllowThreads(__tstate);
12920 if (PyErr_Occurred()) SWIG_fail;
12921 }
12922 Py_INCREF(Py_None); resultobj = Py_None;
12923 {
12924 PyObject *o = PyInt_FromLong((long) (*arg3));
12925 resultobj = t_output_helper(resultobj,o);
12926 }
12927 {
12928 PyObject *o = PyInt_FromLong((long) (*arg4));
12929 resultobj = t_output_helper(resultobj,o);
12930 }
12931 {
12932 if (temp2)
12933 delete arg2;
12934 }
12935 return resultobj;
12936 fail:
12937 {
12938 if (temp2)
12939 delete arg2;
12940 }
12941 return NULL;
12942 }
12943
12944
12945 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12946 PyObject *resultobj;
12947 wxDC *arg1 = (wxDC *) 0 ;
12948 wxString *arg2 = 0 ;
12949 int *arg3 = (int *) 0 ;
12950 int *arg4 = (int *) 0 ;
12951 int *arg5 = (int *) 0 ;
12952 int *arg6 = (int *) 0 ;
12953 wxFont *arg7 = (wxFont *) NULL ;
12954 bool temp2 = False ;
12955 int temp3 ;
12956 int temp4 ;
12957 int temp5 ;
12958 int temp6 ;
12959 PyObject * obj0 = 0 ;
12960 PyObject * obj1 = 0 ;
12961 PyObject * obj2 = 0 ;
12962 char *kwnames[] = {
12963 (char *) "self",(char *) "string",(char *) "font", NULL
12964 };
12965
12966 arg3 = &temp3;
12967 arg4 = &temp4;
12968 arg5 = &temp5;
12969 arg6 = &temp6;
12970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12973 {
12974 arg2 = wxString_in_helper(obj1);
12975 if (arg2 == NULL) SWIG_fail;
12976 temp2 = True;
12977 }
12978 if (obj2) {
12979 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12981 }
12982 {
12983 PyThreadState* __tstate = wxPyBeginAllowThreads();
12984 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12985
12986 wxPyEndAllowThreads(__tstate);
12987 if (PyErr_Occurred()) SWIG_fail;
12988 }
12989 Py_INCREF(Py_None); resultobj = Py_None;
12990 {
12991 PyObject *o = PyInt_FromLong((long) (*arg3));
12992 resultobj = t_output_helper(resultobj,o);
12993 }
12994 {
12995 PyObject *o = PyInt_FromLong((long) (*arg4));
12996 resultobj = t_output_helper(resultobj,o);
12997 }
12998 {
12999 PyObject *o = PyInt_FromLong((long) (*arg5));
13000 resultobj = t_output_helper(resultobj,o);
13001 }
13002 {
13003 PyObject *o = PyInt_FromLong((long) (*arg6));
13004 resultobj = t_output_helper(resultobj,o);
13005 }
13006 {
13007 if (temp2)
13008 delete arg2;
13009 }
13010 return resultobj;
13011 fail:
13012 {
13013 if (temp2)
13014 delete arg2;
13015 }
13016 return NULL;
13017 }
13018
13019
13020 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13021 PyObject *resultobj;
13022 wxDC *arg1 = (wxDC *) 0 ;
13023 wxString *arg2 = 0 ;
13024 int *arg3 = (int *) 0 ;
13025 int *arg4 = (int *) 0 ;
13026 int *arg5 = (int *) 0 ;
13027 wxFont *arg6 = (wxFont *) NULL ;
13028 bool temp2 = False ;
13029 int temp3 ;
13030 int temp4 ;
13031 int temp5 ;
13032 PyObject * obj0 = 0 ;
13033 PyObject * obj1 = 0 ;
13034 PyObject * obj2 = 0 ;
13035 char *kwnames[] = {
13036 (char *) "self",(char *) "text",(char *) "font", NULL
13037 };
13038
13039 arg3 = &temp3;
13040 arg4 = &temp4;
13041 arg5 = &temp5;
13042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13045 {
13046 arg2 = wxString_in_helper(obj1);
13047 if (arg2 == NULL) SWIG_fail;
13048 temp2 = True;
13049 }
13050 if (obj2) {
13051 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13053 }
13054 {
13055 PyThreadState* __tstate = wxPyBeginAllowThreads();
13056 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13057
13058 wxPyEndAllowThreads(__tstate);
13059 if (PyErr_Occurred()) SWIG_fail;
13060 }
13061 Py_INCREF(Py_None); resultobj = Py_None;
13062 {
13063 PyObject *o = PyInt_FromLong((long) (*arg3));
13064 resultobj = t_output_helper(resultobj,o);
13065 }
13066 {
13067 PyObject *o = PyInt_FromLong((long) (*arg4));
13068 resultobj = t_output_helper(resultobj,o);
13069 }
13070 {
13071 PyObject *o = PyInt_FromLong((long) (*arg5));
13072 resultobj = t_output_helper(resultobj,o);
13073 }
13074 {
13075 if (temp2)
13076 delete arg2;
13077 }
13078 return resultobj;
13079 fail:
13080 {
13081 if (temp2)
13082 delete arg2;
13083 }
13084 return NULL;
13085 }
13086
13087
13088 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13089 PyObject *resultobj;
13090 wxDC *arg1 = (wxDC *) 0 ;
13091 wxString *arg2 = 0 ;
13092 wxArrayInt result;
13093 bool temp2 = False ;
13094 PyObject * obj0 = 0 ;
13095 PyObject * obj1 = 0 ;
13096 char *kwnames[] = {
13097 (char *) "self",(char *) "text", NULL
13098 };
13099
13100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13103 {
13104 arg2 = wxString_in_helper(obj1);
13105 if (arg2 == NULL) SWIG_fail;
13106 temp2 = True;
13107 }
13108 {
13109 PyThreadState* __tstate = wxPyBeginAllowThreads();
13110 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13111
13112 wxPyEndAllowThreads(__tstate);
13113 if (PyErr_Occurred()) SWIG_fail;
13114 }
13115 {
13116 resultobj = PyList_New(0);
13117 size_t idx;
13118 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13119 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13120 PyList_Append(resultobj, val);
13121 Py_DECREF(val);
13122 }
13123 }
13124 {
13125 if (temp2)
13126 delete arg2;
13127 }
13128 return resultobj;
13129 fail:
13130 {
13131 if (temp2)
13132 delete arg2;
13133 }
13134 return NULL;
13135 }
13136
13137
13138 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13139 PyObject *resultobj;
13140 wxDC *arg1 = (wxDC *) 0 ;
13141 wxSize result;
13142 PyObject * obj0 = 0 ;
13143 char *kwnames[] = {
13144 (char *) "self", NULL
13145 };
13146
13147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13150 {
13151 PyThreadState* __tstate = wxPyBeginAllowThreads();
13152 result = (arg1)->GetSize();
13153
13154 wxPyEndAllowThreads(__tstate);
13155 if (PyErr_Occurred()) SWIG_fail;
13156 }
13157 {
13158 wxSize * resultptr;
13159 resultptr = new wxSize((wxSize &) result);
13160 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13161 }
13162 return resultobj;
13163 fail:
13164 return NULL;
13165 }
13166
13167
13168 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13169 PyObject *resultobj;
13170 wxDC *arg1 = (wxDC *) 0 ;
13171 int *arg2 = (int *) 0 ;
13172 int *arg3 = (int *) 0 ;
13173 int temp2 ;
13174 int temp3 ;
13175 PyObject * obj0 = 0 ;
13176 char *kwnames[] = {
13177 (char *) "self", NULL
13178 };
13179
13180 arg2 = &temp2;
13181 arg3 = &temp3;
13182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13185 {
13186 PyThreadState* __tstate = wxPyBeginAllowThreads();
13187 (arg1)->GetSize(arg2,arg3);
13188
13189 wxPyEndAllowThreads(__tstate);
13190 if (PyErr_Occurred()) SWIG_fail;
13191 }
13192 Py_INCREF(Py_None); resultobj = Py_None;
13193 {
13194 PyObject *o = PyInt_FromLong((long) (*arg2));
13195 resultobj = t_output_helper(resultobj,o);
13196 }
13197 {
13198 PyObject *o = PyInt_FromLong((long) (*arg3));
13199 resultobj = t_output_helper(resultobj,o);
13200 }
13201 return resultobj;
13202 fail:
13203 return NULL;
13204 }
13205
13206
13207 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13208 PyObject *resultobj;
13209 wxDC *arg1 = (wxDC *) 0 ;
13210 wxSize result;
13211 PyObject * obj0 = 0 ;
13212 char *kwnames[] = {
13213 (char *) "self", NULL
13214 };
13215
13216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13219 {
13220 PyThreadState* __tstate = wxPyBeginAllowThreads();
13221 result = ((wxDC const *)arg1)->GetSizeMM();
13222
13223 wxPyEndAllowThreads(__tstate);
13224 if (PyErr_Occurred()) SWIG_fail;
13225 }
13226 {
13227 wxSize * resultptr;
13228 resultptr = new wxSize((wxSize &) result);
13229 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13230 }
13231 return resultobj;
13232 fail:
13233 return NULL;
13234 }
13235
13236
13237 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13238 PyObject *resultobj;
13239 wxDC *arg1 = (wxDC *) 0 ;
13240 int *arg2 = (int *) 0 ;
13241 int *arg3 = (int *) 0 ;
13242 int temp2 ;
13243 int temp3 ;
13244 PyObject * obj0 = 0 ;
13245 char *kwnames[] = {
13246 (char *) "self", NULL
13247 };
13248
13249 arg2 = &temp2;
13250 arg3 = &temp3;
13251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13254 {
13255 PyThreadState* __tstate = wxPyBeginAllowThreads();
13256 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13257
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 Py_INCREF(Py_None); resultobj = Py_None;
13262 {
13263 PyObject *o = PyInt_FromLong((long) (*arg2));
13264 resultobj = t_output_helper(resultobj,o);
13265 }
13266 {
13267 PyObject *o = PyInt_FromLong((long) (*arg3));
13268 resultobj = t_output_helper(resultobj,o);
13269 }
13270 return resultobj;
13271 fail:
13272 return NULL;
13273 }
13274
13275
13276 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13277 PyObject *resultobj;
13278 wxDC *arg1 = (wxDC *) 0 ;
13279 int arg2 ;
13280 int result;
13281 PyObject * obj0 = 0 ;
13282 PyObject * obj1 = 0 ;
13283 char *kwnames[] = {
13284 (char *) "self",(char *) "x", NULL
13285 };
13286
13287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13290 arg2 = (int) SWIG_AsInt(obj1);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 {
13293 PyThreadState* __tstate = wxPyBeginAllowThreads();
13294 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13295
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_FromInt((int)result);
13300 return resultobj;
13301 fail:
13302 return NULL;
13303 }
13304
13305
13306 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13307 PyObject *resultobj;
13308 wxDC *arg1 = (wxDC *) 0 ;
13309 int arg2 ;
13310 int result;
13311 PyObject * obj0 = 0 ;
13312 PyObject * obj1 = 0 ;
13313 char *kwnames[] = {
13314 (char *) "self",(char *) "y", NULL
13315 };
13316
13317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13320 arg2 = (int) SWIG_AsInt(obj1);
13321 if (PyErr_Occurred()) SWIG_fail;
13322 {
13323 PyThreadState* __tstate = wxPyBeginAllowThreads();
13324 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13325
13326 wxPyEndAllowThreads(__tstate);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 resultobj = SWIG_FromInt((int)result);
13330 return resultobj;
13331 fail:
13332 return NULL;
13333 }
13334
13335
13336 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13337 PyObject *resultobj;
13338 wxDC *arg1 = (wxDC *) 0 ;
13339 int arg2 ;
13340 int result;
13341 PyObject * obj0 = 0 ;
13342 PyObject * obj1 = 0 ;
13343 char *kwnames[] = {
13344 (char *) "self",(char *) "x", NULL
13345 };
13346
13347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13350 arg2 = (int) SWIG_AsInt(obj1);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 {
13353 PyThreadState* __tstate = wxPyBeginAllowThreads();
13354 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13355
13356 wxPyEndAllowThreads(__tstate);
13357 if (PyErr_Occurred()) SWIG_fail;
13358 }
13359 resultobj = SWIG_FromInt((int)result);
13360 return resultobj;
13361 fail:
13362 return NULL;
13363 }
13364
13365
13366 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13367 PyObject *resultobj;
13368 wxDC *arg1 = (wxDC *) 0 ;
13369 int arg2 ;
13370 int result;
13371 PyObject * obj0 = 0 ;
13372 PyObject * obj1 = 0 ;
13373 char *kwnames[] = {
13374 (char *) "self",(char *) "y", NULL
13375 };
13376
13377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13380 arg2 = (int) SWIG_AsInt(obj1);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 {
13383 PyThreadState* __tstate = wxPyBeginAllowThreads();
13384 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13385
13386 wxPyEndAllowThreads(__tstate);
13387 if (PyErr_Occurred()) SWIG_fail;
13388 }
13389 resultobj = SWIG_FromInt((int)result);
13390 return resultobj;
13391 fail:
13392 return NULL;
13393 }
13394
13395
13396 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13397 PyObject *resultobj;
13398 wxDC *arg1 = (wxDC *) 0 ;
13399 int arg2 ;
13400 int result;
13401 PyObject * obj0 = 0 ;
13402 PyObject * obj1 = 0 ;
13403 char *kwnames[] = {
13404 (char *) "self",(char *) "x", NULL
13405 };
13406
13407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13410 arg2 = (int) SWIG_AsInt(obj1);
13411 if (PyErr_Occurred()) SWIG_fail;
13412 {
13413 PyThreadState* __tstate = wxPyBeginAllowThreads();
13414 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13415
13416 wxPyEndAllowThreads(__tstate);
13417 if (PyErr_Occurred()) SWIG_fail;
13418 }
13419 resultobj = SWIG_FromInt((int)result);
13420 return resultobj;
13421 fail:
13422 return NULL;
13423 }
13424
13425
13426 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13427 PyObject *resultobj;
13428 wxDC *arg1 = (wxDC *) 0 ;
13429 int arg2 ;
13430 int result;
13431 PyObject * obj0 = 0 ;
13432 PyObject * obj1 = 0 ;
13433 char *kwnames[] = {
13434 (char *) "self",(char *) "y", NULL
13435 };
13436
13437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13440 arg2 = (int) SWIG_AsInt(obj1);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 {
13443 PyThreadState* __tstate = wxPyBeginAllowThreads();
13444 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13445
13446 wxPyEndAllowThreads(__tstate);
13447 if (PyErr_Occurred()) SWIG_fail;
13448 }
13449 resultobj = SWIG_FromInt((int)result);
13450 return resultobj;
13451 fail:
13452 return NULL;
13453 }
13454
13455
13456 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13457 PyObject *resultobj;
13458 wxDC *arg1 = (wxDC *) 0 ;
13459 int arg2 ;
13460 int result;
13461 PyObject * obj0 = 0 ;
13462 PyObject * obj1 = 0 ;
13463 char *kwnames[] = {
13464 (char *) "self",(char *) "x", NULL
13465 };
13466
13467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13470 arg2 = (int) SWIG_AsInt(obj1);
13471 if (PyErr_Occurred()) SWIG_fail;
13472 {
13473 PyThreadState* __tstate = wxPyBeginAllowThreads();
13474 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13475
13476 wxPyEndAllowThreads(__tstate);
13477 if (PyErr_Occurred()) SWIG_fail;
13478 }
13479 resultobj = SWIG_FromInt((int)result);
13480 return resultobj;
13481 fail:
13482 return NULL;
13483 }
13484
13485
13486 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13487 PyObject *resultobj;
13488 wxDC *arg1 = (wxDC *) 0 ;
13489 int arg2 ;
13490 int result;
13491 PyObject * obj0 = 0 ;
13492 PyObject * obj1 = 0 ;
13493 char *kwnames[] = {
13494 (char *) "self",(char *) "y", NULL
13495 };
13496
13497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13500 arg2 = (int) SWIG_AsInt(obj1);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 {
13503 PyThreadState* __tstate = wxPyBeginAllowThreads();
13504 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13505
13506 wxPyEndAllowThreads(__tstate);
13507 if (PyErr_Occurred()) SWIG_fail;
13508 }
13509 resultobj = SWIG_FromInt((int)result);
13510 return resultobj;
13511 fail:
13512 return NULL;
13513 }
13514
13515
13516 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13517 PyObject *resultobj;
13518 wxDC *arg1 = (wxDC *) 0 ;
13519 bool result;
13520 PyObject * obj0 = 0 ;
13521 char *kwnames[] = {
13522 (char *) "self", NULL
13523 };
13524
13525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13531
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 {
13536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13537 }
13538 return resultobj;
13539 fail:
13540 return NULL;
13541 }
13542
13543
13544 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13545 PyObject *resultobj;
13546 wxDC *arg1 = (wxDC *) 0 ;
13547 bool result;
13548 PyObject * obj0 = 0 ;
13549 char *kwnames[] = {
13550 (char *) "self", NULL
13551 };
13552
13553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
13558 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13559
13560 wxPyEndAllowThreads(__tstate);
13561 if (PyErr_Occurred()) SWIG_fail;
13562 }
13563 {
13564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13565 }
13566 return resultobj;
13567 fail:
13568 return NULL;
13569 }
13570
13571
13572 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13573 PyObject *resultobj;
13574 wxDC *arg1 = (wxDC *) 0 ;
13575 int result;
13576 PyObject * obj0 = 0 ;
13577 char *kwnames[] = {
13578 (char *) "self", NULL
13579 };
13580
13581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13584 {
13585 PyThreadState* __tstate = wxPyBeginAllowThreads();
13586 result = (int)((wxDC const *)arg1)->GetDepth();
13587
13588 wxPyEndAllowThreads(__tstate);
13589 if (PyErr_Occurred()) SWIG_fail;
13590 }
13591 resultobj = SWIG_FromInt((int)result);
13592 return resultobj;
13593 fail:
13594 return NULL;
13595 }
13596
13597
13598 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13599 PyObject *resultobj;
13600 wxDC *arg1 = (wxDC *) 0 ;
13601 wxSize result;
13602 PyObject * obj0 = 0 ;
13603 char *kwnames[] = {
13604 (char *) "self", NULL
13605 };
13606
13607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = ((wxDC const *)arg1)->GetPPI();
13613
13614 wxPyEndAllowThreads(__tstate);
13615 if (PyErr_Occurred()) SWIG_fail;
13616 }
13617 {
13618 wxSize * resultptr;
13619 resultptr = new wxSize((wxSize &) result);
13620 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13621 }
13622 return resultobj;
13623 fail:
13624 return NULL;
13625 }
13626
13627
13628 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13629 PyObject *resultobj;
13630 wxDC *arg1 = (wxDC *) 0 ;
13631 bool result;
13632 PyObject * obj0 = 0 ;
13633 char *kwnames[] = {
13634 (char *) "self", NULL
13635 };
13636
13637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13640 {
13641 PyThreadState* __tstate = wxPyBeginAllowThreads();
13642 result = (bool)((wxDC const *)arg1)->Ok();
13643
13644 wxPyEndAllowThreads(__tstate);
13645 if (PyErr_Occurred()) SWIG_fail;
13646 }
13647 {
13648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13649 }
13650 return resultobj;
13651 fail:
13652 return NULL;
13653 }
13654
13655
13656 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13657 PyObject *resultobj;
13658 wxDC *arg1 = (wxDC *) 0 ;
13659 int result;
13660 PyObject * obj0 = 0 ;
13661 char *kwnames[] = {
13662 (char *) "self", NULL
13663 };
13664
13665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13668 {
13669 PyThreadState* __tstate = wxPyBeginAllowThreads();
13670 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13671
13672 wxPyEndAllowThreads(__tstate);
13673 if (PyErr_Occurred()) SWIG_fail;
13674 }
13675 resultobj = SWIG_FromInt((int)result);
13676 return resultobj;
13677 fail:
13678 return NULL;
13679 }
13680
13681
13682 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj;
13684 wxDC *arg1 = (wxDC *) 0 ;
13685 wxBrush *result;
13686 PyObject * obj0 = 0 ;
13687 char *kwnames[] = {
13688 (char *) "self", NULL
13689 };
13690
13691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13694 {
13695 PyThreadState* __tstate = wxPyBeginAllowThreads();
13696 {
13697 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13698 result = (wxBrush *) &_result_ref;
13699 }
13700
13701 wxPyEndAllowThreads(__tstate);
13702 if (PyErr_Occurred()) SWIG_fail;
13703 }
13704 {
13705 wxBrush* resultptr = new wxBrush(*result);
13706 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13707 }
13708 return resultobj;
13709 fail:
13710 return NULL;
13711 }
13712
13713
13714 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13715 PyObject *resultobj;
13716 wxDC *arg1 = (wxDC *) 0 ;
13717 wxBrush *result;
13718 PyObject * obj0 = 0 ;
13719 char *kwnames[] = {
13720 (char *) "self", NULL
13721 };
13722
13723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13726 {
13727 PyThreadState* __tstate = wxPyBeginAllowThreads();
13728 {
13729 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13730 result = (wxBrush *) &_result_ref;
13731 }
13732
13733 wxPyEndAllowThreads(__tstate);
13734 if (PyErr_Occurred()) SWIG_fail;
13735 }
13736 {
13737 wxBrush* resultptr = new wxBrush(*result);
13738 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13739 }
13740 return resultobj;
13741 fail:
13742 return NULL;
13743 }
13744
13745
13746 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13747 PyObject *resultobj;
13748 wxDC *arg1 = (wxDC *) 0 ;
13749 wxFont *result;
13750 PyObject * obj0 = 0 ;
13751 char *kwnames[] = {
13752 (char *) "self", NULL
13753 };
13754
13755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13758 {
13759 PyThreadState* __tstate = wxPyBeginAllowThreads();
13760 {
13761 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13762 result = (wxFont *) &_result_ref;
13763 }
13764
13765 wxPyEndAllowThreads(__tstate);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 }
13768 {
13769 wxFont* resultptr = new wxFont(*result);
13770 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13771 }
13772 return resultobj;
13773 fail:
13774 return NULL;
13775 }
13776
13777
13778 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13779 PyObject *resultobj;
13780 wxDC *arg1 = (wxDC *) 0 ;
13781 wxPen *result;
13782 PyObject * obj0 = 0 ;
13783 char *kwnames[] = {
13784 (char *) "self", NULL
13785 };
13786
13787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13790 {
13791 PyThreadState* __tstate = wxPyBeginAllowThreads();
13792 {
13793 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13794 result = (wxPen *) &_result_ref;
13795 }
13796
13797 wxPyEndAllowThreads(__tstate);
13798 if (PyErr_Occurred()) SWIG_fail;
13799 }
13800 {
13801 wxPen* resultptr = new wxPen(*result);
13802 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13803 }
13804 return resultobj;
13805 fail:
13806 return NULL;
13807 }
13808
13809
13810 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13811 PyObject *resultobj;
13812 wxDC *arg1 = (wxDC *) 0 ;
13813 wxColour *result;
13814 PyObject * obj0 = 0 ;
13815 char *kwnames[] = {
13816 (char *) "self", NULL
13817 };
13818
13819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13822 {
13823 PyThreadState* __tstate = wxPyBeginAllowThreads();
13824 {
13825 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13826 result = (wxColour *) &_result_ref;
13827 }
13828
13829 wxPyEndAllowThreads(__tstate);
13830 if (PyErr_Occurred()) SWIG_fail;
13831 }
13832 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13833 return resultobj;
13834 fail:
13835 return NULL;
13836 }
13837
13838
13839 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13840 PyObject *resultobj;
13841 wxDC *arg1 = (wxDC *) 0 ;
13842 wxColour *result;
13843 PyObject * obj0 = 0 ;
13844 char *kwnames[] = {
13845 (char *) "self", NULL
13846 };
13847
13848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13851 {
13852 PyThreadState* __tstate = wxPyBeginAllowThreads();
13853 {
13854 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13855 result = (wxColour *) &_result_ref;
13856 }
13857
13858 wxPyEndAllowThreads(__tstate);
13859 if (PyErr_Occurred()) SWIG_fail;
13860 }
13861 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13862 return resultobj;
13863 fail:
13864 return NULL;
13865 }
13866
13867
13868 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13869 PyObject *resultobj;
13870 wxDC *arg1 = (wxDC *) 0 ;
13871 wxColour *arg2 = 0 ;
13872 wxColour temp2 ;
13873 PyObject * obj0 = 0 ;
13874 PyObject * obj1 = 0 ;
13875 char *kwnames[] = {
13876 (char *) "self",(char *) "colour", NULL
13877 };
13878
13879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13882 {
13883 arg2 = &temp2;
13884 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13885 }
13886 {
13887 PyThreadState* __tstate = wxPyBeginAllowThreads();
13888 (arg1)->SetTextForeground((wxColour const &)*arg2);
13889
13890 wxPyEndAllowThreads(__tstate);
13891 if (PyErr_Occurred()) SWIG_fail;
13892 }
13893 Py_INCREF(Py_None); resultobj = Py_None;
13894 return resultobj;
13895 fail:
13896 return NULL;
13897 }
13898
13899
13900 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13901 PyObject *resultobj;
13902 wxDC *arg1 = (wxDC *) 0 ;
13903 wxColour *arg2 = 0 ;
13904 wxColour temp2 ;
13905 PyObject * obj0 = 0 ;
13906 PyObject * obj1 = 0 ;
13907 char *kwnames[] = {
13908 (char *) "self",(char *) "colour", NULL
13909 };
13910
13911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13914 {
13915 arg2 = &temp2;
13916 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13917 }
13918 {
13919 PyThreadState* __tstate = wxPyBeginAllowThreads();
13920 (arg1)->SetTextBackground((wxColour const &)*arg2);
13921
13922 wxPyEndAllowThreads(__tstate);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 Py_INCREF(Py_None); resultobj = Py_None;
13926 return resultobj;
13927 fail:
13928 return NULL;
13929 }
13930
13931
13932 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13933 PyObject *resultobj;
13934 wxDC *arg1 = (wxDC *) 0 ;
13935 int result;
13936 PyObject * obj0 = 0 ;
13937 char *kwnames[] = {
13938 (char *) "self", NULL
13939 };
13940
13941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13944 {
13945 PyThreadState* __tstate = wxPyBeginAllowThreads();
13946 result = (int)((wxDC const *)arg1)->GetMapMode();
13947
13948 wxPyEndAllowThreads(__tstate);
13949 if (PyErr_Occurred()) SWIG_fail;
13950 }
13951 resultobj = SWIG_FromInt((int)result);
13952 return resultobj;
13953 fail:
13954 return NULL;
13955 }
13956
13957
13958 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13959 PyObject *resultobj;
13960 wxDC *arg1 = (wxDC *) 0 ;
13961 int arg2 ;
13962 PyObject * obj0 = 0 ;
13963 PyObject * obj1 = 0 ;
13964 char *kwnames[] = {
13965 (char *) "self",(char *) "mode", NULL
13966 };
13967
13968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13971 arg2 = (int) SWIG_AsInt(obj1);
13972 if (PyErr_Occurred()) SWIG_fail;
13973 {
13974 PyThreadState* __tstate = wxPyBeginAllowThreads();
13975 (arg1)->SetMapMode(arg2);
13976
13977 wxPyEndAllowThreads(__tstate);
13978 if (PyErr_Occurred()) SWIG_fail;
13979 }
13980 Py_INCREF(Py_None); resultobj = Py_None;
13981 return resultobj;
13982 fail:
13983 return NULL;
13984 }
13985
13986
13987 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13988 PyObject *resultobj;
13989 wxDC *arg1 = (wxDC *) 0 ;
13990 double *arg2 = (double *) 0 ;
13991 double *arg3 = (double *) 0 ;
13992 double temp2 ;
13993 double temp3 ;
13994 PyObject * obj0 = 0 ;
13995 char *kwnames[] = {
13996 (char *) "self", NULL
13997 };
13998
13999 arg2 = &temp2;
14000 arg3 = &temp3;
14001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14004 {
14005 PyThreadState* __tstate = wxPyBeginAllowThreads();
14006 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14007
14008 wxPyEndAllowThreads(__tstate);
14009 if (PyErr_Occurred()) SWIG_fail;
14010 }
14011 Py_INCREF(Py_None); resultobj = Py_None;
14012 {
14013 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14014 resultobj = t_output_helper(resultobj,o);
14015 }
14016 {
14017 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14018 resultobj = t_output_helper(resultobj,o);
14019 }
14020 return resultobj;
14021 fail:
14022 return NULL;
14023 }
14024
14025
14026 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14027 PyObject *resultobj;
14028 wxDC *arg1 = (wxDC *) 0 ;
14029 double arg2 ;
14030 double arg3 ;
14031 PyObject * obj0 = 0 ;
14032 PyObject * obj1 = 0 ;
14033 PyObject * obj2 = 0 ;
14034 char *kwnames[] = {
14035 (char *) "self",(char *) "x",(char *) "y", NULL
14036 };
14037
14038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14041 arg2 = (double) SWIG_AsDouble(obj1);
14042 if (PyErr_Occurred()) SWIG_fail;
14043 arg3 = (double) SWIG_AsDouble(obj2);
14044 if (PyErr_Occurred()) SWIG_fail;
14045 {
14046 PyThreadState* __tstate = wxPyBeginAllowThreads();
14047 (arg1)->SetUserScale(arg2,arg3);
14048
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 Py_INCREF(Py_None); resultobj = Py_None;
14053 return resultobj;
14054 fail:
14055 return NULL;
14056 }
14057
14058
14059 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14060 PyObject *resultobj;
14061 wxDC *arg1 = (wxDC *) 0 ;
14062 double *arg2 = (double *) 0 ;
14063 double *arg3 = (double *) 0 ;
14064 double temp2 ;
14065 double temp3 ;
14066 PyObject * obj0 = 0 ;
14067 char *kwnames[] = {
14068 (char *) "self", NULL
14069 };
14070
14071 arg2 = &temp2;
14072 arg3 = &temp3;
14073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14076 {
14077 PyThreadState* __tstate = wxPyBeginAllowThreads();
14078 (arg1)->GetLogicalScale(arg2,arg3);
14079
14080 wxPyEndAllowThreads(__tstate);
14081 if (PyErr_Occurred()) SWIG_fail;
14082 }
14083 Py_INCREF(Py_None); resultobj = Py_None;
14084 {
14085 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14086 resultobj = t_output_helper(resultobj,o);
14087 }
14088 {
14089 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14090 resultobj = t_output_helper(resultobj,o);
14091 }
14092 return resultobj;
14093 fail:
14094 return NULL;
14095 }
14096
14097
14098 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14099 PyObject *resultobj;
14100 wxDC *arg1 = (wxDC *) 0 ;
14101 double arg2 ;
14102 double arg3 ;
14103 PyObject * obj0 = 0 ;
14104 PyObject * obj1 = 0 ;
14105 PyObject * obj2 = 0 ;
14106 char *kwnames[] = {
14107 (char *) "self",(char *) "x",(char *) "y", NULL
14108 };
14109
14110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14113 arg2 = (double) SWIG_AsDouble(obj1);
14114 if (PyErr_Occurred()) SWIG_fail;
14115 arg3 = (double) SWIG_AsDouble(obj2);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 {
14118 PyThreadState* __tstate = wxPyBeginAllowThreads();
14119 (arg1)->SetLogicalScale(arg2,arg3);
14120
14121 wxPyEndAllowThreads(__tstate);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 }
14124 Py_INCREF(Py_None); resultobj = Py_None;
14125 return resultobj;
14126 fail:
14127 return NULL;
14128 }
14129
14130
14131 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14132 PyObject *resultobj;
14133 wxDC *arg1 = (wxDC *) 0 ;
14134 wxPoint result;
14135 PyObject * obj0 = 0 ;
14136 char *kwnames[] = {
14137 (char *) "self", NULL
14138 };
14139
14140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14143 {
14144 PyThreadState* __tstate = wxPyBeginAllowThreads();
14145 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14146
14147 wxPyEndAllowThreads(__tstate);
14148 if (PyErr_Occurred()) SWIG_fail;
14149 }
14150 {
14151 wxPoint * resultptr;
14152 resultptr = new wxPoint((wxPoint &) result);
14153 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14154 }
14155 return resultobj;
14156 fail:
14157 return NULL;
14158 }
14159
14160
14161 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14162 PyObject *resultobj;
14163 wxDC *arg1 = (wxDC *) 0 ;
14164 int *arg2 = (int *) 0 ;
14165 int *arg3 = (int *) 0 ;
14166 int temp2 ;
14167 int temp3 ;
14168 PyObject * obj0 = 0 ;
14169 char *kwnames[] = {
14170 (char *) "self", NULL
14171 };
14172
14173 arg2 = &temp2;
14174 arg3 = &temp3;
14175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14178 {
14179 PyThreadState* __tstate = wxPyBeginAllowThreads();
14180 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14181
14182 wxPyEndAllowThreads(__tstate);
14183 if (PyErr_Occurred()) SWIG_fail;
14184 }
14185 Py_INCREF(Py_None); resultobj = Py_None;
14186 {
14187 PyObject *o = PyInt_FromLong((long) (*arg2));
14188 resultobj = t_output_helper(resultobj,o);
14189 }
14190 {
14191 PyObject *o = PyInt_FromLong((long) (*arg3));
14192 resultobj = t_output_helper(resultobj,o);
14193 }
14194 return resultobj;
14195 fail:
14196 return NULL;
14197 }
14198
14199
14200 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14201 PyObject *resultobj;
14202 wxDC *arg1 = (wxDC *) 0 ;
14203 int arg2 ;
14204 int arg3 ;
14205 PyObject * obj0 = 0 ;
14206 PyObject * obj1 = 0 ;
14207 PyObject * obj2 = 0 ;
14208 char *kwnames[] = {
14209 (char *) "self",(char *) "x",(char *) "y", NULL
14210 };
14211
14212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14215 arg2 = (int) SWIG_AsInt(obj1);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 arg3 = (int) SWIG_AsInt(obj2);
14218 if (PyErr_Occurred()) SWIG_fail;
14219 {
14220 PyThreadState* __tstate = wxPyBeginAllowThreads();
14221 (arg1)->SetLogicalOrigin(arg2,arg3);
14222
14223 wxPyEndAllowThreads(__tstate);
14224 if (PyErr_Occurred()) SWIG_fail;
14225 }
14226 Py_INCREF(Py_None); resultobj = Py_None;
14227 return resultobj;
14228 fail:
14229 return NULL;
14230 }
14231
14232
14233 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14234 PyObject *resultobj;
14235 wxDC *arg1 = (wxDC *) 0 ;
14236 wxPoint *arg2 = 0 ;
14237 wxPoint temp2 ;
14238 PyObject * obj0 = 0 ;
14239 PyObject * obj1 = 0 ;
14240 char *kwnames[] = {
14241 (char *) "self",(char *) "point", NULL
14242 };
14243
14244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14247 {
14248 arg2 = &temp2;
14249 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14250 }
14251 {
14252 PyThreadState* __tstate = wxPyBeginAllowThreads();
14253 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14254
14255 wxPyEndAllowThreads(__tstate);
14256 if (PyErr_Occurred()) SWIG_fail;
14257 }
14258 Py_INCREF(Py_None); resultobj = Py_None;
14259 return resultobj;
14260 fail:
14261 return NULL;
14262 }
14263
14264
14265 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14266 PyObject *resultobj;
14267 wxDC *arg1 = (wxDC *) 0 ;
14268 wxPoint result;
14269 PyObject * obj0 = 0 ;
14270 char *kwnames[] = {
14271 (char *) "self", NULL
14272 };
14273
14274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14277 {
14278 PyThreadState* __tstate = wxPyBeginAllowThreads();
14279 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14280
14281 wxPyEndAllowThreads(__tstate);
14282 if (PyErr_Occurred()) SWIG_fail;
14283 }
14284 {
14285 wxPoint * resultptr;
14286 resultptr = new wxPoint((wxPoint &) result);
14287 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14288 }
14289 return resultobj;
14290 fail:
14291 return NULL;
14292 }
14293
14294
14295 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14296 PyObject *resultobj;
14297 wxDC *arg1 = (wxDC *) 0 ;
14298 int *arg2 = (int *) 0 ;
14299 int *arg3 = (int *) 0 ;
14300 int temp2 ;
14301 int temp3 ;
14302 PyObject * obj0 = 0 ;
14303 char *kwnames[] = {
14304 (char *) "self", NULL
14305 };
14306
14307 arg2 = &temp2;
14308 arg3 = &temp3;
14309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14312 {
14313 PyThreadState* __tstate = wxPyBeginAllowThreads();
14314 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14315
14316 wxPyEndAllowThreads(__tstate);
14317 if (PyErr_Occurred()) SWIG_fail;
14318 }
14319 Py_INCREF(Py_None); resultobj = Py_None;
14320 {
14321 PyObject *o = PyInt_FromLong((long) (*arg2));
14322 resultobj = t_output_helper(resultobj,o);
14323 }
14324 {
14325 PyObject *o = PyInt_FromLong((long) (*arg3));
14326 resultobj = t_output_helper(resultobj,o);
14327 }
14328 return resultobj;
14329 fail:
14330 return NULL;
14331 }
14332
14333
14334 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14335 PyObject *resultobj;
14336 wxDC *arg1 = (wxDC *) 0 ;
14337 int arg2 ;
14338 int arg3 ;
14339 PyObject * obj0 = 0 ;
14340 PyObject * obj1 = 0 ;
14341 PyObject * obj2 = 0 ;
14342 char *kwnames[] = {
14343 (char *) "self",(char *) "x",(char *) "y", NULL
14344 };
14345
14346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14349 arg2 = (int) SWIG_AsInt(obj1);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 arg3 = (int) SWIG_AsInt(obj2);
14352 if (PyErr_Occurred()) SWIG_fail;
14353 {
14354 PyThreadState* __tstate = wxPyBeginAllowThreads();
14355 (arg1)->SetDeviceOrigin(arg2,arg3);
14356
14357 wxPyEndAllowThreads(__tstate);
14358 if (PyErr_Occurred()) SWIG_fail;
14359 }
14360 Py_INCREF(Py_None); resultobj = Py_None;
14361 return resultobj;
14362 fail:
14363 return NULL;
14364 }
14365
14366
14367 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14368 PyObject *resultobj;
14369 wxDC *arg1 = (wxDC *) 0 ;
14370 wxPoint *arg2 = 0 ;
14371 wxPoint temp2 ;
14372 PyObject * obj0 = 0 ;
14373 PyObject * obj1 = 0 ;
14374 char *kwnames[] = {
14375 (char *) "self",(char *) "point", NULL
14376 };
14377
14378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14381 {
14382 arg2 = &temp2;
14383 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14384 }
14385 {
14386 PyThreadState* __tstate = wxPyBeginAllowThreads();
14387 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14388
14389 wxPyEndAllowThreads(__tstate);
14390 if (PyErr_Occurred()) SWIG_fail;
14391 }
14392 Py_INCREF(Py_None); resultobj = Py_None;
14393 return resultobj;
14394 fail:
14395 return NULL;
14396 }
14397
14398
14399 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14400 PyObject *resultobj;
14401 wxDC *arg1 = (wxDC *) 0 ;
14402 bool arg2 ;
14403 bool arg3 ;
14404 PyObject * obj0 = 0 ;
14405 PyObject * obj1 = 0 ;
14406 PyObject * obj2 = 0 ;
14407 char *kwnames[] = {
14408 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14409 };
14410
14411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14414 arg2 = (bool) SWIG_AsBool(obj1);
14415 if (PyErr_Occurred()) SWIG_fail;
14416 arg3 = (bool) SWIG_AsBool(obj2);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 {
14419 PyThreadState* __tstate = wxPyBeginAllowThreads();
14420 (arg1)->SetAxisOrientation(arg2,arg3);
14421
14422 wxPyEndAllowThreads(__tstate);
14423 if (PyErr_Occurred()) SWIG_fail;
14424 }
14425 Py_INCREF(Py_None); resultobj = Py_None;
14426 return resultobj;
14427 fail:
14428 return NULL;
14429 }
14430
14431
14432 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14433 PyObject *resultobj;
14434 wxDC *arg1 = (wxDC *) 0 ;
14435 int result;
14436 PyObject * obj0 = 0 ;
14437 char *kwnames[] = {
14438 (char *) "self", NULL
14439 };
14440
14441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14444 {
14445 PyThreadState* __tstate = wxPyBeginAllowThreads();
14446 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14447
14448 wxPyEndAllowThreads(__tstate);
14449 if (PyErr_Occurred()) SWIG_fail;
14450 }
14451 resultobj = SWIG_FromInt((int)result);
14452 return resultobj;
14453 fail:
14454 return NULL;
14455 }
14456
14457
14458 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14459 PyObject *resultobj;
14460 wxDC *arg1 = (wxDC *) 0 ;
14461 int arg2 ;
14462 PyObject * obj0 = 0 ;
14463 PyObject * obj1 = 0 ;
14464 char *kwnames[] = {
14465 (char *) "self",(char *) "function", NULL
14466 };
14467
14468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14471 arg2 = (int) SWIG_AsInt(obj1);
14472 if (PyErr_Occurred()) SWIG_fail;
14473 {
14474 PyThreadState* __tstate = wxPyBeginAllowThreads();
14475 (arg1)->SetLogicalFunction(arg2);
14476
14477 wxPyEndAllowThreads(__tstate);
14478 if (PyErr_Occurred()) SWIG_fail;
14479 }
14480 Py_INCREF(Py_None); resultobj = Py_None;
14481 return resultobj;
14482 fail:
14483 return NULL;
14484 }
14485
14486
14487 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14488 PyObject *resultobj;
14489 wxDC *arg1 = (wxDC *) 0 ;
14490 bool arg2 ;
14491 PyObject * obj0 = 0 ;
14492 PyObject * obj1 = 0 ;
14493 char *kwnames[] = {
14494 (char *) "self",(char *) "optimize", NULL
14495 };
14496
14497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14500 arg2 = (bool) SWIG_AsBool(obj1);
14501 if (PyErr_Occurred()) SWIG_fail;
14502 {
14503 PyThreadState* __tstate = wxPyBeginAllowThreads();
14504 (arg1)->SetOptimization(arg2);
14505
14506 wxPyEndAllowThreads(__tstate);
14507 if (PyErr_Occurred()) SWIG_fail;
14508 }
14509 Py_INCREF(Py_None); resultobj = Py_None;
14510 return resultobj;
14511 fail:
14512 return NULL;
14513 }
14514
14515
14516 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14517 PyObject *resultobj;
14518 wxDC *arg1 = (wxDC *) 0 ;
14519 bool result;
14520 PyObject * obj0 = 0 ;
14521 char *kwnames[] = {
14522 (char *) "self", NULL
14523 };
14524
14525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14528 {
14529 PyThreadState* __tstate = wxPyBeginAllowThreads();
14530 result = (bool)(arg1)->GetOptimization();
14531
14532 wxPyEndAllowThreads(__tstate);
14533 if (PyErr_Occurred()) SWIG_fail;
14534 }
14535 {
14536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14537 }
14538 return resultobj;
14539 fail:
14540 return NULL;
14541 }
14542
14543
14544 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14545 PyObject *resultobj;
14546 wxDC *arg1 = (wxDC *) 0 ;
14547 int arg2 ;
14548 int arg3 ;
14549 PyObject * obj0 = 0 ;
14550 PyObject * obj1 = 0 ;
14551 PyObject * obj2 = 0 ;
14552 char *kwnames[] = {
14553 (char *) "self",(char *) "x",(char *) "y", NULL
14554 };
14555
14556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14559 arg2 = (int) SWIG_AsInt(obj1);
14560 if (PyErr_Occurred()) SWIG_fail;
14561 arg3 = (int) SWIG_AsInt(obj2);
14562 if (PyErr_Occurred()) SWIG_fail;
14563 {
14564 PyThreadState* __tstate = wxPyBeginAllowThreads();
14565 (arg1)->CalcBoundingBox(arg2,arg3);
14566
14567 wxPyEndAllowThreads(__tstate);
14568 if (PyErr_Occurred()) SWIG_fail;
14569 }
14570 Py_INCREF(Py_None); resultobj = Py_None;
14571 return resultobj;
14572 fail:
14573 return NULL;
14574 }
14575
14576
14577 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14578 PyObject *resultobj;
14579 wxDC *arg1 = (wxDC *) 0 ;
14580 wxPoint *arg2 = 0 ;
14581 wxPoint temp2 ;
14582 PyObject * obj0 = 0 ;
14583 PyObject * obj1 = 0 ;
14584 char *kwnames[] = {
14585 (char *) "self",(char *) "point", NULL
14586 };
14587
14588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14591 {
14592 arg2 = &temp2;
14593 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14594 }
14595 {
14596 PyThreadState* __tstate = wxPyBeginAllowThreads();
14597 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14598
14599 wxPyEndAllowThreads(__tstate);
14600 if (PyErr_Occurred()) SWIG_fail;
14601 }
14602 Py_INCREF(Py_None); resultobj = Py_None;
14603 return resultobj;
14604 fail:
14605 return NULL;
14606 }
14607
14608
14609 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14610 PyObject *resultobj;
14611 wxDC *arg1 = (wxDC *) 0 ;
14612 PyObject * obj0 = 0 ;
14613 char *kwnames[] = {
14614 (char *) "self", NULL
14615 };
14616
14617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14620 {
14621 PyThreadState* __tstate = wxPyBeginAllowThreads();
14622 (arg1)->ResetBoundingBox();
14623
14624 wxPyEndAllowThreads(__tstate);
14625 if (PyErr_Occurred()) SWIG_fail;
14626 }
14627 Py_INCREF(Py_None); resultobj = Py_None;
14628 return resultobj;
14629 fail:
14630 return NULL;
14631 }
14632
14633
14634 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14635 PyObject *resultobj;
14636 wxDC *arg1 = (wxDC *) 0 ;
14637 int result;
14638 PyObject * obj0 = 0 ;
14639 char *kwnames[] = {
14640 (char *) "self", NULL
14641 };
14642
14643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14646 {
14647 PyThreadState* __tstate = wxPyBeginAllowThreads();
14648 result = (int)((wxDC const *)arg1)->MinX();
14649
14650 wxPyEndAllowThreads(__tstate);
14651 if (PyErr_Occurred()) SWIG_fail;
14652 }
14653 resultobj = SWIG_FromInt((int)result);
14654 return resultobj;
14655 fail:
14656 return NULL;
14657 }
14658
14659
14660 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14661 PyObject *resultobj;
14662 wxDC *arg1 = (wxDC *) 0 ;
14663 int result;
14664 PyObject * obj0 = 0 ;
14665 char *kwnames[] = {
14666 (char *) "self", NULL
14667 };
14668
14669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14672 {
14673 PyThreadState* __tstate = wxPyBeginAllowThreads();
14674 result = (int)((wxDC const *)arg1)->MaxX();
14675
14676 wxPyEndAllowThreads(__tstate);
14677 if (PyErr_Occurred()) SWIG_fail;
14678 }
14679 resultobj = SWIG_FromInt((int)result);
14680 return resultobj;
14681 fail:
14682 return NULL;
14683 }
14684
14685
14686 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14687 PyObject *resultobj;
14688 wxDC *arg1 = (wxDC *) 0 ;
14689 int result;
14690 PyObject * obj0 = 0 ;
14691 char *kwnames[] = {
14692 (char *) "self", NULL
14693 };
14694
14695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14698 {
14699 PyThreadState* __tstate = wxPyBeginAllowThreads();
14700 result = (int)((wxDC const *)arg1)->MinY();
14701
14702 wxPyEndAllowThreads(__tstate);
14703 if (PyErr_Occurred()) SWIG_fail;
14704 }
14705 resultobj = SWIG_FromInt((int)result);
14706 return resultobj;
14707 fail:
14708 return NULL;
14709 }
14710
14711
14712 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14713 PyObject *resultobj;
14714 wxDC *arg1 = (wxDC *) 0 ;
14715 int result;
14716 PyObject * obj0 = 0 ;
14717 char *kwnames[] = {
14718 (char *) "self", NULL
14719 };
14720
14721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14724 {
14725 PyThreadState* __tstate = wxPyBeginAllowThreads();
14726 result = (int)((wxDC const *)arg1)->MaxY();
14727
14728 wxPyEndAllowThreads(__tstate);
14729 if (PyErr_Occurred()) SWIG_fail;
14730 }
14731 resultobj = SWIG_FromInt((int)result);
14732 return resultobj;
14733 fail:
14734 return NULL;
14735 }
14736
14737
14738 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14739 PyObject *resultobj;
14740 wxDC *arg1 = (wxDC *) 0 ;
14741 int *arg2 = (int *) 0 ;
14742 int *arg3 = (int *) 0 ;
14743 int *arg4 = (int *) 0 ;
14744 int *arg5 = (int *) 0 ;
14745 int temp2 ;
14746 int temp3 ;
14747 int temp4 ;
14748 int temp5 ;
14749 PyObject * obj0 = 0 ;
14750 char *kwnames[] = {
14751 (char *) "self", NULL
14752 };
14753
14754 arg2 = &temp2;
14755 arg3 = &temp3;
14756 arg4 = &temp4;
14757 arg5 = &temp5;
14758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14761 {
14762 PyThreadState* __tstate = wxPyBeginAllowThreads();
14763 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14764
14765 wxPyEndAllowThreads(__tstate);
14766 if (PyErr_Occurred()) SWIG_fail;
14767 }
14768 Py_INCREF(Py_None); resultobj = Py_None;
14769 {
14770 PyObject *o = PyInt_FromLong((long) (*arg2));
14771 resultobj = t_output_helper(resultobj,o);
14772 }
14773 {
14774 PyObject *o = PyInt_FromLong((long) (*arg3));
14775 resultobj = t_output_helper(resultobj,o);
14776 }
14777 {
14778 PyObject *o = PyInt_FromLong((long) (*arg4));
14779 resultobj = t_output_helper(resultobj,o);
14780 }
14781 {
14782 PyObject *o = PyInt_FromLong((long) (*arg5));
14783 resultobj = t_output_helper(resultobj,o);
14784 }
14785 return resultobj;
14786 fail:
14787 return NULL;
14788 }
14789
14790
14791 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14792 PyObject *resultobj;
14793 wxDC *arg1 = (wxDC *) 0 ;
14794 PyObject *arg2 = (PyObject *) 0 ;
14795 PyObject *arg3 = (PyObject *) 0 ;
14796 PyObject *arg4 = (PyObject *) 0 ;
14797 PyObject *result;
14798 PyObject * obj0 = 0 ;
14799 PyObject * obj1 = 0 ;
14800 PyObject * obj2 = 0 ;
14801 PyObject * obj3 = 0 ;
14802 char *kwnames[] = {
14803 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14804 };
14805
14806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14809 arg2 = obj1;
14810 arg3 = obj2;
14811 arg4 = obj3;
14812 {
14813 PyThreadState* __tstate = wxPyBeginAllowThreads();
14814 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14815
14816 wxPyEndAllowThreads(__tstate);
14817 if (PyErr_Occurred()) SWIG_fail;
14818 }
14819 resultobj = result;
14820 return resultobj;
14821 fail:
14822 return NULL;
14823 }
14824
14825
14826 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14827 PyObject *resultobj;
14828 wxDC *arg1 = (wxDC *) 0 ;
14829 PyObject *arg2 = (PyObject *) 0 ;
14830 PyObject *arg3 = (PyObject *) 0 ;
14831 PyObject *arg4 = (PyObject *) 0 ;
14832 PyObject *result;
14833 PyObject * obj0 = 0 ;
14834 PyObject * obj1 = 0 ;
14835 PyObject * obj2 = 0 ;
14836 PyObject * obj3 = 0 ;
14837 char *kwnames[] = {
14838 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14839 };
14840
14841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14844 arg2 = obj1;
14845 arg3 = obj2;
14846 arg4 = obj3;
14847 {
14848 PyThreadState* __tstate = wxPyBeginAllowThreads();
14849 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14850
14851 wxPyEndAllowThreads(__tstate);
14852 if (PyErr_Occurred()) SWIG_fail;
14853 }
14854 resultobj = result;
14855 return resultobj;
14856 fail:
14857 return NULL;
14858 }
14859
14860
14861 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14862 PyObject *resultobj;
14863 wxDC *arg1 = (wxDC *) 0 ;
14864 PyObject *arg2 = (PyObject *) 0 ;
14865 PyObject *arg3 = (PyObject *) 0 ;
14866 PyObject *arg4 = (PyObject *) 0 ;
14867 PyObject *result;
14868 PyObject * obj0 = 0 ;
14869 PyObject * obj1 = 0 ;
14870 PyObject * obj2 = 0 ;
14871 PyObject * obj3 = 0 ;
14872 char *kwnames[] = {
14873 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14874 };
14875
14876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14879 arg2 = obj1;
14880 arg3 = obj2;
14881 arg4 = obj3;
14882 {
14883 PyThreadState* __tstate = wxPyBeginAllowThreads();
14884 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14885
14886 wxPyEndAllowThreads(__tstate);
14887 if (PyErr_Occurred()) SWIG_fail;
14888 }
14889 resultobj = result;
14890 return resultobj;
14891 fail:
14892 return NULL;
14893 }
14894
14895
14896 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14897 PyObject *resultobj;
14898 wxDC *arg1 = (wxDC *) 0 ;
14899 PyObject *arg2 = (PyObject *) 0 ;
14900 PyObject *arg3 = (PyObject *) 0 ;
14901 PyObject *arg4 = (PyObject *) 0 ;
14902 PyObject *result;
14903 PyObject * obj0 = 0 ;
14904 PyObject * obj1 = 0 ;
14905 PyObject * obj2 = 0 ;
14906 PyObject * obj3 = 0 ;
14907 char *kwnames[] = {
14908 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14909 };
14910
14911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14914 arg2 = obj1;
14915 arg3 = obj2;
14916 arg4 = obj3;
14917 {
14918 PyThreadState* __tstate = wxPyBeginAllowThreads();
14919 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14920
14921 wxPyEndAllowThreads(__tstate);
14922 if (PyErr_Occurred()) SWIG_fail;
14923 }
14924 resultobj = result;
14925 return resultobj;
14926 fail:
14927 return NULL;
14928 }
14929
14930
14931 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14932 PyObject *resultobj;
14933 wxDC *arg1 = (wxDC *) 0 ;
14934 PyObject *arg2 = (PyObject *) 0 ;
14935 PyObject *arg3 = (PyObject *) 0 ;
14936 PyObject *arg4 = (PyObject *) 0 ;
14937 PyObject *result;
14938 PyObject * obj0 = 0 ;
14939 PyObject * obj1 = 0 ;
14940 PyObject * obj2 = 0 ;
14941 PyObject * obj3 = 0 ;
14942 char *kwnames[] = {
14943 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14944 };
14945
14946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14949 arg2 = obj1;
14950 arg3 = obj2;
14951 arg4 = obj3;
14952 {
14953 PyThreadState* __tstate = wxPyBeginAllowThreads();
14954 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14955
14956 wxPyEndAllowThreads(__tstate);
14957 if (PyErr_Occurred()) SWIG_fail;
14958 }
14959 resultobj = result;
14960 return resultobj;
14961 fail:
14962 return NULL;
14963 }
14964
14965
14966 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14967 PyObject *resultobj;
14968 wxDC *arg1 = (wxDC *) 0 ;
14969 PyObject *arg2 = (PyObject *) 0 ;
14970 PyObject *arg3 = (PyObject *) 0 ;
14971 PyObject *arg4 = (PyObject *) 0 ;
14972 PyObject *arg5 = (PyObject *) 0 ;
14973 PyObject *result;
14974 PyObject * obj0 = 0 ;
14975 PyObject * obj1 = 0 ;
14976 PyObject * obj2 = 0 ;
14977 PyObject * obj3 = 0 ;
14978 PyObject * obj4 = 0 ;
14979 char *kwnames[] = {
14980 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14981 };
14982
14983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14986 arg2 = obj1;
14987 arg3 = obj2;
14988 arg4 = obj3;
14989 arg5 = obj4;
14990 {
14991 PyThreadState* __tstate = wxPyBeginAllowThreads();
14992 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14993
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 resultobj = result;
14998 return resultobj;
14999 fail:
15000 return NULL;
15001 }
15002
15003
15004 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15005 PyObject *obj;
15006 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15007 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15008 Py_INCREF(obj);
15009 return Py_BuildValue((char *)"");
15010 }
15011 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15012 PyObject *resultobj;
15013 wxMemoryDC *result;
15014 char *kwnames[] = {
15015 NULL
15016 };
15017
15018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15019 {
15020 if (!wxPyCheckForApp()) SWIG_fail;
15021 PyThreadState* __tstate = wxPyBeginAllowThreads();
15022 result = (wxMemoryDC *)new wxMemoryDC();
15023
15024 wxPyEndAllowThreads(__tstate);
15025 if (PyErr_Occurred()) SWIG_fail;
15026 }
15027 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15028 return resultobj;
15029 fail:
15030 return NULL;
15031 }
15032
15033
15034 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15035 PyObject *resultobj;
15036 wxDC *arg1 = (wxDC *) 0 ;
15037 wxMemoryDC *result;
15038 PyObject * obj0 = 0 ;
15039 char *kwnames[] = {
15040 (char *) "oldDC", NULL
15041 };
15042
15043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15046 {
15047 if (!wxPyCheckForApp()) SWIG_fail;
15048 PyThreadState* __tstate = wxPyBeginAllowThreads();
15049 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15050
15051 wxPyEndAllowThreads(__tstate);
15052 if (PyErr_Occurred()) SWIG_fail;
15053 }
15054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15055 return resultobj;
15056 fail:
15057 return NULL;
15058 }
15059
15060
15061 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15062 PyObject *resultobj;
15063 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15064 wxBitmap *arg2 = 0 ;
15065 PyObject * obj0 = 0 ;
15066 PyObject * obj1 = 0 ;
15067 char *kwnames[] = {
15068 (char *) "self",(char *) "bitmap", NULL
15069 };
15070
15071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15074 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15075 SWIG_POINTER_EXCEPTION | 0)) == -1)
15076 SWIG_fail;
15077 if (arg2 == NULL) {
15078 PyErr_SetString(PyExc_TypeError,"null reference");
15079 SWIG_fail;
15080 }
15081 {
15082 PyThreadState* __tstate = wxPyBeginAllowThreads();
15083 (arg1)->SelectObject((wxBitmap const &)*arg2);
15084
15085 wxPyEndAllowThreads(__tstate);
15086 if (PyErr_Occurred()) SWIG_fail;
15087 }
15088 Py_INCREF(Py_None); resultobj = Py_None;
15089 return resultobj;
15090 fail:
15091 return NULL;
15092 }
15093
15094
15095 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15096 PyObject *obj;
15097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15098 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15099 Py_INCREF(obj);
15100 return Py_BuildValue((char *)"");
15101 }
15102 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15103 PyObject *resultobj;
15104 wxDC *arg1 = (wxDC *) 0 ;
15105 wxBitmap *arg2 = 0 ;
15106 wxBufferedDC *result;
15107 PyObject * obj0 = 0 ;
15108 PyObject * obj1 = 0 ;
15109
15110 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15113 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15114 SWIG_POINTER_EXCEPTION | 0)) == -1)
15115 SWIG_fail;
15116 if (arg2 == NULL) {
15117 PyErr_SetString(PyExc_TypeError,"null reference");
15118 SWIG_fail;
15119 }
15120 {
15121 if (!wxPyCheckForApp()) SWIG_fail;
15122 PyThreadState* __tstate = wxPyBeginAllowThreads();
15123 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15124
15125 wxPyEndAllowThreads(__tstate);
15126 if (PyErr_Occurred()) SWIG_fail;
15127 }
15128 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15129 return resultobj;
15130 fail:
15131 return NULL;
15132 }
15133
15134
15135 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15136 PyObject *resultobj;
15137 wxDC *arg1 = (wxDC *) 0 ;
15138 wxSize *arg2 = 0 ;
15139 wxBufferedDC *result;
15140 wxSize temp2 ;
15141 PyObject * obj0 = 0 ;
15142 PyObject * obj1 = 0 ;
15143
15144 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15147 {
15148 arg2 = &temp2;
15149 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15150 }
15151 {
15152 if (!wxPyCheckForApp()) SWIG_fail;
15153 PyThreadState* __tstate = wxPyBeginAllowThreads();
15154 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15155
15156 wxPyEndAllowThreads(__tstate);
15157 if (PyErr_Occurred()) SWIG_fail;
15158 }
15159 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15160 return resultobj;
15161 fail:
15162 return NULL;
15163 }
15164
15165
15166 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15167 int argc;
15168 PyObject *argv[3];
15169 int ii;
15170
15171 argc = PyObject_Length(args);
15172 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15173 argv[ii] = PyTuple_GetItem(args,ii);
15174 }
15175 if (argc == 2) {
15176 int _v;
15177 {
15178 void *ptr;
15179 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15180 _v = 0;
15181 PyErr_Clear();
15182 } else {
15183 _v = 1;
15184 }
15185 }
15186 if (_v) {
15187 {
15188 void *ptr;
15189 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15190 _v = 0;
15191 PyErr_Clear();
15192 } else {
15193 _v = 1;
15194 }
15195 }
15196 if (_v) {
15197 return _wrap_new_BufferedDC__SWIG_0(self,args);
15198 }
15199 }
15200 }
15201 if (argc == 2) {
15202 int _v;
15203 {
15204 void *ptr;
15205 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15206 _v = 0;
15207 PyErr_Clear();
15208 } else {
15209 _v = 1;
15210 }
15211 }
15212 if (_v) {
15213 {
15214 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15215 }
15216 if (_v) {
15217 return _wrap_new_BufferedDC__SWIG_1(self,args);
15218 }
15219 }
15220 }
15221
15222 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15223 return NULL;
15224 }
15225
15226
15227 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15228 PyObject *resultobj;
15229 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15230 PyObject * obj0 = 0 ;
15231 char *kwnames[] = {
15232 (char *) "self", NULL
15233 };
15234
15235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15238 {
15239 PyThreadState* __tstate = wxPyBeginAllowThreads();
15240 delete arg1;
15241
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 Py_INCREF(Py_None); resultobj = Py_None;
15246 return resultobj;
15247 fail:
15248 return NULL;
15249 }
15250
15251
15252 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15253 PyObject *resultobj;
15254 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15255 PyObject * obj0 = 0 ;
15256 char *kwnames[] = {
15257 (char *) "self", NULL
15258 };
15259
15260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15263 {
15264 PyThreadState* __tstate = wxPyBeginAllowThreads();
15265 (arg1)->UnMask();
15266
15267 wxPyEndAllowThreads(__tstate);
15268 if (PyErr_Occurred()) SWIG_fail;
15269 }
15270 Py_INCREF(Py_None); resultobj = Py_None;
15271 return resultobj;
15272 fail:
15273 return NULL;
15274 }
15275
15276
15277 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15278 PyObject *obj;
15279 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15280 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15281 Py_INCREF(obj);
15282 return Py_BuildValue((char *)"");
15283 }
15284 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15285 PyObject *resultobj;
15286 wxWindow *arg1 = (wxWindow *) 0 ;
15287 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15288 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15289 wxBufferedPaintDC *result;
15290 PyObject * obj0 = 0 ;
15291 PyObject * obj1 = 0 ;
15292 char *kwnames[] = {
15293 (char *) "window",(char *) "buffer", NULL
15294 };
15295
15296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15299 if (obj1) {
15300 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15301 SWIG_POINTER_EXCEPTION | 0)) == -1)
15302 SWIG_fail;
15303 if (arg2 == NULL) {
15304 PyErr_SetString(PyExc_TypeError,"null reference");
15305 SWIG_fail;
15306 }
15307 }
15308 {
15309 if (!wxPyCheckForApp()) SWIG_fail;
15310 PyThreadState* __tstate = wxPyBeginAllowThreads();
15311 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15312
15313 wxPyEndAllowThreads(__tstate);
15314 if (PyErr_Occurred()) SWIG_fail;
15315 }
15316 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15317 return resultobj;
15318 fail:
15319 return NULL;
15320 }
15321
15322
15323 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15324 PyObject *obj;
15325 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15326 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15327 Py_INCREF(obj);
15328 return Py_BuildValue((char *)"");
15329 }
15330 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15331 PyObject *resultobj;
15332 wxScreenDC *result;
15333 char *kwnames[] = {
15334 NULL
15335 };
15336
15337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15338 {
15339 if (!wxPyCheckForApp()) SWIG_fail;
15340 PyThreadState* __tstate = wxPyBeginAllowThreads();
15341 result = (wxScreenDC *)new wxScreenDC();
15342
15343 wxPyEndAllowThreads(__tstate);
15344 if (PyErr_Occurred()) SWIG_fail;
15345 }
15346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15347 return resultobj;
15348 fail:
15349 return NULL;
15350 }
15351
15352
15353 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15354 PyObject *resultobj;
15355 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15356 wxWindow *arg2 = (wxWindow *) 0 ;
15357 bool result;
15358 PyObject * obj0 = 0 ;
15359 PyObject * obj1 = 0 ;
15360 char *kwnames[] = {
15361 (char *) "self",(char *) "window", NULL
15362 };
15363
15364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15367 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15369 {
15370 PyThreadState* __tstate = wxPyBeginAllowThreads();
15371 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15372
15373 wxPyEndAllowThreads(__tstate);
15374 if (PyErr_Occurred()) SWIG_fail;
15375 }
15376 {
15377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15378 }
15379 return resultobj;
15380 fail:
15381 return NULL;
15382 }
15383
15384
15385 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15386 PyObject *resultobj;
15387 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15388 wxRect *arg2 = (wxRect *) NULL ;
15389 bool result;
15390 PyObject * obj0 = 0 ;
15391 PyObject * obj1 = 0 ;
15392 char *kwnames[] = {
15393 (char *) "self",(char *) "rect", NULL
15394 };
15395
15396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15399 if (obj1) {
15400 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15402 }
15403 {
15404 PyThreadState* __tstate = wxPyBeginAllowThreads();
15405 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15406
15407 wxPyEndAllowThreads(__tstate);
15408 if (PyErr_Occurred()) SWIG_fail;
15409 }
15410 {
15411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15412 }
15413 return resultobj;
15414 fail:
15415 return NULL;
15416 }
15417
15418
15419 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15420 PyObject *resultobj;
15421 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15422 bool result;
15423 PyObject * obj0 = 0 ;
15424 char *kwnames[] = {
15425 (char *) "self", NULL
15426 };
15427
15428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15431 {
15432 PyThreadState* __tstate = wxPyBeginAllowThreads();
15433 result = (bool)(arg1)->EndDrawingOnTop();
15434
15435 wxPyEndAllowThreads(__tstate);
15436 if (PyErr_Occurred()) SWIG_fail;
15437 }
15438 {
15439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15440 }
15441 return resultobj;
15442 fail:
15443 return NULL;
15444 }
15445
15446
15447 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15448 PyObject *obj;
15449 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15450 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15451 Py_INCREF(obj);
15452 return Py_BuildValue((char *)"");
15453 }
15454 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15455 PyObject *resultobj;
15456 wxWindow *arg1 = (wxWindow *) 0 ;
15457 wxClientDC *result;
15458 PyObject * obj0 = 0 ;
15459 char *kwnames[] = {
15460 (char *) "win", NULL
15461 };
15462
15463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15466 {
15467 if (!wxPyCheckForApp()) SWIG_fail;
15468 PyThreadState* __tstate = wxPyBeginAllowThreads();
15469 result = (wxClientDC *)new wxClientDC(arg1);
15470
15471 wxPyEndAllowThreads(__tstate);
15472 if (PyErr_Occurred()) SWIG_fail;
15473 }
15474 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15475 return resultobj;
15476 fail:
15477 return NULL;
15478 }
15479
15480
15481 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15482 PyObject *obj;
15483 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15484 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15485 Py_INCREF(obj);
15486 return Py_BuildValue((char *)"");
15487 }
15488 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15489 PyObject *resultobj;
15490 wxWindow *arg1 = (wxWindow *) 0 ;
15491 wxPaintDC *result;
15492 PyObject * obj0 = 0 ;
15493 char *kwnames[] = {
15494 (char *) "win", NULL
15495 };
15496
15497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15500 {
15501 if (!wxPyCheckForApp()) SWIG_fail;
15502 PyThreadState* __tstate = wxPyBeginAllowThreads();
15503 result = (wxPaintDC *)new wxPaintDC(arg1);
15504
15505 wxPyEndAllowThreads(__tstate);
15506 if (PyErr_Occurred()) SWIG_fail;
15507 }
15508 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15509 return resultobj;
15510 fail:
15511 return NULL;
15512 }
15513
15514
15515 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15516 PyObject *obj;
15517 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15518 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15519 Py_INCREF(obj);
15520 return Py_BuildValue((char *)"");
15521 }
15522 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15523 PyObject *resultobj;
15524 wxWindow *arg1 = (wxWindow *) 0 ;
15525 wxWindowDC *result;
15526 PyObject * obj0 = 0 ;
15527 char *kwnames[] = {
15528 (char *) "win", NULL
15529 };
15530
15531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15534 {
15535 if (!wxPyCheckForApp()) SWIG_fail;
15536 PyThreadState* __tstate = wxPyBeginAllowThreads();
15537 result = (wxWindowDC *)new wxWindowDC(arg1);
15538
15539 wxPyEndAllowThreads(__tstate);
15540 if (PyErr_Occurred()) SWIG_fail;
15541 }
15542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15543 return resultobj;
15544 fail:
15545 return NULL;
15546 }
15547
15548
15549 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15550 PyObject *obj;
15551 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15552 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15553 Py_INCREF(obj);
15554 return Py_BuildValue((char *)"");
15555 }
15556 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15557 PyObject *resultobj;
15558 wxDC *arg1 = 0 ;
15559 bool arg2 ;
15560 wxMirrorDC *result;
15561 PyObject * obj0 = 0 ;
15562 PyObject * obj1 = 0 ;
15563 char *kwnames[] = {
15564 (char *) "dc",(char *) "mirror", NULL
15565 };
15566
15567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15569 SWIG_POINTER_EXCEPTION | 0)) == -1)
15570 SWIG_fail;
15571 if (arg1 == NULL) {
15572 PyErr_SetString(PyExc_TypeError,"null reference");
15573 SWIG_fail;
15574 }
15575 arg2 = (bool) SWIG_AsBool(obj1);
15576 if (PyErr_Occurred()) SWIG_fail;
15577 {
15578 if (!wxPyCheckForApp()) SWIG_fail;
15579 PyThreadState* __tstate = wxPyBeginAllowThreads();
15580 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15581
15582 wxPyEndAllowThreads(__tstate);
15583 if (PyErr_Occurred()) SWIG_fail;
15584 }
15585 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15586 return resultobj;
15587 fail:
15588 return NULL;
15589 }
15590
15591
15592 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15593 PyObject *obj;
15594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15595 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15596 Py_INCREF(obj);
15597 return Py_BuildValue((char *)"");
15598 }
15599 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15600 PyObject *resultobj;
15601 wxPrintData *arg1 = 0 ;
15602 wxPostScriptDC *result;
15603 PyObject * obj0 = 0 ;
15604 char *kwnames[] = {
15605 (char *) "printData", NULL
15606 };
15607
15608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15610 SWIG_POINTER_EXCEPTION | 0)) == -1)
15611 SWIG_fail;
15612 if (arg1 == NULL) {
15613 PyErr_SetString(PyExc_TypeError,"null reference");
15614 SWIG_fail;
15615 }
15616 {
15617 if (!wxPyCheckForApp()) SWIG_fail;
15618 PyThreadState* __tstate = wxPyBeginAllowThreads();
15619 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15620
15621 wxPyEndAllowThreads(__tstate);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15625 return resultobj;
15626 fail:
15627 return NULL;
15628 }
15629
15630
15631 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj;
15633 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15634 wxPrintData *result;
15635 PyObject * obj0 = 0 ;
15636 char *kwnames[] = {
15637 (char *) "self", NULL
15638 };
15639
15640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15643 {
15644 PyThreadState* __tstate = wxPyBeginAllowThreads();
15645 {
15646 wxPrintData &_result_ref = (arg1)->GetPrintData();
15647 result = (wxPrintData *) &_result_ref;
15648 }
15649
15650 wxPyEndAllowThreads(__tstate);
15651 if (PyErr_Occurred()) SWIG_fail;
15652 }
15653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15654 return resultobj;
15655 fail:
15656 return NULL;
15657 }
15658
15659
15660 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15661 PyObject *resultobj;
15662 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15663 wxPrintData *arg2 = 0 ;
15664 PyObject * obj0 = 0 ;
15665 PyObject * obj1 = 0 ;
15666 char *kwnames[] = {
15667 (char *) "self",(char *) "data", NULL
15668 };
15669
15670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15673 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15674 SWIG_POINTER_EXCEPTION | 0)) == -1)
15675 SWIG_fail;
15676 if (arg2 == NULL) {
15677 PyErr_SetString(PyExc_TypeError,"null reference");
15678 SWIG_fail;
15679 }
15680 {
15681 PyThreadState* __tstate = wxPyBeginAllowThreads();
15682 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15683
15684 wxPyEndAllowThreads(__tstate);
15685 if (PyErr_Occurred()) SWIG_fail;
15686 }
15687 Py_INCREF(Py_None); resultobj = Py_None;
15688 return resultobj;
15689 fail:
15690 return NULL;
15691 }
15692
15693
15694 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15695 PyObject *resultobj;
15696 int arg1 ;
15697 PyObject * obj0 = 0 ;
15698 char *kwnames[] = {
15699 (char *) "ppi", NULL
15700 };
15701
15702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15703 arg1 = (int) SWIG_AsInt(obj0);
15704 if (PyErr_Occurred()) SWIG_fail;
15705 {
15706 PyThreadState* __tstate = wxPyBeginAllowThreads();
15707 wxPostScriptDC::SetResolution(arg1);
15708
15709 wxPyEndAllowThreads(__tstate);
15710 if (PyErr_Occurred()) SWIG_fail;
15711 }
15712 Py_INCREF(Py_None); resultobj = Py_None;
15713 return resultobj;
15714 fail:
15715 return NULL;
15716 }
15717
15718
15719 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15720 PyObject *resultobj;
15721 int result;
15722 char *kwnames[] = {
15723 NULL
15724 };
15725
15726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15727 {
15728 PyThreadState* __tstate = wxPyBeginAllowThreads();
15729 result = (int)wxPostScriptDC::GetResolution();
15730
15731 wxPyEndAllowThreads(__tstate);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 resultobj = SWIG_FromInt((int)result);
15735 return resultobj;
15736 fail:
15737 return NULL;
15738 }
15739
15740
15741 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15742 PyObject *obj;
15743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15744 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15745 Py_INCREF(obj);
15746 return Py_BuildValue((char *)"");
15747 }
15748 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15749 PyObject *resultobj;
15750 wxString const &arg1_defvalue = wxPyEmptyString ;
15751 wxString *arg1 = (wxString *) &arg1_defvalue ;
15752 wxMetaFile *result;
15753 bool temp1 = False ;
15754 PyObject * obj0 = 0 ;
15755 char *kwnames[] = {
15756 (char *) "filename", NULL
15757 };
15758
15759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15760 if (obj0) {
15761 {
15762 arg1 = wxString_in_helper(obj0);
15763 if (arg1 == NULL) SWIG_fail;
15764 temp1 = True;
15765 }
15766 }
15767 {
15768 if (!wxPyCheckForApp()) SWIG_fail;
15769 PyThreadState* __tstate = wxPyBeginAllowThreads();
15770 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15771
15772 wxPyEndAllowThreads(__tstate);
15773 if (PyErr_Occurred()) SWIG_fail;
15774 }
15775 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15776 {
15777 if (temp1)
15778 delete arg1;
15779 }
15780 return resultobj;
15781 fail:
15782 {
15783 if (temp1)
15784 delete arg1;
15785 }
15786 return NULL;
15787 }
15788
15789
15790 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15791 PyObject *resultobj;
15792 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15793 PyObject * obj0 = 0 ;
15794 char *kwnames[] = {
15795 (char *) "self", NULL
15796 };
15797
15798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15801 {
15802 PyThreadState* __tstate = wxPyBeginAllowThreads();
15803 delete arg1;
15804
15805 wxPyEndAllowThreads(__tstate);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 Py_INCREF(Py_None); resultobj = Py_None;
15809 return resultobj;
15810 fail:
15811 return NULL;
15812 }
15813
15814
15815 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15816 PyObject *resultobj;
15817 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15818 bool result;
15819 PyObject * obj0 = 0 ;
15820 char *kwnames[] = {
15821 (char *) "self", NULL
15822 };
15823
15824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15827 {
15828 PyThreadState* __tstate = wxPyBeginAllowThreads();
15829 result = (bool)(arg1)->Ok();
15830
15831 wxPyEndAllowThreads(__tstate);
15832 if (PyErr_Occurred()) SWIG_fail;
15833 }
15834 {
15835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15836 }
15837 return resultobj;
15838 fail:
15839 return NULL;
15840 }
15841
15842
15843 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15844 PyObject *resultobj;
15845 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15846 int arg2 = (int) 0 ;
15847 int arg3 = (int) 0 ;
15848 bool result;
15849 PyObject * obj0 = 0 ;
15850 PyObject * obj1 = 0 ;
15851 PyObject * obj2 = 0 ;
15852 char *kwnames[] = {
15853 (char *) "self",(char *) "width",(char *) "height", NULL
15854 };
15855
15856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15859 if (obj1) {
15860 arg2 = (int) SWIG_AsInt(obj1);
15861 if (PyErr_Occurred()) SWIG_fail;
15862 }
15863 if (obj2) {
15864 arg3 = (int) SWIG_AsInt(obj2);
15865 if (PyErr_Occurred()) SWIG_fail;
15866 }
15867 {
15868 PyThreadState* __tstate = wxPyBeginAllowThreads();
15869 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15870
15871 wxPyEndAllowThreads(__tstate);
15872 if (PyErr_Occurred()) SWIG_fail;
15873 }
15874 {
15875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15876 }
15877 return resultobj;
15878 fail:
15879 return NULL;
15880 }
15881
15882
15883 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15884 PyObject *resultobj;
15885 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15886 wxSize result;
15887 PyObject * obj0 = 0 ;
15888 char *kwnames[] = {
15889 (char *) "self", NULL
15890 };
15891
15892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15895 {
15896 PyThreadState* __tstate = wxPyBeginAllowThreads();
15897 result = (arg1)->GetSize();
15898
15899 wxPyEndAllowThreads(__tstate);
15900 if (PyErr_Occurred()) SWIG_fail;
15901 }
15902 {
15903 wxSize * resultptr;
15904 resultptr = new wxSize((wxSize &) result);
15905 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15906 }
15907 return resultobj;
15908 fail:
15909 return NULL;
15910 }
15911
15912
15913 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
15914 PyObject *resultobj;
15915 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15916 int result;
15917 PyObject * obj0 = 0 ;
15918 char *kwnames[] = {
15919 (char *) "self", NULL
15920 };
15921
15922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15925 {
15926 PyThreadState* __tstate = wxPyBeginAllowThreads();
15927 result = (int)(arg1)->GetWidth();
15928
15929 wxPyEndAllowThreads(__tstate);
15930 if (PyErr_Occurred()) SWIG_fail;
15931 }
15932 resultobj = SWIG_FromInt((int)result);
15933 return resultobj;
15934 fail:
15935 return NULL;
15936 }
15937
15938
15939 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
15940 PyObject *resultobj;
15941 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15942 int result;
15943 PyObject * obj0 = 0 ;
15944 char *kwnames[] = {
15945 (char *) "self", NULL
15946 };
15947
15948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15951 {
15952 PyThreadState* __tstate = wxPyBeginAllowThreads();
15953 result = (int)(arg1)->GetHeight();
15954
15955 wxPyEndAllowThreads(__tstate);
15956 if (PyErr_Occurred()) SWIG_fail;
15957 }
15958 resultobj = SWIG_FromInt((int)result);
15959 return resultobj;
15960 fail:
15961 return NULL;
15962 }
15963
15964
15965 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15966 PyObject *obj;
15967 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15968 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15969 Py_INCREF(obj);
15970 return Py_BuildValue((char *)"");
15971 }
15972 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15973 PyObject *resultobj;
15974 wxString const &arg1_defvalue = wxPyEmptyString ;
15975 wxString *arg1 = (wxString *) &arg1_defvalue ;
15976 int arg2 = (int) 0 ;
15977 int arg3 = (int) 0 ;
15978 wxString const &arg4_defvalue = wxPyEmptyString ;
15979 wxString *arg4 = (wxString *) &arg4_defvalue ;
15980 wxMetaFileDC *result;
15981 bool temp1 = False ;
15982 bool temp4 = False ;
15983 PyObject * obj0 = 0 ;
15984 PyObject * obj1 = 0 ;
15985 PyObject * obj2 = 0 ;
15986 PyObject * obj3 = 0 ;
15987 char *kwnames[] = {
15988 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15989 };
15990
15991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15992 if (obj0) {
15993 {
15994 arg1 = wxString_in_helper(obj0);
15995 if (arg1 == NULL) SWIG_fail;
15996 temp1 = True;
15997 }
15998 }
15999 if (obj1) {
16000 arg2 = (int) SWIG_AsInt(obj1);
16001 if (PyErr_Occurred()) SWIG_fail;
16002 }
16003 if (obj2) {
16004 arg3 = (int) SWIG_AsInt(obj2);
16005 if (PyErr_Occurred()) SWIG_fail;
16006 }
16007 if (obj3) {
16008 {
16009 arg4 = wxString_in_helper(obj3);
16010 if (arg4 == NULL) SWIG_fail;
16011 temp4 = True;
16012 }
16013 }
16014 {
16015 if (!wxPyCheckForApp()) SWIG_fail;
16016 PyThreadState* __tstate = wxPyBeginAllowThreads();
16017 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16018
16019 wxPyEndAllowThreads(__tstate);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16023 {
16024 if (temp1)
16025 delete arg1;
16026 }
16027 {
16028 if (temp4)
16029 delete arg4;
16030 }
16031 return resultobj;
16032 fail:
16033 {
16034 if (temp1)
16035 delete arg1;
16036 }
16037 {
16038 if (temp4)
16039 delete arg4;
16040 }
16041 return NULL;
16042 }
16043
16044
16045 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16046 PyObject *resultobj;
16047 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16048 wxMetaFile *result;
16049 PyObject * obj0 = 0 ;
16050 char *kwnames[] = {
16051 (char *) "self", NULL
16052 };
16053
16054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16057 {
16058 PyThreadState* __tstate = wxPyBeginAllowThreads();
16059 result = (wxMetaFile *)(arg1)->Close();
16060
16061 wxPyEndAllowThreads(__tstate);
16062 if (PyErr_Occurred()) SWIG_fail;
16063 }
16064 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16065 return resultobj;
16066 fail:
16067 return NULL;
16068 }
16069
16070
16071 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16072 PyObject *obj;
16073 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16074 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16075 Py_INCREF(obj);
16076 return Py_BuildValue((char *)"");
16077 }
16078 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16079 PyObject *resultobj;
16080 wxPrintData *arg1 = 0 ;
16081 wxPrinterDC *result;
16082 PyObject * obj0 = 0 ;
16083 char *kwnames[] = {
16084 (char *) "printData", NULL
16085 };
16086
16087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16089 SWIG_POINTER_EXCEPTION | 0)) == -1)
16090 SWIG_fail;
16091 if (arg1 == NULL) {
16092 PyErr_SetString(PyExc_TypeError,"null reference");
16093 SWIG_fail;
16094 }
16095 {
16096 if (!wxPyCheckForApp()) SWIG_fail;
16097 PyThreadState* __tstate = wxPyBeginAllowThreads();
16098 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16099
16100 wxPyEndAllowThreads(__tstate);
16101 if (PyErr_Occurred()) SWIG_fail;
16102 }
16103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16104 return resultobj;
16105 fail:
16106 return NULL;
16107 }
16108
16109
16110 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16111 PyObject *obj;
16112 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16113 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16114 Py_INCREF(obj);
16115 return Py_BuildValue((char *)"");
16116 }
16117 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16118 PyObject *resultobj;
16119 int arg1 ;
16120 int arg2 ;
16121 int arg3 = (int) True ;
16122 int arg4 = (int) 1 ;
16123 wxImageList *result;
16124 PyObject * obj0 = 0 ;
16125 PyObject * obj1 = 0 ;
16126 PyObject * obj2 = 0 ;
16127 PyObject * obj3 = 0 ;
16128 char *kwnames[] = {
16129 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16130 };
16131
16132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16133 arg1 = (int) SWIG_AsInt(obj0);
16134 if (PyErr_Occurred()) SWIG_fail;
16135 arg2 = (int) SWIG_AsInt(obj1);
16136 if (PyErr_Occurred()) SWIG_fail;
16137 if (obj2) {
16138 arg3 = (int) SWIG_AsInt(obj2);
16139 if (PyErr_Occurred()) SWIG_fail;
16140 }
16141 if (obj3) {
16142 arg4 = (int) SWIG_AsInt(obj3);
16143 if (PyErr_Occurred()) SWIG_fail;
16144 }
16145 {
16146 if (!wxPyCheckForApp()) SWIG_fail;
16147 PyThreadState* __tstate = wxPyBeginAllowThreads();
16148 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16149
16150 wxPyEndAllowThreads(__tstate);
16151 if (PyErr_Occurred()) SWIG_fail;
16152 }
16153 {
16154 resultobj = wxPyMake_wxObject(result, 1);
16155 }
16156 return resultobj;
16157 fail:
16158 return NULL;
16159 }
16160
16161
16162 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16163 PyObject *resultobj;
16164 wxImageList *arg1 = (wxImageList *) 0 ;
16165 PyObject * obj0 = 0 ;
16166 char *kwnames[] = {
16167 (char *) "self", NULL
16168 };
16169
16170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16173 {
16174 PyThreadState* __tstate = wxPyBeginAllowThreads();
16175 delete arg1;
16176
16177 wxPyEndAllowThreads(__tstate);
16178 if (PyErr_Occurred()) SWIG_fail;
16179 }
16180 Py_INCREF(Py_None); resultobj = Py_None;
16181 return resultobj;
16182 fail:
16183 return NULL;
16184 }
16185
16186
16187 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16188 PyObject *resultobj;
16189 wxImageList *arg1 = (wxImageList *) 0 ;
16190 wxBitmap *arg2 = 0 ;
16191 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16192 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16193 int result;
16194 PyObject * obj0 = 0 ;
16195 PyObject * obj1 = 0 ;
16196 PyObject * obj2 = 0 ;
16197 char *kwnames[] = {
16198 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16199 };
16200
16201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16205 SWIG_POINTER_EXCEPTION | 0)) == -1)
16206 SWIG_fail;
16207 if (arg2 == NULL) {
16208 PyErr_SetString(PyExc_TypeError,"null reference");
16209 SWIG_fail;
16210 }
16211 if (obj2) {
16212 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16213 SWIG_POINTER_EXCEPTION | 0)) == -1)
16214 SWIG_fail;
16215 if (arg3 == NULL) {
16216 PyErr_SetString(PyExc_TypeError,"null reference");
16217 SWIG_fail;
16218 }
16219 }
16220 {
16221 PyThreadState* __tstate = wxPyBeginAllowThreads();
16222 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16223
16224 wxPyEndAllowThreads(__tstate);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 resultobj = SWIG_FromInt((int)result);
16228 return resultobj;
16229 fail:
16230 return NULL;
16231 }
16232
16233
16234 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16235 PyObject *resultobj;
16236 wxImageList *arg1 = (wxImageList *) 0 ;
16237 wxBitmap *arg2 = 0 ;
16238 wxColour *arg3 = 0 ;
16239 int result;
16240 wxColour temp3 ;
16241 PyObject * obj0 = 0 ;
16242 PyObject * obj1 = 0 ;
16243 PyObject * obj2 = 0 ;
16244 char *kwnames[] = {
16245 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16246 };
16247
16248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16251 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16252 SWIG_POINTER_EXCEPTION | 0)) == -1)
16253 SWIG_fail;
16254 if (arg2 == NULL) {
16255 PyErr_SetString(PyExc_TypeError,"null reference");
16256 SWIG_fail;
16257 }
16258 {
16259 arg3 = &temp3;
16260 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16261 }
16262 {
16263 PyThreadState* __tstate = wxPyBeginAllowThreads();
16264 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16265
16266 wxPyEndAllowThreads(__tstate);
16267 if (PyErr_Occurred()) SWIG_fail;
16268 }
16269 resultobj = SWIG_FromInt((int)result);
16270 return resultobj;
16271 fail:
16272 return NULL;
16273 }
16274
16275
16276 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16277 PyObject *resultobj;
16278 wxImageList *arg1 = (wxImageList *) 0 ;
16279 wxIcon *arg2 = 0 ;
16280 int result;
16281 PyObject * obj0 = 0 ;
16282 PyObject * obj1 = 0 ;
16283 char *kwnames[] = {
16284 (char *) "self",(char *) "icon", NULL
16285 };
16286
16287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16290 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16291 SWIG_POINTER_EXCEPTION | 0)) == -1)
16292 SWIG_fail;
16293 if (arg2 == NULL) {
16294 PyErr_SetString(PyExc_TypeError,"null reference");
16295 SWIG_fail;
16296 }
16297 {
16298 PyThreadState* __tstate = wxPyBeginAllowThreads();
16299 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16300
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 resultobj = SWIG_FromInt((int)result);
16305 return resultobj;
16306 fail:
16307 return NULL;
16308 }
16309
16310
16311 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16312 PyObject *resultobj;
16313 wxImageList *arg1 = (wxImageList *) 0 ;
16314 int arg2 ;
16315 wxBitmap *arg3 = 0 ;
16316 bool result;
16317 PyObject * obj0 = 0 ;
16318 PyObject * obj1 = 0 ;
16319 PyObject * obj2 = 0 ;
16320 char *kwnames[] = {
16321 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16322 };
16323
16324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16327 arg2 = (int) SWIG_AsInt(obj1);
16328 if (PyErr_Occurred()) SWIG_fail;
16329 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16330 SWIG_POINTER_EXCEPTION | 0)) == -1)
16331 SWIG_fail;
16332 if (arg3 == NULL) {
16333 PyErr_SetString(PyExc_TypeError,"null reference");
16334 SWIG_fail;
16335 }
16336 {
16337 PyThreadState* __tstate = wxPyBeginAllowThreads();
16338 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16339
16340 wxPyEndAllowThreads(__tstate);
16341 if (PyErr_Occurred()) SWIG_fail;
16342 }
16343 {
16344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16345 }
16346 return resultobj;
16347 fail:
16348 return NULL;
16349 }
16350
16351
16352 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16353 PyObject *resultobj;
16354 wxImageList *arg1 = (wxImageList *) 0 ;
16355 int arg2 ;
16356 wxDC *arg3 = 0 ;
16357 int arg4 ;
16358 int arg5 ;
16359 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16360 bool arg7 = (bool) (bool)False ;
16361 bool result;
16362 PyObject * obj0 = 0 ;
16363 PyObject * obj1 = 0 ;
16364 PyObject * obj2 = 0 ;
16365 PyObject * obj3 = 0 ;
16366 PyObject * obj4 = 0 ;
16367 PyObject * obj5 = 0 ;
16368 PyObject * obj6 = 0 ;
16369 char *kwnames[] = {
16370 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16371 };
16372
16373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16376 arg2 = (int) SWIG_AsInt(obj1);
16377 if (PyErr_Occurred()) SWIG_fail;
16378 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16379 SWIG_POINTER_EXCEPTION | 0)) == -1)
16380 SWIG_fail;
16381 if (arg3 == NULL) {
16382 PyErr_SetString(PyExc_TypeError,"null reference");
16383 SWIG_fail;
16384 }
16385 arg4 = (int) SWIG_AsInt(obj3);
16386 if (PyErr_Occurred()) SWIG_fail;
16387 arg5 = (int) SWIG_AsInt(obj4);
16388 if (PyErr_Occurred()) SWIG_fail;
16389 if (obj5) {
16390 arg6 = (int) SWIG_AsInt(obj5);
16391 if (PyErr_Occurred()) SWIG_fail;
16392 }
16393 if (obj6) {
16394 arg7 = (bool const) SWIG_AsBool(obj6);
16395 if (PyErr_Occurred()) SWIG_fail;
16396 }
16397 {
16398 PyThreadState* __tstate = wxPyBeginAllowThreads();
16399 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16400
16401 wxPyEndAllowThreads(__tstate);
16402 if (PyErr_Occurred()) SWIG_fail;
16403 }
16404 {
16405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16406 }
16407 return resultobj;
16408 fail:
16409 return NULL;
16410 }
16411
16412
16413 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16414 PyObject *resultobj;
16415 wxImageList *arg1 = (wxImageList *) 0 ;
16416 int result;
16417 PyObject * obj0 = 0 ;
16418 char *kwnames[] = {
16419 (char *) "self", NULL
16420 };
16421
16422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16425 {
16426 PyThreadState* __tstate = wxPyBeginAllowThreads();
16427 result = (int)(arg1)->GetImageCount();
16428
16429 wxPyEndAllowThreads(__tstate);
16430 if (PyErr_Occurred()) SWIG_fail;
16431 }
16432 resultobj = SWIG_FromInt((int)result);
16433 return resultobj;
16434 fail:
16435 return NULL;
16436 }
16437
16438
16439 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16440 PyObject *resultobj;
16441 wxImageList *arg1 = (wxImageList *) 0 ;
16442 int arg2 ;
16443 bool result;
16444 PyObject * obj0 = 0 ;
16445 PyObject * obj1 = 0 ;
16446 char *kwnames[] = {
16447 (char *) "self",(char *) "index", NULL
16448 };
16449
16450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16453 arg2 = (int) SWIG_AsInt(obj1);
16454 if (PyErr_Occurred()) SWIG_fail;
16455 {
16456 PyThreadState* __tstate = wxPyBeginAllowThreads();
16457 result = (bool)(arg1)->Remove(arg2);
16458
16459 wxPyEndAllowThreads(__tstate);
16460 if (PyErr_Occurred()) SWIG_fail;
16461 }
16462 {
16463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16464 }
16465 return resultobj;
16466 fail:
16467 return NULL;
16468 }
16469
16470
16471 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16472 PyObject *resultobj;
16473 wxImageList *arg1 = (wxImageList *) 0 ;
16474 bool result;
16475 PyObject * obj0 = 0 ;
16476 char *kwnames[] = {
16477 (char *) "self", NULL
16478 };
16479
16480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16483 {
16484 PyThreadState* __tstate = wxPyBeginAllowThreads();
16485 result = (bool)(arg1)->RemoveAll();
16486
16487 wxPyEndAllowThreads(__tstate);
16488 if (PyErr_Occurred()) SWIG_fail;
16489 }
16490 {
16491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16492 }
16493 return resultobj;
16494 fail:
16495 return NULL;
16496 }
16497
16498
16499 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16500 PyObject *resultobj;
16501 wxImageList *arg1 = (wxImageList *) 0 ;
16502 int arg2 ;
16503 int *arg3 = 0 ;
16504 int *arg4 = 0 ;
16505 int temp3 ;
16506 int temp4 ;
16507 PyObject * obj0 = 0 ;
16508 PyObject * obj1 = 0 ;
16509 char *kwnames[] = {
16510 (char *) "self",(char *) "index", NULL
16511 };
16512
16513 arg3 = &temp3;
16514 arg4 = &temp4;
16515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16518 arg2 = (int) SWIG_AsInt(obj1);
16519 if (PyErr_Occurred()) SWIG_fail;
16520 {
16521 PyThreadState* __tstate = wxPyBeginAllowThreads();
16522 (arg1)->GetSize(arg2,*arg3,*arg4);
16523
16524 wxPyEndAllowThreads(__tstate);
16525 if (PyErr_Occurred()) SWIG_fail;
16526 }
16527 Py_INCREF(Py_None); resultobj = Py_None;
16528 {
16529 PyObject *o = PyInt_FromLong((long) (*arg3));
16530 resultobj = t_output_helper(resultobj,o);
16531 }
16532 {
16533 PyObject *o = PyInt_FromLong((long) (*arg4));
16534 resultobj = t_output_helper(resultobj,o);
16535 }
16536 return resultobj;
16537 fail:
16538 return NULL;
16539 }
16540
16541
16542 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16543 PyObject *obj;
16544 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16545 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16546 Py_INCREF(obj);
16547 return Py_BuildValue((char *)"");
16548 }
16549 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16550 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16551 return 1;
16552 }
16553
16554
16555 static PyObject *_wrap_NORMAL_FONT_get() {
16556 PyObject *pyobj;
16557
16558 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16559 return pyobj;
16560 }
16561
16562
16563 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16564 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16565 return 1;
16566 }
16567
16568
16569 static PyObject *_wrap_SMALL_FONT_get() {
16570 PyObject *pyobj;
16571
16572 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16573 return pyobj;
16574 }
16575
16576
16577 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16578 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16579 return 1;
16580 }
16581
16582
16583 static PyObject *_wrap_ITALIC_FONT_get() {
16584 PyObject *pyobj;
16585
16586 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16587 return pyobj;
16588 }
16589
16590
16591 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16592 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16593 return 1;
16594 }
16595
16596
16597 static PyObject *_wrap_SWISS_FONT_get() {
16598 PyObject *pyobj;
16599
16600 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16601 return pyobj;
16602 }
16603
16604
16605 static int _wrap_RED_PEN_set(PyObject *_val) {
16606 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16607 return 1;
16608 }
16609
16610
16611 static PyObject *_wrap_RED_PEN_get() {
16612 PyObject *pyobj;
16613
16614 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16615 return pyobj;
16616 }
16617
16618
16619 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16620 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16621 return 1;
16622 }
16623
16624
16625 static PyObject *_wrap_CYAN_PEN_get() {
16626 PyObject *pyobj;
16627
16628 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16629 return pyobj;
16630 }
16631
16632
16633 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16634 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16635 return 1;
16636 }
16637
16638
16639 static PyObject *_wrap_GREEN_PEN_get() {
16640 PyObject *pyobj;
16641
16642 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16643 return pyobj;
16644 }
16645
16646
16647 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16648 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16649 return 1;
16650 }
16651
16652
16653 static PyObject *_wrap_BLACK_PEN_get() {
16654 PyObject *pyobj;
16655
16656 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16657 return pyobj;
16658 }
16659
16660
16661 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16662 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16663 return 1;
16664 }
16665
16666
16667 static PyObject *_wrap_WHITE_PEN_get() {
16668 PyObject *pyobj;
16669
16670 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16671 return pyobj;
16672 }
16673
16674
16675 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16676 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16677 return 1;
16678 }
16679
16680
16681 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16682 PyObject *pyobj;
16683
16684 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16685 return pyobj;
16686 }
16687
16688
16689 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16690 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16691 return 1;
16692 }
16693
16694
16695 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16696 PyObject *pyobj;
16697
16698 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16699 return pyobj;
16700 }
16701
16702
16703 static int _wrap_GREY_PEN_set(PyObject *_val) {
16704 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16705 return 1;
16706 }
16707
16708
16709 static PyObject *_wrap_GREY_PEN_get() {
16710 PyObject *pyobj;
16711
16712 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16713 return pyobj;
16714 }
16715
16716
16717 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16718 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16719 return 1;
16720 }
16721
16722
16723 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16724 PyObject *pyobj;
16725
16726 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16727 return pyobj;
16728 }
16729
16730
16731 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16732 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16733 return 1;
16734 }
16735
16736
16737 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16738 PyObject *pyobj;
16739
16740 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16741 return pyobj;
16742 }
16743
16744
16745 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16746 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16747 return 1;
16748 }
16749
16750
16751 static PyObject *_wrap_BLUE_BRUSH_get() {
16752 PyObject *pyobj;
16753
16754 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16755 return pyobj;
16756 }
16757
16758
16759 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16760 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16761 return 1;
16762 }
16763
16764
16765 static PyObject *_wrap_GREEN_BRUSH_get() {
16766 PyObject *pyobj;
16767
16768 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16769 return pyobj;
16770 }
16771
16772
16773 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16774 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16775 return 1;
16776 }
16777
16778
16779 static PyObject *_wrap_WHITE_BRUSH_get() {
16780 PyObject *pyobj;
16781
16782 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16783 return pyobj;
16784 }
16785
16786
16787 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16788 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16789 return 1;
16790 }
16791
16792
16793 static PyObject *_wrap_BLACK_BRUSH_get() {
16794 PyObject *pyobj;
16795
16796 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16797 return pyobj;
16798 }
16799
16800
16801 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16802 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16803 return 1;
16804 }
16805
16806
16807 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16808 PyObject *pyobj;
16809
16810 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16811 return pyobj;
16812 }
16813
16814
16815 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16816 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16817 return 1;
16818 }
16819
16820
16821 static PyObject *_wrap_CYAN_BRUSH_get() {
16822 PyObject *pyobj;
16823
16824 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16825 return pyobj;
16826 }
16827
16828
16829 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16830 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16831 return 1;
16832 }
16833
16834
16835 static PyObject *_wrap_RED_BRUSH_get() {
16836 PyObject *pyobj;
16837
16838 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16839 return pyobj;
16840 }
16841
16842
16843 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16844 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16845 return 1;
16846 }
16847
16848
16849 static PyObject *_wrap_GREY_BRUSH_get() {
16850 PyObject *pyobj;
16851
16852 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16853 return pyobj;
16854 }
16855
16856
16857 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16858 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16859 return 1;
16860 }
16861
16862
16863 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16864 PyObject *pyobj;
16865
16866 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16867 return pyobj;
16868 }
16869
16870
16871 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16872 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16873 return 1;
16874 }
16875
16876
16877 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16878 PyObject *pyobj;
16879
16880 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16881 return pyobj;
16882 }
16883
16884
16885 static int _wrap_BLACK_set(PyObject *_val) {
16886 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16887 return 1;
16888 }
16889
16890
16891 static PyObject *_wrap_BLACK_get() {
16892 PyObject *pyobj;
16893
16894 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16895 return pyobj;
16896 }
16897
16898
16899 static int _wrap_WHITE_set(PyObject *_val) {
16900 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16901 return 1;
16902 }
16903
16904
16905 static PyObject *_wrap_WHITE_get() {
16906 PyObject *pyobj;
16907
16908 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16909 return pyobj;
16910 }
16911
16912
16913 static int _wrap_RED_set(PyObject *_val) {
16914 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16915 return 1;
16916 }
16917
16918
16919 static PyObject *_wrap_RED_get() {
16920 PyObject *pyobj;
16921
16922 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16923 return pyobj;
16924 }
16925
16926
16927 static int _wrap_BLUE_set(PyObject *_val) {
16928 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16929 return 1;
16930 }
16931
16932
16933 static PyObject *_wrap_BLUE_get() {
16934 PyObject *pyobj;
16935
16936 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16937 return pyobj;
16938 }
16939
16940
16941 static int _wrap_GREEN_set(PyObject *_val) {
16942 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16943 return 1;
16944 }
16945
16946
16947 static PyObject *_wrap_GREEN_get() {
16948 PyObject *pyobj;
16949
16950 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16951 return pyobj;
16952 }
16953
16954
16955 static int _wrap_CYAN_set(PyObject *_val) {
16956 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16957 return 1;
16958 }
16959
16960
16961 static PyObject *_wrap_CYAN_get() {
16962 PyObject *pyobj;
16963
16964 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16965 return pyobj;
16966 }
16967
16968
16969 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16970 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16971 return 1;
16972 }
16973
16974
16975 static PyObject *_wrap_LIGHT_GREY_get() {
16976 PyObject *pyobj;
16977
16978 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16979 return pyobj;
16980 }
16981
16982
16983 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16984 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16985 return 1;
16986 }
16987
16988
16989 static PyObject *_wrap_STANDARD_CURSOR_get() {
16990 PyObject *pyobj;
16991
16992 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16993 return pyobj;
16994 }
16995
16996
16997 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16998 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16999 return 1;
17000 }
17001
17002
17003 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17004 PyObject *pyobj;
17005
17006 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17007 return pyobj;
17008 }
17009
17010
17011 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17012 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17013 return 1;
17014 }
17015
17016
17017 static PyObject *_wrap_CROSS_CURSOR_get() {
17018 PyObject *pyobj;
17019
17020 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17021 return pyobj;
17022 }
17023
17024
17025 static int _wrap_NullBitmap_set(PyObject *_val) {
17026 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17027 return 1;
17028 }
17029
17030
17031 static PyObject *_wrap_NullBitmap_get() {
17032 PyObject *pyobj;
17033
17034 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17035 return pyobj;
17036 }
17037
17038
17039 static int _wrap_NullIcon_set(PyObject *_val) {
17040 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17041 return 1;
17042 }
17043
17044
17045 static PyObject *_wrap_NullIcon_get() {
17046 PyObject *pyobj;
17047
17048 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17049 return pyobj;
17050 }
17051
17052
17053 static int _wrap_NullCursor_set(PyObject *_val) {
17054 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17055 return 1;
17056 }
17057
17058
17059 static PyObject *_wrap_NullCursor_get() {
17060 PyObject *pyobj;
17061
17062 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17063 return pyobj;
17064 }
17065
17066
17067 static int _wrap_NullPen_set(PyObject *_val) {
17068 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17069 return 1;
17070 }
17071
17072
17073 static PyObject *_wrap_NullPen_get() {
17074 PyObject *pyobj;
17075
17076 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17077 return pyobj;
17078 }
17079
17080
17081 static int _wrap_NullBrush_set(PyObject *_val) {
17082 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17083 return 1;
17084 }
17085
17086
17087 static PyObject *_wrap_NullBrush_get() {
17088 PyObject *pyobj;
17089
17090 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17091 return pyobj;
17092 }
17093
17094
17095 static int _wrap_NullPalette_set(PyObject *_val) {
17096 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17097 return 1;
17098 }
17099
17100
17101 static PyObject *_wrap_NullPalette_get() {
17102 PyObject *pyobj;
17103
17104 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17105 return pyobj;
17106 }
17107
17108
17109 static int _wrap_NullFont_set(PyObject *_val) {
17110 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17111 return 1;
17112 }
17113
17114
17115 static PyObject *_wrap_NullFont_get() {
17116 PyObject *pyobj;
17117
17118 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17119 return pyobj;
17120 }
17121
17122
17123 static int _wrap_NullColour_set(PyObject *_val) {
17124 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17125 return 1;
17126 }
17127
17128
17129 static PyObject *_wrap_NullColour_get() {
17130 PyObject *pyobj;
17131
17132 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17133 return pyobj;
17134 }
17135
17136
17137 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17138 PyObject *resultobj;
17139 wxPenList *arg1 = (wxPenList *) 0 ;
17140 wxPen *arg2 = (wxPen *) 0 ;
17141 PyObject * obj0 = 0 ;
17142 PyObject * obj1 = 0 ;
17143 char *kwnames[] = {
17144 (char *) "self",(char *) "pen", NULL
17145 };
17146
17147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17150 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17152 {
17153 PyThreadState* __tstate = wxPyBeginAllowThreads();
17154 (arg1)->AddPen(arg2);
17155
17156 wxPyEndAllowThreads(__tstate);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 Py_INCREF(Py_None); resultobj = Py_None;
17160 return resultobj;
17161 fail:
17162 return NULL;
17163 }
17164
17165
17166 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17167 PyObject *resultobj;
17168 wxPenList *arg1 = (wxPenList *) 0 ;
17169 wxColour *arg2 = 0 ;
17170 int arg3 ;
17171 int arg4 ;
17172 wxPen *result;
17173 wxColour temp2 ;
17174 PyObject * obj0 = 0 ;
17175 PyObject * obj1 = 0 ;
17176 PyObject * obj2 = 0 ;
17177 PyObject * obj3 = 0 ;
17178 char *kwnames[] = {
17179 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17180 };
17181
17182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17185 {
17186 arg2 = &temp2;
17187 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17188 }
17189 arg3 = (int) SWIG_AsInt(obj2);
17190 if (PyErr_Occurred()) SWIG_fail;
17191 arg4 = (int) SWIG_AsInt(obj3);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 {
17194 PyThreadState* __tstate = wxPyBeginAllowThreads();
17195 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17196
17197 wxPyEndAllowThreads(__tstate);
17198 if (PyErr_Occurred()) SWIG_fail;
17199 }
17200 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17201 return resultobj;
17202 fail:
17203 return NULL;
17204 }
17205
17206
17207 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17208 PyObject *resultobj;
17209 wxPenList *arg1 = (wxPenList *) 0 ;
17210 wxPen *arg2 = (wxPen *) 0 ;
17211 PyObject * obj0 = 0 ;
17212 PyObject * obj1 = 0 ;
17213 char *kwnames[] = {
17214 (char *) "self",(char *) "pen", NULL
17215 };
17216
17217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17220 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17222 {
17223 PyThreadState* __tstate = wxPyBeginAllowThreads();
17224 (arg1)->RemovePen(arg2);
17225
17226 wxPyEndAllowThreads(__tstate);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 Py_INCREF(Py_None); resultobj = Py_None;
17230 return resultobj;
17231 fail:
17232 return NULL;
17233 }
17234
17235
17236 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17237 PyObject *resultobj;
17238 wxPenList *arg1 = (wxPenList *) 0 ;
17239 int result;
17240 PyObject * obj0 = 0 ;
17241 char *kwnames[] = {
17242 (char *) "self", NULL
17243 };
17244
17245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17248 {
17249 PyThreadState* __tstate = wxPyBeginAllowThreads();
17250 result = (int)(arg1)->GetCount();
17251
17252 wxPyEndAllowThreads(__tstate);
17253 if (PyErr_Occurred()) SWIG_fail;
17254 }
17255 resultobj = SWIG_FromInt((int)result);
17256 return resultobj;
17257 fail:
17258 return NULL;
17259 }
17260
17261
17262 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17263 PyObject *obj;
17264 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17265 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17266 Py_INCREF(obj);
17267 return Py_BuildValue((char *)"");
17268 }
17269 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17270 PyObject *resultobj;
17271 wxBrushList *arg1 = (wxBrushList *) 0 ;
17272 wxBrush *arg2 = (wxBrush *) 0 ;
17273 PyObject * obj0 = 0 ;
17274 PyObject * obj1 = 0 ;
17275 char *kwnames[] = {
17276 (char *) "self",(char *) "brush", NULL
17277 };
17278
17279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17282 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17284 {
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 (arg1)->AddBrush(arg2);
17287
17288 wxPyEndAllowThreads(__tstate);
17289 if (PyErr_Occurred()) SWIG_fail;
17290 }
17291 Py_INCREF(Py_None); resultobj = Py_None;
17292 return resultobj;
17293 fail:
17294 return NULL;
17295 }
17296
17297
17298 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17299 PyObject *resultobj;
17300 wxBrushList *arg1 = (wxBrushList *) 0 ;
17301 wxColour *arg2 = 0 ;
17302 int arg3 ;
17303 wxBrush *result;
17304 wxColour temp2 ;
17305 PyObject * obj0 = 0 ;
17306 PyObject * obj1 = 0 ;
17307 PyObject * obj2 = 0 ;
17308 char *kwnames[] = {
17309 (char *) "self",(char *) "colour",(char *) "style", NULL
17310 };
17311
17312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17315 {
17316 arg2 = &temp2;
17317 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17318 }
17319 arg3 = (int) SWIG_AsInt(obj2);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 {
17322 PyThreadState* __tstate = wxPyBeginAllowThreads();
17323 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17324
17325 wxPyEndAllowThreads(__tstate);
17326 if (PyErr_Occurred()) SWIG_fail;
17327 }
17328 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17329 return resultobj;
17330 fail:
17331 return NULL;
17332 }
17333
17334
17335 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17336 PyObject *resultobj;
17337 wxBrushList *arg1 = (wxBrushList *) 0 ;
17338 wxBrush *arg2 = (wxBrush *) 0 ;
17339 PyObject * obj0 = 0 ;
17340 PyObject * obj1 = 0 ;
17341 char *kwnames[] = {
17342 (char *) "self",(char *) "brush", NULL
17343 };
17344
17345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17350 {
17351 PyThreadState* __tstate = wxPyBeginAllowThreads();
17352 (arg1)->RemoveBrush(arg2);
17353
17354 wxPyEndAllowThreads(__tstate);
17355 if (PyErr_Occurred()) SWIG_fail;
17356 }
17357 Py_INCREF(Py_None); resultobj = Py_None;
17358 return resultobj;
17359 fail:
17360 return NULL;
17361 }
17362
17363
17364 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17365 PyObject *resultobj;
17366 wxBrushList *arg1 = (wxBrushList *) 0 ;
17367 int result;
17368 PyObject * obj0 = 0 ;
17369 char *kwnames[] = {
17370 (char *) "self", NULL
17371 };
17372
17373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17376 {
17377 PyThreadState* __tstate = wxPyBeginAllowThreads();
17378 result = (int)(arg1)->GetCount();
17379
17380 wxPyEndAllowThreads(__tstate);
17381 if (PyErr_Occurred()) SWIG_fail;
17382 }
17383 resultobj = SWIG_FromInt((int)result);
17384 return resultobj;
17385 fail:
17386 return NULL;
17387 }
17388
17389
17390 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17391 PyObject *obj;
17392 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17393 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17394 Py_INCREF(obj);
17395 return Py_BuildValue((char *)"");
17396 }
17397 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17398 PyObject *resultobj;
17399 wxColourDatabase *result;
17400 char *kwnames[] = {
17401 NULL
17402 };
17403
17404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17405 {
17406 if (!wxPyCheckForApp()) SWIG_fail;
17407 PyThreadState* __tstate = wxPyBeginAllowThreads();
17408 result = (wxColourDatabase *)new wxColourDatabase();
17409
17410 wxPyEndAllowThreads(__tstate);
17411 if (PyErr_Occurred()) SWIG_fail;
17412 }
17413 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17414 return resultobj;
17415 fail:
17416 return NULL;
17417 }
17418
17419
17420 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17421 PyObject *resultobj;
17422 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17423 PyObject * obj0 = 0 ;
17424 char *kwnames[] = {
17425 (char *) "self", NULL
17426 };
17427
17428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17431 {
17432 PyThreadState* __tstate = wxPyBeginAllowThreads();
17433 delete arg1;
17434
17435 wxPyEndAllowThreads(__tstate);
17436 if (PyErr_Occurred()) SWIG_fail;
17437 }
17438 Py_INCREF(Py_None); resultobj = Py_None;
17439 return resultobj;
17440 fail:
17441 return NULL;
17442 }
17443
17444
17445 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17446 PyObject *resultobj;
17447 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17448 wxString *arg2 = 0 ;
17449 wxColour result;
17450 bool temp2 = False ;
17451 PyObject * obj0 = 0 ;
17452 PyObject * obj1 = 0 ;
17453 char *kwnames[] = {
17454 (char *) "self",(char *) "name", NULL
17455 };
17456
17457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17460 {
17461 arg2 = wxString_in_helper(obj1);
17462 if (arg2 == NULL) SWIG_fail;
17463 temp2 = True;
17464 }
17465 {
17466 PyThreadState* __tstate = wxPyBeginAllowThreads();
17467 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17468
17469 wxPyEndAllowThreads(__tstate);
17470 if (PyErr_Occurred()) SWIG_fail;
17471 }
17472 {
17473 wxColour * resultptr;
17474 resultptr = new wxColour((wxColour &) result);
17475 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17476 }
17477 {
17478 if (temp2)
17479 delete arg2;
17480 }
17481 return resultobj;
17482 fail:
17483 {
17484 if (temp2)
17485 delete arg2;
17486 }
17487 return NULL;
17488 }
17489
17490
17491 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17492 PyObject *resultobj;
17493 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17494 wxColour *arg2 = 0 ;
17495 wxString result;
17496 wxColour temp2 ;
17497 PyObject * obj0 = 0 ;
17498 PyObject * obj1 = 0 ;
17499 char *kwnames[] = {
17500 (char *) "self",(char *) "colour", NULL
17501 };
17502
17503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17506 {
17507 arg2 = &temp2;
17508 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17509 }
17510 {
17511 PyThreadState* __tstate = wxPyBeginAllowThreads();
17512 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17513
17514 wxPyEndAllowThreads(__tstate);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 }
17517 {
17518 #if wxUSE_UNICODE
17519 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17520 #else
17521 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17522 #endif
17523 }
17524 return resultobj;
17525 fail:
17526 return NULL;
17527 }
17528
17529
17530 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17531 PyObject *resultobj;
17532 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17533 wxString *arg2 = 0 ;
17534 wxColour *arg3 = 0 ;
17535 bool temp2 = False ;
17536 wxColour temp3 ;
17537 PyObject * obj0 = 0 ;
17538 PyObject * obj1 = 0 ;
17539 PyObject * obj2 = 0 ;
17540 char *kwnames[] = {
17541 (char *) "self",(char *) "name",(char *) "colour", NULL
17542 };
17543
17544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17547 {
17548 arg2 = wxString_in_helper(obj1);
17549 if (arg2 == NULL) SWIG_fail;
17550 temp2 = True;
17551 }
17552 {
17553 arg3 = &temp3;
17554 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17555 }
17556 {
17557 PyThreadState* __tstate = wxPyBeginAllowThreads();
17558 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17559
17560 wxPyEndAllowThreads(__tstate);
17561 if (PyErr_Occurred()) SWIG_fail;
17562 }
17563 Py_INCREF(Py_None); resultobj = Py_None;
17564 {
17565 if (temp2)
17566 delete arg2;
17567 }
17568 return resultobj;
17569 fail:
17570 {
17571 if (temp2)
17572 delete arg2;
17573 }
17574 return NULL;
17575 }
17576
17577
17578 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17579 PyObject *resultobj;
17580 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17581 wxString *arg2 = 0 ;
17582 int arg3 ;
17583 int arg4 ;
17584 int arg5 ;
17585 bool temp2 = False ;
17586 PyObject * obj0 = 0 ;
17587 PyObject * obj1 = 0 ;
17588 PyObject * obj2 = 0 ;
17589 PyObject * obj3 = 0 ;
17590 PyObject * obj4 = 0 ;
17591 char *kwnames[] = {
17592 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17593 };
17594
17595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17598 {
17599 arg2 = wxString_in_helper(obj1);
17600 if (arg2 == NULL) SWIG_fail;
17601 temp2 = True;
17602 }
17603 arg3 = (int) SWIG_AsInt(obj2);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 arg4 = (int) SWIG_AsInt(obj3);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 arg5 = (int) SWIG_AsInt(obj4);
17608 if (PyErr_Occurred()) SWIG_fail;
17609 {
17610 PyThreadState* __tstate = wxPyBeginAllowThreads();
17611 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17612
17613 wxPyEndAllowThreads(__tstate);
17614 if (PyErr_Occurred()) SWIG_fail;
17615 }
17616 Py_INCREF(Py_None); resultobj = Py_None;
17617 {
17618 if (temp2)
17619 delete arg2;
17620 }
17621 return resultobj;
17622 fail:
17623 {
17624 if (temp2)
17625 delete arg2;
17626 }
17627 return NULL;
17628 }
17629
17630
17631 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17632 PyObject *obj;
17633 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17634 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17635 Py_INCREF(obj);
17636 return Py_BuildValue((char *)"");
17637 }
17638 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17639 PyObject *resultobj;
17640 wxFontList *arg1 = (wxFontList *) 0 ;
17641 wxFont *arg2 = (wxFont *) 0 ;
17642 PyObject * obj0 = 0 ;
17643 PyObject * obj1 = 0 ;
17644 char *kwnames[] = {
17645 (char *) "self",(char *) "font", NULL
17646 };
17647
17648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17651 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17653 {
17654 PyThreadState* __tstate = wxPyBeginAllowThreads();
17655 (arg1)->AddFont(arg2);
17656
17657 wxPyEndAllowThreads(__tstate);
17658 if (PyErr_Occurred()) SWIG_fail;
17659 }
17660 Py_INCREF(Py_None); resultobj = Py_None;
17661 return resultobj;
17662 fail:
17663 return NULL;
17664 }
17665
17666
17667 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17668 PyObject *resultobj;
17669 wxFontList *arg1 = (wxFontList *) 0 ;
17670 int arg2 ;
17671 int arg3 ;
17672 int arg4 ;
17673 int arg5 ;
17674 bool arg6 = (bool) False ;
17675 wxString const &arg7_defvalue = wxPyEmptyString ;
17676 wxString *arg7 = (wxString *) &arg7_defvalue ;
17677 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17678 wxFont *result;
17679 bool temp7 = False ;
17680 PyObject * obj0 = 0 ;
17681 PyObject * obj1 = 0 ;
17682 PyObject * obj2 = 0 ;
17683 PyObject * obj3 = 0 ;
17684 PyObject * obj4 = 0 ;
17685 PyObject * obj5 = 0 ;
17686 PyObject * obj6 = 0 ;
17687 PyObject * obj7 = 0 ;
17688 char *kwnames[] = {
17689 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17690 };
17691
17692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17695 arg2 = (int) SWIG_AsInt(obj1);
17696 if (PyErr_Occurred()) SWIG_fail;
17697 arg3 = (int) SWIG_AsInt(obj2);
17698 if (PyErr_Occurred()) SWIG_fail;
17699 arg4 = (int) SWIG_AsInt(obj3);
17700 if (PyErr_Occurred()) SWIG_fail;
17701 arg5 = (int) SWIG_AsInt(obj4);
17702 if (PyErr_Occurred()) SWIG_fail;
17703 if (obj5) {
17704 arg6 = (bool) SWIG_AsBool(obj5);
17705 if (PyErr_Occurred()) SWIG_fail;
17706 }
17707 if (obj6) {
17708 {
17709 arg7 = wxString_in_helper(obj6);
17710 if (arg7 == NULL) SWIG_fail;
17711 temp7 = True;
17712 }
17713 }
17714 if (obj7) {
17715 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17716 if (PyErr_Occurred()) SWIG_fail;
17717 }
17718 {
17719 PyThreadState* __tstate = wxPyBeginAllowThreads();
17720 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17721
17722 wxPyEndAllowThreads(__tstate);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 }
17725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17726 {
17727 if (temp7)
17728 delete arg7;
17729 }
17730 return resultobj;
17731 fail:
17732 {
17733 if (temp7)
17734 delete arg7;
17735 }
17736 return NULL;
17737 }
17738
17739
17740 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17741 PyObject *resultobj;
17742 wxFontList *arg1 = (wxFontList *) 0 ;
17743 wxFont *arg2 = (wxFont *) 0 ;
17744 PyObject * obj0 = 0 ;
17745 PyObject * obj1 = 0 ;
17746 char *kwnames[] = {
17747 (char *) "self",(char *) "font", NULL
17748 };
17749
17750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17753 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17755 {
17756 PyThreadState* __tstate = wxPyBeginAllowThreads();
17757 (arg1)->RemoveFont(arg2);
17758
17759 wxPyEndAllowThreads(__tstate);
17760 if (PyErr_Occurred()) SWIG_fail;
17761 }
17762 Py_INCREF(Py_None); resultobj = Py_None;
17763 return resultobj;
17764 fail:
17765 return NULL;
17766 }
17767
17768
17769 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17770 PyObject *resultobj;
17771 wxFontList *arg1 = (wxFontList *) 0 ;
17772 int result;
17773 PyObject * obj0 = 0 ;
17774 char *kwnames[] = {
17775 (char *) "self", NULL
17776 };
17777
17778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17781 {
17782 PyThreadState* __tstate = wxPyBeginAllowThreads();
17783 result = (int)(arg1)->GetCount();
17784
17785 wxPyEndAllowThreads(__tstate);
17786 if (PyErr_Occurred()) SWIG_fail;
17787 }
17788 resultobj = SWIG_FromInt((int)result);
17789 return resultobj;
17790 fail:
17791 return NULL;
17792 }
17793
17794
17795 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17796 PyObject *obj;
17797 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17798 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17799 Py_INCREF(obj);
17800 return Py_BuildValue((char *)"");
17801 }
17802 static int _wrap_TheFontList_set(PyObject *_val) {
17803 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17804 return 1;
17805 }
17806
17807
17808 static PyObject *_wrap_TheFontList_get() {
17809 PyObject *pyobj;
17810
17811 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17812 return pyobj;
17813 }
17814
17815
17816 static int _wrap_ThePenList_set(PyObject *_val) {
17817 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17818 return 1;
17819 }
17820
17821
17822 static PyObject *_wrap_ThePenList_get() {
17823 PyObject *pyobj;
17824
17825 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17826 return pyobj;
17827 }
17828
17829
17830 static int _wrap_TheBrushList_set(PyObject *_val) {
17831 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17832 return 1;
17833 }
17834
17835
17836 static PyObject *_wrap_TheBrushList_get() {
17837 PyObject *pyobj;
17838
17839 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17840 return pyobj;
17841 }
17842
17843
17844 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17845 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17846 return 1;
17847 }
17848
17849
17850 static PyObject *_wrap_TheColourDatabase_get() {
17851 PyObject *pyobj;
17852
17853 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17854 return pyobj;
17855 }
17856
17857
17858 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17859 PyObject *resultobj;
17860 wxEffects *result;
17861 char *kwnames[] = {
17862 NULL
17863 };
17864
17865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17866 {
17867 PyThreadState* __tstate = wxPyBeginAllowThreads();
17868 result = (wxEffects *)new wxEffects();
17869
17870 wxPyEndAllowThreads(__tstate);
17871 if (PyErr_Occurred()) SWIG_fail;
17872 }
17873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17874 return resultobj;
17875 fail:
17876 return NULL;
17877 }
17878
17879
17880 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17881 PyObject *resultobj;
17882 wxEffects *arg1 = (wxEffects *) 0 ;
17883 wxColour result;
17884 PyObject * obj0 = 0 ;
17885 char *kwnames[] = {
17886 (char *) "self", NULL
17887 };
17888
17889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17892 {
17893 PyThreadState* __tstate = wxPyBeginAllowThreads();
17894 result = ((wxEffects const *)arg1)->GetHighlightColour();
17895
17896 wxPyEndAllowThreads(__tstate);
17897 if (PyErr_Occurred()) SWIG_fail;
17898 }
17899 {
17900 wxColour * resultptr;
17901 resultptr = new wxColour((wxColour &) result);
17902 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17903 }
17904 return resultobj;
17905 fail:
17906 return NULL;
17907 }
17908
17909
17910 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17911 PyObject *resultobj;
17912 wxEffects *arg1 = (wxEffects *) 0 ;
17913 wxColour result;
17914 PyObject * obj0 = 0 ;
17915 char *kwnames[] = {
17916 (char *) "self", NULL
17917 };
17918
17919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17922 {
17923 PyThreadState* __tstate = wxPyBeginAllowThreads();
17924 result = ((wxEffects const *)arg1)->GetLightShadow();
17925
17926 wxPyEndAllowThreads(__tstate);
17927 if (PyErr_Occurred()) SWIG_fail;
17928 }
17929 {
17930 wxColour * resultptr;
17931 resultptr = new wxColour((wxColour &) result);
17932 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17933 }
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj;
17942 wxEffects *arg1 = (wxEffects *) 0 ;
17943 wxColour result;
17944 PyObject * obj0 = 0 ;
17945 char *kwnames[] = {
17946 (char *) "self", NULL
17947 };
17948
17949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17952 {
17953 PyThreadState* __tstate = wxPyBeginAllowThreads();
17954 result = ((wxEffects const *)arg1)->GetFaceColour();
17955
17956 wxPyEndAllowThreads(__tstate);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 }
17959 {
17960 wxColour * resultptr;
17961 resultptr = new wxColour((wxColour &) result);
17962 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17963 }
17964 return resultobj;
17965 fail:
17966 return NULL;
17967 }
17968
17969
17970 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17971 PyObject *resultobj;
17972 wxEffects *arg1 = (wxEffects *) 0 ;
17973 wxColour result;
17974 PyObject * obj0 = 0 ;
17975 char *kwnames[] = {
17976 (char *) "self", NULL
17977 };
17978
17979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17982 {
17983 PyThreadState* __tstate = wxPyBeginAllowThreads();
17984 result = ((wxEffects const *)arg1)->GetMediumShadow();
17985
17986 wxPyEndAllowThreads(__tstate);
17987 if (PyErr_Occurred()) SWIG_fail;
17988 }
17989 {
17990 wxColour * resultptr;
17991 resultptr = new wxColour((wxColour &) result);
17992 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17993 }
17994 return resultobj;
17995 fail:
17996 return NULL;
17997 }
17998
17999
18000 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18001 PyObject *resultobj;
18002 wxEffects *arg1 = (wxEffects *) 0 ;
18003 wxColour result;
18004 PyObject * obj0 = 0 ;
18005 char *kwnames[] = {
18006 (char *) "self", NULL
18007 };
18008
18009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18012 {
18013 PyThreadState* __tstate = wxPyBeginAllowThreads();
18014 result = ((wxEffects const *)arg1)->GetDarkShadow();
18015
18016 wxPyEndAllowThreads(__tstate);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 }
18019 {
18020 wxColour * resultptr;
18021 resultptr = new wxColour((wxColour &) result);
18022 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18023 }
18024 return resultobj;
18025 fail:
18026 return NULL;
18027 }
18028
18029
18030 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18031 PyObject *resultobj;
18032 wxEffects *arg1 = (wxEffects *) 0 ;
18033 wxColour *arg2 = 0 ;
18034 wxColour temp2 ;
18035 PyObject * obj0 = 0 ;
18036 PyObject * obj1 = 0 ;
18037 char *kwnames[] = {
18038 (char *) "self",(char *) "c", NULL
18039 };
18040
18041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18044 {
18045 arg2 = &temp2;
18046 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18047 }
18048 {
18049 PyThreadState* __tstate = wxPyBeginAllowThreads();
18050 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18051
18052 wxPyEndAllowThreads(__tstate);
18053 if (PyErr_Occurred()) SWIG_fail;
18054 }
18055 Py_INCREF(Py_None); resultobj = Py_None;
18056 return resultobj;
18057 fail:
18058 return NULL;
18059 }
18060
18061
18062 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18063 PyObject *resultobj;
18064 wxEffects *arg1 = (wxEffects *) 0 ;
18065 wxColour *arg2 = 0 ;
18066 wxColour temp2 ;
18067 PyObject * obj0 = 0 ;
18068 PyObject * obj1 = 0 ;
18069 char *kwnames[] = {
18070 (char *) "self",(char *) "c", NULL
18071 };
18072
18073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18076 {
18077 arg2 = &temp2;
18078 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18079 }
18080 {
18081 PyThreadState* __tstate = wxPyBeginAllowThreads();
18082 (arg1)->SetLightShadow((wxColour const &)*arg2);
18083
18084 wxPyEndAllowThreads(__tstate);
18085 if (PyErr_Occurred()) SWIG_fail;
18086 }
18087 Py_INCREF(Py_None); resultobj = Py_None;
18088 return resultobj;
18089 fail:
18090 return NULL;
18091 }
18092
18093
18094 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18095 PyObject *resultobj;
18096 wxEffects *arg1 = (wxEffects *) 0 ;
18097 wxColour *arg2 = 0 ;
18098 wxColour temp2 ;
18099 PyObject * obj0 = 0 ;
18100 PyObject * obj1 = 0 ;
18101 char *kwnames[] = {
18102 (char *) "self",(char *) "c", NULL
18103 };
18104
18105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18108 {
18109 arg2 = &temp2;
18110 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18111 }
18112 {
18113 PyThreadState* __tstate = wxPyBeginAllowThreads();
18114 (arg1)->SetFaceColour((wxColour const &)*arg2);
18115
18116 wxPyEndAllowThreads(__tstate);
18117 if (PyErr_Occurred()) SWIG_fail;
18118 }
18119 Py_INCREF(Py_None); resultobj = Py_None;
18120 return resultobj;
18121 fail:
18122 return NULL;
18123 }
18124
18125
18126 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18127 PyObject *resultobj;
18128 wxEffects *arg1 = (wxEffects *) 0 ;
18129 wxColour *arg2 = 0 ;
18130 wxColour temp2 ;
18131 PyObject * obj0 = 0 ;
18132 PyObject * obj1 = 0 ;
18133 char *kwnames[] = {
18134 (char *) "self",(char *) "c", NULL
18135 };
18136
18137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18140 {
18141 arg2 = &temp2;
18142 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18143 }
18144 {
18145 PyThreadState* __tstate = wxPyBeginAllowThreads();
18146 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18147
18148 wxPyEndAllowThreads(__tstate);
18149 if (PyErr_Occurred()) SWIG_fail;
18150 }
18151 Py_INCREF(Py_None); resultobj = Py_None;
18152 return resultobj;
18153 fail:
18154 return NULL;
18155 }
18156
18157
18158 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18159 PyObject *resultobj;
18160 wxEffects *arg1 = (wxEffects *) 0 ;
18161 wxColour *arg2 = 0 ;
18162 wxColour temp2 ;
18163 PyObject * obj0 = 0 ;
18164 PyObject * obj1 = 0 ;
18165 char *kwnames[] = {
18166 (char *) "self",(char *) "c", NULL
18167 };
18168
18169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18172 {
18173 arg2 = &temp2;
18174 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18175 }
18176 {
18177 PyThreadState* __tstate = wxPyBeginAllowThreads();
18178 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18179
18180 wxPyEndAllowThreads(__tstate);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 Py_INCREF(Py_None); resultobj = Py_None;
18184 return resultobj;
18185 fail:
18186 return NULL;
18187 }
18188
18189
18190 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18191 PyObject *resultobj;
18192 wxEffects *arg1 = (wxEffects *) 0 ;
18193 wxColour *arg2 = 0 ;
18194 wxColour *arg3 = 0 ;
18195 wxColour *arg4 = 0 ;
18196 wxColour *arg5 = 0 ;
18197 wxColour *arg6 = 0 ;
18198 wxColour temp2 ;
18199 wxColour temp3 ;
18200 wxColour temp4 ;
18201 wxColour temp5 ;
18202 wxColour temp6 ;
18203 PyObject * obj0 = 0 ;
18204 PyObject * obj1 = 0 ;
18205 PyObject * obj2 = 0 ;
18206 PyObject * obj3 = 0 ;
18207 PyObject * obj4 = 0 ;
18208 PyObject * obj5 = 0 ;
18209 char *kwnames[] = {
18210 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18211 };
18212
18213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18216 {
18217 arg2 = &temp2;
18218 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18219 }
18220 {
18221 arg3 = &temp3;
18222 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18223 }
18224 {
18225 arg4 = &temp4;
18226 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18227 }
18228 {
18229 arg5 = &temp5;
18230 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18231 }
18232 {
18233 arg6 = &temp6;
18234 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18235 }
18236 {
18237 PyThreadState* __tstate = wxPyBeginAllowThreads();
18238 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18239
18240 wxPyEndAllowThreads(__tstate);
18241 if (PyErr_Occurred()) SWIG_fail;
18242 }
18243 Py_INCREF(Py_None); resultobj = Py_None;
18244 return resultobj;
18245 fail:
18246 return NULL;
18247 }
18248
18249
18250 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18251 PyObject *resultobj;
18252 wxEffects *arg1 = (wxEffects *) 0 ;
18253 wxDC *arg2 = 0 ;
18254 wxRect *arg3 = 0 ;
18255 int arg4 = (int) 1 ;
18256 wxRect temp3 ;
18257 PyObject * obj0 = 0 ;
18258 PyObject * obj1 = 0 ;
18259 PyObject * obj2 = 0 ;
18260 PyObject * obj3 = 0 ;
18261 char *kwnames[] = {
18262 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18263 };
18264
18265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18268 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18269 SWIG_POINTER_EXCEPTION | 0)) == -1)
18270 SWIG_fail;
18271 if (arg2 == NULL) {
18272 PyErr_SetString(PyExc_TypeError,"null reference");
18273 SWIG_fail;
18274 }
18275 {
18276 arg3 = &temp3;
18277 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18278 }
18279 if (obj3) {
18280 arg4 = (int) SWIG_AsInt(obj3);
18281 if (PyErr_Occurred()) SWIG_fail;
18282 }
18283 {
18284 PyThreadState* __tstate = wxPyBeginAllowThreads();
18285 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18286
18287 wxPyEndAllowThreads(__tstate);
18288 if (PyErr_Occurred()) SWIG_fail;
18289 }
18290 Py_INCREF(Py_None); resultobj = Py_None;
18291 return resultobj;
18292 fail:
18293 return NULL;
18294 }
18295
18296
18297 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18298 PyObject *resultobj;
18299 wxEffects *arg1 = (wxEffects *) 0 ;
18300 wxRect *arg2 = 0 ;
18301 wxDC *arg3 = 0 ;
18302 wxBitmap *arg4 = 0 ;
18303 bool result;
18304 wxRect temp2 ;
18305 PyObject * obj0 = 0 ;
18306 PyObject * obj1 = 0 ;
18307 PyObject * obj2 = 0 ;
18308 PyObject * obj3 = 0 ;
18309 char *kwnames[] = {
18310 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18311 };
18312
18313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18316 {
18317 arg2 = &temp2;
18318 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18319 }
18320 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18321 SWIG_POINTER_EXCEPTION | 0)) == -1)
18322 SWIG_fail;
18323 if (arg3 == NULL) {
18324 PyErr_SetString(PyExc_TypeError,"null reference");
18325 SWIG_fail;
18326 }
18327 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18328 SWIG_POINTER_EXCEPTION | 0)) == -1)
18329 SWIG_fail;
18330 if (arg4 == NULL) {
18331 PyErr_SetString(PyExc_TypeError,"null reference");
18332 SWIG_fail;
18333 }
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18337
18338 wxPyEndAllowThreads(__tstate);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 {
18342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18343 }
18344 return resultobj;
18345 fail:
18346 return NULL;
18347 }
18348
18349
18350 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18351 PyObject *obj;
18352 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18353 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18354 Py_INCREF(obj);
18355 return Py_BuildValue((char *)"");
18356 }
18357 static PyMethodDef SwigMethods[] = {
18358 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18364 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18381 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18387 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18406 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18418 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18445 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18447 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18462 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18470 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18478 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18484 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18512 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18526 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18550 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18559 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18579 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18616 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18624 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18631 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18653 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18655 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18663 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
18701 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
18703 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18708 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18710 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18730 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18759 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18760 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18761 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18764 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18773 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18775 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18776 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18777 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18778 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
18779 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18780 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18782 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18783 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18785 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18786 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18790 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18791 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18792 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18793 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18794 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18795 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18796 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18797 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18798 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18799 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18800 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18801 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18802 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18803 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18804 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18805 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18806 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18807 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18808 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18809 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18810 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18811 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18812 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18813 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18814 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18815 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18816 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18817 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18818 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18819 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18820 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18821 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18822 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18823 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18824 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18825 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18826 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18827 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18828 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18829 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18830 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18831 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18832 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18833 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18834 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18835 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18836 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18837 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18838 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18839 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18840 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18841 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18842 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18843 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18844 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18845 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18846 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18847 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18848 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18849 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18850 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18851 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18852 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18853 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18854 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18855 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18856 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18857 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18858 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18859 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18860 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18861 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18862 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18863 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18864 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18865 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18866 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18867 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18868 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18869 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18870 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18871 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18872 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18873 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18874 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18875 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18876 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18877 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18878 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18879 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18880 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18881 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18882 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18883 { NULL, NULL }
18884 };
18885
18886
18887 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18888
18889 static void *_p_wxControlTo_p_wxWindow(void *x) {
18890 return (void *)((wxWindow *) ((wxControl *) x));
18891 }
18892 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18893 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18894 }
18895 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18896 return (void *)((wxWindow *) ((wxMenuBar *) x));
18897 }
18898 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18899 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18900 }
18901 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18902 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18903 }
18904 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18905 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18906 }
18907 static void *_p_wxPenTo_p_wxObject(void *x) {
18908 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18909 }
18910 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18911 return (void *)((wxObject *) ((wxRegionIterator *) x));
18912 }
18913 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18914 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18915 }
18916 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18917 return (void *)((wxObject *) ((wxSizerItem *) x));
18918 }
18919 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18920 return (void *)((wxObject *) ((wxColourDatabase *) x));
18921 }
18922 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18923 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18924 }
18925 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18926 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18927 }
18928 static void *_p_wxIconTo_p_wxObject(void *x) {
18929 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18930 }
18931 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18932 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18933 }
18934 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18935 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18936 }
18937 static void *_p_wxSizerTo_p_wxObject(void *x) {
18938 return (void *)((wxObject *) ((wxSizer *) x));
18939 }
18940 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18941 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18942 }
18943 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18944 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18945 }
18946 static void *_p_wxPenListTo_p_wxObject(void *x) {
18947 return (void *)((wxObject *) ((wxPenList *) x));
18948 }
18949 static void *_p_wxEventTo_p_wxObject(void *x) {
18950 return (void *)((wxObject *) ((wxEvent *) x));
18951 }
18952 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18953 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18954 }
18955 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18956 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18957 }
18958 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18959 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18960 }
18961 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18962 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18963 }
18964 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18965 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18966 }
18967 static void *_p_wxDCTo_p_wxObject(void *x) {
18968 return (void *)((wxObject *) ((wxDC *) x));
18969 }
18970 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18971 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18972 }
18973 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18974 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18975 }
18976 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18977 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18978 }
18979 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18980 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18981 }
18982 static void *_p_wxControlTo_p_wxObject(void *x) {
18983 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18984 }
18985 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18986 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18987 }
18988 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18989 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18990 }
18991 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18992 return (void *)((wxObject *) ((wxFSFile *) x));
18993 }
18994 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18995 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18996 }
18997 static void *_p_wxRegionTo_p_wxObject(void *x) {
18998 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18999 }
19000 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19001 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19002 }
19003 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19004 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19005 }
19006 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19007 return (void *)((wxObject *) ((wxGDIObject *) x));
19008 }
19009 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19010 return (void *)((wxObject *) ((wxEffects *) x));
19011 }
19012 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19013 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19014 }
19015 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19016 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19017 }
19018 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19019 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19020 }
19021 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19022 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19023 }
19024 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19025 return (void *)((wxObject *) ((wxMenuItem *) x));
19026 }
19027 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19029 }
19030 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19031 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19032 }
19033 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19034 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19035 }
19036 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19037 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19038 }
19039 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19040 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19041 }
19042 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19043 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19044 }
19045 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19046 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19047 }
19048 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19049 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19050 }
19051 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19052 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19053 }
19054 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19055 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19056 }
19057 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19058 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19059 }
19060 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19061 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19062 }
19063 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19064 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19065 }
19066 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19067 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19068 }
19069 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19070 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19071 }
19072 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19073 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19074 }
19075 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19076 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19077 }
19078 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19079 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19080 }
19081 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19082 return (void *)((wxObject *) ((wxImageHandler *) x));
19083 }
19084 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19085 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19086 }
19087 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19088 return (void *)((wxObject *) ((wxEvtHandler *) x));
19089 }
19090 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19091 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19092 }
19093 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19094 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19095 }
19096 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19097 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19098 }
19099 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19100 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19101 }
19102 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19103 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19104 }
19105 static void *_p_wxImageTo_p_wxObject(void *x) {
19106 return (void *)((wxObject *) ((wxImage *) x));
19107 }
19108 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19109 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19110 }
19111 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19112 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19113 }
19114 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19115 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19116 }
19117 static void *_p_wxImageListTo_p_wxObject(void *x) {
19118 return (void *)((wxObject *) ((wxImageList *) x));
19119 }
19120 static void *_p_wxCursorTo_p_wxObject(void *x) {
19121 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19122 }
19123 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19124 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19125 }
19126 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19127 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19128 }
19129 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19130 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19131 }
19132 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19133 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19134 }
19135 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19136 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19137 }
19138 static void *_p_wxWindowTo_p_wxObject(void *x) {
19139 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19140 }
19141 static void *_p_wxMenuTo_p_wxObject(void *x) {
19142 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19143 }
19144 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19145 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19146 }
19147 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19148 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19149 }
19150 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19151 return (void *)((wxObject *) ((wxBrushList *) x));
19152 }
19153 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19154 return (void *)((wxObject *) ((wxFileSystem *) x));
19155 }
19156 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19157 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19158 }
19159 static void *_p_wxMaskTo_p_wxObject(void *x) {
19160 return (void *)((wxObject *) ((wxMask *) x));
19161 }
19162 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19163 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19164 }
19165 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19166 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19167 }
19168 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19169 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19170 }
19171 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19172 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19173 }
19174 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19175 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19176 }
19177 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19178 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19179 }
19180 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19181 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19182 }
19183 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19184 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19185 }
19186 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19187 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19188 }
19189 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19190 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19191 }
19192 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19193 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19194 }
19195 static void *_p_wxFontTo_p_wxObject(void *x) {
19196 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19197 }
19198 static void *_p_wxBrushTo_p_wxObject(void *x) {
19199 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19200 }
19201 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19202 return (void *)((wxObject *) ((wxMetaFile *) x));
19203 }
19204 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19205 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19206 }
19207 static void *_p_wxColourTo_p_wxObject(void *x) {
19208 return (void *)((wxObject *) ((wxColour *) x));
19209 }
19210 static void *_p_wxFontListTo_p_wxObject(void *x) {
19211 return (void *)((wxObject *) ((wxFontList *) x));
19212 }
19213 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19214 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19215 }
19216 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19217 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19218 }
19219 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19220 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19221 }
19222 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19223 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19224 }
19225 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19226 return (void *)((wxDC *) ((wxScreenDC *) x));
19227 }
19228 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19229 return (void *)((wxDC *) ((wxMirrorDC *) x));
19230 }
19231 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19232 return (void *)((wxDC *) ((wxMemoryDC *) x));
19233 }
19234 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19235 return (void *)((wxDC *) ((wxWindowDC *) x));
19236 }
19237 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19238 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19239 }
19240 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19241 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19242 }
19243 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19244 return (void *)((wxDC *) ((wxClientDC *) x));
19245 }
19246 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19247 return (void *)((wxDC *) ((wxPaintDC *) x));
19248 }
19249 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19250 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19251 }
19252 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19253 return (void *)((wxDC *) ((wxPrinterDC *) x));
19254 }
19255 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19256 return (void *)((wxGDIObject *) ((wxIcon *) x));
19257 }
19258 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19259 return (void *)((wxGDIObject *) ((wxPalette *) x));
19260 }
19261 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19262 return (void *)((wxGDIObject *) ((wxPen *) x));
19263 }
19264 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19265 return (void *)((wxGDIObject *) ((wxFont *) x));
19266 }
19267 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19268 return (void *)((wxGDIObject *) ((wxCursor *) x));
19269 }
19270 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19271 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19272 }
19273 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19274 return (void *)((wxGDIObject *) ((wxRegion *) x));
19275 }
19276 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19277 return (void *)((wxGDIObject *) ((wxBrush *) x));
19278 }
19279 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}};
19280 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}};
19281 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}};
19282 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}};
19283 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}};
19284 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}};
19285 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}};
19286 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}};
19287 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}};
19288 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}};
19289 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}};
19290 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}};
19291 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}};
19292 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}};
19293 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}};
19294 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}};
19295 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}};
19296 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}};
19297 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}};
19298 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}};
19299 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}};
19300 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}};
19301 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}};
19302 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}};
19303 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}};
19304 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}};
19305 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}};
19306 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}};
19307 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}};
19308 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}};
19309 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}};
19310 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}};
19311 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}};
19312 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}};
19313 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}};
19314 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}};
19315 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}};
19316 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}};
19317 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}};
19318 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}};
19319 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}};
19320 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}};
19321 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}};
19322 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}};
19323 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}};
19324 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}};
19325 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}};
19326 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}};
19327 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}};
19328 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}};
19329 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}};
19330 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}};
19331 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}};
19332 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}};
19333 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}};
19334
19335 static swig_type_info *swig_types_initial[] = {
19336 _swigt__p_wxPostScriptDC,
19337 _swigt__p_wxBrush,
19338 _swigt__p_wxColour,
19339 _swigt__p_wxDC,
19340 _swigt__p_wxMirrorDC,
19341 _swigt__p_byte,
19342 _swigt__p_wxPyFontEnumerator,
19343 _swigt__p_char,
19344 _swigt__p_wxIconLocation,
19345 _swigt__p_wxImage,
19346 _swigt__p_wxMetaFileDC,
19347 _swigt__p_wxMask,
19348 _swigt__p_wxSize,
19349 _swigt__p_wxFont,
19350 _swigt__p_wxWindow,
19351 _swigt__p_double,
19352 _swigt__p_wxMemoryDC,
19353 _swigt__p_wxFontMapper,
19354 _swigt__p_wxEffects,
19355 _swigt__p_wxNativeEncodingInfo,
19356 _swigt__p_wxPalette,
19357 _swigt__p_wxBitmap,
19358 _swigt__p_wxObject,
19359 _swigt__p_wxRegionIterator,
19360 _swigt__p_wxRect,
19361 _swigt__p_wxString,
19362 _swigt__p_wxPrinterDC,
19363 _swigt__p_wxIconBundle,
19364 _swigt__p_wxPoint,
19365 _swigt__p_wxDash,
19366 _swigt__p_wxScreenDC,
19367 _swigt__p_wxCursor,
19368 _swigt__p_wxClientDC,
19369 _swigt__p_wxBufferedDC,
19370 _swigt__p_wxImageList,
19371 _swigt__p_unsigned_char,
19372 _swigt__p_wxGDIObject,
19373 _swigt__p_wxIcon,
19374 _swigt__p_wxLocale,
19375 _swigt__p_wxRegion,
19376 _swigt__p_wxLanguageInfo,
19377 _swigt__p_wxConfigBase,
19378 _swigt__p_wxWindowDC,
19379 _swigt__p_wxPrintData,
19380 _swigt__p_wxBrushList,
19381 _swigt__p_wxFontList,
19382 _swigt__p_wxPen,
19383 _swigt__p_wxBufferedPaintDC,
19384 _swigt__p_wxPaintDC,
19385 _swigt__p_wxPenList,
19386 _swigt__p_int,
19387 _swigt__p_wxMetaFile,
19388 _swigt__p_wxNativeFontInfo,
19389 _swigt__p_wxEncodingConverter,
19390 _swigt__p_wxColourDatabase,
19391 0
19392 };
19393
19394
19395 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19396
19397 static swig_const_info swig_const_table[] = {
19398 {0}};
19399
19400 #ifdef __cplusplus
19401 }
19402 #endif
19403
19404 #ifdef __cplusplus
19405 extern "C"
19406 #endif
19407 SWIGEXPORT(void) SWIG_init(void) {
19408 static PyObject *SWIG_globals = 0;
19409 static int typeinit = 0;
19410 PyObject *m, *d;
19411 int i;
19412 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19413 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19414 d = PyModule_GetDict(m);
19415
19416 if (!typeinit) {
19417 for (i = 0; swig_types_initial[i]; i++) {
19418 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19419 }
19420 typeinit = 1;
19421 }
19422 SWIG_InstallConstants(d,swig_const_table);
19423
19424 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19425 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19426 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19427 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19428 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19429 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19430 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19431 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19432 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19433 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19434 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19435 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19436 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19437 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19438 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19439 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19440 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19441 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19442 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19443 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19444 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19445 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19446 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19447 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19448 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19449 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19450 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19451 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19452 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19453 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19454 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19455 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19456 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19457 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19458 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19459 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19460 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19461 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19462 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19463 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19464 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19465 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19466 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19467 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19468 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19469 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19470 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19471 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19472 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19473 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19474 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19475 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19476 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19477 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19478 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19479 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19480 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19481 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19482 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19483 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19484 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19485 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19486 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19487 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19488 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19489 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19490 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19491 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19492 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19493 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19494 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19495 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19496 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19497 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19498 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19499 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19500 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19501 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19502 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19503 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19504 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19505 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19506 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19507 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19508 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19509 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19510 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19511 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19512 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19513 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19514 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19515 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19516 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19517 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19518 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19519 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19520 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19521 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19522 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19523 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19524 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19525 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19526 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19527 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19528 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19529 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19530 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19531 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19532 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19533 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19534 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19535 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19536 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19537 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19538 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19539 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19540 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19541 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19542 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19543 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19544 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19545 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19546 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19547 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19548 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19549 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19550 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19551
19552 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19553
19554 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19555 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19556 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19557 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19558 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19559 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19560 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19561 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19562 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19563 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19564 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19565 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19566 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19567 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19568 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19569 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19570 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19571 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19572 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19573 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19574 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19575 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19576 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19577 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19578 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19579 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19580 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19581 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19582 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19583 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19584 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19585 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19586 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19587 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19588 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19589 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19590 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19591 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19592 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19593 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19594 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19595 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19596 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19597 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19598 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19599 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19600 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19601 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19602 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19603 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19604 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19605 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19606 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19607 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19608 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19609 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19610 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19611 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19612 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19613 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19614 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19615 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19616 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19617 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19618 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19619 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19620 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19621 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19622 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19623 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19624 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19625 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19626 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19627 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19628 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19629 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19630 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19631 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19632 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19633 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19634 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19635 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19636 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19637 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19638 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19639 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19640 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19641 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19642 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19643 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19644 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19645 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19646 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19647 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19648 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19649 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19650 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19651 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19652 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19653 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19654 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19655 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19656 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19657 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19658 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19659 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19660 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19661 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19662 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19663 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19664 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19665 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19666 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19667 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19668 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19669 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19670 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19671 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19672 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19673 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19674 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19675 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19676 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19677 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19678 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19679 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19680 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19681 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19682 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19683 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19684 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19685 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19686 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19687 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19688 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19689 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19690 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19691 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19692 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19693 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19694 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19695 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19696 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19697 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19698 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19699 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19700 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19701 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19702 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19703 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19704 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19705 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19706 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19707 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19708 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19709 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19710 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19711 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19712 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19713 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19714 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19715 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19716 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19717 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19718 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19719 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19720 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19721 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19722 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19723 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19724 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19725 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19726 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19727 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19728 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19729 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19730 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19731 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19732 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19733 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19734 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19735 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19736 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19737 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19738 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19739 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19740 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19741 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19742 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19743 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19744 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19745 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19746 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19747 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19748 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19749 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19750 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19751 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19752 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19753 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19754 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19755 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19756 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19757 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19758 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19759 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19760 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19761 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19762 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19763 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19764 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19765 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19766 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19767 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19768 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19769 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19770 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19771 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19772 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19773 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19774 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19775 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19776 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19777 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19778 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19779 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19780 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19781 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19782 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19783 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19784 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19785 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19786 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19787 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19788 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19789 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19790 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19791 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19792 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19793 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19794 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19795 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19796 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19797 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19798 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19799 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19800 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19801 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19802 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19803 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19804 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19805 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19806 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19807 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19808 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19809 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19810 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19811 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19812 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19813 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19814 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19815 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19816 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19817 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19818 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19819 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19820 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19821 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19822 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19823 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19824 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19825 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19826 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19827 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19828 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19829 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19830 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19831 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19832 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19833 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19834 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19835 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19836 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19837 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19838 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19839 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19840 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19841 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19842 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19843 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19844 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19845 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19846 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19847 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19848 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19849 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19850 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19851 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19852 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19853 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19854
19855 // Work around a chicken/egg problem in drawlist.cpp
19856 wxPyDrawList_SetAPIPtr();
19857
19858 }
19859