]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
6f5bfe39a5463842bd540d6c1b8a8cbad16d05e6
[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 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
712 wxPyRaiseNotImplemented();
713 return NULL;
714 }
715 void wxRegionIterator_Next(wxRegionIterator *self){
716 (*self) ++;
717 }
718 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
719 return self->operator bool();
720 }
721
722 #include <wx/fontutil.h>
723 #include <wx/fontmap.h>
724 #include <wx/fontenum.h>
725
726 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
727 return self->ToString();
728 }
729
730 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
731 static wxNativeEncodingInfo info;
732 if ( wxGetNativeFontEncoding(encoding, &info) )
733 return &info;
734 else
735 return NULL;
736 }
737
738 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
739 wxFontEncoding alt_enc;
740 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
741 return PyInt_FromLong(alt_enc);
742 else {
743 Py_INCREF(Py_None);
744 return Py_None;
745 }
746 }
747 wxFont *new_wxFont(wxString const &info){
748 wxNativeFontInfo nfi;
749 nfi.FromString(info);
750 return new wxFont(nfi);
751 }
752 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
753 return wxFont::New(pointSize, family, flags, face, encoding);
754 }
755 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
756 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
757
758 class wxPyFontEnumerator : public wxFontEnumerator {
759 public:
760 wxPyFontEnumerator() {}
761 ~wxPyFontEnumerator() {}
762
763 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
764 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
765
766 PYPRIVATE;
767 };
768
769 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
770 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
771
772
773 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
774 wxArrayString* arr = self->GetEncodings();
775 return wxArrayString2PyList_helper(*arr);
776 }
777 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
778 wxArrayString* arr = self->GetFacenames();
779 return wxArrayString2PyList_helper(*arr);
780 }
781
782
783 wxLocale *new_wxLocale(int language,int flags){
784 if (language == -1)
785 return new wxLocale();
786 else
787 return new wxLocale(language, flags);
788 }
789
790 #include "wx/wxPython/pydrawxxx.h"
791
792 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
793 wxColour col;
794 self->GetPixel(x, y, &col);
795 return col;
796 }
797 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
798 wxColour col;
799 self->GetPixel(pt, &col);
800 return col;
801 }
802
803 SWIGSTATICINLINE(double)
804 SWIG_AsDouble(PyObject *obj)
805 {
806 if (PyNumber_Check(obj))
807 return PyFloat_AsDouble(obj);
808 else {
809 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
810 obj->ob_type->tp_name);
811 PyErr_SetObject(PyExc_TypeError, errmsg);
812 Py_DECREF(errmsg);
813 return 0;
814 }
815 }
816
817
818 SWIGSTATICINLINE(int)
819 SWIG_CheckDouble(PyObject* obj)
820 {
821 SWIG_AsDouble(obj);
822 if (PyErr_Occurred()) {
823 PyErr_Clear();
824 return 0;
825 } else {
826 return 1;
827 }
828 }
829
830 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
831 wxRect rv;
832 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
833 return rv;
834 }
835 wxRect wxDC_GetClippingRect(wxDC *self){
836 wxRect rect;
837 self->GetClippingBox(rect);
838 return rect;
839 }
840 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
841 wxArrayInt widths;
842 self->GetPartialTextExtents(text, widths);
843 return widths;
844 }
845 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
846 self->SetLogicalOrigin(point.x, point.y);
847 }
848 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
849 self->SetDeviceOrigin(point.x, point.y);
850 }
851 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
852 self->CalcBoundingBox(point.x, point.y);
853 }
854 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
855 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
856 }
857 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
858 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
859 }
860 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
861 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
862 }
863 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
864 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
865 }
866 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
867 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
868 }
869 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
870 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
871 }
872
873 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
874 *x1 = dc->MinX();
875 *y1 = dc->MinY();
876 *x2 = dc->MaxX();
877 *y2 = dc->MaxY();
878 }
879
880
881 #include <wx/dcbuffer.h>
882
883
884 #include <wx/dcps.h>
885
886
887 #include <wx/metafile.h>
888
889
890
891 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
892 self->AddColour(name, wxColour(red, green, blue));
893 }
894
895 #include <wx/effects.h>
896
897 #ifdef __cplusplus
898 extern "C" {
899 #endif
900 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
901 PyObject *resultobj;
902 wxGDIObject *result;
903 char *kwnames[] = {
904 NULL
905 };
906
907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
908 {
909 if (!wxPyCheckForApp()) SWIG_fail;
910 PyThreadState* __tstate = wxPyBeginAllowThreads();
911 result = (wxGDIObject *)new wxGDIObject();
912
913 wxPyEndAllowThreads(__tstate);
914 if (PyErr_Occurred()) SWIG_fail;
915 }
916 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
917 return resultobj;
918 fail:
919 return NULL;
920 }
921
922
923 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
924 PyObject *resultobj;
925 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
926 PyObject * obj0 = 0 ;
927 char *kwnames[] = {
928 (char *) "self", NULL
929 };
930
931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
934 {
935 PyThreadState* __tstate = wxPyBeginAllowThreads();
936 delete arg1;
937
938 wxPyEndAllowThreads(__tstate);
939 if (PyErr_Occurred()) SWIG_fail;
940 }
941 Py_INCREF(Py_None); resultobj = Py_None;
942 return resultobj;
943 fail:
944 return NULL;
945 }
946
947
948 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
949 PyObject *resultobj;
950 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
951 bool result;
952 PyObject * obj0 = 0 ;
953 char *kwnames[] = {
954 (char *) "self", NULL
955 };
956
957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
960 {
961 PyThreadState* __tstate = wxPyBeginAllowThreads();
962 result = (bool)(arg1)->GetVisible();
963
964 wxPyEndAllowThreads(__tstate);
965 if (PyErr_Occurred()) SWIG_fail;
966 }
967 {
968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
969 }
970 return resultobj;
971 fail:
972 return NULL;
973 }
974
975
976 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
977 PyObject *resultobj;
978 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
979 bool arg2 ;
980 PyObject * obj0 = 0 ;
981 PyObject * obj1 = 0 ;
982 char *kwnames[] = {
983 (char *) "self",(char *) "visible", NULL
984 };
985
986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
989 arg2 = (bool) SWIG_AsBool(obj1);
990 if (PyErr_Occurred()) SWIG_fail;
991 {
992 PyThreadState* __tstate = wxPyBeginAllowThreads();
993 (arg1)->SetVisible(arg2);
994
995 wxPyEndAllowThreads(__tstate);
996 if (PyErr_Occurred()) SWIG_fail;
997 }
998 Py_INCREF(Py_None); resultobj = Py_None;
999 return resultobj;
1000 fail:
1001 return NULL;
1002 }
1003
1004
1005 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1006 PyObject *resultobj;
1007 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1008 bool result;
1009 PyObject * obj0 = 0 ;
1010 char *kwnames[] = {
1011 (char *) "self", NULL
1012 };
1013
1014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1017 {
1018 PyThreadState* __tstate = wxPyBeginAllowThreads();
1019 result = (bool)(arg1)->IsNull();
1020
1021 wxPyEndAllowThreads(__tstate);
1022 if (PyErr_Occurred()) SWIG_fail;
1023 }
1024 {
1025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1026 }
1027 return resultobj;
1028 fail:
1029 return NULL;
1030 }
1031
1032
1033 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1034 PyObject *obj;
1035 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1036 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1037 Py_INCREF(obj);
1038 return Py_BuildValue((char *)"");
1039 }
1040 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1041 PyObject *resultobj;
1042 byte arg1 = (byte) 0 ;
1043 byte arg2 = (byte) 0 ;
1044 byte arg3 = (byte) 0 ;
1045 wxColour *result;
1046 PyObject * obj0 = 0 ;
1047 PyObject * obj1 = 0 ;
1048 PyObject * obj2 = 0 ;
1049 char *kwnames[] = {
1050 (char *) "red",(char *) "green",(char *) "blue", NULL
1051 };
1052
1053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1054 if (obj0) {
1055 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
1056 if (PyErr_Occurred()) SWIG_fail;
1057 }
1058 if (obj1) {
1059 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1060 if (PyErr_Occurred()) SWIG_fail;
1061 }
1062 if (obj2) {
1063 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1064 if (PyErr_Occurred()) SWIG_fail;
1065 }
1066 {
1067 PyThreadState* __tstate = wxPyBeginAllowThreads();
1068 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1069
1070 wxPyEndAllowThreads(__tstate);
1071 if (PyErr_Occurred()) SWIG_fail;
1072 }
1073 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1074 return resultobj;
1075 fail:
1076 return NULL;
1077 }
1078
1079
1080 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1081 PyObject *resultobj;
1082 wxString *arg1 = 0 ;
1083 wxColour *result;
1084 bool temp1 = False ;
1085 PyObject * obj0 = 0 ;
1086 char *kwnames[] = {
1087 (char *) "colorName", NULL
1088 };
1089
1090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1091 {
1092 arg1 = wxString_in_helper(obj0);
1093 if (arg1 == NULL) SWIG_fail;
1094 temp1 = True;
1095 }
1096 {
1097 if (!wxPyCheckForApp()) SWIG_fail;
1098 PyThreadState* __tstate = wxPyBeginAllowThreads();
1099 result = (wxColour *)new wxColour((wxString const &)*arg1);
1100
1101 wxPyEndAllowThreads(__tstate);
1102 if (PyErr_Occurred()) SWIG_fail;
1103 }
1104 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1105 {
1106 if (temp1)
1107 delete arg1;
1108 }
1109 return resultobj;
1110 fail:
1111 {
1112 if (temp1)
1113 delete arg1;
1114 }
1115 return NULL;
1116 }
1117
1118
1119 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1120 PyObject *resultobj;
1121 unsigned long arg1 ;
1122 wxColour *result;
1123 PyObject * obj0 = 0 ;
1124 char *kwnames[] = {
1125 (char *) "colRGB", NULL
1126 };
1127
1128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1129 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1130 if (PyErr_Occurred()) SWIG_fail;
1131 {
1132 PyThreadState* __tstate = wxPyBeginAllowThreads();
1133 result = (wxColour *)new wxColour(arg1);
1134
1135 wxPyEndAllowThreads(__tstate);
1136 if (PyErr_Occurred()) SWIG_fail;
1137 }
1138 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1139 return resultobj;
1140 fail:
1141 return NULL;
1142 }
1143
1144
1145 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1146 PyObject *resultobj;
1147 wxColour *arg1 = (wxColour *) 0 ;
1148 PyObject * obj0 = 0 ;
1149 char *kwnames[] = {
1150 (char *) "self", NULL
1151 };
1152
1153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1156 {
1157 PyThreadState* __tstate = wxPyBeginAllowThreads();
1158 delete arg1;
1159
1160 wxPyEndAllowThreads(__tstate);
1161 if (PyErr_Occurred()) SWIG_fail;
1162 }
1163 Py_INCREF(Py_None); resultobj = Py_None;
1164 return resultobj;
1165 fail:
1166 return NULL;
1167 }
1168
1169
1170 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1171 PyObject *resultobj;
1172 wxColour *arg1 = (wxColour *) 0 ;
1173 byte result;
1174 PyObject * obj0 = 0 ;
1175 char *kwnames[] = {
1176 (char *) "self", NULL
1177 };
1178
1179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1182 {
1183 PyThreadState* __tstate = wxPyBeginAllowThreads();
1184 result = (byte)(arg1)->Red();
1185
1186 wxPyEndAllowThreads(__tstate);
1187 if (PyErr_Occurred()) SWIG_fail;
1188 }
1189 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1190 return resultobj;
1191 fail:
1192 return NULL;
1193 }
1194
1195
1196 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1197 PyObject *resultobj;
1198 wxColour *arg1 = (wxColour *) 0 ;
1199 byte result;
1200 PyObject * obj0 = 0 ;
1201 char *kwnames[] = {
1202 (char *) "self", NULL
1203 };
1204
1205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1208 {
1209 PyThreadState* __tstate = wxPyBeginAllowThreads();
1210 result = (byte)(arg1)->Green();
1211
1212 wxPyEndAllowThreads(__tstate);
1213 if (PyErr_Occurred()) SWIG_fail;
1214 }
1215 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1216 return resultobj;
1217 fail:
1218 return NULL;
1219 }
1220
1221
1222 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1223 PyObject *resultobj;
1224 wxColour *arg1 = (wxColour *) 0 ;
1225 byte result;
1226 PyObject * obj0 = 0 ;
1227 char *kwnames[] = {
1228 (char *) "self", NULL
1229 };
1230
1231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1234 {
1235 PyThreadState* __tstate = wxPyBeginAllowThreads();
1236 result = (byte)(arg1)->Blue();
1237
1238 wxPyEndAllowThreads(__tstate);
1239 if (PyErr_Occurred()) SWIG_fail;
1240 }
1241 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1242 return resultobj;
1243 fail:
1244 return NULL;
1245 }
1246
1247
1248 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1249 PyObject *resultobj;
1250 wxColour *arg1 = (wxColour *) 0 ;
1251 bool result;
1252 PyObject * obj0 = 0 ;
1253 char *kwnames[] = {
1254 (char *) "self", NULL
1255 };
1256
1257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1260 {
1261 PyThreadState* __tstate = wxPyBeginAllowThreads();
1262 result = (bool)(arg1)->Ok();
1263
1264 wxPyEndAllowThreads(__tstate);
1265 if (PyErr_Occurred()) SWIG_fail;
1266 }
1267 {
1268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1269 }
1270 return resultobj;
1271 fail:
1272 return NULL;
1273 }
1274
1275
1276 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1277 PyObject *resultobj;
1278 wxColour *arg1 = (wxColour *) 0 ;
1279 byte arg2 ;
1280 byte arg3 ;
1281 byte arg4 ;
1282 PyObject * obj0 = 0 ;
1283 PyObject * obj1 = 0 ;
1284 PyObject * obj2 = 0 ;
1285 PyObject * obj3 = 0 ;
1286 char *kwnames[] = {
1287 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1288 };
1289
1290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1293 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1294 if (PyErr_Occurred()) SWIG_fail;
1295 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1296 if (PyErr_Occurred()) SWIG_fail;
1297 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 {
1300 PyThreadState* __tstate = wxPyBeginAllowThreads();
1301 (arg1)->Set(arg2,arg3,arg4);
1302
1303 wxPyEndAllowThreads(__tstate);
1304 if (PyErr_Occurred()) SWIG_fail;
1305 }
1306 Py_INCREF(Py_None); resultobj = Py_None;
1307 return resultobj;
1308 fail:
1309 return NULL;
1310 }
1311
1312
1313 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1314 PyObject *resultobj;
1315 wxColour *arg1 = (wxColour *) 0 ;
1316 unsigned long arg2 ;
1317 PyObject * obj0 = 0 ;
1318 PyObject * obj1 = 0 ;
1319 char *kwnames[] = {
1320 (char *) "self",(char *) "colRGB", NULL
1321 };
1322
1323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1326 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1327 if (PyErr_Occurred()) SWIG_fail;
1328 {
1329 PyThreadState* __tstate = wxPyBeginAllowThreads();
1330 (arg1)->Set(arg2);
1331
1332 wxPyEndAllowThreads(__tstate);
1333 if (PyErr_Occurred()) SWIG_fail;
1334 }
1335 Py_INCREF(Py_None); resultobj = Py_None;
1336 return resultobj;
1337 fail:
1338 return NULL;
1339 }
1340
1341
1342 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1343 PyObject *resultobj;
1344 wxColour *arg1 = (wxColour *) 0 ;
1345 wxString *arg2 = 0 ;
1346 bool temp2 = False ;
1347 PyObject * obj0 = 0 ;
1348 PyObject * obj1 = 0 ;
1349 char *kwnames[] = {
1350 (char *) "self",(char *) "colourName", NULL
1351 };
1352
1353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1356 {
1357 arg2 = wxString_in_helper(obj1);
1358 if (arg2 == NULL) SWIG_fail;
1359 temp2 = True;
1360 }
1361 {
1362 PyThreadState* __tstate = wxPyBeginAllowThreads();
1363 (arg1)->InitFromName((wxString const &)*arg2);
1364
1365 wxPyEndAllowThreads(__tstate);
1366 if (PyErr_Occurred()) SWIG_fail;
1367 }
1368 Py_INCREF(Py_None); resultobj = Py_None;
1369 {
1370 if (temp2)
1371 delete arg2;
1372 }
1373 return resultobj;
1374 fail:
1375 {
1376 if (temp2)
1377 delete arg2;
1378 }
1379 return NULL;
1380 }
1381
1382
1383 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1384 PyObject *resultobj;
1385 wxColour *arg1 = (wxColour *) 0 ;
1386 long result;
1387 PyObject * obj0 = 0 ;
1388 char *kwnames[] = {
1389 (char *) "self", NULL
1390 };
1391
1392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1395 {
1396 PyThreadState* __tstate = wxPyBeginAllowThreads();
1397 result = (long)((wxColour const *)arg1)->GetPixel();
1398
1399 wxPyEndAllowThreads(__tstate);
1400 if (PyErr_Occurred()) SWIG_fail;
1401 }
1402 resultobj = SWIG_FromLong((long)result);
1403 return resultobj;
1404 fail:
1405 return NULL;
1406 }
1407
1408
1409 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1410 PyObject *resultobj;
1411 wxColour *arg1 = (wxColour *) 0 ;
1412 wxColour *arg2 = 0 ;
1413 bool result;
1414 wxColour temp2 ;
1415 PyObject * obj0 = 0 ;
1416 PyObject * obj1 = 0 ;
1417 char *kwnames[] = {
1418 (char *) "self",(char *) "colour", NULL
1419 };
1420
1421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1424 {
1425 arg2 = &temp2;
1426 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1427 }
1428 {
1429 PyThreadState* __tstate = wxPyBeginAllowThreads();
1430 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1431
1432 wxPyEndAllowThreads(__tstate);
1433 if (PyErr_Occurred()) SWIG_fail;
1434 }
1435 {
1436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1437 }
1438 return resultobj;
1439 fail:
1440 return NULL;
1441 }
1442
1443
1444 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1445 PyObject *resultobj;
1446 wxColour *arg1 = (wxColour *) 0 ;
1447 wxColour *arg2 = 0 ;
1448 bool result;
1449 wxColour temp2 ;
1450 PyObject * obj0 = 0 ;
1451 PyObject * obj1 = 0 ;
1452 char *kwnames[] = {
1453 (char *) "self",(char *) "colour", NULL
1454 };
1455
1456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1459 {
1460 arg2 = &temp2;
1461 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1462 }
1463 {
1464 PyThreadState* __tstate = wxPyBeginAllowThreads();
1465 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1466
1467 wxPyEndAllowThreads(__tstate);
1468 if (PyErr_Occurred()) SWIG_fail;
1469 }
1470 {
1471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1472 }
1473 return resultobj;
1474 fail:
1475 return NULL;
1476 }
1477
1478
1479 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1480 PyObject *resultobj;
1481 wxColour *arg1 = (wxColour *) 0 ;
1482 PyObject *result;
1483 PyObject * obj0 = 0 ;
1484 char *kwnames[] = {
1485 (char *) "self", NULL
1486 };
1487
1488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1491 {
1492 PyThreadState* __tstate = wxPyBeginAllowThreads();
1493 result = (PyObject *)wxColour_Get(arg1);
1494
1495 wxPyEndAllowThreads(__tstate);
1496 if (PyErr_Occurred()) SWIG_fail;
1497 }
1498 resultobj = result;
1499 return resultobj;
1500 fail:
1501 return NULL;
1502 }
1503
1504
1505 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1506 PyObject *resultobj;
1507 wxColour *arg1 = (wxColour *) 0 ;
1508 unsigned long result;
1509 PyObject * obj0 = 0 ;
1510 char *kwnames[] = {
1511 (char *) "self", NULL
1512 };
1513
1514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1517 {
1518 PyThreadState* __tstate = wxPyBeginAllowThreads();
1519 result = (unsigned long)wxColour_GetRGB(arg1);
1520
1521 wxPyEndAllowThreads(__tstate);
1522 if (PyErr_Occurred()) SWIG_fail;
1523 }
1524 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1525 return resultobj;
1526 fail:
1527 return NULL;
1528 }
1529
1530
1531 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1532 PyObject *obj;
1533 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1534 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1535 Py_INCREF(obj);
1536 return Py_BuildValue((char *)"");
1537 }
1538 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1539 PyObject *resultobj;
1540 int arg1 ;
1541 unsigned char *arg2 = (unsigned char *) 0 ;
1542 unsigned char *arg3 = (unsigned char *) 0 ;
1543 unsigned char *arg4 = (unsigned char *) 0 ;
1544 wxPalette *result;
1545 PyObject * obj0 = 0 ;
1546 PyObject * obj1 = 0 ;
1547 PyObject * obj2 = 0 ;
1548 PyObject * obj3 = 0 ;
1549 char *kwnames[] = {
1550 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1551 };
1552
1553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1554 arg1 = (int) SWIG_AsInt(obj0);
1555 if (PyErr_Occurred()) SWIG_fail;
1556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1558 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1560 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1562 {
1563 if (!wxPyCheckForApp()) SWIG_fail;
1564 PyThreadState* __tstate = wxPyBeginAllowThreads();
1565 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1566
1567 wxPyEndAllowThreads(__tstate);
1568 if (PyErr_Occurred()) SWIG_fail;
1569 }
1570 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1571 return resultobj;
1572 fail:
1573 return NULL;
1574 }
1575
1576
1577 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1578 PyObject *resultobj;
1579 wxPalette *arg1 = (wxPalette *) 0 ;
1580 PyObject * obj0 = 0 ;
1581 char *kwnames[] = {
1582 (char *) "self", NULL
1583 };
1584
1585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1588 {
1589 PyThreadState* __tstate = wxPyBeginAllowThreads();
1590 delete arg1;
1591
1592 wxPyEndAllowThreads(__tstate);
1593 if (PyErr_Occurred()) SWIG_fail;
1594 }
1595 Py_INCREF(Py_None); resultobj = Py_None;
1596 return resultobj;
1597 fail:
1598 return NULL;
1599 }
1600
1601
1602 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1603 PyObject *resultobj;
1604 wxPalette *arg1 = (wxPalette *) 0 ;
1605 byte arg2 ;
1606 byte arg3 ;
1607 byte arg4 ;
1608 int result;
1609 PyObject * obj0 = 0 ;
1610 PyObject * obj1 = 0 ;
1611 PyObject * obj2 = 0 ;
1612 PyObject * obj3 = 0 ;
1613 char *kwnames[] = {
1614 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1615 };
1616
1617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1620 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1621 if (PyErr_Occurred()) SWIG_fail;
1622 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1623 if (PyErr_Occurred()) SWIG_fail;
1624 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1625 if (PyErr_Occurred()) SWIG_fail;
1626 {
1627 PyThreadState* __tstate = wxPyBeginAllowThreads();
1628 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1629
1630 wxPyEndAllowThreads(__tstate);
1631 if (PyErr_Occurred()) SWIG_fail;
1632 }
1633 resultobj = SWIG_FromInt((int)result);
1634 return resultobj;
1635 fail:
1636 return NULL;
1637 }
1638
1639
1640 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1641 PyObject *resultobj;
1642 wxPalette *arg1 = (wxPalette *) 0 ;
1643 int arg2 ;
1644 byte *arg3 = (byte *) 0 ;
1645 byte *arg4 = (byte *) 0 ;
1646 byte *arg5 = (byte *) 0 ;
1647 bool result;
1648 byte temp3 ;
1649 byte temp4 ;
1650 byte temp5 ;
1651 PyObject * obj0 = 0 ;
1652 PyObject * obj1 = 0 ;
1653 char *kwnames[] = {
1654 (char *) "self",(char *) "pixel", NULL
1655 };
1656
1657 arg3 = &temp3;
1658 arg4 = &temp4;
1659 arg5 = &temp5;
1660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1663 arg2 = (int) SWIG_AsInt(obj1);
1664 if (PyErr_Occurred()) SWIG_fail;
1665 {
1666 PyThreadState* __tstate = wxPyBeginAllowThreads();
1667 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1668
1669 wxPyEndAllowThreads(__tstate);
1670 if (PyErr_Occurred()) SWIG_fail;
1671 }
1672 {
1673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1674 }
1675 {
1676 PyObject *o = PyInt_FromLong((long) (*arg3));
1677 resultobj = t_output_helper(resultobj,o);
1678 }
1679 {
1680 PyObject *o = PyInt_FromLong((long) (*arg4));
1681 resultobj = t_output_helper(resultobj,o);
1682 }
1683 {
1684 PyObject *o = PyInt_FromLong((long) (*arg5));
1685 resultobj = t_output_helper(resultobj,o);
1686 }
1687 return resultobj;
1688 fail:
1689 return NULL;
1690 }
1691
1692
1693 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1694 PyObject *resultobj;
1695 wxPalette *arg1 = (wxPalette *) 0 ;
1696 bool result;
1697 PyObject * obj0 = 0 ;
1698 char *kwnames[] = {
1699 (char *) "self", NULL
1700 };
1701
1702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1705 {
1706 PyThreadState* __tstate = wxPyBeginAllowThreads();
1707 result = (bool)(arg1)->Ok();
1708
1709 wxPyEndAllowThreads(__tstate);
1710 if (PyErr_Occurred()) SWIG_fail;
1711 }
1712 {
1713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1714 }
1715 return resultobj;
1716 fail:
1717 return NULL;
1718 }
1719
1720
1721 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1722 PyObject *obj;
1723 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1724 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1725 Py_INCREF(obj);
1726 return Py_BuildValue((char *)"");
1727 }
1728 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1729 PyObject *resultobj;
1730 wxColour *arg1 = 0 ;
1731 int arg2 = (int) 1 ;
1732 int arg3 = (int) wxSOLID ;
1733 wxPen *result;
1734 wxColour temp1 ;
1735 PyObject * obj0 = 0 ;
1736 PyObject * obj1 = 0 ;
1737 PyObject * obj2 = 0 ;
1738 char *kwnames[] = {
1739 (char *) "colour",(char *) "width",(char *) "style", NULL
1740 };
1741
1742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1743 {
1744 arg1 = &temp1;
1745 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1746 }
1747 if (obj1) {
1748 arg2 = (int) SWIG_AsInt(obj1);
1749 if (PyErr_Occurred()) SWIG_fail;
1750 }
1751 if (obj2) {
1752 arg3 = (int) SWIG_AsInt(obj2);
1753 if (PyErr_Occurred()) SWIG_fail;
1754 }
1755 {
1756 if (!wxPyCheckForApp()) SWIG_fail;
1757 PyThreadState* __tstate = wxPyBeginAllowThreads();
1758 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1759
1760 wxPyEndAllowThreads(__tstate);
1761 if (PyErr_Occurred()) SWIG_fail;
1762 }
1763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1764 return resultobj;
1765 fail:
1766 return NULL;
1767 }
1768
1769
1770 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1771 PyObject *resultobj;
1772 wxPen *arg1 = (wxPen *) 0 ;
1773 PyObject * obj0 = 0 ;
1774 char *kwnames[] = {
1775 (char *) "self", NULL
1776 };
1777
1778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1781 {
1782 PyThreadState* __tstate = wxPyBeginAllowThreads();
1783 delete arg1;
1784
1785 wxPyEndAllowThreads(__tstate);
1786 if (PyErr_Occurred()) SWIG_fail;
1787 }
1788 Py_INCREF(Py_None); resultobj = Py_None;
1789 return resultobj;
1790 fail:
1791 return NULL;
1792 }
1793
1794
1795 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1796 PyObject *resultobj;
1797 wxPen *arg1 = (wxPen *) 0 ;
1798 int result;
1799 PyObject * obj0 = 0 ;
1800 char *kwnames[] = {
1801 (char *) "self", NULL
1802 };
1803
1804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1807 {
1808 PyThreadState* __tstate = wxPyBeginAllowThreads();
1809 result = (int)(arg1)->GetCap();
1810
1811 wxPyEndAllowThreads(__tstate);
1812 if (PyErr_Occurred()) SWIG_fail;
1813 }
1814 resultobj = SWIG_FromInt((int)result);
1815 return resultobj;
1816 fail:
1817 return NULL;
1818 }
1819
1820
1821 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1822 PyObject *resultobj;
1823 wxPen *arg1 = (wxPen *) 0 ;
1824 wxColour result;
1825 PyObject * obj0 = 0 ;
1826 char *kwnames[] = {
1827 (char *) "self", NULL
1828 };
1829
1830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1833 {
1834 PyThreadState* __tstate = wxPyBeginAllowThreads();
1835 result = (arg1)->GetColour();
1836
1837 wxPyEndAllowThreads(__tstate);
1838 if (PyErr_Occurred()) SWIG_fail;
1839 }
1840 {
1841 wxColour * resultptr;
1842 resultptr = new wxColour((wxColour &) result);
1843 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1844 }
1845 return resultobj;
1846 fail:
1847 return NULL;
1848 }
1849
1850
1851 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1852 PyObject *resultobj;
1853 wxPen *arg1 = (wxPen *) 0 ;
1854 int result;
1855 PyObject * obj0 = 0 ;
1856 char *kwnames[] = {
1857 (char *) "self", NULL
1858 };
1859
1860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1863 {
1864 PyThreadState* __tstate = wxPyBeginAllowThreads();
1865 result = (int)(arg1)->GetJoin();
1866
1867 wxPyEndAllowThreads(__tstate);
1868 if (PyErr_Occurred()) SWIG_fail;
1869 }
1870 resultobj = SWIG_FromInt((int)result);
1871 return resultobj;
1872 fail:
1873 return NULL;
1874 }
1875
1876
1877 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1878 PyObject *resultobj;
1879 wxPen *arg1 = (wxPen *) 0 ;
1880 int result;
1881 PyObject * obj0 = 0 ;
1882 char *kwnames[] = {
1883 (char *) "self", NULL
1884 };
1885
1886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1889 {
1890 PyThreadState* __tstate = wxPyBeginAllowThreads();
1891 result = (int)(arg1)->GetStyle();
1892
1893 wxPyEndAllowThreads(__tstate);
1894 if (PyErr_Occurred()) SWIG_fail;
1895 }
1896 resultobj = SWIG_FromInt((int)result);
1897 return resultobj;
1898 fail:
1899 return NULL;
1900 }
1901
1902
1903 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1904 PyObject *resultobj;
1905 wxPen *arg1 = (wxPen *) 0 ;
1906 int result;
1907 PyObject * obj0 = 0 ;
1908 char *kwnames[] = {
1909 (char *) "self", NULL
1910 };
1911
1912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1915 {
1916 PyThreadState* __tstate = wxPyBeginAllowThreads();
1917 result = (int)(arg1)->GetWidth();
1918
1919 wxPyEndAllowThreads(__tstate);
1920 if (PyErr_Occurred()) SWIG_fail;
1921 }
1922 resultobj = SWIG_FromInt((int)result);
1923 return resultobj;
1924 fail:
1925 return NULL;
1926 }
1927
1928
1929 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject *resultobj;
1931 wxPen *arg1 = (wxPen *) 0 ;
1932 bool result;
1933 PyObject * obj0 = 0 ;
1934 char *kwnames[] = {
1935 (char *) "self", NULL
1936 };
1937
1938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1941 {
1942 PyThreadState* __tstate = wxPyBeginAllowThreads();
1943 result = (bool)(arg1)->Ok();
1944
1945 wxPyEndAllowThreads(__tstate);
1946 if (PyErr_Occurred()) SWIG_fail;
1947 }
1948 {
1949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1950 }
1951 return resultobj;
1952 fail:
1953 return NULL;
1954 }
1955
1956
1957 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject *resultobj;
1959 wxPen *arg1 = (wxPen *) 0 ;
1960 int arg2 ;
1961 PyObject * obj0 = 0 ;
1962 PyObject * obj1 = 0 ;
1963 char *kwnames[] = {
1964 (char *) "self",(char *) "cap_style", NULL
1965 };
1966
1967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1970 arg2 = (int) SWIG_AsInt(obj1);
1971 if (PyErr_Occurred()) SWIG_fail;
1972 {
1973 PyThreadState* __tstate = wxPyBeginAllowThreads();
1974 (arg1)->SetCap(arg2);
1975
1976 wxPyEndAllowThreads(__tstate);
1977 if (PyErr_Occurred()) SWIG_fail;
1978 }
1979 Py_INCREF(Py_None); resultobj = Py_None;
1980 return resultobj;
1981 fail:
1982 return NULL;
1983 }
1984
1985
1986 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1987 PyObject *resultobj;
1988 wxPen *arg1 = (wxPen *) 0 ;
1989 wxColour *arg2 = 0 ;
1990 wxColour temp2 ;
1991 PyObject * obj0 = 0 ;
1992 PyObject * obj1 = 0 ;
1993 char *kwnames[] = {
1994 (char *) "self",(char *) "colour", NULL
1995 };
1996
1997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2000 {
2001 arg2 = &temp2;
2002 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2003 }
2004 {
2005 PyThreadState* __tstate = wxPyBeginAllowThreads();
2006 (arg1)->SetColour(*arg2);
2007
2008 wxPyEndAllowThreads(__tstate);
2009 if (PyErr_Occurred()) SWIG_fail;
2010 }
2011 Py_INCREF(Py_None); resultobj = Py_None;
2012 return resultobj;
2013 fail:
2014 return NULL;
2015 }
2016
2017
2018 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2019 PyObject *resultobj;
2020 wxPen *arg1 = (wxPen *) 0 ;
2021 int arg2 ;
2022 PyObject * obj0 = 0 ;
2023 PyObject * obj1 = 0 ;
2024 char *kwnames[] = {
2025 (char *) "self",(char *) "join_style", NULL
2026 };
2027
2028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2031 arg2 = (int) SWIG_AsInt(obj1);
2032 if (PyErr_Occurred()) SWIG_fail;
2033 {
2034 PyThreadState* __tstate = wxPyBeginAllowThreads();
2035 (arg1)->SetJoin(arg2);
2036
2037 wxPyEndAllowThreads(__tstate);
2038 if (PyErr_Occurred()) SWIG_fail;
2039 }
2040 Py_INCREF(Py_None); resultobj = Py_None;
2041 return resultobj;
2042 fail:
2043 return NULL;
2044 }
2045
2046
2047 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2048 PyObject *resultobj;
2049 wxPen *arg1 = (wxPen *) 0 ;
2050 int arg2 ;
2051 PyObject * obj0 = 0 ;
2052 PyObject * obj1 = 0 ;
2053 char *kwnames[] = {
2054 (char *) "self",(char *) "style", NULL
2055 };
2056
2057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2060 arg2 = (int) SWIG_AsInt(obj1);
2061 if (PyErr_Occurred()) SWIG_fail;
2062 {
2063 PyThreadState* __tstate = wxPyBeginAllowThreads();
2064 (arg1)->SetStyle(arg2);
2065
2066 wxPyEndAllowThreads(__tstate);
2067 if (PyErr_Occurred()) SWIG_fail;
2068 }
2069 Py_INCREF(Py_None); resultobj = Py_None;
2070 return resultobj;
2071 fail:
2072 return NULL;
2073 }
2074
2075
2076 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2077 PyObject *resultobj;
2078 wxPen *arg1 = (wxPen *) 0 ;
2079 int arg2 ;
2080 PyObject * obj0 = 0 ;
2081 PyObject * obj1 = 0 ;
2082 char *kwnames[] = {
2083 (char *) "self",(char *) "width", NULL
2084 };
2085
2086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2089 arg2 = (int) SWIG_AsInt(obj1);
2090 if (PyErr_Occurred()) SWIG_fail;
2091 {
2092 PyThreadState* __tstate = wxPyBeginAllowThreads();
2093 (arg1)->SetWidth(arg2);
2094
2095 wxPyEndAllowThreads(__tstate);
2096 if (PyErr_Occurred()) SWIG_fail;
2097 }
2098 Py_INCREF(Py_None); resultobj = Py_None;
2099 return resultobj;
2100 fail:
2101 return NULL;
2102 }
2103
2104
2105 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2106 PyObject *resultobj;
2107 wxPen *arg1 = (wxPen *) 0 ;
2108 int arg2 ;
2109 wxDash *arg3 = (wxDash *) 0 ;
2110 PyObject * obj0 = 0 ;
2111 PyObject * obj1 = 0 ;
2112 char *kwnames[] = {
2113 (char *) "self",(char *) "dashes", NULL
2114 };
2115
2116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2119 {
2120 arg2 = PyList_Size(obj1);
2121 arg3 = (wxDash*)byte_LIST_helper(obj1);
2122 if (arg3 == NULL) SWIG_fail;
2123 }
2124 {
2125 PyThreadState* __tstate = wxPyBeginAllowThreads();
2126 (arg1)->SetDashes(arg2,arg3);
2127
2128 wxPyEndAllowThreads(__tstate);
2129 if (PyErr_Occurred()) SWIG_fail;
2130 }
2131 Py_INCREF(Py_None); resultobj = Py_None;
2132 {
2133 if (arg3) delete [] arg3;
2134 }
2135 return resultobj;
2136 fail:
2137 {
2138 if (arg3) delete [] arg3;
2139 }
2140 return NULL;
2141 }
2142
2143
2144 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2145 PyObject *resultobj;
2146 wxPen *arg1 = (wxPen *) 0 ;
2147 PyObject *result;
2148 PyObject * obj0 = 0 ;
2149 char *kwnames[] = {
2150 (char *) "self", NULL
2151 };
2152
2153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2156 {
2157 PyThreadState* __tstate = wxPyBeginAllowThreads();
2158 result = (PyObject *)wxPen_GetDashes(arg1);
2159
2160 wxPyEndAllowThreads(__tstate);
2161 if (PyErr_Occurred()) SWIG_fail;
2162 }
2163 resultobj = result;
2164 return resultobj;
2165 fail:
2166 return NULL;
2167 }
2168
2169
2170 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2171 PyObject *resultobj;
2172 wxPen *arg1 = (wxPen *) 0 ;
2173 PyObject *arg2 = (PyObject *) 0 ;
2174 PyObject *arg3 = (PyObject *) 0 ;
2175 PyObject * obj0 = 0 ;
2176 PyObject * obj1 = 0 ;
2177 PyObject * obj2 = 0 ;
2178 char *kwnames[] = {
2179 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2180 };
2181
2182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2185 arg2 = obj1;
2186 arg3 = obj2;
2187 {
2188 PyThreadState* __tstate = wxPyBeginAllowThreads();
2189 wxPen__SetDashes(arg1,arg2,arg3);
2190
2191 wxPyEndAllowThreads(__tstate);
2192 if (PyErr_Occurred()) SWIG_fail;
2193 }
2194 Py_INCREF(Py_None); resultobj = Py_None;
2195 return resultobj;
2196 fail:
2197 return NULL;
2198 }
2199
2200
2201 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2202 PyObject *resultobj;
2203 wxPen *arg1 = (wxPen *) 0 ;
2204 wxPen *arg2 = (wxPen *) 0 ;
2205 bool result;
2206 PyObject * obj0 = 0 ;
2207 PyObject * obj1 = 0 ;
2208 char *kwnames[] = {
2209 (char *) "self",(char *) "other", NULL
2210 };
2211
2212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2215 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2217 {
2218 PyThreadState* __tstate = wxPyBeginAllowThreads();
2219 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2220
2221 wxPyEndAllowThreads(__tstate);
2222 if (PyErr_Occurred()) SWIG_fail;
2223 }
2224 {
2225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2226 }
2227 return resultobj;
2228 fail:
2229 return NULL;
2230 }
2231
2232
2233 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2234 PyObject *resultobj;
2235 wxPen *arg1 = (wxPen *) 0 ;
2236 wxPen *arg2 = (wxPen *) 0 ;
2237 bool result;
2238 PyObject * obj0 = 0 ;
2239 PyObject * obj1 = 0 ;
2240 char *kwnames[] = {
2241 (char *) "self",(char *) "other", NULL
2242 };
2243
2244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2249 {
2250 PyThreadState* __tstate = wxPyBeginAllowThreads();
2251 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2252
2253 wxPyEndAllowThreads(__tstate);
2254 if (PyErr_Occurred()) SWIG_fail;
2255 }
2256 {
2257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2258 }
2259 return resultobj;
2260 fail:
2261 return NULL;
2262 }
2263
2264
2265 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2266 PyObject *obj;
2267 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2268 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2269 Py_INCREF(obj);
2270 return Py_BuildValue((char *)"");
2271 }
2272 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2273 PyObject *resultobj;
2274 wxColour *arg1 = 0 ;
2275 int arg2 = (int) wxSOLID ;
2276 wxBrush *result;
2277 wxColour temp1 ;
2278 PyObject * obj0 = 0 ;
2279 PyObject * obj1 = 0 ;
2280 char *kwnames[] = {
2281 (char *) "colour",(char *) "style", NULL
2282 };
2283
2284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2285 {
2286 arg1 = &temp1;
2287 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2288 }
2289 if (obj1) {
2290 arg2 = (int) SWIG_AsInt(obj1);
2291 if (PyErr_Occurred()) SWIG_fail;
2292 }
2293 {
2294 if (!wxPyCheckForApp()) SWIG_fail;
2295 PyThreadState* __tstate = wxPyBeginAllowThreads();
2296 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2297
2298 wxPyEndAllowThreads(__tstate);
2299 if (PyErr_Occurred()) SWIG_fail;
2300 }
2301 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2302 return resultobj;
2303 fail:
2304 return NULL;
2305 }
2306
2307
2308 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2309 PyObject *resultobj;
2310 wxBrush *arg1 = (wxBrush *) 0 ;
2311 PyObject * obj0 = 0 ;
2312 char *kwnames[] = {
2313 (char *) "self", NULL
2314 };
2315
2316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2319 {
2320 PyThreadState* __tstate = wxPyBeginAllowThreads();
2321 delete arg1;
2322
2323 wxPyEndAllowThreads(__tstate);
2324 if (PyErr_Occurred()) SWIG_fail;
2325 }
2326 Py_INCREF(Py_None); resultobj = Py_None;
2327 return resultobj;
2328 fail:
2329 return NULL;
2330 }
2331
2332
2333 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2334 PyObject *resultobj;
2335 wxBrush *arg1 = (wxBrush *) 0 ;
2336 wxColour *arg2 = 0 ;
2337 wxColour temp2 ;
2338 PyObject * obj0 = 0 ;
2339 PyObject * obj1 = 0 ;
2340 char *kwnames[] = {
2341 (char *) "self",(char *) "col", NULL
2342 };
2343
2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2347 {
2348 arg2 = &temp2;
2349 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2350 }
2351 {
2352 PyThreadState* __tstate = wxPyBeginAllowThreads();
2353 (arg1)->SetColour((wxColour const &)*arg2);
2354
2355 wxPyEndAllowThreads(__tstate);
2356 if (PyErr_Occurred()) SWIG_fail;
2357 }
2358 Py_INCREF(Py_None); resultobj = Py_None;
2359 return resultobj;
2360 fail:
2361 return NULL;
2362 }
2363
2364
2365 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2366 PyObject *resultobj;
2367 wxBrush *arg1 = (wxBrush *) 0 ;
2368 int arg2 ;
2369 PyObject * obj0 = 0 ;
2370 PyObject * obj1 = 0 ;
2371 char *kwnames[] = {
2372 (char *) "self",(char *) "style", NULL
2373 };
2374
2375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2378 arg2 = (int) SWIG_AsInt(obj1);
2379 if (PyErr_Occurred()) SWIG_fail;
2380 {
2381 PyThreadState* __tstate = wxPyBeginAllowThreads();
2382 (arg1)->SetStyle(arg2);
2383
2384 wxPyEndAllowThreads(__tstate);
2385 if (PyErr_Occurred()) SWIG_fail;
2386 }
2387 Py_INCREF(Py_None); resultobj = Py_None;
2388 return resultobj;
2389 fail:
2390 return NULL;
2391 }
2392
2393
2394 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2395 PyObject *resultobj;
2396 wxBrush *arg1 = (wxBrush *) 0 ;
2397 wxBitmap *arg2 = 0 ;
2398 PyObject * obj0 = 0 ;
2399 PyObject * obj1 = 0 ;
2400 char *kwnames[] = {
2401 (char *) "self",(char *) "stipple", NULL
2402 };
2403
2404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2408 SWIG_POINTER_EXCEPTION | 0)) == -1)
2409 SWIG_fail;
2410 if (arg2 == NULL) {
2411 PyErr_SetString(PyExc_TypeError,"null reference");
2412 SWIG_fail;
2413 }
2414 {
2415 PyThreadState* __tstate = wxPyBeginAllowThreads();
2416 (arg1)->SetStipple((wxBitmap const &)*arg2);
2417
2418 wxPyEndAllowThreads(__tstate);
2419 if (PyErr_Occurred()) SWIG_fail;
2420 }
2421 Py_INCREF(Py_None); resultobj = Py_None;
2422 return resultobj;
2423 fail:
2424 return NULL;
2425 }
2426
2427
2428 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2429 PyObject *resultobj;
2430 wxBrush *arg1 = (wxBrush *) 0 ;
2431 wxColour result;
2432 PyObject * obj0 = 0 ;
2433 char *kwnames[] = {
2434 (char *) "self", NULL
2435 };
2436
2437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2440 {
2441 PyThreadState* __tstate = wxPyBeginAllowThreads();
2442 result = ((wxBrush const *)arg1)->GetColour();
2443
2444 wxPyEndAllowThreads(__tstate);
2445 if (PyErr_Occurred()) SWIG_fail;
2446 }
2447 {
2448 wxColour * resultptr;
2449 resultptr = new wxColour((wxColour &) result);
2450 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2451 }
2452 return resultobj;
2453 fail:
2454 return NULL;
2455 }
2456
2457
2458 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2459 PyObject *resultobj;
2460 wxBrush *arg1 = (wxBrush *) 0 ;
2461 int result;
2462 PyObject * obj0 = 0 ;
2463 char *kwnames[] = {
2464 (char *) "self", NULL
2465 };
2466
2467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2470 {
2471 PyThreadState* __tstate = wxPyBeginAllowThreads();
2472 result = (int)((wxBrush const *)arg1)->GetStyle();
2473
2474 wxPyEndAllowThreads(__tstate);
2475 if (PyErr_Occurred()) SWIG_fail;
2476 }
2477 resultobj = SWIG_FromInt((int)result);
2478 return resultobj;
2479 fail:
2480 return NULL;
2481 }
2482
2483
2484 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2485 PyObject *resultobj;
2486 wxBrush *arg1 = (wxBrush *) 0 ;
2487 wxBitmap *result;
2488 PyObject * obj0 = 0 ;
2489 char *kwnames[] = {
2490 (char *) "self", NULL
2491 };
2492
2493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2496 {
2497 PyThreadState* __tstate = wxPyBeginAllowThreads();
2498 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2499
2500 wxPyEndAllowThreads(__tstate);
2501 if (PyErr_Occurred()) SWIG_fail;
2502 }
2503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2504 return resultobj;
2505 fail:
2506 return NULL;
2507 }
2508
2509
2510 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2511 PyObject *resultobj;
2512 wxBrush *arg1 = (wxBrush *) 0 ;
2513 bool result;
2514 PyObject * obj0 = 0 ;
2515 char *kwnames[] = {
2516 (char *) "self", NULL
2517 };
2518
2519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2522 {
2523 PyThreadState* __tstate = wxPyBeginAllowThreads();
2524 result = (bool)(arg1)->Ok();
2525
2526 wxPyEndAllowThreads(__tstate);
2527 if (PyErr_Occurred()) SWIG_fail;
2528 }
2529 {
2530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2531 }
2532 return resultobj;
2533 fail:
2534 return NULL;
2535 }
2536
2537
2538 static PyObject *_wrap_Brush_MacGetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2539 PyObject *resultobj;
2540 wxBrush *arg1 = (wxBrush *) 0 ;
2541 short result;
2542 PyObject * obj0 = 0 ;
2543 char *kwnames[] = {
2544 (char *) "self", NULL
2545 };
2546
2547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2550 {
2551 PyThreadState* __tstate = wxPyBeginAllowThreads();
2552 result = (short)(arg1)->MacGetTheme();
2553
2554 wxPyEndAllowThreads(__tstate);
2555 if (PyErr_Occurred()) SWIG_fail;
2556 }
2557 resultobj = SWIG_FromShort((short)result);
2558 return resultobj;
2559 fail:
2560 return NULL;
2561 }
2562
2563
2564 static PyObject *_wrap_Brush_MacSetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2565 PyObject *resultobj;
2566 wxBrush *arg1 = (wxBrush *) 0 ;
2567 short arg2 ;
2568 PyObject * obj0 = 0 ;
2569 PyObject * obj1 = 0 ;
2570 char *kwnames[] = {
2571 (char *) "self",(char *) "macThemeBrush", NULL
2572 };
2573
2574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2577 arg2 = (short) SWIG_AsShort(obj1);
2578 if (PyErr_Occurred()) SWIG_fail;
2579 {
2580 PyThreadState* __tstate = wxPyBeginAllowThreads();
2581 (arg1)->MacSetTheme(arg2);
2582
2583 wxPyEndAllowThreads(__tstate);
2584 if (PyErr_Occurred()) SWIG_fail;
2585 }
2586 Py_INCREF(Py_None); resultobj = Py_None;
2587 return resultobj;
2588 fail:
2589 return NULL;
2590 }
2591
2592
2593 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2594 PyObject *obj;
2595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2596 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2597 Py_INCREF(obj);
2598 return Py_BuildValue((char *)"");
2599 }
2600 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2601 PyObject *resultobj;
2602 wxString *arg1 = 0 ;
2603 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2604 wxBitmap *result;
2605 bool temp1 = False ;
2606 PyObject * obj0 = 0 ;
2607 PyObject * obj1 = 0 ;
2608 char *kwnames[] = {
2609 (char *) "name",(char *) "type", NULL
2610 };
2611
2612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2613 {
2614 arg1 = wxString_in_helper(obj0);
2615 if (arg1 == NULL) SWIG_fail;
2616 temp1 = True;
2617 }
2618 if (obj1) {
2619 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2620 if (PyErr_Occurred()) SWIG_fail;
2621 }
2622 {
2623 if (!wxPyCheckForApp()) SWIG_fail;
2624 PyThreadState* __tstate = wxPyBeginAllowThreads();
2625 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2626
2627 wxPyEndAllowThreads(__tstate);
2628 if (PyErr_Occurred()) SWIG_fail;
2629 }
2630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2631 {
2632 if (temp1)
2633 delete arg1;
2634 }
2635 return resultobj;
2636 fail:
2637 {
2638 if (temp1)
2639 delete arg1;
2640 }
2641 return NULL;
2642 }
2643
2644
2645 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2646 PyObject *resultobj;
2647 wxBitmap *arg1 = (wxBitmap *) 0 ;
2648 PyObject * obj0 = 0 ;
2649 char *kwnames[] = {
2650 (char *) "self", NULL
2651 };
2652
2653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2656 {
2657 PyThreadState* __tstate = wxPyBeginAllowThreads();
2658 delete arg1;
2659
2660 wxPyEndAllowThreads(__tstate);
2661 if (PyErr_Occurred()) SWIG_fail;
2662 }
2663 Py_INCREF(Py_None); resultobj = Py_None;
2664 return resultobj;
2665 fail:
2666 return NULL;
2667 }
2668
2669
2670 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2671 PyObject *resultobj;
2672 int arg1 ;
2673 int arg2 ;
2674 int arg3 = (int) -1 ;
2675 wxBitmap *result;
2676 PyObject * obj0 = 0 ;
2677 PyObject * obj1 = 0 ;
2678 PyObject * obj2 = 0 ;
2679 char *kwnames[] = {
2680 (char *) "width",(char *) "height",(char *) "depth", NULL
2681 };
2682
2683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2684 arg1 = (int) SWIG_AsInt(obj0);
2685 if (PyErr_Occurred()) SWIG_fail;
2686 arg2 = (int) SWIG_AsInt(obj1);
2687 if (PyErr_Occurred()) SWIG_fail;
2688 if (obj2) {
2689 arg3 = (int) SWIG_AsInt(obj2);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 }
2692 {
2693 if (!wxPyCheckForApp()) SWIG_fail;
2694 PyThreadState* __tstate = wxPyBeginAllowThreads();
2695 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2696
2697 wxPyEndAllowThreads(__tstate);
2698 if (PyErr_Occurred()) SWIG_fail;
2699 }
2700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2701 return resultobj;
2702 fail:
2703 return NULL;
2704 }
2705
2706
2707 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2708 PyObject *resultobj;
2709 wxIcon *arg1 = 0 ;
2710 wxBitmap *result;
2711 PyObject * obj0 = 0 ;
2712 char *kwnames[] = {
2713 (char *) "icon", NULL
2714 };
2715
2716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2718 SWIG_POINTER_EXCEPTION | 0)) == -1)
2719 SWIG_fail;
2720 if (arg1 == NULL) {
2721 PyErr_SetString(PyExc_TypeError,"null reference");
2722 SWIG_fail;
2723 }
2724 {
2725 if (!wxPyCheckForApp()) SWIG_fail;
2726 PyThreadState* __tstate = wxPyBeginAllowThreads();
2727 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2728
2729 wxPyEndAllowThreads(__tstate);
2730 if (PyErr_Occurred()) SWIG_fail;
2731 }
2732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2733 return resultobj;
2734 fail:
2735 return NULL;
2736 }
2737
2738
2739 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2740 PyObject *resultobj;
2741 wxImage *arg1 = 0 ;
2742 int arg2 = (int) -1 ;
2743 wxBitmap *result;
2744 PyObject * obj0 = 0 ;
2745 PyObject * obj1 = 0 ;
2746 char *kwnames[] = {
2747 (char *) "image",(char *) "depth", NULL
2748 };
2749
2750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2752 SWIG_POINTER_EXCEPTION | 0)) == -1)
2753 SWIG_fail;
2754 if (arg1 == NULL) {
2755 PyErr_SetString(PyExc_TypeError,"null reference");
2756 SWIG_fail;
2757 }
2758 if (obj1) {
2759 arg2 = (int) SWIG_AsInt(obj1);
2760 if (PyErr_Occurred()) SWIG_fail;
2761 }
2762 {
2763 if (!wxPyCheckForApp()) SWIG_fail;
2764 PyThreadState* __tstate = wxPyBeginAllowThreads();
2765 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2766
2767 wxPyEndAllowThreads(__tstate);
2768 if (PyErr_Occurred()) SWIG_fail;
2769 }
2770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2771 return resultobj;
2772 fail:
2773 return NULL;
2774 }
2775
2776
2777 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2778 PyObject *resultobj;
2779 PyObject *arg1 = (PyObject *) 0 ;
2780 wxBitmap *result;
2781 PyObject * obj0 = 0 ;
2782 char *kwnames[] = {
2783 (char *) "listOfStrings", NULL
2784 };
2785
2786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2787 arg1 = obj0;
2788 {
2789 if (!wxPyCheckForApp()) SWIG_fail;
2790 PyThreadState* __tstate = wxPyBeginAllowThreads();
2791 result = (wxBitmap *)new_wxBitmap(arg1);
2792
2793 wxPyEndAllowThreads(__tstate);
2794 if (PyErr_Occurred()) SWIG_fail;
2795 }
2796 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2797 return resultobj;
2798 fail:
2799 return NULL;
2800 }
2801
2802
2803 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2804 PyObject *resultobj;
2805 PyObject *arg1 = (PyObject *) 0 ;
2806 int arg2 ;
2807 int arg3 ;
2808 int arg4 = (int) 1 ;
2809 wxBitmap *result;
2810 PyObject * obj0 = 0 ;
2811 PyObject * obj1 = 0 ;
2812 PyObject * obj2 = 0 ;
2813 PyObject * obj3 = 0 ;
2814 char *kwnames[] = {
2815 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2816 };
2817
2818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2819 arg1 = obj0;
2820 arg2 = (int) SWIG_AsInt(obj1);
2821 if (PyErr_Occurred()) SWIG_fail;
2822 arg3 = (int) SWIG_AsInt(obj2);
2823 if (PyErr_Occurred()) SWIG_fail;
2824 if (obj3) {
2825 arg4 = (int) SWIG_AsInt(obj3);
2826 if (PyErr_Occurred()) SWIG_fail;
2827 }
2828 {
2829 if (!wxPyCheckForApp()) SWIG_fail;
2830 PyThreadState* __tstate = wxPyBeginAllowThreads();
2831 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2832
2833 wxPyEndAllowThreads(__tstate);
2834 if (PyErr_Occurred()) SWIG_fail;
2835 }
2836 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2837 return resultobj;
2838 fail:
2839 return NULL;
2840 }
2841
2842
2843 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2844 PyObject *resultobj;
2845 wxBitmap *arg1 = (wxBitmap *) 0 ;
2846 bool result;
2847 PyObject * obj0 = 0 ;
2848 char *kwnames[] = {
2849 (char *) "self", NULL
2850 };
2851
2852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2855 {
2856 PyThreadState* __tstate = wxPyBeginAllowThreads();
2857 result = (bool)(arg1)->Ok();
2858
2859 wxPyEndAllowThreads(__tstate);
2860 if (PyErr_Occurred()) SWIG_fail;
2861 }
2862 {
2863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2864 }
2865 return resultobj;
2866 fail:
2867 return NULL;
2868 }
2869
2870
2871 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2872 PyObject *resultobj;
2873 wxBitmap *arg1 = (wxBitmap *) 0 ;
2874 int result;
2875 PyObject * obj0 = 0 ;
2876 char *kwnames[] = {
2877 (char *) "self", NULL
2878 };
2879
2880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2883 {
2884 PyThreadState* __tstate = wxPyBeginAllowThreads();
2885 result = (int)(arg1)->GetWidth();
2886
2887 wxPyEndAllowThreads(__tstate);
2888 if (PyErr_Occurred()) SWIG_fail;
2889 }
2890 resultobj = SWIG_FromInt((int)result);
2891 return resultobj;
2892 fail:
2893 return NULL;
2894 }
2895
2896
2897 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2898 PyObject *resultobj;
2899 wxBitmap *arg1 = (wxBitmap *) 0 ;
2900 int result;
2901 PyObject * obj0 = 0 ;
2902 char *kwnames[] = {
2903 (char *) "self", NULL
2904 };
2905
2906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2909 {
2910 PyThreadState* __tstate = wxPyBeginAllowThreads();
2911 result = (int)(arg1)->GetHeight();
2912
2913 wxPyEndAllowThreads(__tstate);
2914 if (PyErr_Occurred()) SWIG_fail;
2915 }
2916 resultobj = SWIG_FromInt((int)result);
2917 return resultobj;
2918 fail:
2919 return NULL;
2920 }
2921
2922
2923 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2924 PyObject *resultobj;
2925 wxBitmap *arg1 = (wxBitmap *) 0 ;
2926 int result;
2927 PyObject * obj0 = 0 ;
2928 char *kwnames[] = {
2929 (char *) "self", NULL
2930 };
2931
2932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2935 {
2936 PyThreadState* __tstate = wxPyBeginAllowThreads();
2937 result = (int)(arg1)->GetDepth();
2938
2939 wxPyEndAllowThreads(__tstate);
2940 if (PyErr_Occurred()) SWIG_fail;
2941 }
2942 resultobj = SWIG_FromInt((int)result);
2943 return resultobj;
2944 fail:
2945 return NULL;
2946 }
2947
2948
2949 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2950 PyObject *resultobj;
2951 wxBitmap *arg1 = (wxBitmap *) 0 ;
2952 wxSize result;
2953 PyObject * obj0 = 0 ;
2954 char *kwnames[] = {
2955 (char *) "self", NULL
2956 };
2957
2958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
2959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2961 {
2962 PyThreadState* __tstate = wxPyBeginAllowThreads();
2963 result = wxBitmap_GetSize(arg1);
2964
2965 wxPyEndAllowThreads(__tstate);
2966 if (PyErr_Occurred()) SWIG_fail;
2967 }
2968 {
2969 wxSize * resultptr;
2970 resultptr = new wxSize((wxSize &) result);
2971 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2972 }
2973 return resultobj;
2974 fail:
2975 return NULL;
2976 }
2977
2978
2979 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2980 PyObject *resultobj;
2981 wxBitmap *arg1 = (wxBitmap *) 0 ;
2982 SwigValueWrapper< wxImage > result;
2983 PyObject * obj0 = 0 ;
2984 char *kwnames[] = {
2985 (char *) "self", NULL
2986 };
2987
2988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2991 {
2992 PyThreadState* __tstate = wxPyBeginAllowThreads();
2993 result = ((wxBitmap const *)arg1)->ConvertToImage();
2994
2995 wxPyEndAllowThreads(__tstate);
2996 if (PyErr_Occurred()) SWIG_fail;
2997 }
2998 {
2999 wxImage * resultptr;
3000 resultptr = new wxImage((wxImage &) result);
3001 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3002 }
3003 return resultobj;
3004 fail:
3005 return NULL;
3006 }
3007
3008
3009 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3010 PyObject *resultobj;
3011 wxBitmap *arg1 = (wxBitmap *) 0 ;
3012 wxMask *result;
3013 PyObject * obj0 = 0 ;
3014 char *kwnames[] = {
3015 (char *) "self", NULL
3016 };
3017
3018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3021 {
3022 PyThreadState* __tstate = wxPyBeginAllowThreads();
3023 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3024
3025 wxPyEndAllowThreads(__tstate);
3026 if (PyErr_Occurred()) SWIG_fail;
3027 }
3028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3029 return resultobj;
3030 fail:
3031 return NULL;
3032 }
3033
3034
3035 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3036 PyObject *resultobj;
3037 wxBitmap *arg1 = (wxBitmap *) 0 ;
3038 wxMask *arg2 = (wxMask *) 0 ;
3039 PyObject * obj0 = 0 ;
3040 PyObject * obj1 = 0 ;
3041 char *kwnames[] = {
3042 (char *) "self",(char *) "mask", NULL
3043 };
3044
3045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3048 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3050 {
3051 PyThreadState* __tstate = wxPyBeginAllowThreads();
3052 (arg1)->SetMask(arg2);
3053
3054 wxPyEndAllowThreads(__tstate);
3055 if (PyErr_Occurred()) SWIG_fail;
3056 }
3057 Py_INCREF(Py_None); resultobj = Py_None;
3058 return resultobj;
3059 fail:
3060 return NULL;
3061 }
3062
3063
3064 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3065 PyObject *resultobj;
3066 wxBitmap *arg1 = (wxBitmap *) 0 ;
3067 wxColour *arg2 = 0 ;
3068 wxColour temp2 ;
3069 PyObject * obj0 = 0 ;
3070 PyObject * obj1 = 0 ;
3071 char *kwnames[] = {
3072 (char *) "self",(char *) "colour", NULL
3073 };
3074
3075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3078 {
3079 arg2 = &temp2;
3080 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3081 }
3082 {
3083 PyThreadState* __tstate = wxPyBeginAllowThreads();
3084 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3085
3086 wxPyEndAllowThreads(__tstate);
3087 if (PyErr_Occurred()) SWIG_fail;
3088 }
3089 Py_INCREF(Py_None); resultobj = Py_None;
3090 return resultobj;
3091 fail:
3092 return NULL;
3093 }
3094
3095
3096 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3097 PyObject *resultobj;
3098 wxBitmap *arg1 = (wxBitmap *) 0 ;
3099 wxRect *arg2 = 0 ;
3100 SwigValueWrapper< wxBitmap > result;
3101 wxRect temp2 ;
3102 PyObject * obj0 = 0 ;
3103 PyObject * obj1 = 0 ;
3104 char *kwnames[] = {
3105 (char *) "self",(char *) "rect", NULL
3106 };
3107
3108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3111 {
3112 arg2 = &temp2;
3113 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3114 }
3115 {
3116 PyThreadState* __tstate = wxPyBeginAllowThreads();
3117 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3118
3119 wxPyEndAllowThreads(__tstate);
3120 if (PyErr_Occurred()) SWIG_fail;
3121 }
3122 {
3123 wxBitmap * resultptr;
3124 resultptr = new wxBitmap((wxBitmap &) result);
3125 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3126 }
3127 return resultobj;
3128 fail:
3129 return NULL;
3130 }
3131
3132
3133 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3134 PyObject *resultobj;
3135 wxBitmap *arg1 = (wxBitmap *) 0 ;
3136 wxString *arg2 = 0 ;
3137 int arg3 ;
3138 wxPalette *arg4 = (wxPalette *) NULL ;
3139 bool result;
3140 bool temp2 = False ;
3141 PyObject * obj0 = 0 ;
3142 PyObject * obj1 = 0 ;
3143 PyObject * obj2 = 0 ;
3144 PyObject * obj3 = 0 ;
3145 char *kwnames[] = {
3146 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3147 };
3148
3149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3152 {
3153 arg2 = wxString_in_helper(obj1);
3154 if (arg2 == NULL) SWIG_fail;
3155 temp2 = True;
3156 }
3157 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3158 if (PyErr_Occurred()) SWIG_fail;
3159 if (obj3) {
3160 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3162 }
3163 {
3164 PyThreadState* __tstate = wxPyBeginAllowThreads();
3165 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3166
3167 wxPyEndAllowThreads(__tstate);
3168 if (PyErr_Occurred()) SWIG_fail;
3169 }
3170 {
3171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3172 }
3173 {
3174 if (temp2)
3175 delete arg2;
3176 }
3177 return resultobj;
3178 fail:
3179 {
3180 if (temp2)
3181 delete arg2;
3182 }
3183 return NULL;
3184 }
3185
3186
3187 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3188 PyObject *resultobj;
3189 wxBitmap *arg1 = (wxBitmap *) 0 ;
3190 wxString *arg2 = 0 ;
3191 int arg3 ;
3192 bool result;
3193 bool temp2 = False ;
3194 PyObject * obj0 = 0 ;
3195 PyObject * obj1 = 0 ;
3196 PyObject * obj2 = 0 ;
3197 char *kwnames[] = {
3198 (char *) "self",(char *) "name",(char *) "type", NULL
3199 };
3200
3201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3204 {
3205 arg2 = wxString_in_helper(obj1);
3206 if (arg2 == NULL) SWIG_fail;
3207 temp2 = True;
3208 }
3209 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3210 if (PyErr_Occurred()) SWIG_fail;
3211 {
3212 PyThreadState* __tstate = wxPyBeginAllowThreads();
3213 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3214
3215 wxPyEndAllowThreads(__tstate);
3216 if (PyErr_Occurred()) SWIG_fail;
3217 }
3218 {
3219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3220 }
3221 {
3222 if (temp2)
3223 delete arg2;
3224 }
3225 return resultobj;
3226 fail:
3227 {
3228 if (temp2)
3229 delete arg2;
3230 }
3231 return NULL;
3232 }
3233
3234
3235 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3236 PyObject *resultobj;
3237 wxBitmap *arg1 = (wxBitmap *) 0 ;
3238 wxIcon *arg2 = 0 ;
3239 bool result;
3240 PyObject * obj0 = 0 ;
3241 PyObject * obj1 = 0 ;
3242 char *kwnames[] = {
3243 (char *) "self",(char *) "icon", NULL
3244 };
3245
3246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3249 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3250 SWIG_POINTER_EXCEPTION | 0)) == -1)
3251 SWIG_fail;
3252 if (arg2 == NULL) {
3253 PyErr_SetString(PyExc_TypeError,"null reference");
3254 SWIG_fail;
3255 }
3256 {
3257 PyThreadState* __tstate = wxPyBeginAllowThreads();
3258 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3259
3260 wxPyEndAllowThreads(__tstate);
3261 if (PyErr_Occurred()) SWIG_fail;
3262 }
3263 {
3264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3265 }
3266 return resultobj;
3267 fail:
3268 return NULL;
3269 }
3270
3271
3272 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3273 PyObject *resultobj;
3274 wxBitmap *arg1 = (wxBitmap *) 0 ;
3275 int arg2 ;
3276 PyObject * obj0 = 0 ;
3277 PyObject * obj1 = 0 ;
3278 char *kwnames[] = {
3279 (char *) "self",(char *) "height", NULL
3280 };
3281
3282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3285 arg2 = (int) SWIG_AsInt(obj1);
3286 if (PyErr_Occurred()) SWIG_fail;
3287 {
3288 PyThreadState* __tstate = wxPyBeginAllowThreads();
3289 (arg1)->SetHeight(arg2);
3290
3291 wxPyEndAllowThreads(__tstate);
3292 if (PyErr_Occurred()) SWIG_fail;
3293 }
3294 Py_INCREF(Py_None); resultobj = Py_None;
3295 return resultobj;
3296 fail:
3297 return NULL;
3298 }
3299
3300
3301 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3302 PyObject *resultobj;
3303 wxBitmap *arg1 = (wxBitmap *) 0 ;
3304 int arg2 ;
3305 PyObject * obj0 = 0 ;
3306 PyObject * obj1 = 0 ;
3307 char *kwnames[] = {
3308 (char *) "self",(char *) "width", NULL
3309 };
3310
3311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3314 arg2 = (int) SWIG_AsInt(obj1);
3315 if (PyErr_Occurred()) SWIG_fail;
3316 {
3317 PyThreadState* __tstate = wxPyBeginAllowThreads();
3318 (arg1)->SetWidth(arg2);
3319
3320 wxPyEndAllowThreads(__tstate);
3321 if (PyErr_Occurred()) SWIG_fail;
3322 }
3323 Py_INCREF(Py_None); resultobj = Py_None;
3324 return resultobj;
3325 fail:
3326 return NULL;
3327 }
3328
3329
3330 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3331 PyObject *resultobj;
3332 wxBitmap *arg1 = (wxBitmap *) 0 ;
3333 int arg2 ;
3334 PyObject * obj0 = 0 ;
3335 PyObject * obj1 = 0 ;
3336 char *kwnames[] = {
3337 (char *) "self",(char *) "depth", NULL
3338 };
3339
3340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3343 arg2 = (int) SWIG_AsInt(obj1);
3344 if (PyErr_Occurred()) SWIG_fail;
3345 {
3346 PyThreadState* __tstate = wxPyBeginAllowThreads();
3347 (arg1)->SetDepth(arg2);
3348
3349 wxPyEndAllowThreads(__tstate);
3350 if (PyErr_Occurred()) SWIG_fail;
3351 }
3352 Py_INCREF(Py_None); resultobj = Py_None;
3353 return resultobj;
3354 fail:
3355 return NULL;
3356 }
3357
3358
3359 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3360 PyObject *resultobj;
3361 wxBitmap *arg1 = (wxBitmap *) 0 ;
3362 wxSize *arg2 = 0 ;
3363 wxSize temp2 ;
3364 PyObject * obj0 = 0 ;
3365 PyObject * obj1 = 0 ;
3366 char *kwnames[] = {
3367 (char *) "self",(char *) "size", NULL
3368 };
3369
3370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3373 {
3374 arg2 = &temp2;
3375 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3376 }
3377 {
3378 PyThreadState* __tstate = wxPyBeginAllowThreads();
3379 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3380
3381 wxPyEndAllowThreads(__tstate);
3382 if (PyErr_Occurred()) SWIG_fail;
3383 }
3384 Py_INCREF(Py_None); resultobj = Py_None;
3385 return resultobj;
3386 fail:
3387 return NULL;
3388 }
3389
3390
3391 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3392 PyObject *resultobj;
3393 wxBitmap *arg1 = (wxBitmap *) 0 ;
3394 wxBitmap *arg2 = (wxBitmap *) 0 ;
3395 bool result;
3396 PyObject * obj0 = 0 ;
3397 PyObject * obj1 = 0 ;
3398 char *kwnames[] = {
3399 (char *) "self",(char *) "other", NULL
3400 };
3401
3402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3407 {
3408 PyThreadState* __tstate = wxPyBeginAllowThreads();
3409 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3410
3411 wxPyEndAllowThreads(__tstate);
3412 if (PyErr_Occurred()) SWIG_fail;
3413 }
3414 {
3415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3416 }
3417 return resultobj;
3418 fail:
3419 return NULL;
3420 }
3421
3422
3423 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3424 PyObject *resultobj;
3425 wxBitmap *arg1 = (wxBitmap *) 0 ;
3426 wxBitmap *arg2 = (wxBitmap *) 0 ;
3427 bool result;
3428 PyObject * obj0 = 0 ;
3429 PyObject * obj1 = 0 ;
3430 char *kwnames[] = {
3431 (char *) "self",(char *) "other", NULL
3432 };
3433
3434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3437 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3439 {
3440 PyThreadState* __tstate = wxPyBeginAllowThreads();
3441 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3442
3443 wxPyEndAllowThreads(__tstate);
3444 if (PyErr_Occurred()) SWIG_fail;
3445 }
3446 {
3447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3448 }
3449 return resultobj;
3450 fail:
3451 return NULL;
3452 }
3453
3454
3455 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3456 PyObject *obj;
3457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3458 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3459 Py_INCREF(obj);
3460 return Py_BuildValue((char *)"");
3461 }
3462 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3463 PyObject *resultobj;
3464 wxBitmap *arg1 = 0 ;
3465 wxColour const &arg2_defvalue = wxNullColour ;
3466 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3467 wxMask *result;
3468 wxColour temp2 ;
3469 PyObject * obj0 = 0 ;
3470 PyObject * obj1 = 0 ;
3471 char *kwnames[] = {
3472 (char *) "bitmap",(char *) "colour", NULL
3473 };
3474
3475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3477 SWIG_POINTER_EXCEPTION | 0)) == -1)
3478 SWIG_fail;
3479 if (arg1 == NULL) {
3480 PyErr_SetString(PyExc_TypeError,"null reference");
3481 SWIG_fail;
3482 }
3483 if (obj1) {
3484 {
3485 arg2 = &temp2;
3486 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3487 }
3488 }
3489 {
3490 if (!wxPyCheckForApp()) SWIG_fail;
3491 PyThreadState* __tstate = wxPyBeginAllowThreads();
3492 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3493
3494 wxPyEndAllowThreads(__tstate);
3495 if (PyErr_Occurred()) SWIG_fail;
3496 }
3497 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3498 return resultobj;
3499 fail:
3500 return NULL;
3501 }
3502
3503
3504 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3505 PyObject *obj;
3506 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3507 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3508 Py_INCREF(obj);
3509 return Py_BuildValue((char *)"");
3510 }
3511 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3512 PyObject *resultobj;
3513 wxString *arg1 = 0 ;
3514 int arg2 ;
3515 int arg3 = (int) -1 ;
3516 int arg4 = (int) -1 ;
3517 wxIcon *result;
3518 bool temp1 = False ;
3519 PyObject * obj0 = 0 ;
3520 PyObject * obj1 = 0 ;
3521 PyObject * obj2 = 0 ;
3522 PyObject * obj3 = 0 ;
3523 char *kwnames[] = {
3524 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3525 };
3526
3527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3528 {
3529 arg1 = wxString_in_helper(obj0);
3530 if (arg1 == NULL) SWIG_fail;
3531 temp1 = True;
3532 }
3533 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 if (obj2) {
3536 arg3 = (int) SWIG_AsInt(obj2);
3537 if (PyErr_Occurred()) SWIG_fail;
3538 }
3539 if (obj3) {
3540 arg4 = (int) SWIG_AsInt(obj3);
3541 if (PyErr_Occurred()) SWIG_fail;
3542 }
3543 {
3544 if (!wxPyCheckForApp()) SWIG_fail;
3545 PyThreadState* __tstate = wxPyBeginAllowThreads();
3546 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3547
3548 wxPyEndAllowThreads(__tstate);
3549 if (PyErr_Occurred()) SWIG_fail;
3550 }
3551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3552 {
3553 if (temp1)
3554 delete arg1;
3555 }
3556 return resultobj;
3557 fail:
3558 {
3559 if (temp1)
3560 delete arg1;
3561 }
3562 return NULL;
3563 }
3564
3565
3566 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3567 PyObject *resultobj;
3568 wxIcon *arg1 = (wxIcon *) 0 ;
3569 PyObject * obj0 = 0 ;
3570 char *kwnames[] = {
3571 (char *) "self", NULL
3572 };
3573
3574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3577 {
3578 PyThreadState* __tstate = wxPyBeginAllowThreads();
3579 delete arg1;
3580
3581 wxPyEndAllowThreads(__tstate);
3582 if (PyErr_Occurred()) SWIG_fail;
3583 }
3584 Py_INCREF(Py_None); resultobj = Py_None;
3585 return resultobj;
3586 fail:
3587 return NULL;
3588 }
3589
3590
3591 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3592 PyObject *resultobj;
3593 wxIcon *result;
3594 char *kwnames[] = {
3595 NULL
3596 };
3597
3598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3599 {
3600 if (!wxPyCheckForApp()) SWIG_fail;
3601 PyThreadState* __tstate = wxPyBeginAllowThreads();
3602 result = (wxIcon *)new wxIcon();
3603
3604 wxPyEndAllowThreads(__tstate);
3605 if (PyErr_Occurred()) SWIG_fail;
3606 }
3607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3608 return resultobj;
3609 fail:
3610 return NULL;
3611 }
3612
3613
3614 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3615 PyObject *resultobj;
3616 wxIconLocation *arg1 = 0 ;
3617 wxIcon *result;
3618 PyObject * obj0 = 0 ;
3619 char *kwnames[] = {
3620 (char *) "loc", NULL
3621 };
3622
3623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3625 SWIG_POINTER_EXCEPTION | 0)) == -1)
3626 SWIG_fail;
3627 if (arg1 == NULL) {
3628 PyErr_SetString(PyExc_TypeError,"null reference");
3629 SWIG_fail;
3630 }
3631 {
3632 if (!wxPyCheckForApp()) SWIG_fail;
3633 PyThreadState* __tstate = wxPyBeginAllowThreads();
3634 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3635
3636 wxPyEndAllowThreads(__tstate);
3637 if (PyErr_Occurred()) SWIG_fail;
3638 }
3639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3640 return resultobj;
3641 fail:
3642 return NULL;
3643 }
3644
3645
3646 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3647 PyObject *resultobj;
3648 wxBitmap *arg1 = 0 ;
3649 wxIcon *result;
3650 PyObject * obj0 = 0 ;
3651 char *kwnames[] = {
3652 (char *) "bmp", NULL
3653 };
3654
3655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3657 SWIG_POINTER_EXCEPTION | 0)) == -1)
3658 SWIG_fail;
3659 if (arg1 == NULL) {
3660 PyErr_SetString(PyExc_TypeError,"null reference");
3661 SWIG_fail;
3662 }
3663 {
3664 if (!wxPyCheckForApp()) SWIG_fail;
3665 PyThreadState* __tstate = wxPyBeginAllowThreads();
3666 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3667
3668 wxPyEndAllowThreads(__tstate);
3669 if (PyErr_Occurred()) SWIG_fail;
3670 }
3671 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3672 return resultobj;
3673 fail:
3674 return NULL;
3675 }
3676
3677
3678 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3679 PyObject *resultobj;
3680 PyObject *arg1 = (PyObject *) 0 ;
3681 wxIcon *result;
3682 PyObject * obj0 = 0 ;
3683 char *kwnames[] = {
3684 (char *) "listOfStrings", NULL
3685 };
3686
3687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3688 arg1 = obj0;
3689 {
3690 if (!wxPyCheckForApp()) SWIG_fail;
3691 PyThreadState* __tstate = wxPyBeginAllowThreads();
3692 result = (wxIcon *)new_wxIcon(arg1);
3693
3694 wxPyEndAllowThreads(__tstate);
3695 if (PyErr_Occurred()) SWIG_fail;
3696 }
3697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3698 return resultobj;
3699 fail:
3700 return NULL;
3701 }
3702
3703
3704 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3705 PyObject *resultobj;
3706 wxIcon *arg1 = (wxIcon *) 0 ;
3707 bool result;
3708 PyObject * obj0 = 0 ;
3709 char *kwnames[] = {
3710 (char *) "self", NULL
3711 };
3712
3713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3716 {
3717 PyThreadState* __tstate = wxPyBeginAllowThreads();
3718 result = (bool)(arg1)->Ok();
3719
3720 wxPyEndAllowThreads(__tstate);
3721 if (PyErr_Occurred()) SWIG_fail;
3722 }
3723 {
3724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3725 }
3726 return resultobj;
3727 fail:
3728 return NULL;
3729 }
3730
3731
3732 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3733 PyObject *resultobj;
3734 wxIcon *arg1 = (wxIcon *) 0 ;
3735 int result;
3736 PyObject * obj0 = 0 ;
3737 char *kwnames[] = {
3738 (char *) "self", NULL
3739 };
3740
3741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3744 {
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = (int)(arg1)->GetWidth();
3747
3748 wxPyEndAllowThreads(__tstate);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
3751 resultobj = SWIG_FromInt((int)result);
3752 return resultobj;
3753 fail:
3754 return NULL;
3755 }
3756
3757
3758 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3759 PyObject *resultobj;
3760 wxIcon *arg1 = (wxIcon *) 0 ;
3761 int result;
3762 PyObject * obj0 = 0 ;
3763 char *kwnames[] = {
3764 (char *) "self", NULL
3765 };
3766
3767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3770 {
3771 PyThreadState* __tstate = wxPyBeginAllowThreads();
3772 result = (int)(arg1)->GetHeight();
3773
3774 wxPyEndAllowThreads(__tstate);
3775 if (PyErr_Occurred()) SWIG_fail;
3776 }
3777 resultobj = SWIG_FromInt((int)result);
3778 return resultobj;
3779 fail:
3780 return NULL;
3781 }
3782
3783
3784 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3785 PyObject *resultobj;
3786 wxIcon *arg1 = (wxIcon *) 0 ;
3787 int result;
3788 PyObject * obj0 = 0 ;
3789 char *kwnames[] = {
3790 (char *) "self", NULL
3791 };
3792
3793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3796 {
3797 PyThreadState* __tstate = wxPyBeginAllowThreads();
3798 result = (int)(arg1)->GetDepth();
3799
3800 wxPyEndAllowThreads(__tstate);
3801 if (PyErr_Occurred()) SWIG_fail;
3802 }
3803 resultobj = SWIG_FromInt((int)result);
3804 return resultobj;
3805 fail:
3806 return NULL;
3807 }
3808
3809
3810 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3811 PyObject *resultobj;
3812 wxIcon *arg1 = (wxIcon *) 0 ;
3813 int arg2 ;
3814 PyObject * obj0 = 0 ;
3815 PyObject * obj1 = 0 ;
3816 char *kwnames[] = {
3817 (char *) "self",(char *) "w", NULL
3818 };
3819
3820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3823 arg2 = (int) SWIG_AsInt(obj1);
3824 if (PyErr_Occurred()) SWIG_fail;
3825 {
3826 PyThreadState* __tstate = wxPyBeginAllowThreads();
3827 (arg1)->SetWidth(arg2);
3828
3829 wxPyEndAllowThreads(__tstate);
3830 if (PyErr_Occurred()) SWIG_fail;
3831 }
3832 Py_INCREF(Py_None); resultobj = Py_None;
3833 return resultobj;
3834 fail:
3835 return NULL;
3836 }
3837
3838
3839 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3840 PyObject *resultobj;
3841 wxIcon *arg1 = (wxIcon *) 0 ;
3842 int arg2 ;
3843 PyObject * obj0 = 0 ;
3844 PyObject * obj1 = 0 ;
3845 char *kwnames[] = {
3846 (char *) "self",(char *) "h", NULL
3847 };
3848
3849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3852 arg2 = (int) SWIG_AsInt(obj1);
3853 if (PyErr_Occurred()) SWIG_fail;
3854 {
3855 PyThreadState* __tstate = wxPyBeginAllowThreads();
3856 (arg1)->SetHeight(arg2);
3857
3858 wxPyEndAllowThreads(__tstate);
3859 if (PyErr_Occurred()) SWIG_fail;
3860 }
3861 Py_INCREF(Py_None); resultobj = Py_None;
3862 return resultobj;
3863 fail:
3864 return NULL;
3865 }
3866
3867
3868 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3869 PyObject *resultobj;
3870 wxIcon *arg1 = (wxIcon *) 0 ;
3871 int arg2 ;
3872 PyObject * obj0 = 0 ;
3873 PyObject * obj1 = 0 ;
3874 char *kwnames[] = {
3875 (char *) "self",(char *) "d", NULL
3876 };
3877
3878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3881 arg2 = (int) SWIG_AsInt(obj1);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 {
3884 PyThreadState* __tstate = wxPyBeginAllowThreads();
3885 (arg1)->SetDepth(arg2);
3886
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 Py_INCREF(Py_None); resultobj = Py_None;
3891 return resultobj;
3892 fail:
3893 return NULL;
3894 }
3895
3896
3897 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj;
3899 wxIcon *arg1 = (wxIcon *) 0 ;
3900 wxBitmap *arg2 = 0 ;
3901 PyObject * obj0 = 0 ;
3902 PyObject * obj1 = 0 ;
3903 char *kwnames[] = {
3904 (char *) "self",(char *) "bmp", NULL
3905 };
3906
3907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3910 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3911 SWIG_POINTER_EXCEPTION | 0)) == -1)
3912 SWIG_fail;
3913 if (arg2 == NULL) {
3914 PyErr_SetString(PyExc_TypeError,"null reference");
3915 SWIG_fail;
3916 }
3917 {
3918 PyThreadState* __tstate = wxPyBeginAllowThreads();
3919 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3920
3921 wxPyEndAllowThreads(__tstate);
3922 if (PyErr_Occurred()) SWIG_fail;
3923 }
3924 Py_INCREF(Py_None); resultobj = Py_None;
3925 return resultobj;
3926 fail:
3927 return NULL;
3928 }
3929
3930
3931 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3932 PyObject *obj;
3933 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3934 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3935 Py_INCREF(obj);
3936 return Py_BuildValue((char *)"");
3937 }
3938 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3939 PyObject *resultobj;
3940 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3941 int arg2 = (int) 0 ;
3942 wxIconLocation *result;
3943 bool temp1 = False ;
3944 PyObject * obj0 = 0 ;
3945 PyObject * obj1 = 0 ;
3946 char *kwnames[] = {
3947 (char *) "filename",(char *) "num", NULL
3948 };
3949
3950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3951 if (obj0) {
3952 {
3953 arg1 = wxString_in_helper(obj0);
3954 if (arg1 == NULL) SWIG_fail;
3955 temp1 = True;
3956 }
3957 }
3958 if (obj1) {
3959 arg2 = (int) SWIG_AsInt(obj1);
3960 if (PyErr_Occurred()) SWIG_fail;
3961 }
3962 {
3963 PyThreadState* __tstate = wxPyBeginAllowThreads();
3964 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3965
3966 wxPyEndAllowThreads(__tstate);
3967 if (PyErr_Occurred()) SWIG_fail;
3968 }
3969 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
3970 {
3971 if (temp1)
3972 delete arg1;
3973 }
3974 return resultobj;
3975 fail:
3976 {
3977 if (temp1)
3978 delete arg1;
3979 }
3980 return NULL;
3981 }
3982
3983
3984 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3985 PyObject *resultobj;
3986 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3987 PyObject * obj0 = 0 ;
3988 char *kwnames[] = {
3989 (char *) "self", NULL
3990 };
3991
3992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3995 {
3996 PyThreadState* __tstate = wxPyBeginAllowThreads();
3997 delete arg1;
3998
3999 wxPyEndAllowThreads(__tstate);
4000 if (PyErr_Occurred()) SWIG_fail;
4001 }
4002 Py_INCREF(Py_None); resultobj = Py_None;
4003 return resultobj;
4004 fail:
4005 return NULL;
4006 }
4007
4008
4009 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4010 PyObject *resultobj;
4011 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4012 bool result;
4013 PyObject * obj0 = 0 ;
4014 char *kwnames[] = {
4015 (char *) "self", NULL
4016 };
4017
4018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4021 {
4022 PyThreadState* __tstate = wxPyBeginAllowThreads();
4023 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4024
4025 wxPyEndAllowThreads(__tstate);
4026 if (PyErr_Occurred()) SWIG_fail;
4027 }
4028 {
4029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4030 }
4031 return resultobj;
4032 fail:
4033 return NULL;
4034 }
4035
4036
4037 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4038 PyObject *resultobj;
4039 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4040 wxString *arg2 = 0 ;
4041 bool temp2 = False ;
4042 PyObject * obj0 = 0 ;
4043 PyObject * obj1 = 0 ;
4044 char *kwnames[] = {
4045 (char *) "self",(char *) "filename", NULL
4046 };
4047
4048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4051 {
4052 arg2 = wxString_in_helper(obj1);
4053 if (arg2 == NULL) SWIG_fail;
4054 temp2 = True;
4055 }
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 (arg1)->SetFileName((wxString const &)*arg2);
4059
4060 wxPyEndAllowThreads(__tstate);
4061 if (PyErr_Occurred()) SWIG_fail;
4062 }
4063 Py_INCREF(Py_None); resultobj = Py_None;
4064 {
4065 if (temp2)
4066 delete arg2;
4067 }
4068 return resultobj;
4069 fail:
4070 {
4071 if (temp2)
4072 delete arg2;
4073 }
4074 return NULL;
4075 }
4076
4077
4078 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4079 PyObject *resultobj;
4080 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4081 wxString *result;
4082 PyObject * obj0 = 0 ;
4083 char *kwnames[] = {
4084 (char *) "self", NULL
4085 };
4086
4087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 {
4093 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4094 result = (wxString *) &_result_ref;
4095 }
4096
4097 wxPyEndAllowThreads(__tstate);
4098 if (PyErr_Occurred()) SWIG_fail;
4099 }
4100 {
4101 #if wxUSE_UNICODE
4102 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4103 #else
4104 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4105 #endif
4106 }
4107 return resultobj;
4108 fail:
4109 return NULL;
4110 }
4111
4112
4113 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4114 PyObject *resultobj;
4115 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4116 int arg2 ;
4117 PyObject * obj0 = 0 ;
4118 PyObject * obj1 = 0 ;
4119 char *kwnames[] = {
4120 (char *) "self",(char *) "num", NULL
4121 };
4122
4123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4126 arg2 = (int) SWIG_AsInt(obj1);
4127 if (PyErr_Occurred()) SWIG_fail;
4128 {
4129 PyThreadState* __tstate = wxPyBeginAllowThreads();
4130 wxIconLocation_SetIndex(arg1,arg2);
4131
4132 wxPyEndAllowThreads(__tstate);
4133 if (PyErr_Occurred()) SWIG_fail;
4134 }
4135 Py_INCREF(Py_None); resultobj = Py_None;
4136 return resultobj;
4137 fail:
4138 return NULL;
4139 }
4140
4141
4142 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4143 PyObject *resultobj;
4144 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4145 int result;
4146 PyObject * obj0 = 0 ;
4147 char *kwnames[] = {
4148 (char *) "self", NULL
4149 };
4150
4151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4154 {
4155 PyThreadState* __tstate = wxPyBeginAllowThreads();
4156 result = (int)wxIconLocation_GetIndex(arg1);
4157
4158 wxPyEndAllowThreads(__tstate);
4159 if (PyErr_Occurred()) SWIG_fail;
4160 }
4161 resultobj = SWIG_FromInt((int)result);
4162 return resultobj;
4163 fail:
4164 return NULL;
4165 }
4166
4167
4168 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4169 PyObject *obj;
4170 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4171 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4172 Py_INCREF(obj);
4173 return Py_BuildValue((char *)"");
4174 }
4175 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4176 PyObject *resultobj;
4177 wxIconBundle *result;
4178 char *kwnames[] = {
4179 NULL
4180 };
4181
4182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4183 {
4184 PyThreadState* __tstate = wxPyBeginAllowThreads();
4185 result = (wxIconBundle *)new wxIconBundle();
4186
4187 wxPyEndAllowThreads(__tstate);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 }
4190 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4191 return resultobj;
4192 fail:
4193 return NULL;
4194 }
4195
4196
4197 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4198 PyObject *resultobj;
4199 wxString *arg1 = 0 ;
4200 long arg2 ;
4201 wxIconBundle *result;
4202 bool temp1 = False ;
4203 PyObject * obj0 = 0 ;
4204 PyObject * obj1 = 0 ;
4205 char *kwnames[] = {
4206 (char *) "file",(char *) "type", NULL
4207 };
4208
4209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4210 {
4211 arg1 = wxString_in_helper(obj0);
4212 if (arg1 == NULL) SWIG_fail;
4213 temp1 = True;
4214 }
4215 arg2 = (long) SWIG_AsLong(obj1);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 {
4218 PyThreadState* __tstate = wxPyBeginAllowThreads();
4219 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4220
4221 wxPyEndAllowThreads(__tstate);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4225 {
4226 if (temp1)
4227 delete arg1;
4228 }
4229 return resultobj;
4230 fail:
4231 {
4232 if (temp1)
4233 delete arg1;
4234 }
4235 return NULL;
4236 }
4237
4238
4239 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4240 PyObject *resultobj;
4241 wxIcon *arg1 = 0 ;
4242 wxIconBundle *result;
4243 PyObject * obj0 = 0 ;
4244 char *kwnames[] = {
4245 (char *) "icon", NULL
4246 };
4247
4248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4250 SWIG_POINTER_EXCEPTION | 0)) == -1)
4251 SWIG_fail;
4252 if (arg1 == NULL) {
4253 PyErr_SetString(PyExc_TypeError,"null reference");
4254 SWIG_fail;
4255 }
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4259
4260 wxPyEndAllowThreads(__tstate);
4261 if (PyErr_Occurred()) SWIG_fail;
4262 }
4263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4264 return resultobj;
4265 fail:
4266 return NULL;
4267 }
4268
4269
4270 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4271 PyObject *resultobj;
4272 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4273 PyObject * obj0 = 0 ;
4274 char *kwnames[] = {
4275 (char *) "self", NULL
4276 };
4277
4278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4281 {
4282 PyThreadState* __tstate = wxPyBeginAllowThreads();
4283 delete arg1;
4284
4285 wxPyEndAllowThreads(__tstate);
4286 if (PyErr_Occurred()) SWIG_fail;
4287 }
4288 Py_INCREF(Py_None); resultobj = Py_None;
4289 return resultobj;
4290 fail:
4291 return NULL;
4292 }
4293
4294
4295 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4296 PyObject *resultobj;
4297 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4298 wxIcon *arg2 = 0 ;
4299 PyObject * obj0 = 0 ;
4300 PyObject * obj1 = 0 ;
4301 char *kwnames[] = {
4302 (char *) "self",(char *) "icon", NULL
4303 };
4304
4305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4308 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4309 SWIG_POINTER_EXCEPTION | 0)) == -1)
4310 SWIG_fail;
4311 if (arg2 == NULL) {
4312 PyErr_SetString(PyExc_TypeError,"null reference");
4313 SWIG_fail;
4314 }
4315 {
4316 PyThreadState* __tstate = wxPyBeginAllowThreads();
4317 (arg1)->AddIcon((wxIcon const &)*arg2);
4318
4319 wxPyEndAllowThreads(__tstate);
4320 if (PyErr_Occurred()) SWIG_fail;
4321 }
4322 Py_INCREF(Py_None); resultobj = Py_None;
4323 return resultobj;
4324 fail:
4325 return NULL;
4326 }
4327
4328
4329 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4330 PyObject *resultobj;
4331 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4332 wxString *arg2 = 0 ;
4333 long arg3 ;
4334 bool temp2 = False ;
4335 PyObject * obj0 = 0 ;
4336 PyObject * obj1 = 0 ;
4337 PyObject * obj2 = 0 ;
4338 char *kwnames[] = {
4339 (char *) "self",(char *) "file",(char *) "type", NULL
4340 };
4341
4342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4345 {
4346 arg2 = wxString_in_helper(obj1);
4347 if (arg2 == NULL) SWIG_fail;
4348 temp2 = True;
4349 }
4350 arg3 = (long) SWIG_AsLong(obj2);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 {
4353 PyThreadState* __tstate = wxPyBeginAllowThreads();
4354 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4355
4356 wxPyEndAllowThreads(__tstate);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 }
4359 Py_INCREF(Py_None); resultobj = Py_None;
4360 {
4361 if (temp2)
4362 delete arg2;
4363 }
4364 return resultobj;
4365 fail:
4366 {
4367 if (temp2)
4368 delete arg2;
4369 }
4370 return NULL;
4371 }
4372
4373
4374 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4375 PyObject *resultobj;
4376 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4377 wxSize *arg2 = 0 ;
4378 wxIcon *result;
4379 wxSize temp2 ;
4380 PyObject * obj0 = 0 ;
4381 PyObject * obj1 = 0 ;
4382 char *kwnames[] = {
4383 (char *) "self",(char *) "size", NULL
4384 };
4385
4386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4389 {
4390 arg2 = &temp2;
4391 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4392 }
4393 {
4394 PyThreadState* __tstate = wxPyBeginAllowThreads();
4395 {
4396 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4397 result = (wxIcon *) &_result_ref;
4398 }
4399
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 {
4404 wxIcon* resultptr = new wxIcon(*result);
4405 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4406 }
4407 return resultobj;
4408 fail:
4409 return NULL;
4410 }
4411
4412
4413 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4414 PyObject *obj;
4415 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4416 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4417 Py_INCREF(obj);
4418 return Py_BuildValue((char *)"");
4419 }
4420 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4421 PyObject *resultobj;
4422 wxString *arg1 = (wxString *) 0 ;
4423 long arg2 ;
4424 int arg3 = (int) 0 ;
4425 int arg4 = (int) 0 ;
4426 wxCursor *result;
4427 bool temp1 = False ;
4428 PyObject * obj0 = 0 ;
4429 PyObject * obj1 = 0 ;
4430 PyObject * obj2 = 0 ;
4431 PyObject * obj3 = 0 ;
4432 char *kwnames[] = {
4433 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4434 };
4435
4436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4437 {
4438 arg1 = wxString_in_helper(obj0);
4439 if (arg1 == NULL) SWIG_fail;
4440 temp1 = True;
4441 }
4442 arg2 = (long) SWIG_AsLong(obj1);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 if (obj2) {
4445 arg3 = (int) SWIG_AsInt(obj2);
4446 if (PyErr_Occurred()) SWIG_fail;
4447 }
4448 if (obj3) {
4449 arg4 = (int) SWIG_AsInt(obj3);
4450 if (PyErr_Occurred()) SWIG_fail;
4451 }
4452 {
4453 if (!wxPyCheckForApp()) SWIG_fail;
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4456
4457 wxPyEndAllowThreads(__tstate);
4458 if (PyErr_Occurred()) SWIG_fail;
4459 }
4460 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4461 {
4462 if (temp1)
4463 delete arg1;
4464 }
4465 return resultobj;
4466 fail:
4467 {
4468 if (temp1)
4469 delete arg1;
4470 }
4471 return NULL;
4472 }
4473
4474
4475 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4476 PyObject *resultobj;
4477 wxCursor *arg1 = (wxCursor *) 0 ;
4478 PyObject * obj0 = 0 ;
4479 char *kwnames[] = {
4480 (char *) "self", NULL
4481 };
4482
4483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4486 {
4487 PyThreadState* __tstate = wxPyBeginAllowThreads();
4488 delete arg1;
4489
4490 wxPyEndAllowThreads(__tstate);
4491 if (PyErr_Occurred()) SWIG_fail;
4492 }
4493 Py_INCREF(Py_None); resultobj = Py_None;
4494 return resultobj;
4495 fail:
4496 return NULL;
4497 }
4498
4499
4500 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4501 PyObject *resultobj;
4502 int arg1 ;
4503 wxCursor *result;
4504 PyObject * obj0 = 0 ;
4505 char *kwnames[] = {
4506 (char *) "id", NULL
4507 };
4508
4509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4510 arg1 = (int) SWIG_AsInt(obj0);
4511 if (PyErr_Occurred()) SWIG_fail;
4512 {
4513 if (!wxPyCheckForApp()) SWIG_fail;
4514 PyThreadState* __tstate = wxPyBeginAllowThreads();
4515 result = (wxCursor *)new wxCursor(arg1);
4516
4517 wxPyEndAllowThreads(__tstate);
4518 if (PyErr_Occurred()) SWIG_fail;
4519 }
4520 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4521 return resultobj;
4522 fail:
4523 return NULL;
4524 }
4525
4526
4527 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4528 PyObject *resultobj;
4529 wxImage *arg1 = 0 ;
4530 wxCursor *result;
4531 PyObject * obj0 = 0 ;
4532 char *kwnames[] = {
4533 (char *) "image", NULL
4534 };
4535
4536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4538 SWIG_POINTER_EXCEPTION | 0)) == -1)
4539 SWIG_fail;
4540 if (arg1 == NULL) {
4541 PyErr_SetString(PyExc_TypeError,"null reference");
4542 SWIG_fail;
4543 }
4544 {
4545 if (!wxPyCheckForApp()) SWIG_fail;
4546 PyThreadState* __tstate = wxPyBeginAllowThreads();
4547 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4548
4549 wxPyEndAllowThreads(__tstate);
4550 if (PyErr_Occurred()) SWIG_fail;
4551 }
4552 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4553 return resultobj;
4554 fail:
4555 return NULL;
4556 }
4557
4558
4559 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4560 PyObject *resultobj;
4561 wxCursor *arg1 = (wxCursor *) 0 ;
4562 bool result;
4563 PyObject * obj0 = 0 ;
4564 char *kwnames[] = {
4565 (char *) "self", NULL
4566 };
4567
4568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4571 {
4572 PyThreadState* __tstate = wxPyBeginAllowThreads();
4573 result = (bool)(arg1)->Ok();
4574
4575 wxPyEndAllowThreads(__tstate);
4576 if (PyErr_Occurred()) SWIG_fail;
4577 }
4578 {
4579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4580 }
4581 return resultobj;
4582 fail:
4583 return NULL;
4584 }
4585
4586
4587 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4588 PyObject *obj;
4589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4590 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4591 Py_INCREF(obj);
4592 return Py_BuildValue((char *)"");
4593 }
4594 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4595 PyObject *resultobj;
4596 int arg1 = (int) 0 ;
4597 int arg2 = (int) 0 ;
4598 int arg3 = (int) 0 ;
4599 int arg4 = (int) 0 ;
4600 wxRegion *result;
4601 PyObject * obj0 = 0 ;
4602 PyObject * obj1 = 0 ;
4603 PyObject * obj2 = 0 ;
4604 PyObject * obj3 = 0 ;
4605 char *kwnames[] = {
4606 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4607 };
4608
4609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4610 if (obj0) {
4611 arg1 = (int) SWIG_AsInt(obj0);
4612 if (PyErr_Occurred()) SWIG_fail;
4613 }
4614 if (obj1) {
4615 arg2 = (int) SWIG_AsInt(obj1);
4616 if (PyErr_Occurred()) SWIG_fail;
4617 }
4618 if (obj2) {
4619 arg3 = (int) SWIG_AsInt(obj2);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 if (obj3) {
4623 arg4 = (int) SWIG_AsInt(obj3);
4624 if (PyErr_Occurred()) SWIG_fail;
4625 }
4626 {
4627 if (!wxPyCheckForApp()) SWIG_fail;
4628 PyThreadState* __tstate = wxPyBeginAllowThreads();
4629 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4630
4631 wxPyEndAllowThreads(__tstate);
4632 if (PyErr_Occurred()) SWIG_fail;
4633 }
4634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4635 return resultobj;
4636 fail:
4637 return NULL;
4638 }
4639
4640
4641 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4642 PyObject *resultobj;
4643 wxBitmap *arg1 = 0 ;
4644 wxRegion *result;
4645 PyObject * obj0 = 0 ;
4646 char *kwnames[] = {
4647 (char *) "bmp", NULL
4648 };
4649
4650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4652 SWIG_POINTER_EXCEPTION | 0)) == -1)
4653 SWIG_fail;
4654 if (arg1 == NULL) {
4655 PyErr_SetString(PyExc_TypeError,"null reference");
4656 SWIG_fail;
4657 }
4658 {
4659 if (!wxPyCheckForApp()) SWIG_fail;
4660 PyThreadState* __tstate = wxPyBeginAllowThreads();
4661 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4662
4663 wxPyEndAllowThreads(__tstate);
4664 if (PyErr_Occurred()) SWIG_fail;
4665 }
4666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4667 return resultobj;
4668 fail:
4669 return NULL;
4670 }
4671
4672
4673 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4674 PyObject *resultobj;
4675 wxBitmap *arg1 = 0 ;
4676 wxColour *arg2 = 0 ;
4677 int arg3 = (int) 0 ;
4678 wxRegion *result;
4679 wxColour temp2 ;
4680 PyObject * obj0 = 0 ;
4681 PyObject * obj1 = 0 ;
4682 PyObject * obj2 = 0 ;
4683 char *kwnames[] = {
4684 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4685 };
4686
4687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
4688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4689 SWIG_POINTER_EXCEPTION | 0)) == -1)
4690 SWIG_fail;
4691 if (arg1 == NULL) {
4692 PyErr_SetString(PyExc_TypeError,"null reference");
4693 SWIG_fail;
4694 }
4695 {
4696 arg2 = &temp2;
4697 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4698 }
4699 if (obj2) {
4700 arg3 = (int) SWIG_AsInt(obj2);
4701 if (PyErr_Occurred()) SWIG_fail;
4702 }
4703 {
4704 if (!wxPyCheckForApp()) SWIG_fail;
4705 PyThreadState* __tstate = wxPyBeginAllowThreads();
4706 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4707
4708 wxPyEndAllowThreads(__tstate);
4709 if (PyErr_Occurred()) SWIG_fail;
4710 }
4711 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4712 return resultobj;
4713 fail:
4714 return NULL;
4715 }
4716
4717
4718 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4719 PyObject *resultobj;
4720 int arg1 ;
4721 wxPoint *arg2 = (wxPoint *) 0 ;
4722 int arg3 = (int) wxWINDING_RULE ;
4723 wxRegion *result;
4724 PyObject * obj0 = 0 ;
4725 PyObject * obj1 = 0 ;
4726 char *kwnames[] = {
4727 (char *) "points",(char *) "fillStyle", NULL
4728 };
4729
4730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4731 {
4732 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4733 if (arg2 == NULL) SWIG_fail;
4734 }
4735 if (obj1) {
4736 arg3 = (int) SWIG_AsInt(obj1);
4737 if (PyErr_Occurred()) SWIG_fail;
4738 }
4739 {
4740 if (!wxPyCheckForApp()) SWIG_fail;
4741 PyThreadState* __tstate = wxPyBeginAllowThreads();
4742 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4743
4744 wxPyEndAllowThreads(__tstate);
4745 if (PyErr_Occurred()) SWIG_fail;
4746 }
4747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4748 {
4749 if (arg2) delete [] arg2;
4750 }
4751 return resultobj;
4752 fail:
4753 {
4754 if (arg2) delete [] arg2;
4755 }
4756 return NULL;
4757 }
4758
4759
4760 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4761 PyObject *resultobj;
4762 wxRegion *arg1 = (wxRegion *) 0 ;
4763 PyObject * obj0 = 0 ;
4764 char *kwnames[] = {
4765 (char *) "self", NULL
4766 };
4767
4768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4771 {
4772 PyThreadState* __tstate = wxPyBeginAllowThreads();
4773 delete arg1;
4774
4775 wxPyEndAllowThreads(__tstate);
4776 if (PyErr_Occurred()) SWIG_fail;
4777 }
4778 Py_INCREF(Py_None); resultobj = Py_None;
4779 return resultobj;
4780 fail:
4781 return NULL;
4782 }
4783
4784
4785 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4786 PyObject *resultobj;
4787 wxRegion *arg1 = (wxRegion *) 0 ;
4788 PyObject * obj0 = 0 ;
4789 char *kwnames[] = {
4790 (char *) "self", NULL
4791 };
4792
4793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4796 {
4797 PyThreadState* __tstate = wxPyBeginAllowThreads();
4798 (arg1)->Clear();
4799
4800 wxPyEndAllowThreads(__tstate);
4801 if (PyErr_Occurred()) SWIG_fail;
4802 }
4803 Py_INCREF(Py_None); resultobj = Py_None;
4804 return resultobj;
4805 fail:
4806 return NULL;
4807 }
4808
4809
4810 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4811 PyObject *resultobj;
4812 wxRegion *arg1 = (wxRegion *) 0 ;
4813 int arg2 ;
4814 int arg3 ;
4815 int result;
4816 PyObject * obj0 = 0 ;
4817 PyObject * obj1 = 0 ;
4818 PyObject * obj2 = 0 ;
4819 char *kwnames[] = {
4820 (char *) "self",(char *) "x",(char *) "y", NULL
4821 };
4822
4823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4826 arg2 = (int) SWIG_AsInt(obj1);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 arg3 = (int) SWIG_AsInt(obj2);
4829 if (PyErr_Occurred()) SWIG_fail;
4830 {
4831 PyThreadState* __tstate = wxPyBeginAllowThreads();
4832 result = (int)(arg1)->Contains(arg2,arg3);
4833
4834 wxPyEndAllowThreads(__tstate);
4835 if (PyErr_Occurred()) SWIG_fail;
4836 }
4837 resultobj = SWIG_FromInt((int)result);
4838 return resultobj;
4839 fail:
4840 return NULL;
4841 }
4842
4843
4844 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4845 PyObject *resultobj;
4846 wxRegion *arg1 = (wxRegion *) 0 ;
4847 wxPoint *arg2 = 0 ;
4848 int result;
4849 wxPoint temp2 ;
4850 PyObject * obj0 = 0 ;
4851 PyObject * obj1 = 0 ;
4852 char *kwnames[] = {
4853 (char *) "self",(char *) "pt", NULL
4854 };
4855
4856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4859 {
4860 arg2 = &temp2;
4861 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4862 }
4863 {
4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
4865 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4866
4867 wxPyEndAllowThreads(__tstate);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 resultobj = SWIG_FromInt((int)result);
4871 return resultobj;
4872 fail:
4873 return NULL;
4874 }
4875
4876
4877 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4878 PyObject *resultobj;
4879 wxRegion *arg1 = (wxRegion *) 0 ;
4880 wxRect *arg2 = 0 ;
4881 int result;
4882 wxRect temp2 ;
4883 PyObject * obj0 = 0 ;
4884 PyObject * obj1 = 0 ;
4885 char *kwnames[] = {
4886 (char *) "self",(char *) "rect", NULL
4887 };
4888
4889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4892 {
4893 arg2 = &temp2;
4894 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4895 }
4896 {
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4899
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 resultobj = SWIG_FromInt((int)result);
4904 return resultobj;
4905 fail:
4906 return NULL;
4907 }
4908
4909
4910 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4911 PyObject *resultobj;
4912 wxRegion *arg1 = (wxRegion *) 0 ;
4913 int arg2 ;
4914 int arg3 ;
4915 int arg4 ;
4916 int arg5 ;
4917 int result;
4918 PyObject * obj0 = 0 ;
4919 PyObject * obj1 = 0 ;
4920 PyObject * obj2 = 0 ;
4921 PyObject * obj3 = 0 ;
4922 PyObject * obj4 = 0 ;
4923 char *kwnames[] = {
4924 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4925 };
4926
4927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4930 arg2 = (int) SWIG_AsInt(obj1);
4931 if (PyErr_Occurred()) SWIG_fail;
4932 arg3 = (int) SWIG_AsInt(obj2);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 arg4 = (int) SWIG_AsInt(obj3);
4935 if (PyErr_Occurred()) SWIG_fail;
4936 arg5 = (int) SWIG_AsInt(obj4);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 {
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4941
4942 wxPyEndAllowThreads(__tstate);
4943 if (PyErr_Occurred()) SWIG_fail;
4944 }
4945 resultobj = SWIG_FromInt((int)result);
4946 return resultobj;
4947 fail:
4948 return NULL;
4949 }
4950
4951
4952 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4953 PyObject *resultobj;
4954 wxRegion *arg1 = (wxRegion *) 0 ;
4955 wxRect result;
4956 PyObject * obj0 = 0 ;
4957 char *kwnames[] = {
4958 (char *) "self", NULL
4959 };
4960
4961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4964 {
4965 PyThreadState* __tstate = wxPyBeginAllowThreads();
4966 result = (arg1)->GetBox();
4967
4968 wxPyEndAllowThreads(__tstate);
4969 if (PyErr_Occurred()) SWIG_fail;
4970 }
4971 {
4972 wxRect * resultptr;
4973 resultptr = new wxRect((wxRect &) result);
4974 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4975 }
4976 return resultobj;
4977 fail:
4978 return NULL;
4979 }
4980
4981
4982 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4983 PyObject *resultobj;
4984 wxRegion *arg1 = (wxRegion *) 0 ;
4985 int arg2 ;
4986 int arg3 ;
4987 int arg4 ;
4988 int arg5 ;
4989 bool result;
4990 PyObject * obj0 = 0 ;
4991 PyObject * obj1 = 0 ;
4992 PyObject * obj2 = 0 ;
4993 PyObject * obj3 = 0 ;
4994 PyObject * obj4 = 0 ;
4995 char *kwnames[] = {
4996 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4997 };
4998
4999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5002 arg2 = (int) SWIG_AsInt(obj1);
5003 if (PyErr_Occurred()) SWIG_fail;
5004 arg3 = (int) SWIG_AsInt(obj2);
5005 if (PyErr_Occurred()) SWIG_fail;
5006 arg4 = (int) SWIG_AsInt(obj3);
5007 if (PyErr_Occurred()) SWIG_fail;
5008 arg5 = (int) SWIG_AsInt(obj4);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5013
5014 wxPyEndAllowThreads(__tstate);
5015 if (PyErr_Occurred()) SWIG_fail;
5016 }
5017 {
5018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5019 }
5020 return resultobj;
5021 fail:
5022 return NULL;
5023 }
5024
5025
5026 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5027 PyObject *resultobj;
5028 wxRegion *arg1 = (wxRegion *) 0 ;
5029 wxRect *arg2 = 0 ;
5030 bool result;
5031 wxRect temp2 ;
5032 PyObject * obj0 = 0 ;
5033 PyObject * obj1 = 0 ;
5034 char *kwnames[] = {
5035 (char *) "self",(char *) "rect", NULL
5036 };
5037
5038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5041 {
5042 arg2 = &temp2;
5043 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5044 }
5045 {
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5048
5049 wxPyEndAllowThreads(__tstate);
5050 if (PyErr_Occurred()) SWIG_fail;
5051 }
5052 {
5053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5054 }
5055 return resultobj;
5056 fail:
5057 return NULL;
5058 }
5059
5060
5061 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj;
5063 wxRegion *arg1 = (wxRegion *) 0 ;
5064 wxRegion *arg2 = 0 ;
5065 bool result;
5066 PyObject * obj0 = 0 ;
5067 PyObject * obj1 = 0 ;
5068 char *kwnames[] = {
5069 (char *) "self",(char *) "region", NULL
5070 };
5071
5072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5075 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5076 SWIG_POINTER_EXCEPTION | 0)) == -1)
5077 SWIG_fail;
5078 if (arg2 == NULL) {
5079 PyErr_SetString(PyExc_TypeError,"null reference");
5080 SWIG_fail;
5081 }
5082 {
5083 PyThreadState* __tstate = wxPyBeginAllowThreads();
5084 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5085
5086 wxPyEndAllowThreads(__tstate);
5087 if (PyErr_Occurred()) SWIG_fail;
5088 }
5089 {
5090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5091 }
5092 return resultobj;
5093 fail:
5094 return NULL;
5095 }
5096
5097
5098 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5099 PyObject *resultobj;
5100 wxRegion *arg1 = (wxRegion *) 0 ;
5101 bool result;
5102 PyObject * obj0 = 0 ;
5103 char *kwnames[] = {
5104 (char *) "self", NULL
5105 };
5106
5107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5110 {
5111 PyThreadState* __tstate = wxPyBeginAllowThreads();
5112 result = (bool)(arg1)->IsEmpty();
5113
5114 wxPyEndAllowThreads(__tstate);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 }
5117 {
5118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5119 }
5120 return resultobj;
5121 fail:
5122 return NULL;
5123 }
5124
5125
5126 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5127 PyObject *resultobj;
5128 wxRegion *arg1 = (wxRegion *) 0 ;
5129 int arg2 ;
5130 int arg3 ;
5131 int arg4 ;
5132 int arg5 ;
5133 bool result;
5134 PyObject * obj0 = 0 ;
5135 PyObject * obj1 = 0 ;
5136 PyObject * obj2 = 0 ;
5137 PyObject * obj3 = 0 ;
5138 PyObject * obj4 = 0 ;
5139 char *kwnames[] = {
5140 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5141 };
5142
5143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5146 arg2 = (int) SWIG_AsInt(obj1);
5147 if (PyErr_Occurred()) SWIG_fail;
5148 arg3 = (int) SWIG_AsInt(obj2);
5149 if (PyErr_Occurred()) SWIG_fail;
5150 arg4 = (int) SWIG_AsInt(obj3);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 arg5 = (int) SWIG_AsInt(obj4);
5153 if (PyErr_Occurred()) SWIG_fail;
5154 {
5155 PyThreadState* __tstate = wxPyBeginAllowThreads();
5156 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5157
5158 wxPyEndAllowThreads(__tstate);
5159 if (PyErr_Occurred()) SWIG_fail;
5160 }
5161 {
5162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5163 }
5164 return resultobj;
5165 fail:
5166 return NULL;
5167 }
5168
5169
5170 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5171 PyObject *resultobj;
5172 wxRegion *arg1 = (wxRegion *) 0 ;
5173 wxRect *arg2 = 0 ;
5174 bool result;
5175 wxRect temp2 ;
5176 PyObject * obj0 = 0 ;
5177 PyObject * obj1 = 0 ;
5178 char *kwnames[] = {
5179 (char *) "self",(char *) "rect", NULL
5180 };
5181
5182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5185 {
5186 arg2 = &temp2;
5187 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5188 }
5189 {
5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
5191 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5192
5193 wxPyEndAllowThreads(__tstate);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 }
5196 {
5197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5198 }
5199 return resultobj;
5200 fail:
5201 return NULL;
5202 }
5203
5204
5205 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5206 PyObject *resultobj;
5207 wxRegion *arg1 = (wxRegion *) 0 ;
5208 wxRegion *arg2 = 0 ;
5209 bool result;
5210 PyObject * obj0 = 0 ;
5211 PyObject * obj1 = 0 ;
5212 char *kwnames[] = {
5213 (char *) "self",(char *) "region", NULL
5214 };
5215
5216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5219 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5220 SWIG_POINTER_EXCEPTION | 0)) == -1)
5221 SWIG_fail;
5222 if (arg2 == NULL) {
5223 PyErr_SetString(PyExc_TypeError,"null reference");
5224 SWIG_fail;
5225 }
5226 {
5227 PyThreadState* __tstate = wxPyBeginAllowThreads();
5228 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5229
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 }
5233 {
5234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5235 }
5236 return resultobj;
5237 fail:
5238 return NULL;
5239 }
5240
5241
5242 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5243 PyObject *resultobj;
5244 wxRegion *arg1 = (wxRegion *) 0 ;
5245 int arg2 ;
5246 int arg3 ;
5247 int arg4 ;
5248 int arg5 ;
5249 bool result;
5250 PyObject * obj0 = 0 ;
5251 PyObject * obj1 = 0 ;
5252 PyObject * obj2 = 0 ;
5253 PyObject * obj3 = 0 ;
5254 PyObject * obj4 = 0 ;
5255 char *kwnames[] = {
5256 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5257 };
5258
5259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5262 arg2 = (int) SWIG_AsInt(obj1);
5263 if (PyErr_Occurred()) SWIG_fail;
5264 arg3 = (int) SWIG_AsInt(obj2);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 arg4 = (int) SWIG_AsInt(obj3);
5267 if (PyErr_Occurred()) SWIG_fail;
5268 arg5 = (int) SWIG_AsInt(obj4);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 {
5271 PyThreadState* __tstate = wxPyBeginAllowThreads();
5272 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5273
5274 wxPyEndAllowThreads(__tstate);
5275 if (PyErr_Occurred()) SWIG_fail;
5276 }
5277 {
5278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5279 }
5280 return resultobj;
5281 fail:
5282 return NULL;
5283 }
5284
5285
5286 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj;
5288 wxRegion *arg1 = (wxRegion *) 0 ;
5289 wxRect *arg2 = 0 ;
5290 bool result;
5291 wxRect temp2 ;
5292 PyObject * obj0 = 0 ;
5293 PyObject * obj1 = 0 ;
5294 char *kwnames[] = {
5295 (char *) "self",(char *) "rect", NULL
5296 };
5297
5298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5301 {
5302 arg2 = &temp2;
5303 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5304 }
5305 {
5306 PyThreadState* __tstate = wxPyBeginAllowThreads();
5307 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5308
5309 wxPyEndAllowThreads(__tstate);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 }
5312 {
5313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5314 }
5315 return resultobj;
5316 fail:
5317 return NULL;
5318 }
5319
5320
5321 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5322 PyObject *resultobj;
5323 wxRegion *arg1 = (wxRegion *) 0 ;
5324 wxRegion *arg2 = 0 ;
5325 bool result;
5326 PyObject * obj0 = 0 ;
5327 PyObject * obj1 = 0 ;
5328 char *kwnames[] = {
5329 (char *) "self",(char *) "region", NULL
5330 };
5331
5332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5335 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5336 SWIG_POINTER_EXCEPTION | 0)) == -1)
5337 SWIG_fail;
5338 if (arg2 == NULL) {
5339 PyErr_SetString(PyExc_TypeError,"null reference");
5340 SWIG_fail;
5341 }
5342 {
5343 PyThreadState* __tstate = wxPyBeginAllowThreads();
5344 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5345
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 }
5349 {
5350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5351 }
5352 return resultobj;
5353 fail:
5354 return NULL;
5355 }
5356
5357
5358 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5359 PyObject *resultobj;
5360 wxRegion *arg1 = (wxRegion *) 0 ;
5361 int arg2 ;
5362 int arg3 ;
5363 int arg4 ;
5364 int arg5 ;
5365 bool result;
5366 PyObject * obj0 = 0 ;
5367 PyObject * obj1 = 0 ;
5368 PyObject * obj2 = 0 ;
5369 PyObject * obj3 = 0 ;
5370 PyObject * obj4 = 0 ;
5371 char *kwnames[] = {
5372 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5373 };
5374
5375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5378 arg2 = (int) SWIG_AsInt(obj1);
5379 if (PyErr_Occurred()) SWIG_fail;
5380 arg3 = (int) SWIG_AsInt(obj2);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 arg4 = (int) SWIG_AsInt(obj3);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 arg5 = (int) SWIG_AsInt(obj4);
5385 if (PyErr_Occurred()) SWIG_fail;
5386 {
5387 PyThreadState* __tstate = wxPyBeginAllowThreads();
5388 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5389
5390 wxPyEndAllowThreads(__tstate);
5391 if (PyErr_Occurred()) SWIG_fail;
5392 }
5393 {
5394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5395 }
5396 return resultobj;
5397 fail:
5398 return NULL;
5399 }
5400
5401
5402 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5403 PyObject *resultobj;
5404 wxRegion *arg1 = (wxRegion *) 0 ;
5405 wxRect *arg2 = 0 ;
5406 bool result;
5407 wxRect temp2 ;
5408 PyObject * obj0 = 0 ;
5409 PyObject * obj1 = 0 ;
5410 char *kwnames[] = {
5411 (char *) "self",(char *) "rect", NULL
5412 };
5413
5414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5417 {
5418 arg2 = &temp2;
5419 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5420 }
5421 {
5422 PyThreadState* __tstate = wxPyBeginAllowThreads();
5423 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5424
5425 wxPyEndAllowThreads(__tstate);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 {
5429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5430 }
5431 return resultobj;
5432 fail:
5433 return NULL;
5434 }
5435
5436
5437 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5438 PyObject *resultobj;
5439 wxRegion *arg1 = (wxRegion *) 0 ;
5440 wxRegion *arg2 = 0 ;
5441 bool result;
5442 PyObject * obj0 = 0 ;
5443 PyObject * obj1 = 0 ;
5444 char *kwnames[] = {
5445 (char *) "self",(char *) "region", NULL
5446 };
5447
5448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5451 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5452 SWIG_POINTER_EXCEPTION | 0)) == -1)
5453 SWIG_fail;
5454 if (arg2 == NULL) {
5455 PyErr_SetString(PyExc_TypeError,"null reference");
5456 SWIG_fail;
5457 }
5458 {
5459 PyThreadState* __tstate = wxPyBeginAllowThreads();
5460 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5461
5462 wxPyEndAllowThreads(__tstate);
5463 if (PyErr_Occurred()) SWIG_fail;
5464 }
5465 {
5466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5467 }
5468 return resultobj;
5469 fail:
5470 return NULL;
5471 }
5472
5473
5474 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5475 PyObject *resultobj;
5476 wxRegion *arg1 = (wxRegion *) 0 ;
5477 SwigValueWrapper< wxBitmap > result;
5478 PyObject * obj0 = 0 ;
5479 char *kwnames[] = {
5480 (char *) "self", NULL
5481 };
5482
5483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5486 {
5487 PyThreadState* __tstate = wxPyBeginAllowThreads();
5488 result = (arg1)->ConvertToBitmap();
5489
5490 wxPyEndAllowThreads(__tstate);
5491 if (PyErr_Occurred()) SWIG_fail;
5492 }
5493 {
5494 wxBitmap * resultptr;
5495 resultptr = new wxBitmap((wxBitmap &) result);
5496 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5497 }
5498 return resultobj;
5499 fail:
5500 return NULL;
5501 }
5502
5503
5504 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5505 PyObject *resultobj;
5506 wxRegion *arg1 = (wxRegion *) 0 ;
5507 wxBitmap *arg2 = 0 ;
5508 bool result;
5509 PyObject * obj0 = 0 ;
5510 PyObject * obj1 = 0 ;
5511 char *kwnames[] = {
5512 (char *) "self",(char *) "bmp", NULL
5513 };
5514
5515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5518 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5519 SWIG_POINTER_EXCEPTION | 0)) == -1)
5520 SWIG_fail;
5521 if (arg2 == NULL) {
5522 PyErr_SetString(PyExc_TypeError,"null reference");
5523 SWIG_fail;
5524 }
5525 {
5526 PyThreadState* __tstate = wxPyBeginAllowThreads();
5527 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5528
5529 wxPyEndAllowThreads(__tstate);
5530 if (PyErr_Occurred()) SWIG_fail;
5531 }
5532 {
5533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5534 }
5535 return resultobj;
5536 fail:
5537 return NULL;
5538 }
5539
5540
5541 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5542 PyObject *resultobj;
5543 wxRegion *arg1 = (wxRegion *) 0 ;
5544 wxBitmap *arg2 = 0 ;
5545 wxColour *arg3 = 0 ;
5546 int arg4 = (int) 0 ;
5547 bool result;
5548 wxColour temp3 ;
5549 PyObject * obj0 = 0 ;
5550 PyObject * obj1 = 0 ;
5551 PyObject * obj2 = 0 ;
5552 PyObject * obj3 = 0 ;
5553 char *kwnames[] = {
5554 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5555 };
5556
5557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5560 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5561 SWIG_POINTER_EXCEPTION | 0)) == -1)
5562 SWIG_fail;
5563 if (arg2 == NULL) {
5564 PyErr_SetString(PyExc_TypeError,"null reference");
5565 SWIG_fail;
5566 }
5567 {
5568 arg3 = &temp3;
5569 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5570 }
5571 if (obj3) {
5572 arg4 = (int) SWIG_AsInt(obj3);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 }
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5578
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 {
5583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5584 }
5585 return resultobj;
5586 fail:
5587 return NULL;
5588 }
5589
5590
5591 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5592 PyObject *obj;
5593 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5594 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5595 Py_INCREF(obj);
5596 return Py_BuildValue((char *)"");
5597 }
5598 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5599 PyObject *resultobj;
5600 wxRegion *arg1 = 0 ;
5601 wxRegionIterator *result;
5602 PyObject * obj0 = 0 ;
5603 char *kwnames[] = {
5604 (char *) "region", NULL
5605 };
5606
5607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5609 SWIG_POINTER_EXCEPTION | 0)) == -1)
5610 SWIG_fail;
5611 if (arg1 == NULL) {
5612 PyErr_SetString(PyExc_TypeError,"null reference");
5613 SWIG_fail;
5614 }
5615 {
5616 if (!wxPyCheckForApp()) SWIG_fail;
5617 PyThreadState* __tstate = wxPyBeginAllowThreads();
5618 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5619
5620 wxPyEndAllowThreads(__tstate);
5621 if (PyErr_Occurred()) SWIG_fail;
5622 }
5623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5624 return resultobj;
5625 fail:
5626 return NULL;
5627 }
5628
5629
5630 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5631 PyObject *resultobj;
5632 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5633 PyObject * obj0 = 0 ;
5634 char *kwnames[] = {
5635 (char *) "self", NULL
5636 };
5637
5638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5641 {
5642 PyThreadState* __tstate = wxPyBeginAllowThreads();
5643 delete arg1;
5644
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 Py_INCREF(Py_None); resultobj = Py_None;
5649 return resultobj;
5650 fail:
5651 return NULL;
5652 }
5653
5654
5655 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5656 PyObject *resultobj;
5657 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5658 int result;
5659 PyObject * obj0 = 0 ;
5660 char *kwnames[] = {
5661 (char *) "self", NULL
5662 };
5663
5664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5667 {
5668 PyThreadState* __tstate = wxPyBeginAllowThreads();
5669 result = (int)(arg1)->GetX();
5670
5671 wxPyEndAllowThreads(__tstate);
5672 if (PyErr_Occurred()) SWIG_fail;
5673 }
5674 resultobj = SWIG_FromInt((int)result);
5675 return resultobj;
5676 fail:
5677 return NULL;
5678 }
5679
5680
5681 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5682 PyObject *resultobj;
5683 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5684 int result;
5685 PyObject * obj0 = 0 ;
5686 char *kwnames[] = {
5687 (char *) "self", NULL
5688 };
5689
5690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = (int)(arg1)->GetY();
5696
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 resultobj = SWIG_FromInt((int)result);
5701 return resultobj;
5702 fail:
5703 return NULL;
5704 }
5705
5706
5707 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5708 PyObject *resultobj;
5709 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5710 int result;
5711 PyObject * obj0 = 0 ;
5712 char *kwnames[] = {
5713 (char *) "self", NULL
5714 };
5715
5716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5719 {
5720 PyThreadState* __tstate = wxPyBeginAllowThreads();
5721 result = (int)(arg1)->GetW();
5722
5723 wxPyEndAllowThreads(__tstate);
5724 if (PyErr_Occurred()) SWIG_fail;
5725 }
5726 resultobj = SWIG_FromInt((int)result);
5727 return resultobj;
5728 fail:
5729 return NULL;
5730 }
5731
5732
5733 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5734 PyObject *resultobj;
5735 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5736 int result;
5737 PyObject * obj0 = 0 ;
5738 char *kwnames[] = {
5739 (char *) "self", NULL
5740 };
5741
5742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 result = (int)(arg1)->GetWidth();
5748
5749 wxPyEndAllowThreads(__tstate);
5750 if (PyErr_Occurred()) SWIG_fail;
5751 }
5752 resultobj = SWIG_FromInt((int)result);
5753 return resultobj;
5754 fail:
5755 return NULL;
5756 }
5757
5758
5759 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5760 PyObject *resultobj;
5761 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5762 int result;
5763 PyObject * obj0 = 0 ;
5764 char *kwnames[] = {
5765 (char *) "self", NULL
5766 };
5767
5768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5771 {
5772 PyThreadState* __tstate = wxPyBeginAllowThreads();
5773 result = (int)(arg1)->GetH();
5774
5775 wxPyEndAllowThreads(__tstate);
5776 if (PyErr_Occurred()) SWIG_fail;
5777 }
5778 resultobj = SWIG_FromInt((int)result);
5779 return resultobj;
5780 fail:
5781 return NULL;
5782 }
5783
5784
5785 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj;
5787 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5788 int result;
5789 PyObject * obj0 = 0 ;
5790 char *kwnames[] = {
5791 (char *) "self", NULL
5792 };
5793
5794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5797 {
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 result = (int)(arg1)->GetHeight();
5800
5801 wxPyEndAllowThreads(__tstate);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
5804 resultobj = SWIG_FromInt((int)result);
5805 return resultobj;
5806 fail:
5807 return NULL;
5808 }
5809
5810
5811 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5812 PyObject *resultobj;
5813 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5814 wxRect result;
5815 PyObject * obj0 = 0 ;
5816 char *kwnames[] = {
5817 (char *) "self", NULL
5818 };
5819
5820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5823 {
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 result = (arg1)->GetRect();
5826
5827 wxPyEndAllowThreads(__tstate);
5828 if (PyErr_Occurred()) SWIG_fail;
5829 }
5830 {
5831 wxRect * resultptr;
5832 resultptr = new wxRect((wxRect &) result);
5833 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5834 }
5835 return resultobj;
5836 fail:
5837 return NULL;
5838 }
5839
5840
5841 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5842 PyObject *resultobj;
5843 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5844 bool result;
5845 PyObject * obj0 = 0 ;
5846 char *kwnames[] = {
5847 (char *) "self", NULL
5848 };
5849
5850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 result = (bool)(arg1)->HaveRects();
5856
5857 wxPyEndAllowThreads(__tstate);
5858 if (PyErr_Occurred()) SWIG_fail;
5859 }
5860 {
5861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5862 }
5863 return resultobj;
5864 fail:
5865 return NULL;
5866 }
5867
5868
5869 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5870 PyObject *resultobj;
5871 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5872 PyObject * obj0 = 0 ;
5873 char *kwnames[] = {
5874 (char *) "self", NULL
5875 };
5876
5877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 (arg1)->Reset();
5883
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 Py_INCREF(Py_None); resultobj = Py_None;
5888 return resultobj;
5889 fail:
5890 return NULL;
5891 }
5892
5893
5894 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj;
5896 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5897 PyObject * obj0 = 0 ;
5898 char *kwnames[] = {
5899 (char *) "self", NULL
5900 };
5901
5902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5905 {
5906 PyThreadState* __tstate = wxPyBeginAllowThreads();
5907 wxRegionIterator_Next(arg1);
5908
5909 wxPyEndAllowThreads(__tstate);
5910 if (PyErr_Occurred()) SWIG_fail;
5911 }
5912 Py_INCREF(Py_None); resultobj = Py_None;
5913 return resultobj;
5914 fail:
5915 return NULL;
5916 }
5917
5918
5919 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5920 PyObject *resultobj;
5921 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5922 bool result;
5923 PyObject * obj0 = 0 ;
5924 char *kwnames[] = {
5925 (char *) "self", NULL
5926 };
5927
5928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5931 {
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 result = (bool)wxRegionIterator___nonzero__(arg1);
5934
5935 wxPyEndAllowThreads(__tstate);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 {
5939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5940 }
5941 return resultobj;
5942 fail:
5943 return NULL;
5944 }
5945
5946
5947 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5948 PyObject *obj;
5949 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5950 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5951 Py_INCREF(obj);
5952 return Py_BuildValue((char *)"");
5953 }
5954 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5955 PyObject *resultobj;
5956 wxNativeFontInfo *result;
5957 char *kwnames[] = {
5958 NULL
5959 };
5960
5961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5962 {
5963 PyThreadState* __tstate = wxPyBeginAllowThreads();
5964 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5965
5966 wxPyEndAllowThreads(__tstate);
5967 if (PyErr_Occurred()) SWIG_fail;
5968 }
5969 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5970 return resultobj;
5971 fail:
5972 return NULL;
5973 }
5974
5975
5976 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5977 PyObject *resultobj;
5978 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5979 PyObject * obj0 = 0 ;
5980 char *kwnames[] = {
5981 (char *) "self", NULL
5982 };
5983
5984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5987 {
5988 PyThreadState* __tstate = wxPyBeginAllowThreads();
5989 delete arg1;
5990
5991 wxPyEndAllowThreads(__tstate);
5992 if (PyErr_Occurred()) SWIG_fail;
5993 }
5994 Py_INCREF(Py_None); resultobj = Py_None;
5995 return resultobj;
5996 fail:
5997 return NULL;
5998 }
5999
6000
6001 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6002 PyObject *resultobj;
6003 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6004 PyObject * obj0 = 0 ;
6005 char *kwnames[] = {
6006 (char *) "self", NULL
6007 };
6008
6009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 (arg1)->Init();
6015
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) SWIG_fail;
6018 }
6019 Py_INCREF(Py_None); resultobj = Py_None;
6020 return resultobj;
6021 fail:
6022 return NULL;
6023 }
6024
6025
6026 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6027 PyObject *resultobj;
6028 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6029 wxFont *arg2 = 0 ;
6030 PyObject * obj0 = 0 ;
6031 PyObject * obj1 = 0 ;
6032 char *kwnames[] = {
6033 (char *) "self",(char *) "font", NULL
6034 };
6035
6036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6039 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6040 SWIG_POINTER_EXCEPTION | 0)) == -1)
6041 SWIG_fail;
6042 if (arg2 == NULL) {
6043 PyErr_SetString(PyExc_TypeError,"null reference");
6044 SWIG_fail;
6045 }
6046 {
6047 PyThreadState* __tstate = wxPyBeginAllowThreads();
6048 (arg1)->InitFromFont((wxFont const &)*arg2);
6049
6050 wxPyEndAllowThreads(__tstate);
6051 if (PyErr_Occurred()) SWIG_fail;
6052 }
6053 Py_INCREF(Py_None); resultobj = Py_None;
6054 return resultobj;
6055 fail:
6056 return NULL;
6057 }
6058
6059
6060 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6061 PyObject *resultobj;
6062 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6063 int result;
6064 PyObject * obj0 = 0 ;
6065 char *kwnames[] = {
6066 (char *) "self", NULL
6067 };
6068
6069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6072 {
6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
6074 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6075
6076 wxPyEndAllowThreads(__tstate);
6077 if (PyErr_Occurred()) SWIG_fail;
6078 }
6079 resultobj = SWIG_FromInt((int)result);
6080 return resultobj;
6081 fail:
6082 return NULL;
6083 }
6084
6085
6086 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6087 PyObject *resultobj;
6088 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6089 int result;
6090 PyObject * obj0 = 0 ;
6091 char *kwnames[] = {
6092 (char *) "self", NULL
6093 };
6094
6095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6098 {
6099 PyThreadState* __tstate = wxPyBeginAllowThreads();
6100 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6101
6102 wxPyEndAllowThreads(__tstate);
6103 if (PyErr_Occurred()) SWIG_fail;
6104 }
6105 resultobj = SWIG_FromInt((int)result);
6106 return resultobj;
6107 fail:
6108 return NULL;
6109 }
6110
6111
6112 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6113 PyObject *resultobj;
6114 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6115 int result;
6116 PyObject * obj0 = 0 ;
6117 char *kwnames[] = {
6118 (char *) "self", NULL
6119 };
6120
6121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6124 {
6125 PyThreadState* __tstate = wxPyBeginAllowThreads();
6126 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6127
6128 wxPyEndAllowThreads(__tstate);
6129 if (PyErr_Occurred()) SWIG_fail;
6130 }
6131 resultobj = SWIG_FromInt((int)result);
6132 return resultobj;
6133 fail:
6134 return NULL;
6135 }
6136
6137
6138 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj;
6140 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6141 bool result;
6142 PyObject * obj0 = 0 ;
6143 char *kwnames[] = {
6144 (char *) "self", NULL
6145 };
6146
6147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6150 {
6151 PyThreadState* __tstate = wxPyBeginAllowThreads();
6152 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6153
6154 wxPyEndAllowThreads(__tstate);
6155 if (PyErr_Occurred()) SWIG_fail;
6156 }
6157 {
6158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6159 }
6160 return resultobj;
6161 fail:
6162 return NULL;
6163 }
6164
6165
6166 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6167 PyObject *resultobj;
6168 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6169 wxString result;
6170 PyObject * obj0 = 0 ;
6171 char *kwnames[] = {
6172 (char *) "self", NULL
6173 };
6174
6175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6181
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 {
6186 #if wxUSE_UNICODE
6187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6188 #else
6189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6190 #endif
6191 }
6192 return resultobj;
6193 fail:
6194 return NULL;
6195 }
6196
6197
6198 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6199 PyObject *resultobj;
6200 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6201 int result;
6202 PyObject * obj0 = 0 ;
6203 char *kwnames[] = {
6204 (char *) "self", NULL
6205 };
6206
6207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6210 {
6211 PyThreadState* __tstate = wxPyBeginAllowThreads();
6212 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6213
6214 wxPyEndAllowThreads(__tstate);
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 resultobj = SWIG_FromInt((int)result);
6218 return resultobj;
6219 fail:
6220 return NULL;
6221 }
6222
6223
6224 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6225 PyObject *resultobj;
6226 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6227 int result;
6228 PyObject * obj0 = 0 ;
6229 char *kwnames[] = {
6230 (char *) "self", NULL
6231 };
6232
6233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6236 {
6237 PyThreadState* __tstate = wxPyBeginAllowThreads();
6238 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6239
6240 wxPyEndAllowThreads(__tstate);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 resultobj = SWIG_FromInt((int)result);
6244 return resultobj;
6245 fail:
6246 return NULL;
6247 }
6248
6249
6250 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6251 PyObject *resultobj;
6252 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6253 int arg2 ;
6254 PyObject * obj0 = 0 ;
6255 PyObject * obj1 = 0 ;
6256 char *kwnames[] = {
6257 (char *) "self",(char *) "pointsize", NULL
6258 };
6259
6260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6263 arg2 = (int) SWIG_AsInt(obj1);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 {
6266 PyThreadState* __tstate = wxPyBeginAllowThreads();
6267 (arg1)->SetPointSize(arg2);
6268
6269 wxPyEndAllowThreads(__tstate);
6270 if (PyErr_Occurred()) SWIG_fail;
6271 }
6272 Py_INCREF(Py_None); resultobj = Py_None;
6273 return resultobj;
6274 fail:
6275 return NULL;
6276 }
6277
6278
6279 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6280 PyObject *resultobj;
6281 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6282 int arg2 ;
6283 PyObject * obj0 = 0 ;
6284 PyObject * obj1 = 0 ;
6285 char *kwnames[] = {
6286 (char *) "self",(char *) "style", NULL
6287 };
6288
6289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6292 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6293 if (PyErr_Occurred()) SWIG_fail;
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 (arg1)->SetStyle((wxFontStyle )arg2);
6297
6298 wxPyEndAllowThreads(__tstate);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 Py_INCREF(Py_None); resultobj = Py_None;
6302 return resultobj;
6303 fail:
6304 return NULL;
6305 }
6306
6307
6308 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj;
6310 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6311 int arg2 ;
6312 PyObject * obj0 = 0 ;
6313 PyObject * obj1 = 0 ;
6314 char *kwnames[] = {
6315 (char *) "self",(char *) "weight", NULL
6316 };
6317
6318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6321 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 {
6324 PyThreadState* __tstate = wxPyBeginAllowThreads();
6325 (arg1)->SetWeight((wxFontWeight )arg2);
6326
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 Py_INCREF(Py_None); resultobj = Py_None;
6331 return resultobj;
6332 fail:
6333 return NULL;
6334 }
6335
6336
6337 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6338 PyObject *resultobj;
6339 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6340 bool arg2 ;
6341 PyObject * obj0 = 0 ;
6342 PyObject * obj1 = 0 ;
6343 char *kwnames[] = {
6344 (char *) "self",(char *) "underlined", NULL
6345 };
6346
6347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6350 arg2 = (bool) SWIG_AsBool(obj1);
6351 if (PyErr_Occurred()) SWIG_fail;
6352 {
6353 PyThreadState* __tstate = wxPyBeginAllowThreads();
6354 (arg1)->SetUnderlined(arg2);
6355
6356 wxPyEndAllowThreads(__tstate);
6357 if (PyErr_Occurred()) SWIG_fail;
6358 }
6359 Py_INCREF(Py_None); resultobj = Py_None;
6360 return resultobj;
6361 fail:
6362 return NULL;
6363 }
6364
6365
6366 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6367 PyObject *resultobj;
6368 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6369 wxString arg2 ;
6370 PyObject * obj0 = 0 ;
6371 PyObject * obj1 = 0 ;
6372 char *kwnames[] = {
6373 (char *) "self",(char *) "facename", NULL
6374 };
6375
6376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6379 {
6380 wxString* sptr = wxString_in_helper(obj1);
6381 if (sptr == NULL) SWIG_fail;
6382 arg2 = *sptr;
6383 delete sptr;
6384 }
6385 {
6386 PyThreadState* __tstate = wxPyBeginAllowThreads();
6387 (arg1)->SetFaceName(arg2);
6388
6389 wxPyEndAllowThreads(__tstate);
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 Py_INCREF(Py_None); resultobj = Py_None;
6393 return resultobj;
6394 fail:
6395 return NULL;
6396 }
6397
6398
6399 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6400 PyObject *resultobj;
6401 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6402 int arg2 ;
6403 PyObject * obj0 = 0 ;
6404 PyObject * obj1 = 0 ;
6405 char *kwnames[] = {
6406 (char *) "self",(char *) "family", NULL
6407 };
6408
6409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6412 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6413 if (PyErr_Occurred()) SWIG_fail;
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->SetFamily((wxFontFamily )arg2);
6417
6418 wxPyEndAllowThreads(__tstate);
6419 if (PyErr_Occurred()) SWIG_fail;
6420 }
6421 Py_INCREF(Py_None); resultobj = Py_None;
6422 return resultobj;
6423 fail:
6424 return NULL;
6425 }
6426
6427
6428 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6429 PyObject *resultobj;
6430 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6431 int arg2 ;
6432 PyObject * obj0 = 0 ;
6433 PyObject * obj1 = 0 ;
6434 char *kwnames[] = {
6435 (char *) "self",(char *) "encoding", NULL
6436 };
6437
6438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6441 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 {
6444 PyThreadState* __tstate = wxPyBeginAllowThreads();
6445 (arg1)->SetEncoding((wxFontEncoding )arg2);
6446
6447 wxPyEndAllowThreads(__tstate);
6448 if (PyErr_Occurred()) SWIG_fail;
6449 }
6450 Py_INCREF(Py_None); resultobj = Py_None;
6451 return resultobj;
6452 fail:
6453 return NULL;
6454 }
6455
6456
6457 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6458 PyObject *resultobj;
6459 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6460 wxString *arg2 = 0 ;
6461 bool result;
6462 bool temp2 = False ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 char *kwnames[] = {
6466 (char *) "self",(char *) "s", NULL
6467 };
6468
6469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6472 {
6473 arg2 = wxString_in_helper(obj1);
6474 if (arg2 == NULL) SWIG_fail;
6475 temp2 = True;
6476 }
6477 {
6478 PyThreadState* __tstate = wxPyBeginAllowThreads();
6479 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6480
6481 wxPyEndAllowThreads(__tstate);
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 {
6485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6486 }
6487 {
6488 if (temp2)
6489 delete arg2;
6490 }
6491 return resultobj;
6492 fail:
6493 {
6494 if (temp2)
6495 delete arg2;
6496 }
6497 return NULL;
6498 }
6499
6500
6501 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6502 PyObject *resultobj;
6503 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6504 wxString result;
6505 PyObject * obj0 = 0 ;
6506 char *kwnames[] = {
6507 (char *) "self", NULL
6508 };
6509
6510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6513 {
6514 PyThreadState* __tstate = wxPyBeginAllowThreads();
6515 result = ((wxNativeFontInfo const *)arg1)->ToString();
6516
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 {
6521 #if wxUSE_UNICODE
6522 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6523 #else
6524 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6525 #endif
6526 }
6527 return resultobj;
6528 fail:
6529 return NULL;
6530 }
6531
6532
6533 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6534 PyObject *resultobj;
6535 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6536 wxString result;
6537 PyObject * obj0 = 0 ;
6538 char *kwnames[] = {
6539 (char *) "self", NULL
6540 };
6541
6542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 result = wxNativeFontInfo___str__(arg1);
6548
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 {
6553 #if wxUSE_UNICODE
6554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6555 #else
6556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6557 #endif
6558 }
6559 return resultobj;
6560 fail:
6561 return NULL;
6562 }
6563
6564
6565 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6566 PyObject *resultobj;
6567 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6568 wxString *arg2 = 0 ;
6569 bool result;
6570 bool temp2 = False ;
6571 PyObject * obj0 = 0 ;
6572 PyObject * obj1 = 0 ;
6573 char *kwnames[] = {
6574 (char *) "self",(char *) "s", NULL
6575 };
6576
6577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6580 {
6581 arg2 = wxString_in_helper(obj1);
6582 if (arg2 == NULL) SWIG_fail;
6583 temp2 = True;
6584 }
6585 {
6586 PyThreadState* __tstate = wxPyBeginAllowThreads();
6587 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6588
6589 wxPyEndAllowThreads(__tstate);
6590 if (PyErr_Occurred()) SWIG_fail;
6591 }
6592 {
6593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6594 }
6595 {
6596 if (temp2)
6597 delete arg2;
6598 }
6599 return resultobj;
6600 fail:
6601 {
6602 if (temp2)
6603 delete arg2;
6604 }
6605 return NULL;
6606 }
6607
6608
6609 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6610 PyObject *resultobj;
6611 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6612 wxString result;
6613 PyObject * obj0 = 0 ;
6614 char *kwnames[] = {
6615 (char *) "self", NULL
6616 };
6617
6618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6621 {
6622 PyThreadState* __tstate = wxPyBeginAllowThreads();
6623 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6624
6625 wxPyEndAllowThreads(__tstate);
6626 if (PyErr_Occurred()) SWIG_fail;
6627 }
6628 {
6629 #if wxUSE_UNICODE
6630 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6631 #else
6632 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6633 #endif
6634 }
6635 return resultobj;
6636 fail:
6637 return NULL;
6638 }
6639
6640
6641 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6642 PyObject *obj;
6643 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6644 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6645 Py_INCREF(obj);
6646 return Py_BuildValue((char *)"");
6647 }
6648 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6649 PyObject *resultobj;
6650 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6651 wxString *arg2 = (wxString *) 0 ;
6652 bool temp2 = False ;
6653 PyObject * obj0 = 0 ;
6654 PyObject * obj1 = 0 ;
6655 char *kwnames[] = {
6656 (char *) "self",(char *) "facename", NULL
6657 };
6658
6659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6662 {
6663 arg2 = wxString_in_helper(obj1);
6664 if (arg2 == NULL) SWIG_fail;
6665 temp2 = True;
6666 }
6667 if (arg1) (arg1)->facename = *arg2;
6668
6669 Py_INCREF(Py_None); resultobj = Py_None;
6670 {
6671 if (temp2)
6672 delete arg2;
6673 }
6674 return resultobj;
6675 fail:
6676 {
6677 if (temp2)
6678 delete arg2;
6679 }
6680 return NULL;
6681 }
6682
6683
6684 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6685 PyObject *resultobj;
6686 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6687 wxString *result;
6688 PyObject * obj0 = 0 ;
6689 char *kwnames[] = {
6690 (char *) "self", NULL
6691 };
6692
6693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6696 result = (wxString *)& ((arg1)->facename);
6697
6698 {
6699 #if wxUSE_UNICODE
6700 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6701 #else
6702 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6703 #endif
6704 }
6705 return resultobj;
6706 fail:
6707 return NULL;
6708 }
6709
6710
6711 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6712 PyObject *resultobj;
6713 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6714 int arg2 ;
6715 PyObject * obj0 = 0 ;
6716 PyObject * obj1 = 0 ;
6717 char *kwnames[] = {
6718 (char *) "self",(char *) "encoding", NULL
6719 };
6720
6721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6724 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6725 if (PyErr_Occurred()) SWIG_fail;
6726 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6727
6728 Py_INCREF(Py_None); resultobj = Py_None;
6729 return resultobj;
6730 fail:
6731 return NULL;
6732 }
6733
6734
6735 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj;
6737 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6738 int result;
6739 PyObject * obj0 = 0 ;
6740 char *kwnames[] = {
6741 (char *) "self", NULL
6742 };
6743
6744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6747 result = (int) ((arg1)->encoding);
6748
6749 resultobj = SWIG_FromInt((int)result);
6750 return resultobj;
6751 fail:
6752 return NULL;
6753 }
6754
6755
6756 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6757 PyObject *resultobj;
6758 wxNativeEncodingInfo *result;
6759 char *kwnames[] = {
6760 NULL
6761 };
6762
6763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6764 {
6765 PyThreadState* __tstate = wxPyBeginAllowThreads();
6766 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6767
6768 wxPyEndAllowThreads(__tstate);
6769 if (PyErr_Occurred()) SWIG_fail;
6770 }
6771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6772 return resultobj;
6773 fail:
6774 return NULL;
6775 }
6776
6777
6778 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6779 PyObject *resultobj;
6780 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6781 PyObject * obj0 = 0 ;
6782 char *kwnames[] = {
6783 (char *) "self", NULL
6784 };
6785
6786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6789 {
6790 PyThreadState* __tstate = wxPyBeginAllowThreads();
6791 delete arg1;
6792
6793 wxPyEndAllowThreads(__tstate);
6794 if (PyErr_Occurred()) SWIG_fail;
6795 }
6796 Py_INCREF(Py_None); resultobj = Py_None;
6797 return resultobj;
6798 fail:
6799 return NULL;
6800 }
6801
6802
6803 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6804 PyObject *resultobj;
6805 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6806 wxString *arg2 = 0 ;
6807 bool result;
6808 bool temp2 = False ;
6809 PyObject * obj0 = 0 ;
6810 PyObject * obj1 = 0 ;
6811 char *kwnames[] = {
6812 (char *) "self",(char *) "s", NULL
6813 };
6814
6815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6818 {
6819 arg2 = wxString_in_helper(obj1);
6820 if (arg2 == NULL) SWIG_fail;
6821 temp2 = True;
6822 }
6823 {
6824 PyThreadState* __tstate = wxPyBeginAllowThreads();
6825 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6826
6827 wxPyEndAllowThreads(__tstate);
6828 if (PyErr_Occurred()) SWIG_fail;
6829 }
6830 {
6831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6832 }
6833 {
6834 if (temp2)
6835 delete arg2;
6836 }
6837 return resultobj;
6838 fail:
6839 {
6840 if (temp2)
6841 delete arg2;
6842 }
6843 return NULL;
6844 }
6845
6846
6847 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6848 PyObject *resultobj;
6849 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6850 wxString result;
6851 PyObject * obj0 = 0 ;
6852 char *kwnames[] = {
6853 (char *) "self", NULL
6854 };
6855
6856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6859 {
6860 PyThreadState* __tstate = wxPyBeginAllowThreads();
6861 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6862
6863 wxPyEndAllowThreads(__tstate);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
6866 {
6867 #if wxUSE_UNICODE
6868 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6869 #else
6870 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6871 #endif
6872 }
6873 return resultobj;
6874 fail:
6875 return NULL;
6876 }
6877
6878
6879 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6880 PyObject *obj;
6881 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6882 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6883 Py_INCREF(obj);
6884 return Py_BuildValue((char *)"");
6885 }
6886 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6887 PyObject *resultobj;
6888 int arg1 ;
6889 wxNativeEncodingInfo *result;
6890 PyObject * obj0 = 0 ;
6891 char *kwnames[] = {
6892 (char *) "encoding", NULL
6893 };
6894
6895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6896 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6897 if (PyErr_Occurred()) SWIG_fail;
6898 {
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6901
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6906 return resultobj;
6907 fail:
6908 return NULL;
6909 }
6910
6911
6912 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6913 PyObject *resultobj;
6914 wxNativeEncodingInfo *arg1 = 0 ;
6915 bool result;
6916 PyObject * obj0 = 0 ;
6917 char *kwnames[] = {
6918 (char *) "info", NULL
6919 };
6920
6921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6923 SWIG_POINTER_EXCEPTION | 0)) == -1)
6924 SWIG_fail;
6925 if (arg1 == NULL) {
6926 PyErr_SetString(PyExc_TypeError,"null reference");
6927 SWIG_fail;
6928 }
6929 {
6930 PyThreadState* __tstate = wxPyBeginAllowThreads();
6931 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6932
6933 wxPyEndAllowThreads(__tstate);
6934 if (PyErr_Occurred()) SWIG_fail;
6935 }
6936 {
6937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6938 }
6939 return resultobj;
6940 fail:
6941 return NULL;
6942 }
6943
6944
6945 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6946 PyObject *resultobj;
6947 wxFontMapper *result;
6948 char *kwnames[] = {
6949 NULL
6950 };
6951
6952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6953 {
6954 PyThreadState* __tstate = wxPyBeginAllowThreads();
6955 result = (wxFontMapper *)new wxFontMapper();
6956
6957 wxPyEndAllowThreads(__tstate);
6958 if (PyErr_Occurred()) SWIG_fail;
6959 }
6960 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6961 return resultobj;
6962 fail:
6963 return NULL;
6964 }
6965
6966
6967 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6968 PyObject *resultobj;
6969 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6970 PyObject * obj0 = 0 ;
6971 char *kwnames[] = {
6972 (char *) "self", NULL
6973 };
6974
6975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6978 {
6979 PyThreadState* __tstate = wxPyBeginAllowThreads();
6980 delete arg1;
6981
6982 wxPyEndAllowThreads(__tstate);
6983 if (PyErr_Occurred()) SWIG_fail;
6984 }
6985 Py_INCREF(Py_None); resultobj = Py_None;
6986 return resultobj;
6987 fail:
6988 return NULL;
6989 }
6990
6991
6992 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6993 PyObject *resultobj;
6994 wxFontMapper *result;
6995 char *kwnames[] = {
6996 NULL
6997 };
6998
6999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7000 {
7001 PyThreadState* __tstate = wxPyBeginAllowThreads();
7002 result = (wxFontMapper *)wxFontMapper::Get();
7003
7004 wxPyEndAllowThreads(__tstate);
7005 if (PyErr_Occurred()) SWIG_fail;
7006 }
7007 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7008 return resultobj;
7009 fail:
7010 return NULL;
7011 }
7012
7013
7014 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7015 PyObject *resultobj;
7016 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7017 wxFontMapper *result;
7018 PyObject * obj0 = 0 ;
7019 char *kwnames[] = {
7020 (char *) "mapper", NULL
7021 };
7022
7023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7026 {
7027 PyThreadState* __tstate = wxPyBeginAllowThreads();
7028 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7029
7030 wxPyEndAllowThreads(__tstate);
7031 if (PyErr_Occurred()) SWIG_fail;
7032 }
7033 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7034 return resultobj;
7035 fail:
7036 return NULL;
7037 }
7038
7039
7040 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7041 PyObject *resultobj;
7042 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7043 wxString *arg2 = 0 ;
7044 bool arg3 = (bool) True ;
7045 int result;
7046 bool temp2 = False ;
7047 PyObject * obj0 = 0 ;
7048 PyObject * obj1 = 0 ;
7049 PyObject * obj2 = 0 ;
7050 char *kwnames[] = {
7051 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7052 };
7053
7054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7057 {
7058 arg2 = wxString_in_helper(obj1);
7059 if (arg2 == NULL) SWIG_fail;
7060 temp2 = True;
7061 }
7062 if (obj2) {
7063 arg3 = (bool) SWIG_AsBool(obj2);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 {
7067 PyThreadState* __tstate = wxPyBeginAllowThreads();
7068 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7069
7070 wxPyEndAllowThreads(__tstate);
7071 if (PyErr_Occurred()) SWIG_fail;
7072 }
7073 resultobj = SWIG_FromInt((int)result);
7074 {
7075 if (temp2)
7076 delete arg2;
7077 }
7078 return resultobj;
7079 fail:
7080 {
7081 if (temp2)
7082 delete arg2;
7083 }
7084 return NULL;
7085 }
7086
7087
7088 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7089 PyObject *resultobj;
7090 size_t result;
7091 char *kwnames[] = {
7092 NULL
7093 };
7094
7095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7096 {
7097 PyThreadState* __tstate = wxPyBeginAllowThreads();
7098 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7099
7100 wxPyEndAllowThreads(__tstate);
7101 if (PyErr_Occurred()) SWIG_fail;
7102 }
7103 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7104 return resultobj;
7105 fail:
7106 return NULL;
7107 }
7108
7109
7110 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7111 PyObject *resultobj;
7112 size_t arg1 ;
7113 int result;
7114 PyObject * obj0 = 0 ;
7115 char *kwnames[] = {
7116 (char *) "n", NULL
7117 };
7118
7119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7120 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 {
7123 PyThreadState* __tstate = wxPyBeginAllowThreads();
7124 result = (int)wxFontMapper::GetEncoding(arg1);
7125
7126 wxPyEndAllowThreads(__tstate);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 }
7129 resultobj = SWIG_FromInt((int)result);
7130 return resultobj;
7131 fail:
7132 return NULL;
7133 }
7134
7135
7136 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7137 PyObject *resultobj;
7138 int arg1 ;
7139 wxString result;
7140 PyObject * obj0 = 0 ;
7141 char *kwnames[] = {
7142 (char *) "encoding", NULL
7143 };
7144
7145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7146 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7147 if (PyErr_Occurred()) SWIG_fail;
7148 {
7149 PyThreadState* __tstate = wxPyBeginAllowThreads();
7150 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7151
7152 wxPyEndAllowThreads(__tstate);
7153 if (PyErr_Occurred()) SWIG_fail;
7154 }
7155 {
7156 #if wxUSE_UNICODE
7157 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7158 #else
7159 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7160 #endif
7161 }
7162 return resultobj;
7163 fail:
7164 return NULL;
7165 }
7166
7167
7168 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7169 PyObject *resultobj;
7170 int arg1 ;
7171 wxString result;
7172 PyObject * obj0 = 0 ;
7173 char *kwnames[] = {
7174 (char *) "encoding", NULL
7175 };
7176
7177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7178 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7179 if (PyErr_Occurred()) SWIG_fail;
7180 {
7181 PyThreadState* __tstate = wxPyBeginAllowThreads();
7182 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7183
7184 wxPyEndAllowThreads(__tstate);
7185 if (PyErr_Occurred()) SWIG_fail;
7186 }
7187 {
7188 #if wxUSE_UNICODE
7189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7190 #else
7191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7192 #endif
7193 }
7194 return resultobj;
7195 fail:
7196 return NULL;
7197 }
7198
7199
7200 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7201 PyObject *resultobj;
7202 wxString *arg1 = 0 ;
7203 int result;
7204 bool temp1 = False ;
7205 PyObject * obj0 = 0 ;
7206 char *kwnames[] = {
7207 (char *) "name", NULL
7208 };
7209
7210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7211 {
7212 arg1 = wxString_in_helper(obj0);
7213 if (arg1 == NULL) SWIG_fail;
7214 temp1 = True;
7215 }
7216 {
7217 PyThreadState* __tstate = wxPyBeginAllowThreads();
7218 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7219
7220 wxPyEndAllowThreads(__tstate);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 resultobj = SWIG_FromInt((int)result);
7224 {
7225 if (temp1)
7226 delete arg1;
7227 }
7228 return resultobj;
7229 fail:
7230 {
7231 if (temp1)
7232 delete arg1;
7233 }
7234 return NULL;
7235 }
7236
7237
7238 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7239 PyObject *resultobj;
7240 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7241 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7242 PyObject * obj0 = 0 ;
7243 PyObject * obj1 = 0 ;
7244 char *kwnames[] = {
7245 (char *) "self",(char *) "config", NULL
7246 };
7247
7248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7251 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7253 {
7254 PyThreadState* __tstate = wxPyBeginAllowThreads();
7255 (arg1)->SetConfig(arg2);
7256
7257 wxPyEndAllowThreads(__tstate);
7258 if (PyErr_Occurred()) SWIG_fail;
7259 }
7260 Py_INCREF(Py_None); resultobj = Py_None;
7261 return resultobj;
7262 fail:
7263 return NULL;
7264 }
7265
7266
7267 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7268 PyObject *resultobj;
7269 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7270 wxString *arg2 = 0 ;
7271 bool temp2 = False ;
7272 PyObject * obj0 = 0 ;
7273 PyObject * obj1 = 0 ;
7274 char *kwnames[] = {
7275 (char *) "self",(char *) "prefix", NULL
7276 };
7277
7278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7281 {
7282 arg2 = wxString_in_helper(obj1);
7283 if (arg2 == NULL) SWIG_fail;
7284 temp2 = True;
7285 }
7286 {
7287 PyThreadState* __tstate = wxPyBeginAllowThreads();
7288 (arg1)->SetConfigPath((wxString const &)*arg2);
7289
7290 wxPyEndAllowThreads(__tstate);
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 Py_INCREF(Py_None); resultobj = Py_None;
7294 {
7295 if (temp2)
7296 delete arg2;
7297 }
7298 return resultobj;
7299 fail:
7300 {
7301 if (temp2)
7302 delete arg2;
7303 }
7304 return NULL;
7305 }
7306
7307
7308 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7309 PyObject *resultobj;
7310 wxString result;
7311 char *kwnames[] = {
7312 NULL
7313 };
7314
7315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7316 {
7317 PyThreadState* __tstate = wxPyBeginAllowThreads();
7318 result = wxFontMapper::GetDefaultConfigPath();
7319
7320 wxPyEndAllowThreads(__tstate);
7321 if (PyErr_Occurred()) SWIG_fail;
7322 }
7323 {
7324 #if wxUSE_UNICODE
7325 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7326 #else
7327 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7328 #endif
7329 }
7330 return resultobj;
7331 fail:
7332 return NULL;
7333 }
7334
7335
7336 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7337 PyObject *resultobj;
7338 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7339 int arg2 ;
7340 wxString const &arg3_defvalue = wxPyEmptyString ;
7341 wxString *arg3 = (wxString *) &arg3_defvalue ;
7342 bool arg4 = (bool) True ;
7343 PyObject *result;
7344 bool temp3 = False ;
7345 PyObject * obj0 = 0 ;
7346 PyObject * obj1 = 0 ;
7347 PyObject * obj2 = 0 ;
7348 PyObject * obj3 = 0 ;
7349 char *kwnames[] = {
7350 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7351 };
7352
7353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7356 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7357 if (PyErr_Occurred()) SWIG_fail;
7358 if (obj2) {
7359 {
7360 arg3 = wxString_in_helper(obj2);
7361 if (arg3 == NULL) SWIG_fail;
7362 temp3 = True;
7363 }
7364 }
7365 if (obj3) {
7366 arg4 = (bool) SWIG_AsBool(obj3);
7367 if (PyErr_Occurred()) SWIG_fail;
7368 }
7369 {
7370 PyThreadState* __tstate = wxPyBeginAllowThreads();
7371 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7372
7373 wxPyEndAllowThreads(__tstate);
7374 if (PyErr_Occurred()) SWIG_fail;
7375 }
7376 resultobj = result;
7377 {
7378 if (temp3)
7379 delete arg3;
7380 }
7381 return resultobj;
7382 fail:
7383 {
7384 if (temp3)
7385 delete arg3;
7386 }
7387 return NULL;
7388 }
7389
7390
7391 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7392 PyObject *resultobj;
7393 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7394 int arg2 ;
7395 wxString const &arg3_defvalue = wxPyEmptyString ;
7396 wxString *arg3 = (wxString *) &arg3_defvalue ;
7397 bool result;
7398 bool temp3 = False ;
7399 PyObject * obj0 = 0 ;
7400 PyObject * obj1 = 0 ;
7401 PyObject * obj2 = 0 ;
7402 char *kwnames[] = {
7403 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7404 };
7405
7406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7409 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7410 if (PyErr_Occurred()) SWIG_fail;
7411 if (obj2) {
7412 {
7413 arg3 = wxString_in_helper(obj2);
7414 if (arg3 == NULL) SWIG_fail;
7415 temp3 = True;
7416 }
7417 }
7418 {
7419 PyThreadState* __tstate = wxPyBeginAllowThreads();
7420 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7421
7422 wxPyEndAllowThreads(__tstate);
7423 if (PyErr_Occurred()) SWIG_fail;
7424 }
7425 {
7426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7427 }
7428 {
7429 if (temp3)
7430 delete arg3;
7431 }
7432 return resultobj;
7433 fail:
7434 {
7435 if (temp3)
7436 delete arg3;
7437 }
7438 return NULL;
7439 }
7440
7441
7442 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7443 PyObject *resultobj;
7444 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7445 wxWindow *arg2 = (wxWindow *) 0 ;
7446 PyObject * obj0 = 0 ;
7447 PyObject * obj1 = 0 ;
7448 char *kwnames[] = {
7449 (char *) "self",(char *) "parent", NULL
7450 };
7451
7452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7455 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7457 {
7458 PyThreadState* __tstate = wxPyBeginAllowThreads();
7459 (arg1)->SetDialogParent(arg2);
7460
7461 wxPyEndAllowThreads(__tstate);
7462 if (PyErr_Occurred()) SWIG_fail;
7463 }
7464 Py_INCREF(Py_None); resultobj = Py_None;
7465 return resultobj;
7466 fail:
7467 return NULL;
7468 }
7469
7470
7471 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7472 PyObject *resultobj;
7473 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7474 wxString *arg2 = 0 ;
7475 bool temp2 = False ;
7476 PyObject * obj0 = 0 ;
7477 PyObject * obj1 = 0 ;
7478 char *kwnames[] = {
7479 (char *) "self",(char *) "title", NULL
7480 };
7481
7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7485 {
7486 arg2 = wxString_in_helper(obj1);
7487 if (arg2 == NULL) SWIG_fail;
7488 temp2 = True;
7489 }
7490 {
7491 PyThreadState* __tstate = wxPyBeginAllowThreads();
7492 (arg1)->SetDialogTitle((wxString const &)*arg2);
7493
7494 wxPyEndAllowThreads(__tstate);
7495 if (PyErr_Occurred()) SWIG_fail;
7496 }
7497 Py_INCREF(Py_None); resultobj = Py_None;
7498 {
7499 if (temp2)
7500 delete arg2;
7501 }
7502 return resultobj;
7503 fail:
7504 {
7505 if (temp2)
7506 delete arg2;
7507 }
7508 return NULL;
7509 }
7510
7511
7512 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7513 PyObject *obj;
7514 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7515 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7516 Py_INCREF(obj);
7517 return Py_BuildValue((char *)"");
7518 }
7519 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7520 PyObject *resultobj;
7521 int arg1 ;
7522 int arg2 ;
7523 int arg3 ;
7524 int arg4 ;
7525 bool arg5 = (bool) False ;
7526 wxString const &arg6_defvalue = wxPyEmptyString ;
7527 wxString *arg6 = (wxString *) &arg6_defvalue ;
7528 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7529 wxFont *result;
7530 bool temp6 = False ;
7531 PyObject * obj0 = 0 ;
7532 PyObject * obj1 = 0 ;
7533 PyObject * obj2 = 0 ;
7534 PyObject * obj3 = 0 ;
7535 PyObject * obj4 = 0 ;
7536 PyObject * obj5 = 0 ;
7537 PyObject * obj6 = 0 ;
7538 char *kwnames[] = {
7539 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7540 };
7541
7542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7543 arg1 = (int) SWIG_AsInt(obj0);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 arg2 = (int) SWIG_AsInt(obj1);
7546 if (PyErr_Occurred()) SWIG_fail;
7547 arg3 = (int) SWIG_AsInt(obj2);
7548 if (PyErr_Occurred()) SWIG_fail;
7549 arg4 = (int) SWIG_AsInt(obj3);
7550 if (PyErr_Occurred()) SWIG_fail;
7551 if (obj4) {
7552 arg5 = (bool) SWIG_AsBool(obj4);
7553 if (PyErr_Occurred()) SWIG_fail;
7554 }
7555 if (obj5) {
7556 {
7557 arg6 = wxString_in_helper(obj5);
7558 if (arg6 == NULL) SWIG_fail;
7559 temp6 = True;
7560 }
7561 }
7562 if (obj6) {
7563 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7564 if (PyErr_Occurred()) SWIG_fail;
7565 }
7566 {
7567 if (!wxPyCheckForApp()) SWIG_fail;
7568 PyThreadState* __tstate = wxPyBeginAllowThreads();
7569 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7570
7571 wxPyEndAllowThreads(__tstate);
7572 if (PyErr_Occurred()) SWIG_fail;
7573 }
7574 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7575 {
7576 if (temp6)
7577 delete arg6;
7578 }
7579 return resultobj;
7580 fail:
7581 {
7582 if (temp6)
7583 delete arg6;
7584 }
7585 return NULL;
7586 }
7587
7588
7589 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7590 PyObject *resultobj;
7591 wxFont *arg1 = (wxFont *) 0 ;
7592 PyObject * obj0 = 0 ;
7593 char *kwnames[] = {
7594 (char *) "self", NULL
7595 };
7596
7597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 delete arg1;
7603
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 Py_INCREF(Py_None); resultobj = Py_None;
7608 return resultobj;
7609 fail:
7610 return NULL;
7611 }
7612
7613
7614 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7615 PyObject *resultobj;
7616 wxNativeFontInfo *arg1 = 0 ;
7617 wxFont *result;
7618 PyObject * obj0 = 0 ;
7619 char *kwnames[] = {
7620 (char *) "info", NULL
7621 };
7622
7623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7625 SWIG_POINTER_EXCEPTION | 0)) == -1)
7626 SWIG_fail;
7627 if (arg1 == NULL) {
7628 PyErr_SetString(PyExc_TypeError,"null reference");
7629 SWIG_fail;
7630 }
7631 {
7632 if (!wxPyCheckForApp()) SWIG_fail;
7633 PyThreadState* __tstate = wxPyBeginAllowThreads();
7634 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7635
7636 wxPyEndAllowThreads(__tstate);
7637 if (PyErr_Occurred()) SWIG_fail;
7638 }
7639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7640 return resultobj;
7641 fail:
7642 return NULL;
7643 }
7644
7645
7646 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7647 PyObject *resultobj;
7648 wxString *arg1 = 0 ;
7649 wxFont *result;
7650 bool temp1 = False ;
7651 PyObject * obj0 = 0 ;
7652 char *kwnames[] = {
7653 (char *) "info", NULL
7654 };
7655
7656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7657 {
7658 arg1 = wxString_in_helper(obj0);
7659 if (arg1 == NULL) SWIG_fail;
7660 temp1 = True;
7661 }
7662 {
7663 if (!wxPyCheckForApp()) SWIG_fail;
7664 PyThreadState* __tstate = wxPyBeginAllowThreads();
7665 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7666
7667 wxPyEndAllowThreads(__tstate);
7668 if (PyErr_Occurred()) SWIG_fail;
7669 }
7670 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7671 {
7672 if (temp1)
7673 delete arg1;
7674 }
7675 return resultobj;
7676 fail:
7677 {
7678 if (temp1)
7679 delete arg1;
7680 }
7681 return NULL;
7682 }
7683
7684
7685 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7686 PyObject *resultobj;
7687 int arg1 ;
7688 int arg2 ;
7689 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7690 wxString const &arg4_defvalue = wxPyEmptyString ;
7691 wxString *arg4 = (wxString *) &arg4_defvalue ;
7692 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7693 wxFont *result;
7694 bool temp4 = False ;
7695 PyObject * obj0 = 0 ;
7696 PyObject * obj1 = 0 ;
7697 PyObject * obj2 = 0 ;
7698 PyObject * obj3 = 0 ;
7699 PyObject * obj4 = 0 ;
7700 char *kwnames[] = {
7701 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7702 };
7703
7704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7705 arg1 = (int) SWIG_AsInt(obj0);
7706 if (PyErr_Occurred()) SWIG_fail;
7707 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7708 if (PyErr_Occurred()) SWIG_fail;
7709 if (obj2) {
7710 arg3 = (int) SWIG_AsInt(obj2);
7711 if (PyErr_Occurred()) SWIG_fail;
7712 }
7713 if (obj3) {
7714 {
7715 arg4 = wxString_in_helper(obj3);
7716 if (arg4 == NULL) SWIG_fail;
7717 temp4 = True;
7718 }
7719 }
7720 if (obj4) {
7721 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7722 if (PyErr_Occurred()) SWIG_fail;
7723 }
7724 {
7725 if (!wxPyCheckForApp()) SWIG_fail;
7726 PyThreadState* __tstate = wxPyBeginAllowThreads();
7727 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7728
7729 wxPyEndAllowThreads(__tstate);
7730 if (PyErr_Occurred()) SWIG_fail;
7731 }
7732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7733 {
7734 if (temp4)
7735 delete arg4;
7736 }
7737 return resultobj;
7738 fail:
7739 {
7740 if (temp4)
7741 delete arg4;
7742 }
7743 return NULL;
7744 }
7745
7746
7747 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7748 PyObject *resultobj;
7749 wxFont *arg1 = (wxFont *) 0 ;
7750 bool result;
7751 PyObject * obj0 = 0 ;
7752 char *kwnames[] = {
7753 (char *) "self", NULL
7754 };
7755
7756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7759 {
7760 PyThreadState* __tstate = wxPyBeginAllowThreads();
7761 result = (bool)((wxFont const *)arg1)->Ok();
7762
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 }
7766 {
7767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7768 }
7769 return resultobj;
7770 fail:
7771 return NULL;
7772 }
7773
7774
7775 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7776 PyObject *resultobj;
7777 wxFont *arg1 = (wxFont *) 0 ;
7778 wxFont *arg2 = (wxFont *) 0 ;
7779 bool result;
7780 PyObject * obj0 = 0 ;
7781 PyObject * obj1 = 0 ;
7782 char *kwnames[] = {
7783 (char *) "self",(char *) "other", NULL
7784 };
7785
7786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7789 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7791 {
7792 PyThreadState* __tstate = wxPyBeginAllowThreads();
7793 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7794
7795 wxPyEndAllowThreads(__tstate);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 }
7798 {
7799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7800 }
7801 return resultobj;
7802 fail:
7803 return NULL;
7804 }
7805
7806
7807 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7808 PyObject *resultobj;
7809 wxFont *arg1 = (wxFont *) 0 ;
7810 wxFont *arg2 = (wxFont *) 0 ;
7811 bool result;
7812 PyObject * obj0 = 0 ;
7813 PyObject * obj1 = 0 ;
7814 char *kwnames[] = {
7815 (char *) "self",(char *) "other", NULL
7816 };
7817
7818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7821 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7823 {
7824 PyThreadState* __tstate = wxPyBeginAllowThreads();
7825 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7826
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 {
7831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7832 }
7833 return resultobj;
7834 fail:
7835 return NULL;
7836 }
7837
7838
7839 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7840 PyObject *resultobj;
7841 wxFont *arg1 = (wxFont *) 0 ;
7842 int result;
7843 PyObject * obj0 = 0 ;
7844 char *kwnames[] = {
7845 (char *) "self", NULL
7846 };
7847
7848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7851 {
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 result = (int)((wxFont const *)arg1)->GetPointSize();
7854
7855 wxPyEndAllowThreads(__tstate);
7856 if (PyErr_Occurred()) SWIG_fail;
7857 }
7858 resultobj = SWIG_FromInt((int)result);
7859 return resultobj;
7860 fail:
7861 return NULL;
7862 }
7863
7864
7865 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7866 PyObject *resultobj;
7867 wxFont *arg1 = (wxFont *) 0 ;
7868 int result;
7869 PyObject * obj0 = 0 ;
7870 char *kwnames[] = {
7871 (char *) "self", NULL
7872 };
7873
7874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7877 {
7878 PyThreadState* __tstate = wxPyBeginAllowThreads();
7879 result = (int)((wxFont const *)arg1)->GetFamily();
7880
7881 wxPyEndAllowThreads(__tstate);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 resultobj = SWIG_FromInt((int)result);
7885 return resultobj;
7886 fail:
7887 return NULL;
7888 }
7889
7890
7891 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7892 PyObject *resultobj;
7893 wxFont *arg1 = (wxFont *) 0 ;
7894 int result;
7895 PyObject * obj0 = 0 ;
7896 char *kwnames[] = {
7897 (char *) "self", NULL
7898 };
7899
7900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7903 {
7904 PyThreadState* __tstate = wxPyBeginAllowThreads();
7905 result = (int)((wxFont const *)arg1)->GetStyle();
7906
7907 wxPyEndAllowThreads(__tstate);
7908 if (PyErr_Occurred()) SWIG_fail;
7909 }
7910 resultobj = SWIG_FromInt((int)result);
7911 return resultobj;
7912 fail:
7913 return NULL;
7914 }
7915
7916
7917 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7918 PyObject *resultobj;
7919 wxFont *arg1 = (wxFont *) 0 ;
7920 int result;
7921 PyObject * obj0 = 0 ;
7922 char *kwnames[] = {
7923 (char *) "self", NULL
7924 };
7925
7926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7929 {
7930 PyThreadState* __tstate = wxPyBeginAllowThreads();
7931 result = (int)((wxFont const *)arg1)->GetWeight();
7932
7933 wxPyEndAllowThreads(__tstate);
7934 if (PyErr_Occurred()) SWIG_fail;
7935 }
7936 resultobj = SWIG_FromInt((int)result);
7937 return resultobj;
7938 fail:
7939 return NULL;
7940 }
7941
7942
7943 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7944 PyObject *resultobj;
7945 wxFont *arg1 = (wxFont *) 0 ;
7946 bool result;
7947 PyObject * obj0 = 0 ;
7948 char *kwnames[] = {
7949 (char *) "self", NULL
7950 };
7951
7952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7955 {
7956 PyThreadState* __tstate = wxPyBeginAllowThreads();
7957 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7958
7959 wxPyEndAllowThreads(__tstate);
7960 if (PyErr_Occurred()) SWIG_fail;
7961 }
7962 {
7963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7964 }
7965 return resultobj;
7966 fail:
7967 return NULL;
7968 }
7969
7970
7971 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7972 PyObject *resultobj;
7973 wxFont *arg1 = (wxFont *) 0 ;
7974 wxString result;
7975 PyObject * obj0 = 0 ;
7976 char *kwnames[] = {
7977 (char *) "self", NULL
7978 };
7979
7980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7983 {
7984 PyThreadState* __tstate = wxPyBeginAllowThreads();
7985 result = ((wxFont const *)arg1)->GetFaceName();
7986
7987 wxPyEndAllowThreads(__tstate);
7988 if (PyErr_Occurred()) SWIG_fail;
7989 }
7990 {
7991 #if wxUSE_UNICODE
7992 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7993 #else
7994 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7995 #endif
7996 }
7997 return resultobj;
7998 fail:
7999 return NULL;
8000 }
8001
8002
8003 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8004 PyObject *resultobj;
8005 wxFont *arg1 = (wxFont *) 0 ;
8006 int result;
8007 PyObject * obj0 = 0 ;
8008 char *kwnames[] = {
8009 (char *) "self", NULL
8010 };
8011
8012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8015 {
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 result = (int)((wxFont const *)arg1)->GetEncoding();
8018
8019 wxPyEndAllowThreads(__tstate);
8020 if (PyErr_Occurred()) SWIG_fail;
8021 }
8022 resultobj = SWIG_FromInt((int)result);
8023 return resultobj;
8024 fail:
8025 return NULL;
8026 }
8027
8028
8029 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8030 PyObject *resultobj;
8031 wxFont *arg1 = (wxFont *) 0 ;
8032 wxNativeFontInfo *result;
8033 PyObject * obj0 = 0 ;
8034 char *kwnames[] = {
8035 (char *) "self", NULL
8036 };
8037
8038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8041 {
8042 PyThreadState* __tstate = wxPyBeginAllowThreads();
8043 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8044
8045 wxPyEndAllowThreads(__tstate);
8046 if (PyErr_Occurred()) SWIG_fail;
8047 }
8048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8049 return resultobj;
8050 fail:
8051 return NULL;
8052 }
8053
8054
8055 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8056 PyObject *resultobj;
8057 wxFont *arg1 = (wxFont *) 0 ;
8058 bool result;
8059 PyObject * obj0 = 0 ;
8060 char *kwnames[] = {
8061 (char *) "self", NULL
8062 };
8063
8064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8067 {
8068 PyThreadState* __tstate = wxPyBeginAllowThreads();
8069 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 {
8075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8076 }
8077 return resultobj;
8078 fail:
8079 return NULL;
8080 }
8081
8082
8083 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8084 PyObject *resultobj;
8085 wxFont *arg1 = (wxFont *) 0 ;
8086 wxString result;
8087 PyObject * obj0 = 0 ;
8088 char *kwnames[] = {
8089 (char *) "self", NULL
8090 };
8091
8092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8095 {
8096 PyThreadState* __tstate = wxPyBeginAllowThreads();
8097 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8098
8099 wxPyEndAllowThreads(__tstate);
8100 if (PyErr_Occurred()) SWIG_fail;
8101 }
8102 {
8103 #if wxUSE_UNICODE
8104 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8105 #else
8106 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8107 #endif
8108 }
8109 return resultobj;
8110 fail:
8111 return NULL;
8112 }
8113
8114
8115 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8116 PyObject *resultobj;
8117 wxFont *arg1 = (wxFont *) 0 ;
8118 wxString result;
8119 PyObject * obj0 = 0 ;
8120 char *kwnames[] = {
8121 (char *) "self", NULL
8122 };
8123
8124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8127 {
8128 PyThreadState* __tstate = wxPyBeginAllowThreads();
8129 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8130
8131 wxPyEndAllowThreads(__tstate);
8132 if (PyErr_Occurred()) SWIG_fail;
8133 }
8134 {
8135 #if wxUSE_UNICODE
8136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8137 #else
8138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8139 #endif
8140 }
8141 return resultobj;
8142 fail:
8143 return NULL;
8144 }
8145
8146
8147 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8148 PyObject *resultobj;
8149 wxFont *arg1 = (wxFont *) 0 ;
8150 int arg2 ;
8151 PyObject * obj0 = 0 ;
8152 PyObject * obj1 = 0 ;
8153 char *kwnames[] = {
8154 (char *) "self",(char *) "pointSize", NULL
8155 };
8156
8157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8160 arg2 = (int) SWIG_AsInt(obj1);
8161 if (PyErr_Occurred()) SWIG_fail;
8162 {
8163 PyThreadState* __tstate = wxPyBeginAllowThreads();
8164 (arg1)->SetPointSize(arg2);
8165
8166 wxPyEndAllowThreads(__tstate);
8167 if (PyErr_Occurred()) SWIG_fail;
8168 }
8169 Py_INCREF(Py_None); resultobj = Py_None;
8170 return resultobj;
8171 fail:
8172 return NULL;
8173 }
8174
8175
8176 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8177 PyObject *resultobj;
8178 wxFont *arg1 = (wxFont *) 0 ;
8179 int arg2 ;
8180 PyObject * obj0 = 0 ;
8181 PyObject * obj1 = 0 ;
8182 char *kwnames[] = {
8183 (char *) "self",(char *) "family", NULL
8184 };
8185
8186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8189 arg2 = (int) SWIG_AsInt(obj1);
8190 if (PyErr_Occurred()) SWIG_fail;
8191 {
8192 PyThreadState* __tstate = wxPyBeginAllowThreads();
8193 (arg1)->SetFamily(arg2);
8194
8195 wxPyEndAllowThreads(__tstate);
8196 if (PyErr_Occurred()) SWIG_fail;
8197 }
8198 Py_INCREF(Py_None); resultobj = Py_None;
8199 return resultobj;
8200 fail:
8201 return NULL;
8202 }
8203
8204
8205 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8206 PyObject *resultobj;
8207 wxFont *arg1 = (wxFont *) 0 ;
8208 int arg2 ;
8209 PyObject * obj0 = 0 ;
8210 PyObject * obj1 = 0 ;
8211 char *kwnames[] = {
8212 (char *) "self",(char *) "style", NULL
8213 };
8214
8215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8218 arg2 = (int) SWIG_AsInt(obj1);
8219 if (PyErr_Occurred()) SWIG_fail;
8220 {
8221 PyThreadState* __tstate = wxPyBeginAllowThreads();
8222 (arg1)->SetStyle(arg2);
8223
8224 wxPyEndAllowThreads(__tstate);
8225 if (PyErr_Occurred()) SWIG_fail;
8226 }
8227 Py_INCREF(Py_None); resultobj = Py_None;
8228 return resultobj;
8229 fail:
8230 return NULL;
8231 }
8232
8233
8234 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8235 PyObject *resultobj;
8236 wxFont *arg1 = (wxFont *) 0 ;
8237 int arg2 ;
8238 PyObject * obj0 = 0 ;
8239 PyObject * obj1 = 0 ;
8240 char *kwnames[] = {
8241 (char *) "self",(char *) "weight", NULL
8242 };
8243
8244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8247 arg2 = (int) SWIG_AsInt(obj1);
8248 if (PyErr_Occurred()) SWIG_fail;
8249 {
8250 PyThreadState* __tstate = wxPyBeginAllowThreads();
8251 (arg1)->SetWeight(arg2);
8252
8253 wxPyEndAllowThreads(__tstate);
8254 if (PyErr_Occurred()) SWIG_fail;
8255 }
8256 Py_INCREF(Py_None); resultobj = Py_None;
8257 return resultobj;
8258 fail:
8259 return NULL;
8260 }
8261
8262
8263 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8264 PyObject *resultobj;
8265 wxFont *arg1 = (wxFont *) 0 ;
8266 wxString *arg2 = 0 ;
8267 bool temp2 = False ;
8268 PyObject * obj0 = 0 ;
8269 PyObject * obj1 = 0 ;
8270 char *kwnames[] = {
8271 (char *) "self",(char *) "faceName", NULL
8272 };
8273
8274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8277 {
8278 arg2 = wxString_in_helper(obj1);
8279 if (arg2 == NULL) SWIG_fail;
8280 temp2 = True;
8281 }
8282 {
8283 PyThreadState* __tstate = wxPyBeginAllowThreads();
8284 (arg1)->SetFaceName((wxString const &)*arg2);
8285
8286 wxPyEndAllowThreads(__tstate);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 Py_INCREF(Py_None); resultobj = Py_None;
8290 {
8291 if (temp2)
8292 delete arg2;
8293 }
8294 return resultobj;
8295 fail:
8296 {
8297 if (temp2)
8298 delete arg2;
8299 }
8300 return NULL;
8301 }
8302
8303
8304 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8305 PyObject *resultobj;
8306 wxFont *arg1 = (wxFont *) 0 ;
8307 bool arg2 ;
8308 PyObject * obj0 = 0 ;
8309 PyObject * obj1 = 0 ;
8310 char *kwnames[] = {
8311 (char *) "self",(char *) "underlined", NULL
8312 };
8313
8314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8317 arg2 = (bool) SWIG_AsBool(obj1);
8318 if (PyErr_Occurred()) SWIG_fail;
8319 {
8320 PyThreadState* __tstate = wxPyBeginAllowThreads();
8321 (arg1)->SetUnderlined(arg2);
8322
8323 wxPyEndAllowThreads(__tstate);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 Py_INCREF(Py_None); resultobj = Py_None;
8327 return resultobj;
8328 fail:
8329 return NULL;
8330 }
8331
8332
8333 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8334 PyObject *resultobj;
8335 wxFont *arg1 = (wxFont *) 0 ;
8336 int arg2 ;
8337 PyObject * obj0 = 0 ;
8338 PyObject * obj1 = 0 ;
8339 char *kwnames[] = {
8340 (char *) "self",(char *) "encoding", NULL
8341 };
8342
8343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8346 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8347 if (PyErr_Occurred()) SWIG_fail;
8348 {
8349 PyThreadState* __tstate = wxPyBeginAllowThreads();
8350 (arg1)->SetEncoding((wxFontEncoding )arg2);
8351
8352 wxPyEndAllowThreads(__tstate);
8353 if (PyErr_Occurred()) SWIG_fail;
8354 }
8355 Py_INCREF(Py_None); resultobj = Py_None;
8356 return resultobj;
8357 fail:
8358 return NULL;
8359 }
8360
8361
8362 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8363 PyObject *resultobj;
8364 wxFont *arg1 = (wxFont *) 0 ;
8365 wxNativeFontInfo *arg2 = 0 ;
8366 PyObject * obj0 = 0 ;
8367 PyObject * obj1 = 0 ;
8368 char *kwnames[] = {
8369 (char *) "self",(char *) "info", NULL
8370 };
8371
8372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8376 SWIG_POINTER_EXCEPTION | 0)) == -1)
8377 SWIG_fail;
8378 if (arg2 == NULL) {
8379 PyErr_SetString(PyExc_TypeError,"null reference");
8380 SWIG_fail;
8381 }
8382 {
8383 PyThreadState* __tstate = wxPyBeginAllowThreads();
8384 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8385
8386 wxPyEndAllowThreads(__tstate);
8387 if (PyErr_Occurred()) SWIG_fail;
8388 }
8389 Py_INCREF(Py_None); resultobj = Py_None;
8390 return resultobj;
8391 fail:
8392 return NULL;
8393 }
8394
8395
8396 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8397 PyObject *resultobj;
8398 wxFont *arg1 = (wxFont *) 0 ;
8399 wxString *arg2 = 0 ;
8400 bool temp2 = False ;
8401 PyObject * obj0 = 0 ;
8402 PyObject * obj1 = 0 ;
8403 char *kwnames[] = {
8404 (char *) "self",(char *) "info", NULL
8405 };
8406
8407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8410 {
8411 arg2 = wxString_in_helper(obj1);
8412 if (arg2 == NULL) SWIG_fail;
8413 temp2 = True;
8414 }
8415 {
8416 PyThreadState* __tstate = wxPyBeginAllowThreads();
8417 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8418
8419 wxPyEndAllowThreads(__tstate);
8420 if (PyErr_Occurred()) SWIG_fail;
8421 }
8422 Py_INCREF(Py_None); resultobj = Py_None;
8423 {
8424 if (temp2)
8425 delete arg2;
8426 }
8427 return resultobj;
8428 fail:
8429 {
8430 if (temp2)
8431 delete arg2;
8432 }
8433 return NULL;
8434 }
8435
8436
8437 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8438 PyObject *resultobj;
8439 wxFont *arg1 = (wxFont *) 0 ;
8440 wxString *arg2 = 0 ;
8441 bool temp2 = False ;
8442 PyObject * obj0 = 0 ;
8443 PyObject * obj1 = 0 ;
8444 char *kwnames[] = {
8445 (char *) "self",(char *) "info", NULL
8446 };
8447
8448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8451 {
8452 arg2 = wxString_in_helper(obj1);
8453 if (arg2 == NULL) SWIG_fail;
8454 temp2 = True;
8455 }
8456 {
8457 PyThreadState* __tstate = wxPyBeginAllowThreads();
8458 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8459
8460 wxPyEndAllowThreads(__tstate);
8461 if (PyErr_Occurred()) SWIG_fail;
8462 }
8463 Py_INCREF(Py_None); resultobj = Py_None;
8464 {
8465 if (temp2)
8466 delete arg2;
8467 }
8468 return resultobj;
8469 fail:
8470 {
8471 if (temp2)
8472 delete arg2;
8473 }
8474 return NULL;
8475 }
8476
8477
8478 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8479 PyObject *resultobj;
8480 wxFont *arg1 = (wxFont *) 0 ;
8481 wxString result;
8482 PyObject * obj0 = 0 ;
8483 char *kwnames[] = {
8484 (char *) "self", NULL
8485 };
8486
8487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8490 {
8491 PyThreadState* __tstate = wxPyBeginAllowThreads();
8492 result = ((wxFont const *)arg1)->GetFamilyString();
8493
8494 wxPyEndAllowThreads(__tstate);
8495 if (PyErr_Occurred()) SWIG_fail;
8496 }
8497 {
8498 #if wxUSE_UNICODE
8499 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8500 #else
8501 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8502 #endif
8503 }
8504 return resultobj;
8505 fail:
8506 return NULL;
8507 }
8508
8509
8510 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8511 PyObject *resultobj;
8512 wxFont *arg1 = (wxFont *) 0 ;
8513 wxString result;
8514 PyObject * obj0 = 0 ;
8515 char *kwnames[] = {
8516 (char *) "self", NULL
8517 };
8518
8519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8522 {
8523 PyThreadState* __tstate = wxPyBeginAllowThreads();
8524 result = ((wxFont const *)arg1)->GetStyleString();
8525
8526 wxPyEndAllowThreads(__tstate);
8527 if (PyErr_Occurred()) SWIG_fail;
8528 }
8529 {
8530 #if wxUSE_UNICODE
8531 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8532 #else
8533 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8534 #endif
8535 }
8536 return resultobj;
8537 fail:
8538 return NULL;
8539 }
8540
8541
8542 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8543 PyObject *resultobj;
8544 wxFont *arg1 = (wxFont *) 0 ;
8545 wxString result;
8546 PyObject * obj0 = 0 ;
8547 char *kwnames[] = {
8548 (char *) "self", NULL
8549 };
8550
8551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8554 {
8555 PyThreadState* __tstate = wxPyBeginAllowThreads();
8556 result = ((wxFont const *)arg1)->GetWeightString();
8557
8558 wxPyEndAllowThreads(__tstate);
8559 if (PyErr_Occurred()) SWIG_fail;
8560 }
8561 {
8562 #if wxUSE_UNICODE
8563 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8564 #else
8565 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8566 #endif
8567 }
8568 return resultobj;
8569 fail:
8570 return NULL;
8571 }
8572
8573
8574 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8575 PyObject *resultobj;
8576 wxFont *arg1 = (wxFont *) 0 ;
8577 bool arg2 = (bool) True ;
8578 PyObject * obj0 = 0 ;
8579 PyObject * obj1 = 0 ;
8580 char *kwnames[] = {
8581 (char *) "self",(char *) "no", NULL
8582 };
8583
8584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8587 if (obj1) {
8588 arg2 = (bool) SWIG_AsBool(obj1);
8589 if (PyErr_Occurred()) SWIG_fail;
8590 }
8591 {
8592 PyThreadState* __tstate = wxPyBeginAllowThreads();
8593 (arg1)->SetNoAntiAliasing(arg2);
8594
8595 wxPyEndAllowThreads(__tstate);
8596 if (PyErr_Occurred()) SWIG_fail;
8597 }
8598 Py_INCREF(Py_None); resultobj = Py_None;
8599 return resultobj;
8600 fail:
8601 return NULL;
8602 }
8603
8604
8605 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8606 PyObject *resultobj;
8607 wxFont *arg1 = (wxFont *) 0 ;
8608 bool result;
8609 PyObject * obj0 = 0 ;
8610 char *kwnames[] = {
8611 (char *) "self", NULL
8612 };
8613
8614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8617 {
8618 PyThreadState* __tstate = wxPyBeginAllowThreads();
8619 result = (bool)(arg1)->GetNoAntiAliasing();
8620
8621 wxPyEndAllowThreads(__tstate);
8622 if (PyErr_Occurred()) SWIG_fail;
8623 }
8624 {
8625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8626 }
8627 return resultobj;
8628 fail:
8629 return NULL;
8630 }
8631
8632
8633 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8634 PyObject *resultobj;
8635 int result;
8636 char *kwnames[] = {
8637 NULL
8638 };
8639
8640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8641 {
8642 if (!wxPyCheckForApp()) SWIG_fail;
8643 PyThreadState* __tstate = wxPyBeginAllowThreads();
8644 result = (int)wxFont::GetDefaultEncoding();
8645
8646 wxPyEndAllowThreads(__tstate);
8647 if (PyErr_Occurred()) SWIG_fail;
8648 }
8649 resultobj = SWIG_FromInt((int)result);
8650 return resultobj;
8651 fail:
8652 return NULL;
8653 }
8654
8655
8656 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8657 PyObject *resultobj;
8658 int arg1 ;
8659 PyObject * obj0 = 0 ;
8660 char *kwnames[] = {
8661 (char *) "encoding", NULL
8662 };
8663
8664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8665 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8666 if (PyErr_Occurred()) SWIG_fail;
8667 {
8668 if (!wxPyCheckForApp()) SWIG_fail;
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8671
8672 wxPyEndAllowThreads(__tstate);
8673 if (PyErr_Occurred()) SWIG_fail;
8674 }
8675 Py_INCREF(Py_None); resultobj = Py_None;
8676 return resultobj;
8677 fail:
8678 return NULL;
8679 }
8680
8681
8682 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8683 PyObject *obj;
8684 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8685 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8686 Py_INCREF(obj);
8687 return Py_BuildValue((char *)"");
8688 }
8689 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8690 PyObject *resultobj;
8691 wxPyFontEnumerator *result;
8692 char *kwnames[] = {
8693 NULL
8694 };
8695
8696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8697 {
8698 if (!wxPyCheckForApp()) SWIG_fail;
8699 PyThreadState* __tstate = wxPyBeginAllowThreads();
8700 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8701
8702 wxPyEndAllowThreads(__tstate);
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8706 return resultobj;
8707 fail:
8708 return NULL;
8709 }
8710
8711
8712 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8713 PyObject *resultobj;
8714 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8715 PyObject * obj0 = 0 ;
8716 char *kwnames[] = {
8717 (char *) "self", NULL
8718 };
8719
8720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8723 {
8724 PyThreadState* __tstate = wxPyBeginAllowThreads();
8725 delete arg1;
8726
8727 wxPyEndAllowThreads(__tstate);
8728 if (PyErr_Occurred()) SWIG_fail;
8729 }
8730 Py_INCREF(Py_None); resultobj = Py_None;
8731 return resultobj;
8732 fail:
8733 return NULL;
8734 }
8735
8736
8737 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8738 PyObject *resultobj;
8739 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8740 PyObject *arg2 = (PyObject *) 0 ;
8741 PyObject *arg3 = (PyObject *) 0 ;
8742 bool arg4 ;
8743 PyObject * obj0 = 0 ;
8744 PyObject * obj1 = 0 ;
8745 PyObject * obj2 = 0 ;
8746 PyObject * obj3 = 0 ;
8747 char *kwnames[] = {
8748 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8749 };
8750
8751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8754 arg2 = obj1;
8755 arg3 = obj2;
8756 arg4 = (bool) SWIG_AsBool(obj3);
8757 if (PyErr_Occurred()) SWIG_fail;
8758 {
8759 PyThreadState* __tstate = wxPyBeginAllowThreads();
8760 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8761
8762 wxPyEndAllowThreads(__tstate);
8763 if (PyErr_Occurred()) SWIG_fail;
8764 }
8765 Py_INCREF(Py_None); resultobj = Py_None;
8766 return resultobj;
8767 fail:
8768 return NULL;
8769 }
8770
8771
8772 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8773 PyObject *resultobj;
8774 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8775 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8776 bool arg3 = (bool) False ;
8777 bool result;
8778 PyObject * obj0 = 0 ;
8779 PyObject * obj1 = 0 ;
8780 PyObject * obj2 = 0 ;
8781 char *kwnames[] = {
8782 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8783 };
8784
8785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8788 if (obj1) {
8789 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8790 if (PyErr_Occurred()) SWIG_fail;
8791 }
8792 if (obj2) {
8793 arg3 = (bool) SWIG_AsBool(obj2);
8794 if (PyErr_Occurred()) SWIG_fail;
8795 }
8796 {
8797 PyThreadState* __tstate = wxPyBeginAllowThreads();
8798 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8799
8800 wxPyEndAllowThreads(__tstate);
8801 if (PyErr_Occurred()) SWIG_fail;
8802 }
8803 {
8804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8805 }
8806 return resultobj;
8807 fail:
8808 return NULL;
8809 }
8810
8811
8812 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8813 PyObject *resultobj;
8814 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8815 wxString const &arg2_defvalue = wxPyEmptyString ;
8816 wxString *arg2 = (wxString *) &arg2_defvalue ;
8817 bool result;
8818 bool temp2 = False ;
8819 PyObject * obj0 = 0 ;
8820 PyObject * obj1 = 0 ;
8821 char *kwnames[] = {
8822 (char *) "self",(char *) "facename", NULL
8823 };
8824
8825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8828 if (obj1) {
8829 {
8830 arg2 = wxString_in_helper(obj1);
8831 if (arg2 == NULL) SWIG_fail;
8832 temp2 = True;
8833 }
8834 }
8835 {
8836 PyThreadState* __tstate = wxPyBeginAllowThreads();
8837 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8838
8839 wxPyEndAllowThreads(__tstate);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 {
8843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8844 }
8845 {
8846 if (temp2)
8847 delete arg2;
8848 }
8849 return resultobj;
8850 fail:
8851 {
8852 if (temp2)
8853 delete arg2;
8854 }
8855 return NULL;
8856 }
8857
8858
8859 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8860 PyObject *resultobj;
8861 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8862 PyObject *result;
8863 PyObject * obj0 = 0 ;
8864 char *kwnames[] = {
8865 (char *) "self", NULL
8866 };
8867
8868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8871 {
8872 PyThreadState* __tstate = wxPyBeginAllowThreads();
8873 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8874
8875 wxPyEndAllowThreads(__tstate);
8876 if (PyErr_Occurred()) SWIG_fail;
8877 }
8878 resultobj = result;
8879 return resultobj;
8880 fail:
8881 return NULL;
8882 }
8883
8884
8885 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8886 PyObject *resultobj;
8887 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8888 PyObject *result;
8889 PyObject * obj0 = 0 ;
8890 char *kwnames[] = {
8891 (char *) "self", NULL
8892 };
8893
8894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8897 {
8898 PyThreadState* __tstate = wxPyBeginAllowThreads();
8899 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8900
8901 wxPyEndAllowThreads(__tstate);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 resultobj = result;
8905 return resultobj;
8906 fail:
8907 return NULL;
8908 }
8909
8910
8911 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8912 PyObject *obj;
8913 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8914 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8915 Py_INCREF(obj);
8916 return Py_BuildValue((char *)"");
8917 }
8918 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8919 PyObject *resultobj;
8920 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8921 int arg2 ;
8922 PyObject * obj0 = 0 ;
8923 PyObject * obj1 = 0 ;
8924 char *kwnames[] = {
8925 (char *) "self",(char *) "Language", NULL
8926 };
8927
8928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8931 arg2 = (int) SWIG_AsInt(obj1);
8932 if (PyErr_Occurred()) SWIG_fail;
8933 if (arg1) (arg1)->Language = arg2;
8934
8935 Py_INCREF(Py_None); resultobj = Py_None;
8936 return resultobj;
8937 fail:
8938 return NULL;
8939 }
8940
8941
8942 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8943 PyObject *resultobj;
8944 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8945 int result;
8946 PyObject * obj0 = 0 ;
8947 char *kwnames[] = {
8948 (char *) "self", NULL
8949 };
8950
8951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8954 result = (int) ((arg1)->Language);
8955
8956 resultobj = SWIG_FromInt((int)result);
8957 return resultobj;
8958 fail:
8959 return NULL;
8960 }
8961
8962
8963 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8964 PyObject *resultobj;
8965 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8966 wxString *arg2 = (wxString *) 0 ;
8967 bool temp2 = False ;
8968 PyObject * obj0 = 0 ;
8969 PyObject * obj1 = 0 ;
8970 char *kwnames[] = {
8971 (char *) "self",(char *) "CanonicalName", NULL
8972 };
8973
8974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8977 {
8978 arg2 = wxString_in_helper(obj1);
8979 if (arg2 == NULL) SWIG_fail;
8980 temp2 = True;
8981 }
8982 if (arg1) (arg1)->CanonicalName = *arg2;
8983
8984 Py_INCREF(Py_None); resultobj = Py_None;
8985 {
8986 if (temp2)
8987 delete arg2;
8988 }
8989 return resultobj;
8990 fail:
8991 {
8992 if (temp2)
8993 delete arg2;
8994 }
8995 return NULL;
8996 }
8997
8998
8999 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj;
9001 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9002 wxString *result;
9003 PyObject * obj0 = 0 ;
9004 char *kwnames[] = {
9005 (char *) "self", NULL
9006 };
9007
9008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9011 result = (wxString *)& ((arg1)->CanonicalName);
9012
9013 {
9014 #if wxUSE_UNICODE
9015 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9016 #else
9017 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9018 #endif
9019 }
9020 return resultobj;
9021 fail:
9022 return NULL;
9023 }
9024
9025
9026 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9027 PyObject *resultobj;
9028 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9029 wxString *arg2 = (wxString *) 0 ;
9030 bool temp2 = False ;
9031 PyObject * obj0 = 0 ;
9032 PyObject * obj1 = 0 ;
9033 char *kwnames[] = {
9034 (char *) "self",(char *) "Description", NULL
9035 };
9036
9037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9040 {
9041 arg2 = wxString_in_helper(obj1);
9042 if (arg2 == NULL) SWIG_fail;
9043 temp2 = True;
9044 }
9045 if (arg1) (arg1)->Description = *arg2;
9046
9047 Py_INCREF(Py_None); resultobj = Py_None;
9048 {
9049 if (temp2)
9050 delete arg2;
9051 }
9052 return resultobj;
9053 fail:
9054 {
9055 if (temp2)
9056 delete arg2;
9057 }
9058 return NULL;
9059 }
9060
9061
9062 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9063 PyObject *resultobj;
9064 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9065 wxString *result;
9066 PyObject * obj0 = 0 ;
9067 char *kwnames[] = {
9068 (char *) "self", NULL
9069 };
9070
9071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9074 result = (wxString *)& ((arg1)->Description);
9075
9076 {
9077 #if wxUSE_UNICODE
9078 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9079 #else
9080 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9081 #endif
9082 }
9083 return resultobj;
9084 fail:
9085 return NULL;
9086 }
9087
9088
9089 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9090 PyObject *obj;
9091 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9092 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9093 Py_INCREF(obj);
9094 return Py_BuildValue((char *)"");
9095 }
9096 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9097 PyObject *resultobj;
9098 int arg1 = (int) -1 ;
9099 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9100 wxLocale *result;
9101 PyObject * obj0 = 0 ;
9102 PyObject * obj1 = 0 ;
9103 char *kwnames[] = {
9104 (char *) "language",(char *) "flags", NULL
9105 };
9106
9107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9108 if (obj0) {
9109 arg1 = (int) SWIG_AsInt(obj0);
9110 if (PyErr_Occurred()) SWIG_fail;
9111 }
9112 if (obj1) {
9113 arg2 = (int) SWIG_AsInt(obj1);
9114 if (PyErr_Occurred()) SWIG_fail;
9115 }
9116 {
9117 PyThreadState* __tstate = wxPyBeginAllowThreads();
9118 result = (wxLocale *)new_wxLocale(arg1,arg2);
9119
9120 wxPyEndAllowThreads(__tstate);
9121 if (PyErr_Occurred()) SWIG_fail;
9122 }
9123 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9124 return resultobj;
9125 fail:
9126 return NULL;
9127 }
9128
9129
9130 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9131 PyObject *resultobj;
9132 wxLocale *arg1 = (wxLocale *) 0 ;
9133 PyObject * obj0 = 0 ;
9134 char *kwnames[] = {
9135 (char *) "self", NULL
9136 };
9137
9138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9141 {
9142 PyThreadState* __tstate = wxPyBeginAllowThreads();
9143 delete arg1;
9144
9145 wxPyEndAllowThreads(__tstate);
9146 if (PyErr_Occurred()) SWIG_fail;
9147 }
9148 Py_INCREF(Py_None); resultobj = Py_None;
9149 return resultobj;
9150 fail:
9151 return NULL;
9152 }
9153
9154
9155 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9156 PyObject *resultobj;
9157 wxLocale *arg1 = (wxLocale *) 0 ;
9158 wxString *arg2 = 0 ;
9159 wxString const &arg3_defvalue = wxPyEmptyString ;
9160 wxString *arg3 = (wxString *) &arg3_defvalue ;
9161 wxString const &arg4_defvalue = wxPyEmptyString ;
9162 wxString *arg4 = (wxString *) &arg4_defvalue ;
9163 bool arg5 = (bool) True ;
9164 bool arg6 = (bool) False ;
9165 bool result;
9166 bool temp2 = False ;
9167 bool temp3 = False ;
9168 bool temp4 = False ;
9169 PyObject * obj0 = 0 ;
9170 PyObject * obj1 = 0 ;
9171 PyObject * obj2 = 0 ;
9172 PyObject * obj3 = 0 ;
9173 PyObject * obj4 = 0 ;
9174 PyObject * obj5 = 0 ;
9175 char *kwnames[] = {
9176 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9177 };
9178
9179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9182 {
9183 arg2 = wxString_in_helper(obj1);
9184 if (arg2 == NULL) SWIG_fail;
9185 temp2 = True;
9186 }
9187 if (obj2) {
9188 {
9189 arg3 = wxString_in_helper(obj2);
9190 if (arg3 == NULL) SWIG_fail;
9191 temp3 = True;
9192 }
9193 }
9194 if (obj3) {
9195 {
9196 arg4 = wxString_in_helper(obj3);
9197 if (arg4 == NULL) SWIG_fail;
9198 temp4 = True;
9199 }
9200 }
9201 if (obj4) {
9202 arg5 = (bool) SWIG_AsBool(obj4);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 }
9205 if (obj5) {
9206 arg6 = (bool) SWIG_AsBool(obj5);
9207 if (PyErr_Occurred()) SWIG_fail;
9208 }
9209 {
9210 PyThreadState* __tstate = wxPyBeginAllowThreads();
9211 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9212
9213 wxPyEndAllowThreads(__tstate);
9214 if (PyErr_Occurred()) SWIG_fail;
9215 }
9216 {
9217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9218 }
9219 {
9220 if (temp2)
9221 delete arg2;
9222 }
9223 {
9224 if (temp3)
9225 delete arg3;
9226 }
9227 {
9228 if (temp4)
9229 delete arg4;
9230 }
9231 return resultobj;
9232 fail:
9233 {
9234 if (temp2)
9235 delete arg2;
9236 }
9237 {
9238 if (temp3)
9239 delete arg3;
9240 }
9241 {
9242 if (temp4)
9243 delete arg4;
9244 }
9245 return NULL;
9246 }
9247
9248
9249 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9250 PyObject *resultobj;
9251 wxLocale *arg1 = (wxLocale *) 0 ;
9252 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9253 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9254 bool result;
9255 PyObject * obj0 = 0 ;
9256 PyObject * obj1 = 0 ;
9257 PyObject * obj2 = 0 ;
9258 char *kwnames[] = {
9259 (char *) "self",(char *) "language",(char *) "flags", NULL
9260 };
9261
9262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9265 if (obj1) {
9266 arg2 = (int) SWIG_AsInt(obj1);
9267 if (PyErr_Occurred()) SWIG_fail;
9268 }
9269 if (obj2) {
9270 arg3 = (int) SWIG_AsInt(obj2);
9271 if (PyErr_Occurred()) SWIG_fail;
9272 }
9273 {
9274 PyThreadState* __tstate = wxPyBeginAllowThreads();
9275 result = (bool)(arg1)->Init(arg2,arg3);
9276
9277 wxPyEndAllowThreads(__tstate);
9278 if (PyErr_Occurred()) SWIG_fail;
9279 }
9280 {
9281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9282 }
9283 return resultobj;
9284 fail:
9285 return NULL;
9286 }
9287
9288
9289 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9290 PyObject *resultobj;
9291 int result;
9292 char *kwnames[] = {
9293 NULL
9294 };
9295
9296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9297 {
9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
9299 result = (int)wxLocale::GetSystemLanguage();
9300
9301 wxPyEndAllowThreads(__tstate);
9302 if (PyErr_Occurred()) SWIG_fail;
9303 }
9304 resultobj = SWIG_FromInt((int)result);
9305 return resultobj;
9306 fail:
9307 return NULL;
9308 }
9309
9310
9311 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9312 PyObject *resultobj;
9313 int result;
9314 char *kwnames[] = {
9315 NULL
9316 };
9317
9318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9319 {
9320 PyThreadState* __tstate = wxPyBeginAllowThreads();
9321 result = (int)wxLocale::GetSystemEncoding();
9322
9323 wxPyEndAllowThreads(__tstate);
9324 if (PyErr_Occurred()) SWIG_fail;
9325 }
9326 resultobj = SWIG_FromInt((int)result);
9327 return resultobj;
9328 fail:
9329 return NULL;
9330 }
9331
9332
9333 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9334 PyObject *resultobj;
9335 wxString result;
9336 char *kwnames[] = {
9337 NULL
9338 };
9339
9340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 result = wxLocale::GetSystemEncodingName();
9344
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) SWIG_fail;
9347 }
9348 {
9349 #if wxUSE_UNICODE
9350 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9351 #else
9352 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9353 #endif
9354 }
9355 return resultobj;
9356 fail:
9357 return NULL;
9358 }
9359
9360
9361 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9362 PyObject *resultobj;
9363 wxLocale *arg1 = (wxLocale *) 0 ;
9364 bool result;
9365 PyObject * obj0 = 0 ;
9366 char *kwnames[] = {
9367 (char *) "self", NULL
9368 };
9369
9370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9373 {
9374 PyThreadState* __tstate = wxPyBeginAllowThreads();
9375 result = (bool)((wxLocale const *)arg1)->IsOk();
9376
9377 wxPyEndAllowThreads(__tstate);
9378 if (PyErr_Occurred()) SWIG_fail;
9379 }
9380 {
9381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9382 }
9383 return resultobj;
9384 fail:
9385 return NULL;
9386 }
9387
9388
9389 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9390 PyObject *resultobj;
9391 wxLocale *arg1 = (wxLocale *) 0 ;
9392 wxString result;
9393 PyObject * obj0 = 0 ;
9394 char *kwnames[] = {
9395 (char *) "self", NULL
9396 };
9397
9398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9401 {
9402 PyThreadState* __tstate = wxPyBeginAllowThreads();
9403 result = ((wxLocale const *)arg1)->GetLocale();
9404
9405 wxPyEndAllowThreads(__tstate);
9406 if (PyErr_Occurred()) SWIG_fail;
9407 }
9408 {
9409 #if wxUSE_UNICODE
9410 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9411 #else
9412 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9413 #endif
9414 }
9415 return resultobj;
9416 fail:
9417 return NULL;
9418 }
9419
9420
9421 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9422 PyObject *resultobj;
9423 wxLocale *arg1 = (wxLocale *) 0 ;
9424 int result;
9425 PyObject * obj0 = 0 ;
9426 char *kwnames[] = {
9427 (char *) "self", NULL
9428 };
9429
9430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 result = (int)((wxLocale const *)arg1)->GetLanguage();
9436
9437 wxPyEndAllowThreads(__tstate);
9438 if (PyErr_Occurred()) SWIG_fail;
9439 }
9440 resultobj = SWIG_FromInt((int)result);
9441 return resultobj;
9442 fail:
9443 return NULL;
9444 }
9445
9446
9447 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9448 PyObject *resultobj;
9449 wxLocale *arg1 = (wxLocale *) 0 ;
9450 wxString result;
9451 PyObject * obj0 = 0 ;
9452 char *kwnames[] = {
9453 (char *) "self", NULL
9454 };
9455
9456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9459 {
9460 PyThreadState* __tstate = wxPyBeginAllowThreads();
9461 result = ((wxLocale const *)arg1)->GetSysName();
9462
9463 wxPyEndAllowThreads(__tstate);
9464 if (PyErr_Occurred()) SWIG_fail;
9465 }
9466 {
9467 #if wxUSE_UNICODE
9468 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9469 #else
9470 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9471 #endif
9472 }
9473 return resultobj;
9474 fail:
9475 return NULL;
9476 }
9477
9478
9479 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9480 PyObject *resultobj;
9481 wxLocale *arg1 = (wxLocale *) 0 ;
9482 wxString result;
9483 PyObject * obj0 = 0 ;
9484 char *kwnames[] = {
9485 (char *) "self", NULL
9486 };
9487
9488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9491 {
9492 PyThreadState* __tstate = wxPyBeginAllowThreads();
9493 result = ((wxLocale const *)arg1)->GetCanonicalName();
9494
9495 wxPyEndAllowThreads(__tstate);
9496 if (PyErr_Occurred()) SWIG_fail;
9497 }
9498 {
9499 #if wxUSE_UNICODE
9500 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9501 #else
9502 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9503 #endif
9504 }
9505 return resultobj;
9506 fail:
9507 return NULL;
9508 }
9509
9510
9511 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9512 PyObject *resultobj;
9513 wxString *arg1 = 0 ;
9514 bool temp1 = False ;
9515 PyObject * obj0 = 0 ;
9516 char *kwnames[] = {
9517 (char *) "prefix", NULL
9518 };
9519
9520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9521 {
9522 arg1 = wxString_in_helper(obj0);
9523 if (arg1 == NULL) SWIG_fail;
9524 temp1 = True;
9525 }
9526 {
9527 PyThreadState* __tstate = wxPyBeginAllowThreads();
9528 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9529
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 Py_INCREF(Py_None); resultobj = Py_None;
9534 {
9535 if (temp1)
9536 delete arg1;
9537 }
9538 return resultobj;
9539 fail:
9540 {
9541 if (temp1)
9542 delete arg1;
9543 }
9544 return NULL;
9545 }
9546
9547
9548 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9549 PyObject *resultobj;
9550 wxLocale *arg1 = (wxLocale *) 0 ;
9551 wxString *arg2 = 0 ;
9552 bool result;
9553 bool temp2 = False ;
9554 PyObject * obj0 = 0 ;
9555 PyObject * obj1 = 0 ;
9556 char *kwnames[] = {
9557 (char *) "self",(char *) "szDomain", NULL
9558 };
9559
9560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9563 {
9564 arg2 = wxString_in_helper(obj1);
9565 if (arg2 == NULL) SWIG_fail;
9566 temp2 = True;
9567 }
9568 {
9569 PyThreadState* __tstate = wxPyBeginAllowThreads();
9570 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9571
9572 wxPyEndAllowThreads(__tstate);
9573 if (PyErr_Occurred()) SWIG_fail;
9574 }
9575 {
9576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9577 }
9578 {
9579 if (temp2)
9580 delete arg2;
9581 }
9582 return resultobj;
9583 fail:
9584 {
9585 if (temp2)
9586 delete arg2;
9587 }
9588 return NULL;
9589 }
9590
9591
9592 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9593 PyObject *resultobj;
9594 wxLocale *arg1 = (wxLocale *) 0 ;
9595 wxString *arg2 = 0 ;
9596 bool result;
9597 bool temp2 = False ;
9598 PyObject * obj0 = 0 ;
9599 PyObject * obj1 = 0 ;
9600 char *kwnames[] = {
9601 (char *) "self",(char *) "szDomain", NULL
9602 };
9603
9604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9607 {
9608 arg2 = wxString_in_helper(obj1);
9609 if (arg2 == NULL) SWIG_fail;
9610 temp2 = True;
9611 }
9612 {
9613 PyThreadState* __tstate = wxPyBeginAllowThreads();
9614 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9615
9616 wxPyEndAllowThreads(__tstate);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 }
9619 {
9620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9621 }
9622 {
9623 if (temp2)
9624 delete arg2;
9625 }
9626 return resultobj;
9627 fail:
9628 {
9629 if (temp2)
9630 delete arg2;
9631 }
9632 return NULL;
9633 }
9634
9635
9636 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9637 PyObject *resultobj;
9638 int arg1 ;
9639 wxLanguageInfo *result;
9640 PyObject * obj0 = 0 ;
9641 char *kwnames[] = {
9642 (char *) "lang", NULL
9643 };
9644
9645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9646 arg1 = (int) SWIG_AsInt(obj0);
9647 if (PyErr_Occurred()) SWIG_fail;
9648 {
9649 PyThreadState* __tstate = wxPyBeginAllowThreads();
9650 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9651
9652 wxPyEndAllowThreads(__tstate);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 }
9655 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9656 return resultobj;
9657 fail:
9658 return NULL;
9659 }
9660
9661
9662 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9663 PyObject *resultobj;
9664 int arg1 ;
9665 wxString result;
9666 PyObject * obj0 = 0 ;
9667 char *kwnames[] = {
9668 (char *) "lang", NULL
9669 };
9670
9671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9672 arg1 = (int) SWIG_AsInt(obj0);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 {
9675 PyThreadState* __tstate = wxPyBeginAllowThreads();
9676 result = wxLocale::GetLanguageName(arg1);
9677
9678 wxPyEndAllowThreads(__tstate);
9679 if (PyErr_Occurred()) SWIG_fail;
9680 }
9681 {
9682 #if wxUSE_UNICODE
9683 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9684 #else
9685 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9686 #endif
9687 }
9688 return resultobj;
9689 fail:
9690 return NULL;
9691 }
9692
9693
9694 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9695 PyObject *resultobj;
9696 wxString *arg1 = 0 ;
9697 wxLanguageInfo *result;
9698 bool temp1 = False ;
9699 PyObject * obj0 = 0 ;
9700 char *kwnames[] = {
9701 (char *) "locale", NULL
9702 };
9703
9704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9705 {
9706 arg1 = wxString_in_helper(obj0);
9707 if (arg1 == NULL) SWIG_fail;
9708 temp1 = True;
9709 }
9710 {
9711 PyThreadState* __tstate = wxPyBeginAllowThreads();
9712 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9713
9714 wxPyEndAllowThreads(__tstate);
9715 if (PyErr_Occurred()) SWIG_fail;
9716 }
9717 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9718 {
9719 if (temp1)
9720 delete arg1;
9721 }
9722 return resultobj;
9723 fail:
9724 {
9725 if (temp1)
9726 delete arg1;
9727 }
9728 return NULL;
9729 }
9730
9731
9732 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj;
9734 wxLanguageInfo *arg1 = 0 ;
9735 PyObject * obj0 = 0 ;
9736 char *kwnames[] = {
9737 (char *) "info", NULL
9738 };
9739
9740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9742 SWIG_POINTER_EXCEPTION | 0)) == -1)
9743 SWIG_fail;
9744 if (arg1 == NULL) {
9745 PyErr_SetString(PyExc_TypeError,"null reference");
9746 SWIG_fail;
9747 }
9748 {
9749 PyThreadState* __tstate = wxPyBeginAllowThreads();
9750 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9751
9752 wxPyEndAllowThreads(__tstate);
9753 if (PyErr_Occurred()) SWIG_fail;
9754 }
9755 Py_INCREF(Py_None); resultobj = Py_None;
9756 return resultobj;
9757 fail:
9758 return NULL;
9759 }
9760
9761
9762 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9763 PyObject *resultobj;
9764 wxLocale *arg1 = (wxLocale *) 0 ;
9765 wxString *arg2 = 0 ;
9766 wxString const &arg3_defvalue = wxPyEmptyString ;
9767 wxString *arg3 = (wxString *) &arg3_defvalue ;
9768 wxString result;
9769 bool temp2 = False ;
9770 bool temp3 = False ;
9771 PyObject * obj0 = 0 ;
9772 PyObject * obj1 = 0 ;
9773 PyObject * obj2 = 0 ;
9774 char *kwnames[] = {
9775 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9776 };
9777
9778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9781 {
9782 arg2 = wxString_in_helper(obj1);
9783 if (arg2 == NULL) SWIG_fail;
9784 temp2 = True;
9785 }
9786 if (obj2) {
9787 {
9788 arg3 = wxString_in_helper(obj2);
9789 if (arg3 == NULL) SWIG_fail;
9790 temp3 = True;
9791 }
9792 }
9793 {
9794 PyThreadState* __tstate = wxPyBeginAllowThreads();
9795 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9796
9797 wxPyEndAllowThreads(__tstate);
9798 if (PyErr_Occurred()) SWIG_fail;
9799 }
9800 {
9801 #if wxUSE_UNICODE
9802 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9803 #else
9804 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9805 #endif
9806 }
9807 {
9808 if (temp2)
9809 delete arg2;
9810 }
9811 {
9812 if (temp3)
9813 delete arg3;
9814 }
9815 return resultobj;
9816 fail:
9817 {
9818 if (temp2)
9819 delete arg2;
9820 }
9821 {
9822 if (temp3)
9823 delete arg3;
9824 }
9825 return NULL;
9826 }
9827
9828
9829 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9830 PyObject *resultobj;
9831 wxLocale *arg1 = (wxLocale *) 0 ;
9832 wxString *result;
9833 PyObject * obj0 = 0 ;
9834 char *kwnames[] = {
9835 (char *) "self", NULL
9836 };
9837
9838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9841 {
9842 PyThreadState* __tstate = wxPyBeginAllowThreads();
9843 {
9844 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9845 result = (wxString *) &_result_ref;
9846 }
9847
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 {
9852 #if wxUSE_UNICODE
9853 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9854 #else
9855 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9856 #endif
9857 }
9858 return resultobj;
9859 fail:
9860 return NULL;
9861 }
9862
9863
9864 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9865 PyObject *obj;
9866 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9867 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9868 Py_INCREF(obj);
9869 return Py_BuildValue((char *)"");
9870 }
9871 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9872 PyObject *resultobj;
9873 wxLocale *result;
9874 char *kwnames[] = {
9875 NULL
9876 };
9877
9878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9879 {
9880 PyThreadState* __tstate = wxPyBeginAllowThreads();
9881 result = (wxLocale *)wxGetLocale();
9882
9883 wxPyEndAllowThreads(__tstate);
9884 if (PyErr_Occurred()) SWIG_fail;
9885 }
9886 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9887 return resultobj;
9888 fail:
9889 return NULL;
9890 }
9891
9892
9893 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9894 PyObject *resultobj;
9895 wxString *arg1 = 0 ;
9896 wxString result;
9897 bool temp1 = False ;
9898 PyObject * obj0 = 0 ;
9899
9900 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9901 {
9902 arg1 = wxString_in_helper(obj0);
9903 if (arg1 == NULL) SWIG_fail;
9904 temp1 = True;
9905 }
9906 {
9907 PyThreadState* __tstate = wxPyBeginAllowThreads();
9908 result = wxGetTranslation((wxString const &)*arg1);
9909
9910 wxPyEndAllowThreads(__tstate);
9911 if (PyErr_Occurred()) SWIG_fail;
9912 }
9913 {
9914 #if wxUSE_UNICODE
9915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9916 #else
9917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9918 #endif
9919 }
9920 {
9921 if (temp1)
9922 delete arg1;
9923 }
9924 return resultobj;
9925 fail:
9926 {
9927 if (temp1)
9928 delete arg1;
9929 }
9930 return NULL;
9931 }
9932
9933
9934 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9935 PyObject *resultobj;
9936 wxString *arg1 = 0 ;
9937 wxString *arg2 = 0 ;
9938 size_t arg3 ;
9939 wxString result;
9940 bool temp1 = False ;
9941 bool temp2 = False ;
9942 PyObject * obj0 = 0 ;
9943 PyObject * obj1 = 0 ;
9944 PyObject * obj2 = 0 ;
9945
9946 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9947 {
9948 arg1 = wxString_in_helper(obj0);
9949 if (arg1 == NULL) SWIG_fail;
9950 temp1 = True;
9951 }
9952 {
9953 arg2 = wxString_in_helper(obj1);
9954 if (arg2 == NULL) SWIG_fail;
9955 temp2 = True;
9956 }
9957 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9958 if (PyErr_Occurred()) SWIG_fail;
9959 {
9960 PyThreadState* __tstate = wxPyBeginAllowThreads();
9961 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9962
9963 wxPyEndAllowThreads(__tstate);
9964 if (PyErr_Occurred()) SWIG_fail;
9965 }
9966 {
9967 #if wxUSE_UNICODE
9968 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9969 #else
9970 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9971 #endif
9972 }
9973 {
9974 if (temp1)
9975 delete arg1;
9976 }
9977 {
9978 if (temp2)
9979 delete arg2;
9980 }
9981 return resultobj;
9982 fail:
9983 {
9984 if (temp1)
9985 delete arg1;
9986 }
9987 {
9988 if (temp2)
9989 delete arg2;
9990 }
9991 return NULL;
9992 }
9993
9994
9995 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9996 int argc;
9997 PyObject *argv[4];
9998 int ii;
9999
10000 argc = PyObject_Length(args);
10001 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10002 argv[ii] = PyTuple_GetItem(args,ii);
10003 }
10004 if (argc == 1) {
10005 int _v;
10006 {
10007 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10008 }
10009 if (_v) {
10010 return _wrap_GetTranslation__SWIG_0(self,args);
10011 }
10012 }
10013 if (argc == 3) {
10014 int _v;
10015 {
10016 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10017 }
10018 if (_v) {
10019 {
10020 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10021 }
10022 if (_v) {
10023 _v = SWIG_CheckUnsignedLong(argv[2]);
10024 if (_v) {
10025 return _wrap_GetTranslation__SWIG_1(self,args);
10026 }
10027 }
10028 }
10029 }
10030
10031 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10032 return NULL;
10033 }
10034
10035
10036 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10037 PyObject *resultobj;
10038 wxEncodingConverter *result;
10039 char *kwnames[] = {
10040 NULL
10041 };
10042
10043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10044 {
10045 PyThreadState* __tstate = wxPyBeginAllowThreads();
10046 result = (wxEncodingConverter *)new wxEncodingConverter();
10047
10048 wxPyEndAllowThreads(__tstate);
10049 if (PyErr_Occurred()) SWIG_fail;
10050 }
10051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10052 return resultobj;
10053 fail:
10054 return NULL;
10055 }
10056
10057
10058 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10059 PyObject *resultobj;
10060 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10061 PyObject * obj0 = 0 ;
10062 char *kwnames[] = {
10063 (char *) "self", NULL
10064 };
10065
10066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10069 {
10070 PyThreadState* __tstate = wxPyBeginAllowThreads();
10071 delete arg1;
10072
10073 wxPyEndAllowThreads(__tstate);
10074 if (PyErr_Occurred()) SWIG_fail;
10075 }
10076 Py_INCREF(Py_None); resultobj = Py_None;
10077 return resultobj;
10078 fail:
10079 return NULL;
10080 }
10081
10082
10083 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10084 PyObject *resultobj;
10085 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10086 int arg2 ;
10087 int arg3 ;
10088 int arg4 = (int) wxCONVERT_STRICT ;
10089 bool result;
10090 PyObject * obj0 = 0 ;
10091 PyObject * obj1 = 0 ;
10092 PyObject * obj2 = 0 ;
10093 PyObject * obj3 = 0 ;
10094 char *kwnames[] = {
10095 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10096 };
10097
10098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10101 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10102 if (PyErr_Occurred()) SWIG_fail;
10103 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10104 if (PyErr_Occurred()) SWIG_fail;
10105 if (obj3) {
10106 arg4 = (int) SWIG_AsInt(obj3);
10107 if (PyErr_Occurred()) SWIG_fail;
10108 }
10109 {
10110 PyThreadState* __tstate = wxPyBeginAllowThreads();
10111 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10112
10113 wxPyEndAllowThreads(__tstate);
10114 if (PyErr_Occurred()) SWIG_fail;
10115 }
10116 {
10117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10118 }
10119 return resultobj;
10120 fail:
10121 return NULL;
10122 }
10123
10124
10125 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10126 PyObject *resultobj;
10127 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10128 wxString *arg2 = 0 ;
10129 wxString result;
10130 bool temp2 = False ;
10131 PyObject * obj0 = 0 ;
10132 PyObject * obj1 = 0 ;
10133 char *kwnames[] = {
10134 (char *) "self",(char *) "input", NULL
10135 };
10136
10137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10140 {
10141 arg2 = wxString_in_helper(obj1);
10142 if (arg2 == NULL) SWIG_fail;
10143 temp2 = True;
10144 }
10145 {
10146 PyThreadState* __tstate = wxPyBeginAllowThreads();
10147 result = (arg1)->Convert((wxString const &)*arg2);
10148
10149 wxPyEndAllowThreads(__tstate);
10150 if (PyErr_Occurred()) SWIG_fail;
10151 }
10152 {
10153 #if wxUSE_UNICODE
10154 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10155 #else
10156 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10157 #endif
10158 }
10159 {
10160 if (temp2)
10161 delete arg2;
10162 }
10163 return resultobj;
10164 fail:
10165 {
10166 if (temp2)
10167 delete arg2;
10168 }
10169 return NULL;
10170 }
10171
10172
10173 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10174 PyObject *resultobj;
10175 int arg1 ;
10176 int arg2 = (int) wxPLATFORM_CURRENT ;
10177 wxFontEncodingArray result;
10178 PyObject * obj0 = 0 ;
10179 PyObject * obj1 = 0 ;
10180 char *kwnames[] = {
10181 (char *) "enc",(char *) "platform", NULL
10182 };
10183
10184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10185 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10186 if (PyErr_Occurred()) SWIG_fail;
10187 if (obj1) {
10188 arg2 = (int) SWIG_AsInt(obj1);
10189 if (PyErr_Occurred()) SWIG_fail;
10190 }
10191 {
10192 PyThreadState* __tstate = wxPyBeginAllowThreads();
10193 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10194
10195 wxPyEndAllowThreads(__tstate);
10196 if (PyErr_Occurred()) SWIG_fail;
10197 }
10198 {
10199 resultobj = PyList_New(0);
10200 for (size_t i=0; i < (&result)->GetCount(); i++) {
10201 PyObject* number = PyInt_FromLong((&result)->Item(i));
10202 PyList_Append(resultobj, number);
10203 Py_DECREF(number);
10204 }
10205 }
10206 return resultobj;
10207 fail:
10208 return NULL;
10209 }
10210
10211
10212 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10213 PyObject *resultobj;
10214 int arg1 ;
10215 wxFontEncodingArray result;
10216 PyObject * obj0 = 0 ;
10217 char *kwnames[] = {
10218 (char *) "enc", NULL
10219 };
10220
10221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10222 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10223 if (PyErr_Occurred()) SWIG_fail;
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10227
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 {
10232 resultobj = PyList_New(0);
10233 for (size_t i=0; i < (&result)->GetCount(); i++) {
10234 PyObject* number = PyInt_FromLong((&result)->Item(i));
10235 PyList_Append(resultobj, number);
10236 Py_DECREF(number);
10237 }
10238 }
10239 return resultobj;
10240 fail:
10241 return NULL;
10242 }
10243
10244
10245 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10246 PyObject *resultobj;
10247 int arg1 ;
10248 int arg2 ;
10249 bool result;
10250 PyObject * obj0 = 0 ;
10251 PyObject * obj1 = 0 ;
10252 char *kwnames[] = {
10253 (char *) "encIn",(char *) "encOut", NULL
10254 };
10255
10256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10257 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10258 if (PyErr_Occurred()) SWIG_fail;
10259 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10260 if (PyErr_Occurred()) SWIG_fail;
10261 {
10262 PyThreadState* __tstate = wxPyBeginAllowThreads();
10263 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10264
10265 wxPyEndAllowThreads(__tstate);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 }
10268 {
10269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10270 }
10271 return resultobj;
10272 fail:
10273 return NULL;
10274 }
10275
10276
10277 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10278 PyObject *obj;
10279 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10280 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10281 Py_INCREF(obj);
10282 return Py_BuildValue((char *)"");
10283 }
10284 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10285 PyObject *resultobj;
10286 wxDC *arg1 = (wxDC *) 0 ;
10287 PyObject * obj0 = 0 ;
10288 char *kwnames[] = {
10289 (char *) "self", NULL
10290 };
10291
10292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10295 {
10296 PyThreadState* __tstate = wxPyBeginAllowThreads();
10297 delete arg1;
10298
10299 wxPyEndAllowThreads(__tstate);
10300 if (PyErr_Occurred()) SWIG_fail;
10301 }
10302 Py_INCREF(Py_None); resultobj = Py_None;
10303 return resultobj;
10304 fail:
10305 return NULL;
10306 }
10307
10308
10309 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10310 PyObject *resultobj;
10311 wxDC *arg1 = (wxDC *) 0 ;
10312 PyObject * obj0 = 0 ;
10313 char *kwnames[] = {
10314 (char *) "self", NULL
10315 };
10316
10317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10320 {
10321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10322 (arg1)->BeginDrawing();
10323
10324 wxPyEndAllowThreads(__tstate);
10325 if (PyErr_Occurred()) SWIG_fail;
10326 }
10327 Py_INCREF(Py_None); resultobj = Py_None;
10328 return resultobj;
10329 fail:
10330 return NULL;
10331 }
10332
10333
10334 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10335 PyObject *resultobj;
10336 wxDC *arg1 = (wxDC *) 0 ;
10337 PyObject * obj0 = 0 ;
10338 char *kwnames[] = {
10339 (char *) "self", NULL
10340 };
10341
10342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10345 {
10346 PyThreadState* __tstate = wxPyBeginAllowThreads();
10347 (arg1)->EndDrawing();
10348
10349 wxPyEndAllowThreads(__tstate);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 Py_INCREF(Py_None); resultobj = Py_None;
10353 return resultobj;
10354 fail:
10355 return NULL;
10356 }
10357
10358
10359 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10360 PyObject *resultobj;
10361 wxDC *arg1 = (wxDC *) 0 ;
10362 int arg2 ;
10363 int arg3 ;
10364 wxColour *arg4 = 0 ;
10365 int arg5 = (int) wxFLOOD_SURFACE ;
10366 bool result;
10367 wxColour temp4 ;
10368 PyObject * obj0 = 0 ;
10369 PyObject * obj1 = 0 ;
10370 PyObject * obj2 = 0 ;
10371 PyObject * obj3 = 0 ;
10372 PyObject * obj4 = 0 ;
10373 char *kwnames[] = {
10374 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10375 };
10376
10377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10380 arg2 = (int) SWIG_AsInt(obj1);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 arg3 = (int) SWIG_AsInt(obj2);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 {
10385 arg4 = &temp4;
10386 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10387 }
10388 if (obj4) {
10389 arg5 = (int) SWIG_AsInt(obj4);
10390 if (PyErr_Occurred()) SWIG_fail;
10391 }
10392 {
10393 PyThreadState* __tstate = wxPyBeginAllowThreads();
10394 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10395
10396 wxPyEndAllowThreads(__tstate);
10397 if (PyErr_Occurred()) SWIG_fail;
10398 }
10399 {
10400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10401 }
10402 return resultobj;
10403 fail:
10404 return NULL;
10405 }
10406
10407
10408 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10409 PyObject *resultobj;
10410 wxDC *arg1 = (wxDC *) 0 ;
10411 wxPoint *arg2 = 0 ;
10412 wxColour *arg3 = 0 ;
10413 int arg4 = (int) wxFLOOD_SURFACE ;
10414 bool result;
10415 wxPoint temp2 ;
10416 wxColour temp3 ;
10417 PyObject * obj0 = 0 ;
10418 PyObject * obj1 = 0 ;
10419 PyObject * obj2 = 0 ;
10420 PyObject * obj3 = 0 ;
10421 char *kwnames[] = {
10422 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10423 };
10424
10425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10428 {
10429 arg2 = &temp2;
10430 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10431 }
10432 {
10433 arg3 = &temp3;
10434 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10435 }
10436 if (obj3) {
10437 arg4 = (int) SWIG_AsInt(obj3);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 {
10441 PyThreadState* __tstate = wxPyBeginAllowThreads();
10442 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10443
10444 wxPyEndAllowThreads(__tstate);
10445 if (PyErr_Occurred()) SWIG_fail;
10446 }
10447 {
10448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10449 }
10450 return resultobj;
10451 fail:
10452 return NULL;
10453 }
10454
10455
10456 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10457 PyObject *resultobj;
10458 wxDC *arg1 = (wxDC *) 0 ;
10459 int arg2 ;
10460 int arg3 ;
10461 wxColour result;
10462 PyObject * obj0 = 0 ;
10463 PyObject * obj1 = 0 ;
10464 PyObject * obj2 = 0 ;
10465 char *kwnames[] = {
10466 (char *) "self",(char *) "x",(char *) "y", NULL
10467 };
10468
10469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10472 arg2 = (int) SWIG_AsInt(obj1);
10473 if (PyErr_Occurred()) SWIG_fail;
10474 arg3 = (int) SWIG_AsInt(obj2);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 {
10477 PyThreadState* __tstate = wxPyBeginAllowThreads();
10478 result = wxDC_GetPixel(arg1,arg2,arg3);
10479
10480 wxPyEndAllowThreads(__tstate);
10481 if (PyErr_Occurred()) SWIG_fail;
10482 }
10483 {
10484 wxColour * resultptr;
10485 resultptr = new wxColour((wxColour &) result);
10486 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10487 }
10488 return resultobj;
10489 fail:
10490 return NULL;
10491 }
10492
10493
10494 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10495 PyObject *resultobj;
10496 wxDC *arg1 = (wxDC *) 0 ;
10497 wxPoint *arg2 = 0 ;
10498 wxColour result;
10499 wxPoint temp2 ;
10500 PyObject * obj0 = 0 ;
10501 PyObject * obj1 = 0 ;
10502 char *kwnames[] = {
10503 (char *) "self",(char *) "pt", NULL
10504 };
10505
10506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10509 {
10510 arg2 = &temp2;
10511 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10512 }
10513 {
10514 PyThreadState* __tstate = wxPyBeginAllowThreads();
10515 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10516
10517 wxPyEndAllowThreads(__tstate);
10518 if (PyErr_Occurred()) SWIG_fail;
10519 }
10520 {
10521 wxColour * resultptr;
10522 resultptr = new wxColour((wxColour &) result);
10523 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10524 }
10525 return resultobj;
10526 fail:
10527 return NULL;
10528 }
10529
10530
10531 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10532 PyObject *resultobj;
10533 wxDC *arg1 = (wxDC *) 0 ;
10534 int arg2 ;
10535 int arg3 ;
10536 int arg4 ;
10537 int arg5 ;
10538 PyObject * obj0 = 0 ;
10539 PyObject * obj1 = 0 ;
10540 PyObject * obj2 = 0 ;
10541 PyObject * obj3 = 0 ;
10542 PyObject * obj4 = 0 ;
10543 char *kwnames[] = {
10544 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10545 };
10546
10547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10550 arg2 = (int) SWIG_AsInt(obj1);
10551 if (PyErr_Occurred()) SWIG_fail;
10552 arg3 = (int) SWIG_AsInt(obj2);
10553 if (PyErr_Occurred()) SWIG_fail;
10554 arg4 = (int) SWIG_AsInt(obj3);
10555 if (PyErr_Occurred()) SWIG_fail;
10556 arg5 = (int) SWIG_AsInt(obj4);
10557 if (PyErr_Occurred()) SWIG_fail;
10558 {
10559 PyThreadState* __tstate = wxPyBeginAllowThreads();
10560 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10561
10562 wxPyEndAllowThreads(__tstate);
10563 if (PyErr_Occurred()) SWIG_fail;
10564 }
10565 Py_INCREF(Py_None); resultobj = Py_None;
10566 return resultobj;
10567 fail:
10568 return NULL;
10569 }
10570
10571
10572 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10573 PyObject *resultobj;
10574 wxDC *arg1 = (wxDC *) 0 ;
10575 wxPoint *arg2 = 0 ;
10576 wxPoint *arg3 = 0 ;
10577 wxPoint temp2 ;
10578 wxPoint temp3 ;
10579 PyObject * obj0 = 0 ;
10580 PyObject * obj1 = 0 ;
10581 PyObject * obj2 = 0 ;
10582 char *kwnames[] = {
10583 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10584 };
10585
10586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10589 {
10590 arg2 = &temp2;
10591 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10592 }
10593 {
10594 arg3 = &temp3;
10595 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10596 }
10597 {
10598 PyThreadState* __tstate = wxPyBeginAllowThreads();
10599 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10600
10601 wxPyEndAllowThreads(__tstate);
10602 if (PyErr_Occurred()) SWIG_fail;
10603 }
10604 Py_INCREF(Py_None); resultobj = Py_None;
10605 return resultobj;
10606 fail:
10607 return NULL;
10608 }
10609
10610
10611 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10612 PyObject *resultobj;
10613 wxDC *arg1 = (wxDC *) 0 ;
10614 int arg2 ;
10615 int arg3 ;
10616 PyObject * obj0 = 0 ;
10617 PyObject * obj1 = 0 ;
10618 PyObject * obj2 = 0 ;
10619 char *kwnames[] = {
10620 (char *) "self",(char *) "x",(char *) "y", NULL
10621 };
10622
10623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
10624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10626 arg2 = (int) SWIG_AsInt(obj1);
10627 if (PyErr_Occurred()) SWIG_fail;
10628 arg3 = (int) SWIG_AsInt(obj2);
10629 if (PyErr_Occurred()) SWIG_fail;
10630 {
10631 PyThreadState* __tstate = wxPyBeginAllowThreads();
10632 (arg1)->CrossHair(arg2,arg3);
10633
10634 wxPyEndAllowThreads(__tstate);
10635 if (PyErr_Occurred()) SWIG_fail;
10636 }
10637 Py_INCREF(Py_None); resultobj = Py_None;
10638 return resultobj;
10639 fail:
10640 return NULL;
10641 }
10642
10643
10644 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10645 PyObject *resultobj;
10646 wxDC *arg1 = (wxDC *) 0 ;
10647 wxPoint *arg2 = 0 ;
10648 wxPoint temp2 ;
10649 PyObject * obj0 = 0 ;
10650 PyObject * obj1 = 0 ;
10651 char *kwnames[] = {
10652 (char *) "self",(char *) "pt", NULL
10653 };
10654
10655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
10656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10658 {
10659 arg2 = &temp2;
10660 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10661 }
10662 {
10663 PyThreadState* __tstate = wxPyBeginAllowThreads();
10664 (arg1)->CrossHair((wxPoint const &)*arg2);
10665
10666 wxPyEndAllowThreads(__tstate);
10667 if (PyErr_Occurred()) SWIG_fail;
10668 }
10669 Py_INCREF(Py_None); resultobj = Py_None;
10670 return resultobj;
10671 fail:
10672 return NULL;
10673 }
10674
10675
10676 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10677 PyObject *resultobj;
10678 wxDC *arg1 = (wxDC *) 0 ;
10679 int arg2 ;
10680 int arg3 ;
10681 int arg4 ;
10682 int arg5 ;
10683 int arg6 ;
10684 int arg7 ;
10685 PyObject * obj0 = 0 ;
10686 PyObject * obj1 = 0 ;
10687 PyObject * obj2 = 0 ;
10688 PyObject * obj3 = 0 ;
10689 PyObject * obj4 = 0 ;
10690 PyObject * obj5 = 0 ;
10691 PyObject * obj6 = 0 ;
10692 char *kwnames[] = {
10693 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10694 };
10695
10696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10699 arg2 = (int) SWIG_AsInt(obj1);
10700 if (PyErr_Occurred()) SWIG_fail;
10701 arg3 = (int) SWIG_AsInt(obj2);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 arg4 = (int) SWIG_AsInt(obj3);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 arg5 = (int) SWIG_AsInt(obj4);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 arg6 = (int) SWIG_AsInt(obj5);
10708 if (PyErr_Occurred()) SWIG_fail;
10709 arg7 = (int) SWIG_AsInt(obj6);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 {
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10714
10715 wxPyEndAllowThreads(__tstate);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 }
10718 Py_INCREF(Py_None); resultobj = Py_None;
10719 return resultobj;
10720 fail:
10721 return NULL;
10722 }
10723
10724
10725 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10726 PyObject *resultobj;
10727 wxDC *arg1 = (wxDC *) 0 ;
10728 wxPoint *arg2 = 0 ;
10729 wxPoint *arg3 = 0 ;
10730 wxPoint *arg4 = 0 ;
10731 wxPoint temp2 ;
10732 wxPoint temp3 ;
10733 wxPoint temp4 ;
10734 PyObject * obj0 = 0 ;
10735 PyObject * obj1 = 0 ;
10736 PyObject * obj2 = 0 ;
10737 PyObject * obj3 = 0 ;
10738 char *kwnames[] = {
10739 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10740 };
10741
10742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10745 {
10746 arg2 = &temp2;
10747 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10748 }
10749 {
10750 arg3 = &temp3;
10751 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10752 }
10753 {
10754 arg4 = &temp4;
10755 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10756 }
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10760
10761 wxPyEndAllowThreads(__tstate);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 }
10764 Py_INCREF(Py_None); resultobj = Py_None;
10765 return resultobj;
10766 fail:
10767 return NULL;
10768 }
10769
10770
10771 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10772 PyObject *resultobj;
10773 wxDC *arg1 = (wxDC *) 0 ;
10774 int arg2 ;
10775 int arg3 ;
10776 int arg4 ;
10777 int arg5 ;
10778 PyObject * obj0 = 0 ;
10779 PyObject * obj1 = 0 ;
10780 PyObject * obj2 = 0 ;
10781 PyObject * obj3 = 0 ;
10782 PyObject * obj4 = 0 ;
10783 char *kwnames[] = {
10784 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10785 };
10786
10787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10790 arg2 = (int) SWIG_AsInt(obj1);
10791 if (PyErr_Occurred()) SWIG_fail;
10792 arg3 = (int) SWIG_AsInt(obj2);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 arg4 = (int) SWIG_AsInt(obj3);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 arg5 = (int) SWIG_AsInt(obj4);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 {
10799 PyThreadState* __tstate = wxPyBeginAllowThreads();
10800 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10801
10802 wxPyEndAllowThreads(__tstate);
10803 if (PyErr_Occurred()) SWIG_fail;
10804 }
10805 Py_INCREF(Py_None); resultobj = Py_None;
10806 return resultobj;
10807 fail:
10808 return NULL;
10809 }
10810
10811
10812 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10813 PyObject *resultobj;
10814 wxDC *arg1 = (wxDC *) 0 ;
10815 wxRect *arg2 = 0 ;
10816 wxRect temp2 ;
10817 PyObject * obj0 = 0 ;
10818 PyObject * obj1 = 0 ;
10819 char *kwnames[] = {
10820 (char *) "self",(char *) "rect", NULL
10821 };
10822
10823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
10824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10826 {
10827 arg2 = &temp2;
10828 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10829 }
10830 {
10831 PyThreadState* __tstate = wxPyBeginAllowThreads();
10832 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10833
10834 wxPyEndAllowThreads(__tstate);
10835 if (PyErr_Occurred()) SWIG_fail;
10836 }
10837 Py_INCREF(Py_None); resultobj = Py_None;
10838 return resultobj;
10839 fail:
10840 return NULL;
10841 }
10842
10843
10844 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10845 PyObject *resultobj;
10846 wxDC *arg1 = (wxDC *) 0 ;
10847 int arg2 ;
10848 int arg3 ;
10849 int arg4 ;
10850 int arg5 ;
10851 double arg6 ;
10852 double arg7 ;
10853 PyObject * obj0 = 0 ;
10854 PyObject * obj1 = 0 ;
10855 PyObject * obj2 = 0 ;
10856 PyObject * obj3 = 0 ;
10857 PyObject * obj4 = 0 ;
10858 PyObject * obj5 = 0 ;
10859 PyObject * obj6 = 0 ;
10860 char *kwnames[] = {
10861 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10862 };
10863
10864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10867 arg2 = (int) SWIG_AsInt(obj1);
10868 if (PyErr_Occurred()) SWIG_fail;
10869 arg3 = (int) SWIG_AsInt(obj2);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 arg4 = (int) SWIG_AsInt(obj3);
10872 if (PyErr_Occurred()) SWIG_fail;
10873 arg5 = (int) SWIG_AsInt(obj4);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 arg6 = (double) SWIG_AsDouble(obj5);
10876 if (PyErr_Occurred()) SWIG_fail;
10877 arg7 = (double) SWIG_AsDouble(obj6);
10878 if (PyErr_Occurred()) SWIG_fail;
10879 {
10880 PyThreadState* __tstate = wxPyBeginAllowThreads();
10881 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10882
10883 wxPyEndAllowThreads(__tstate);
10884 if (PyErr_Occurred()) SWIG_fail;
10885 }
10886 Py_INCREF(Py_None); resultobj = Py_None;
10887 return resultobj;
10888 fail:
10889 return NULL;
10890 }
10891
10892
10893 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10894 PyObject *resultobj;
10895 wxDC *arg1 = (wxDC *) 0 ;
10896 wxPoint *arg2 = 0 ;
10897 wxSize *arg3 = 0 ;
10898 double arg4 ;
10899 double arg5 ;
10900 wxPoint temp2 ;
10901 wxSize temp3 ;
10902 PyObject * obj0 = 0 ;
10903 PyObject * obj1 = 0 ;
10904 PyObject * obj2 = 0 ;
10905 PyObject * obj3 = 0 ;
10906 PyObject * obj4 = 0 ;
10907 char *kwnames[] = {
10908 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10909 };
10910
10911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10914 {
10915 arg2 = &temp2;
10916 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10917 }
10918 {
10919 arg3 = &temp3;
10920 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10921 }
10922 arg4 = (double) SWIG_AsDouble(obj3);
10923 if (PyErr_Occurred()) SWIG_fail;
10924 arg5 = (double) SWIG_AsDouble(obj4);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10929
10930 wxPyEndAllowThreads(__tstate);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 }
10933 Py_INCREF(Py_None); resultobj = Py_None;
10934 return resultobj;
10935 fail:
10936 return NULL;
10937 }
10938
10939
10940 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10941 PyObject *resultobj;
10942 wxDC *arg1 = (wxDC *) 0 ;
10943 int arg2 ;
10944 int arg3 ;
10945 PyObject * obj0 = 0 ;
10946 PyObject * obj1 = 0 ;
10947 PyObject * obj2 = 0 ;
10948 char *kwnames[] = {
10949 (char *) "self",(char *) "x",(char *) "y", NULL
10950 };
10951
10952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10955 arg2 = (int) SWIG_AsInt(obj1);
10956 if (PyErr_Occurred()) SWIG_fail;
10957 arg3 = (int) SWIG_AsInt(obj2);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 (arg1)->DrawPoint(arg2,arg3);
10962
10963 wxPyEndAllowThreads(__tstate);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 }
10966 Py_INCREF(Py_None); resultobj = Py_None;
10967 return resultobj;
10968 fail:
10969 return NULL;
10970 }
10971
10972
10973 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10974 PyObject *resultobj;
10975 wxDC *arg1 = (wxDC *) 0 ;
10976 wxPoint *arg2 = 0 ;
10977 wxPoint temp2 ;
10978 PyObject * obj0 = 0 ;
10979 PyObject * obj1 = 0 ;
10980 char *kwnames[] = {
10981 (char *) "self",(char *) "pt", NULL
10982 };
10983
10984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
10985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10987 {
10988 arg2 = &temp2;
10989 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10990 }
10991 {
10992 PyThreadState* __tstate = wxPyBeginAllowThreads();
10993 (arg1)->DrawPoint((wxPoint const &)*arg2);
10994
10995 wxPyEndAllowThreads(__tstate);
10996 if (PyErr_Occurred()) SWIG_fail;
10997 }
10998 Py_INCREF(Py_None); resultobj = Py_None;
10999 return resultobj;
11000 fail:
11001 return NULL;
11002 }
11003
11004
11005 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11006 PyObject *resultobj;
11007 wxDC *arg1 = (wxDC *) 0 ;
11008 int arg2 ;
11009 int arg3 ;
11010 int arg4 ;
11011 int arg5 ;
11012 PyObject * obj0 = 0 ;
11013 PyObject * obj1 = 0 ;
11014 PyObject * obj2 = 0 ;
11015 PyObject * obj3 = 0 ;
11016 PyObject * obj4 = 0 ;
11017 char *kwnames[] = {
11018 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11019 };
11020
11021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11024 arg2 = (int) SWIG_AsInt(obj1);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 arg3 = (int) SWIG_AsInt(obj2);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 arg4 = (int) SWIG_AsInt(obj3);
11029 if (PyErr_Occurred()) SWIG_fail;
11030 arg5 = (int) SWIG_AsInt(obj4);
11031 if (PyErr_Occurred()) SWIG_fail;
11032 {
11033 PyThreadState* __tstate = wxPyBeginAllowThreads();
11034 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11035
11036 wxPyEndAllowThreads(__tstate);
11037 if (PyErr_Occurred()) SWIG_fail;
11038 }
11039 Py_INCREF(Py_None); resultobj = Py_None;
11040 return resultobj;
11041 fail:
11042 return NULL;
11043 }
11044
11045
11046 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11047 PyObject *resultobj;
11048 wxDC *arg1 = (wxDC *) 0 ;
11049 wxRect *arg2 = 0 ;
11050 wxRect temp2 ;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 char *kwnames[] = {
11054 (char *) "self",(char *) "rect", NULL
11055 };
11056
11057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11060 {
11061 arg2 = &temp2;
11062 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11063 }
11064 {
11065 PyThreadState* __tstate = wxPyBeginAllowThreads();
11066 (arg1)->DrawRectangle((wxRect const &)*arg2);
11067
11068 wxPyEndAllowThreads(__tstate);
11069 if (PyErr_Occurred()) SWIG_fail;
11070 }
11071 Py_INCREF(Py_None); resultobj = Py_None;
11072 return resultobj;
11073 fail:
11074 return NULL;
11075 }
11076
11077
11078 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11079 PyObject *resultobj;
11080 wxDC *arg1 = (wxDC *) 0 ;
11081 wxPoint *arg2 = 0 ;
11082 wxSize *arg3 = 0 ;
11083 wxPoint temp2 ;
11084 wxSize temp3 ;
11085 PyObject * obj0 = 0 ;
11086 PyObject * obj1 = 0 ;
11087 PyObject * obj2 = 0 ;
11088 char *kwnames[] = {
11089 (char *) "self",(char *) "pt",(char *) "sz", NULL
11090 };
11091
11092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11095 {
11096 arg2 = &temp2;
11097 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11098 }
11099 {
11100 arg3 = &temp3;
11101 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11102 }
11103 {
11104 PyThreadState* __tstate = wxPyBeginAllowThreads();
11105 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11106
11107 wxPyEndAllowThreads(__tstate);
11108 if (PyErr_Occurred()) SWIG_fail;
11109 }
11110 Py_INCREF(Py_None); resultobj = Py_None;
11111 return resultobj;
11112 fail:
11113 return NULL;
11114 }
11115
11116
11117 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11118 PyObject *resultobj;
11119 wxDC *arg1 = (wxDC *) 0 ;
11120 int arg2 ;
11121 int arg3 ;
11122 int arg4 ;
11123 int arg5 ;
11124 double arg6 ;
11125 PyObject * obj0 = 0 ;
11126 PyObject * obj1 = 0 ;
11127 PyObject * obj2 = 0 ;
11128 PyObject * obj3 = 0 ;
11129 PyObject * obj4 = 0 ;
11130 PyObject * obj5 = 0 ;
11131 char *kwnames[] = {
11132 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11133 };
11134
11135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11138 arg2 = (int) SWIG_AsInt(obj1);
11139 if (PyErr_Occurred()) SWIG_fail;
11140 arg3 = (int) SWIG_AsInt(obj2);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 arg4 = (int) SWIG_AsInt(obj3);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 arg5 = (int) SWIG_AsInt(obj4);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 arg6 = (double) SWIG_AsDouble(obj5);
11147 if (PyErr_Occurred()) SWIG_fail;
11148 {
11149 PyThreadState* __tstate = wxPyBeginAllowThreads();
11150 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11151
11152 wxPyEndAllowThreads(__tstate);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 }
11155 Py_INCREF(Py_None); resultobj = Py_None;
11156 return resultobj;
11157 fail:
11158 return NULL;
11159 }
11160
11161
11162 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11163 PyObject *resultobj;
11164 wxDC *arg1 = (wxDC *) 0 ;
11165 wxRect *arg2 = 0 ;
11166 double arg3 ;
11167 wxRect temp2 ;
11168 PyObject * obj0 = 0 ;
11169 PyObject * obj1 = 0 ;
11170 PyObject * obj2 = 0 ;
11171 char *kwnames[] = {
11172 (char *) "self",(char *) "r",(char *) "radius", NULL
11173 };
11174
11175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11178 {
11179 arg2 = &temp2;
11180 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11181 }
11182 arg3 = (double) SWIG_AsDouble(obj2);
11183 if (PyErr_Occurred()) SWIG_fail;
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11187
11188 wxPyEndAllowThreads(__tstate);
11189 if (PyErr_Occurred()) SWIG_fail;
11190 }
11191 Py_INCREF(Py_None); resultobj = Py_None;
11192 return resultobj;
11193 fail:
11194 return NULL;
11195 }
11196
11197
11198 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11199 PyObject *resultobj;
11200 wxDC *arg1 = (wxDC *) 0 ;
11201 wxPoint *arg2 = 0 ;
11202 wxSize *arg3 = 0 ;
11203 double arg4 ;
11204 wxPoint temp2 ;
11205 wxSize temp3 ;
11206 PyObject * obj0 = 0 ;
11207 PyObject * obj1 = 0 ;
11208 PyObject * obj2 = 0 ;
11209 PyObject * obj3 = 0 ;
11210 char *kwnames[] = {
11211 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11212 };
11213
11214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11217 {
11218 arg2 = &temp2;
11219 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11220 }
11221 {
11222 arg3 = &temp3;
11223 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11224 }
11225 arg4 = (double) SWIG_AsDouble(obj3);
11226 if (PyErr_Occurred()) SWIG_fail;
11227 {
11228 PyThreadState* __tstate = wxPyBeginAllowThreads();
11229 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11230
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 Py_INCREF(Py_None); resultobj = Py_None;
11235 return resultobj;
11236 fail:
11237 return NULL;
11238 }
11239
11240
11241 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj;
11243 wxDC *arg1 = (wxDC *) 0 ;
11244 int arg2 ;
11245 int arg3 ;
11246 int arg4 ;
11247 PyObject * obj0 = 0 ;
11248 PyObject * obj1 = 0 ;
11249 PyObject * obj2 = 0 ;
11250 PyObject * obj3 = 0 ;
11251 char *kwnames[] = {
11252 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11253 };
11254
11255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11258 arg2 = (int) SWIG_AsInt(obj1);
11259 if (PyErr_Occurred()) SWIG_fail;
11260 arg3 = (int) SWIG_AsInt(obj2);
11261 if (PyErr_Occurred()) SWIG_fail;
11262 arg4 = (int) SWIG_AsInt(obj3);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 {
11265 PyThreadState* __tstate = wxPyBeginAllowThreads();
11266 (arg1)->DrawCircle(arg2,arg3,arg4);
11267
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 Py_INCREF(Py_None); resultobj = Py_None;
11272 return resultobj;
11273 fail:
11274 return NULL;
11275 }
11276
11277
11278 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11279 PyObject *resultobj;
11280 wxDC *arg1 = (wxDC *) 0 ;
11281 wxPoint *arg2 = 0 ;
11282 int arg3 ;
11283 wxPoint temp2 ;
11284 PyObject * obj0 = 0 ;
11285 PyObject * obj1 = 0 ;
11286 PyObject * obj2 = 0 ;
11287 char *kwnames[] = {
11288 (char *) "self",(char *) "pt",(char *) "radius", NULL
11289 };
11290
11291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11294 {
11295 arg2 = &temp2;
11296 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11297 }
11298 arg3 = (int) SWIG_AsInt(obj2);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 {
11301 PyThreadState* __tstate = wxPyBeginAllowThreads();
11302 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11303
11304 wxPyEndAllowThreads(__tstate);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 }
11307 Py_INCREF(Py_None); resultobj = Py_None;
11308 return resultobj;
11309 fail:
11310 return NULL;
11311 }
11312
11313
11314 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11315 PyObject *resultobj;
11316 wxDC *arg1 = (wxDC *) 0 ;
11317 int arg2 ;
11318 int arg3 ;
11319 int arg4 ;
11320 int arg5 ;
11321 PyObject * obj0 = 0 ;
11322 PyObject * obj1 = 0 ;
11323 PyObject * obj2 = 0 ;
11324 PyObject * obj3 = 0 ;
11325 PyObject * obj4 = 0 ;
11326 char *kwnames[] = {
11327 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11328 };
11329
11330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11333 arg2 = (int) SWIG_AsInt(obj1);
11334 if (PyErr_Occurred()) SWIG_fail;
11335 arg3 = (int) SWIG_AsInt(obj2);
11336 if (PyErr_Occurred()) SWIG_fail;
11337 arg4 = (int) SWIG_AsInt(obj3);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 arg5 = (int) SWIG_AsInt(obj4);
11340 if (PyErr_Occurred()) SWIG_fail;
11341 {
11342 PyThreadState* __tstate = wxPyBeginAllowThreads();
11343 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11344
11345 wxPyEndAllowThreads(__tstate);
11346 if (PyErr_Occurred()) SWIG_fail;
11347 }
11348 Py_INCREF(Py_None); resultobj = Py_None;
11349 return resultobj;
11350 fail:
11351 return NULL;
11352 }
11353
11354
11355 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11356 PyObject *resultobj;
11357 wxDC *arg1 = (wxDC *) 0 ;
11358 wxRect *arg2 = 0 ;
11359 wxRect temp2 ;
11360 PyObject * obj0 = 0 ;
11361 PyObject * obj1 = 0 ;
11362 char *kwnames[] = {
11363 (char *) "self",(char *) "rect", NULL
11364 };
11365
11366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11369 {
11370 arg2 = &temp2;
11371 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11372 }
11373 {
11374 PyThreadState* __tstate = wxPyBeginAllowThreads();
11375 (arg1)->DrawEllipse((wxRect const &)*arg2);
11376
11377 wxPyEndAllowThreads(__tstate);
11378 if (PyErr_Occurred()) SWIG_fail;
11379 }
11380 Py_INCREF(Py_None); resultobj = Py_None;
11381 return resultobj;
11382 fail:
11383 return NULL;
11384 }
11385
11386
11387 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11388 PyObject *resultobj;
11389 wxDC *arg1 = (wxDC *) 0 ;
11390 wxPoint *arg2 = 0 ;
11391 wxSize *arg3 = 0 ;
11392 wxPoint temp2 ;
11393 wxSize temp3 ;
11394 PyObject * obj0 = 0 ;
11395 PyObject * obj1 = 0 ;
11396 PyObject * obj2 = 0 ;
11397 char *kwnames[] = {
11398 (char *) "self",(char *) "pt",(char *) "sz", NULL
11399 };
11400
11401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11404 {
11405 arg2 = &temp2;
11406 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11407 }
11408 {
11409 arg3 = &temp3;
11410 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11411 }
11412 {
11413 PyThreadState* __tstate = wxPyBeginAllowThreads();
11414 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11415
11416 wxPyEndAllowThreads(__tstate);
11417 if (PyErr_Occurred()) SWIG_fail;
11418 }
11419 Py_INCREF(Py_None); resultobj = Py_None;
11420 return resultobj;
11421 fail:
11422 return NULL;
11423 }
11424
11425
11426 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11427 PyObject *resultobj;
11428 wxDC *arg1 = (wxDC *) 0 ;
11429 wxIcon *arg2 = 0 ;
11430 int arg3 ;
11431 int arg4 ;
11432 PyObject * obj0 = 0 ;
11433 PyObject * obj1 = 0 ;
11434 PyObject * obj2 = 0 ;
11435 PyObject * obj3 = 0 ;
11436 char *kwnames[] = {
11437 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11438 };
11439
11440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11443 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11444 SWIG_POINTER_EXCEPTION | 0)) == -1)
11445 SWIG_fail;
11446 if (arg2 == NULL) {
11447 PyErr_SetString(PyExc_TypeError,"null reference");
11448 SWIG_fail;
11449 }
11450 arg3 = (int) SWIG_AsInt(obj2);
11451 if (PyErr_Occurred()) SWIG_fail;
11452 arg4 = (int) SWIG_AsInt(obj3);
11453 if (PyErr_Occurred()) SWIG_fail;
11454 {
11455 PyThreadState* __tstate = wxPyBeginAllowThreads();
11456 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11457
11458 wxPyEndAllowThreads(__tstate);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 }
11461 Py_INCREF(Py_None); resultobj = Py_None;
11462 return resultobj;
11463 fail:
11464 return NULL;
11465 }
11466
11467
11468 static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11469 PyObject *resultobj;
11470 wxDC *arg1 = (wxDC *) 0 ;
11471 wxIcon *arg2 = 0 ;
11472 wxPoint *arg3 = 0 ;
11473 wxPoint temp3 ;
11474 PyObject * obj0 = 0 ;
11475 PyObject * obj1 = 0 ;
11476 PyObject * obj2 = 0 ;
11477 char *kwnames[] = {
11478 (char *) "self",(char *) "icon",(char *) "pt", NULL
11479 };
11480
11481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11484 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11485 SWIG_POINTER_EXCEPTION | 0)) == -1)
11486 SWIG_fail;
11487 if (arg2 == NULL) {
11488 PyErr_SetString(PyExc_TypeError,"null reference");
11489 SWIG_fail;
11490 }
11491 {
11492 arg3 = &temp3;
11493 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11494 }
11495 {
11496 PyThreadState* __tstate = wxPyBeginAllowThreads();
11497 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11498
11499 wxPyEndAllowThreads(__tstate);
11500 if (PyErr_Occurred()) SWIG_fail;
11501 }
11502 Py_INCREF(Py_None); resultobj = Py_None;
11503 return resultobj;
11504 fail:
11505 return NULL;
11506 }
11507
11508
11509 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11510 PyObject *resultobj;
11511 wxDC *arg1 = (wxDC *) 0 ;
11512 wxBitmap *arg2 = 0 ;
11513 int arg3 ;
11514 int arg4 ;
11515 bool arg5 = (bool) False ;
11516 PyObject * obj0 = 0 ;
11517 PyObject * obj1 = 0 ;
11518 PyObject * obj2 = 0 ;
11519 PyObject * obj3 = 0 ;
11520 PyObject * obj4 = 0 ;
11521 char *kwnames[] = {
11522 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11523 };
11524
11525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11528 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11529 SWIG_POINTER_EXCEPTION | 0)) == -1)
11530 SWIG_fail;
11531 if (arg2 == NULL) {
11532 PyErr_SetString(PyExc_TypeError,"null reference");
11533 SWIG_fail;
11534 }
11535 arg3 = (int) SWIG_AsInt(obj2);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 arg4 = (int) SWIG_AsInt(obj3);
11538 if (PyErr_Occurred()) SWIG_fail;
11539 if (obj4) {
11540 arg5 = (bool) SWIG_AsBool(obj4);
11541 if (PyErr_Occurred()) SWIG_fail;
11542 }
11543 {
11544 PyThreadState* __tstate = wxPyBeginAllowThreads();
11545 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11546
11547 wxPyEndAllowThreads(__tstate);
11548 if (PyErr_Occurred()) SWIG_fail;
11549 }
11550 Py_INCREF(Py_None); resultobj = Py_None;
11551 return resultobj;
11552 fail:
11553 return NULL;
11554 }
11555
11556
11557 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11558 PyObject *resultobj;
11559 wxDC *arg1 = (wxDC *) 0 ;
11560 wxBitmap *arg2 = 0 ;
11561 wxPoint *arg3 = 0 ;
11562 bool arg4 = (bool) False ;
11563 wxPoint temp3 ;
11564 PyObject * obj0 = 0 ;
11565 PyObject * obj1 = 0 ;
11566 PyObject * obj2 = 0 ;
11567 PyObject * obj3 = 0 ;
11568 char *kwnames[] = {
11569 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11570 };
11571
11572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11575 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11576 SWIG_POINTER_EXCEPTION | 0)) == -1)
11577 SWIG_fail;
11578 if (arg2 == NULL) {
11579 PyErr_SetString(PyExc_TypeError,"null reference");
11580 SWIG_fail;
11581 }
11582 {
11583 arg3 = &temp3;
11584 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11585 }
11586 if (obj3) {
11587 arg4 = (bool) SWIG_AsBool(obj3);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 }
11590 {
11591 PyThreadState* __tstate = wxPyBeginAllowThreads();
11592 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11593
11594 wxPyEndAllowThreads(__tstate);
11595 if (PyErr_Occurred()) SWIG_fail;
11596 }
11597 Py_INCREF(Py_None); resultobj = Py_None;
11598 return resultobj;
11599 fail:
11600 return NULL;
11601 }
11602
11603
11604 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11605 PyObject *resultobj;
11606 wxDC *arg1 = (wxDC *) 0 ;
11607 wxString *arg2 = 0 ;
11608 int arg3 ;
11609 int arg4 ;
11610 bool temp2 = False ;
11611 PyObject * obj0 = 0 ;
11612 PyObject * obj1 = 0 ;
11613 PyObject * obj2 = 0 ;
11614 PyObject * obj3 = 0 ;
11615 char *kwnames[] = {
11616 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11617 };
11618
11619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11622 {
11623 arg2 = wxString_in_helper(obj1);
11624 if (arg2 == NULL) SWIG_fail;
11625 temp2 = True;
11626 }
11627 arg3 = (int) SWIG_AsInt(obj2);
11628 if (PyErr_Occurred()) SWIG_fail;
11629 arg4 = (int) SWIG_AsInt(obj3);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 {
11632 PyThreadState* __tstate = wxPyBeginAllowThreads();
11633 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11634
11635 wxPyEndAllowThreads(__tstate);
11636 if (PyErr_Occurred()) SWIG_fail;
11637 }
11638 Py_INCREF(Py_None); resultobj = Py_None;
11639 {
11640 if (temp2)
11641 delete arg2;
11642 }
11643 return resultobj;
11644 fail:
11645 {
11646 if (temp2)
11647 delete arg2;
11648 }
11649 return NULL;
11650 }
11651
11652
11653 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11654 PyObject *resultobj;
11655 wxDC *arg1 = (wxDC *) 0 ;
11656 wxString *arg2 = 0 ;
11657 wxPoint *arg3 = 0 ;
11658 bool temp2 = False ;
11659 wxPoint temp3 ;
11660 PyObject * obj0 = 0 ;
11661 PyObject * obj1 = 0 ;
11662 PyObject * obj2 = 0 ;
11663 char *kwnames[] = {
11664 (char *) "self",(char *) "text",(char *) "pt", NULL
11665 };
11666
11667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11670 {
11671 arg2 = wxString_in_helper(obj1);
11672 if (arg2 == NULL) SWIG_fail;
11673 temp2 = True;
11674 }
11675 {
11676 arg3 = &temp3;
11677 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11678 }
11679 {
11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
11681 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11682
11683 wxPyEndAllowThreads(__tstate);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 }
11686 Py_INCREF(Py_None); resultobj = Py_None;
11687 {
11688 if (temp2)
11689 delete arg2;
11690 }
11691 return resultobj;
11692 fail:
11693 {
11694 if (temp2)
11695 delete arg2;
11696 }
11697 return NULL;
11698 }
11699
11700
11701 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11702 PyObject *resultobj;
11703 wxDC *arg1 = (wxDC *) 0 ;
11704 wxString *arg2 = 0 ;
11705 int arg3 ;
11706 int arg4 ;
11707 double arg5 ;
11708 bool temp2 = False ;
11709 PyObject * obj0 = 0 ;
11710 PyObject * obj1 = 0 ;
11711 PyObject * obj2 = 0 ;
11712 PyObject * obj3 = 0 ;
11713 PyObject * obj4 = 0 ;
11714 char *kwnames[] = {
11715 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11716 };
11717
11718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11721 {
11722 arg2 = wxString_in_helper(obj1);
11723 if (arg2 == NULL) SWIG_fail;
11724 temp2 = True;
11725 }
11726 arg3 = (int) SWIG_AsInt(obj2);
11727 if (PyErr_Occurred()) SWIG_fail;
11728 arg4 = (int) SWIG_AsInt(obj3);
11729 if (PyErr_Occurred()) SWIG_fail;
11730 arg5 = (double) SWIG_AsDouble(obj4);
11731 if (PyErr_Occurred()) SWIG_fail;
11732 {
11733 PyThreadState* __tstate = wxPyBeginAllowThreads();
11734 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11735
11736 wxPyEndAllowThreads(__tstate);
11737 if (PyErr_Occurred()) SWIG_fail;
11738 }
11739 Py_INCREF(Py_None); resultobj = Py_None;
11740 {
11741 if (temp2)
11742 delete arg2;
11743 }
11744 return resultobj;
11745 fail:
11746 {
11747 if (temp2)
11748 delete arg2;
11749 }
11750 return NULL;
11751 }
11752
11753
11754 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11755 PyObject *resultobj;
11756 wxDC *arg1 = (wxDC *) 0 ;
11757 wxString *arg2 = 0 ;
11758 wxPoint *arg3 = 0 ;
11759 double arg4 ;
11760 bool temp2 = False ;
11761 wxPoint temp3 ;
11762 PyObject * obj0 = 0 ;
11763 PyObject * obj1 = 0 ;
11764 PyObject * obj2 = 0 ;
11765 PyObject * obj3 = 0 ;
11766 char *kwnames[] = {
11767 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11768 };
11769
11770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11773 {
11774 arg2 = wxString_in_helper(obj1);
11775 if (arg2 == NULL) SWIG_fail;
11776 temp2 = True;
11777 }
11778 {
11779 arg3 = &temp3;
11780 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11781 }
11782 arg4 = (double) SWIG_AsDouble(obj3);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 {
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11787
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 Py_INCREF(Py_None); resultobj = Py_None;
11792 {
11793 if (temp2)
11794 delete arg2;
11795 }
11796 return resultobj;
11797 fail:
11798 {
11799 if (temp2)
11800 delete arg2;
11801 }
11802 return NULL;
11803 }
11804
11805
11806 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11807 PyObject *resultobj;
11808 wxDC *arg1 = (wxDC *) 0 ;
11809 int arg2 ;
11810 int arg3 ;
11811 int arg4 ;
11812 int arg5 ;
11813 wxDC *arg6 = (wxDC *) 0 ;
11814 int arg7 ;
11815 int arg8 ;
11816 int arg9 = (int) wxCOPY ;
11817 bool arg10 = (bool) False ;
11818 int arg11 = (int) -1 ;
11819 int arg12 = (int) -1 ;
11820 bool result;
11821 PyObject * obj0 = 0 ;
11822 PyObject * obj1 = 0 ;
11823 PyObject * obj2 = 0 ;
11824 PyObject * obj3 = 0 ;
11825 PyObject * obj4 = 0 ;
11826 PyObject * obj5 = 0 ;
11827 PyObject * obj6 = 0 ;
11828 PyObject * obj7 = 0 ;
11829 PyObject * obj8 = 0 ;
11830 PyObject * obj9 = 0 ;
11831 PyObject * obj10 = 0 ;
11832 PyObject * obj11 = 0 ;
11833 char *kwnames[] = {
11834 (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
11835 };
11836
11837 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;
11838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11840 arg2 = (int) SWIG_AsInt(obj1);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 arg3 = (int) SWIG_AsInt(obj2);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 arg4 = (int) SWIG_AsInt(obj3);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 arg5 = (int) SWIG_AsInt(obj4);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11850 arg7 = (int) SWIG_AsInt(obj6);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 arg8 = (int) SWIG_AsInt(obj7);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 if (obj8) {
11855 arg9 = (int) SWIG_AsInt(obj8);
11856 if (PyErr_Occurred()) SWIG_fail;
11857 }
11858 if (obj9) {
11859 arg10 = (bool) SWIG_AsBool(obj9);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 if (obj10) {
11863 arg11 = (int) SWIG_AsInt(obj10);
11864 if (PyErr_Occurred()) SWIG_fail;
11865 }
11866 if (obj11) {
11867 arg12 = (int) SWIG_AsInt(obj11);
11868 if (PyErr_Occurred()) SWIG_fail;
11869 }
11870 {
11871 PyThreadState* __tstate = wxPyBeginAllowThreads();
11872 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11873
11874 wxPyEndAllowThreads(__tstate);
11875 if (PyErr_Occurred()) SWIG_fail;
11876 }
11877 {
11878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11879 }
11880 return resultobj;
11881 fail:
11882 return NULL;
11883 }
11884
11885
11886 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11887 PyObject *resultobj;
11888 wxDC *arg1 = (wxDC *) 0 ;
11889 wxPoint *arg2 = 0 ;
11890 wxSize *arg3 = 0 ;
11891 wxDC *arg4 = (wxDC *) 0 ;
11892 wxPoint *arg5 = 0 ;
11893 int arg6 = (int) wxCOPY ;
11894 bool arg7 = (bool) False ;
11895 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11896 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11897 bool result;
11898 wxPoint temp2 ;
11899 wxSize temp3 ;
11900 wxPoint temp5 ;
11901 wxPoint temp8 ;
11902 PyObject * obj0 = 0 ;
11903 PyObject * obj1 = 0 ;
11904 PyObject * obj2 = 0 ;
11905 PyObject * obj3 = 0 ;
11906 PyObject * obj4 = 0 ;
11907 PyObject * obj5 = 0 ;
11908 PyObject * obj6 = 0 ;
11909 PyObject * obj7 = 0 ;
11910 char *kwnames[] = {
11911 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11912 };
11913
11914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11917 {
11918 arg2 = &temp2;
11919 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11920 }
11921 {
11922 arg3 = &temp3;
11923 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11924 }
11925 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11927 {
11928 arg5 = &temp5;
11929 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11930 }
11931 if (obj5) {
11932 arg6 = (int) SWIG_AsInt(obj5);
11933 if (PyErr_Occurred()) SWIG_fail;
11934 }
11935 if (obj6) {
11936 arg7 = (bool) SWIG_AsBool(obj6);
11937 if (PyErr_Occurred()) SWIG_fail;
11938 }
11939 if (obj7) {
11940 {
11941 arg8 = &temp8;
11942 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11943 }
11944 }
11945 {
11946 PyThreadState* __tstate = wxPyBeginAllowThreads();
11947 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11948
11949 wxPyEndAllowThreads(__tstate);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 {
11953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11954 }
11955 return resultobj;
11956 fail:
11957 return NULL;
11958 }
11959
11960
11961 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11962 PyObject *resultobj;
11963 wxDC *arg1 = (wxDC *) 0 ;
11964 int arg2 ;
11965 int arg3 ;
11966 int arg4 ;
11967 int arg5 ;
11968 PyObject * obj0 = 0 ;
11969 PyObject * obj1 = 0 ;
11970 PyObject * obj2 = 0 ;
11971 PyObject * obj3 = 0 ;
11972 PyObject * obj4 = 0 ;
11973 char *kwnames[] = {
11974 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11975 };
11976
11977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11980 arg2 = (int) SWIG_AsInt(obj1);
11981 if (PyErr_Occurred()) SWIG_fail;
11982 arg3 = (int) SWIG_AsInt(obj2);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 arg4 = (int) SWIG_AsInt(obj3);
11985 if (PyErr_Occurred()) SWIG_fail;
11986 arg5 = (int) SWIG_AsInt(obj4);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11991
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 Py_INCREF(Py_None); resultobj = Py_None;
11996 return resultobj;
11997 fail:
11998 return NULL;
11999 }
12000
12001
12002 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12003 PyObject *resultobj;
12004 wxDC *arg1 = (wxDC *) 0 ;
12005 wxPoint *arg2 = 0 ;
12006 wxSize *arg3 = 0 ;
12007 wxPoint temp2 ;
12008 wxSize temp3 ;
12009 PyObject * obj0 = 0 ;
12010 PyObject * obj1 = 0 ;
12011 PyObject * obj2 = 0 ;
12012 char *kwnames[] = {
12013 (char *) "self",(char *) "pt",(char *) "sz", NULL
12014 };
12015
12016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12019 {
12020 arg2 = &temp2;
12021 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12022 }
12023 {
12024 arg3 = &temp3;
12025 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12026 }
12027 {
12028 PyThreadState* __tstate = wxPyBeginAllowThreads();
12029 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12030
12031 wxPyEndAllowThreads(__tstate);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 }
12034 Py_INCREF(Py_None); resultobj = Py_None;
12035 return resultobj;
12036 fail:
12037 return NULL;
12038 }
12039
12040
12041 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12042 PyObject *resultobj;
12043 wxDC *arg1 = (wxDC *) 0 ;
12044 wxRegion *arg2 = 0 ;
12045 PyObject * obj0 = 0 ;
12046 PyObject * obj1 = 0 ;
12047 char *kwnames[] = {
12048 (char *) "self",(char *) "region", NULL
12049 };
12050
12051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12054 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12055 SWIG_POINTER_EXCEPTION | 0)) == -1)
12056 SWIG_fail;
12057 if (arg2 == NULL) {
12058 PyErr_SetString(PyExc_TypeError,"null reference");
12059 SWIG_fail;
12060 }
12061 {
12062 PyThreadState* __tstate = wxPyBeginAllowThreads();
12063 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12064
12065 wxPyEndAllowThreads(__tstate);
12066 if (PyErr_Occurred()) SWIG_fail;
12067 }
12068 Py_INCREF(Py_None); resultobj = Py_None;
12069 return resultobj;
12070 fail:
12071 return NULL;
12072 }
12073
12074
12075 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12076 PyObject *resultobj;
12077 wxDC *arg1 = (wxDC *) 0 ;
12078 wxRect *arg2 = 0 ;
12079 wxRect temp2 ;
12080 PyObject * obj0 = 0 ;
12081 PyObject * obj1 = 0 ;
12082 char *kwnames[] = {
12083 (char *) "self",(char *) "rect", NULL
12084 };
12085
12086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12089 {
12090 arg2 = &temp2;
12091 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12092 }
12093 {
12094 PyThreadState* __tstate = wxPyBeginAllowThreads();
12095 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12096
12097 wxPyEndAllowThreads(__tstate);
12098 if (PyErr_Occurred()) SWIG_fail;
12099 }
12100 Py_INCREF(Py_None); resultobj = Py_None;
12101 return resultobj;
12102 fail:
12103 return NULL;
12104 }
12105
12106
12107 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12108 PyObject *resultobj;
12109 wxDC *arg1 = (wxDC *) 0 ;
12110 int arg2 ;
12111 wxPoint *arg3 = (wxPoint *) 0 ;
12112 int arg4 = (int) 0 ;
12113 int arg5 = (int) 0 ;
12114 PyObject * obj0 = 0 ;
12115 PyObject * obj1 = 0 ;
12116 PyObject * obj2 = 0 ;
12117 PyObject * obj3 = 0 ;
12118 char *kwnames[] = {
12119 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12120 };
12121
12122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12125 {
12126 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12127 if (arg3 == NULL) SWIG_fail;
12128 }
12129 if (obj2) {
12130 arg4 = (int) SWIG_AsInt(obj2);
12131 if (PyErr_Occurred()) SWIG_fail;
12132 }
12133 if (obj3) {
12134 arg5 = (int) SWIG_AsInt(obj3);
12135 if (PyErr_Occurred()) SWIG_fail;
12136 }
12137 {
12138 PyThreadState* __tstate = wxPyBeginAllowThreads();
12139 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12140
12141 wxPyEndAllowThreads(__tstate);
12142 if (PyErr_Occurred()) SWIG_fail;
12143 }
12144 Py_INCREF(Py_None); resultobj = Py_None;
12145 {
12146 if (arg3) delete [] arg3;
12147 }
12148 return resultobj;
12149 fail:
12150 {
12151 if (arg3) delete [] arg3;
12152 }
12153 return NULL;
12154 }
12155
12156
12157 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12158 PyObject *resultobj;
12159 wxDC *arg1 = (wxDC *) 0 ;
12160 int arg2 ;
12161 wxPoint *arg3 = (wxPoint *) 0 ;
12162 int arg4 = (int) 0 ;
12163 int arg5 = (int) 0 ;
12164 int arg6 = (int) wxODDEVEN_RULE ;
12165 PyObject * obj0 = 0 ;
12166 PyObject * obj1 = 0 ;
12167 PyObject * obj2 = 0 ;
12168 PyObject * obj3 = 0 ;
12169 PyObject * obj4 = 0 ;
12170 char *kwnames[] = {
12171 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12172 };
12173
12174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12177 {
12178 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12179 if (arg3 == NULL) SWIG_fail;
12180 }
12181 if (obj2) {
12182 arg4 = (int) SWIG_AsInt(obj2);
12183 if (PyErr_Occurred()) SWIG_fail;
12184 }
12185 if (obj3) {
12186 arg5 = (int) SWIG_AsInt(obj3);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 if (obj4) {
12190 arg6 = (int) SWIG_AsInt(obj4);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 {
12194 PyThreadState* __tstate = wxPyBeginAllowThreads();
12195 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12196
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 Py_INCREF(Py_None); resultobj = Py_None;
12201 {
12202 if (arg3) delete [] arg3;
12203 }
12204 return resultobj;
12205 fail:
12206 {
12207 if (arg3) delete [] arg3;
12208 }
12209 return NULL;
12210 }
12211
12212
12213 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12214 PyObject *resultobj;
12215 wxDC *arg1 = (wxDC *) 0 ;
12216 wxString *arg2 = 0 ;
12217 wxRect *arg3 = 0 ;
12218 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12219 int arg5 = (int) -1 ;
12220 bool temp2 = False ;
12221 wxRect temp3 ;
12222 PyObject * obj0 = 0 ;
12223 PyObject * obj1 = 0 ;
12224 PyObject * obj2 = 0 ;
12225 PyObject * obj3 = 0 ;
12226 PyObject * obj4 = 0 ;
12227 char *kwnames[] = {
12228 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12229 };
12230
12231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12234 {
12235 arg2 = wxString_in_helper(obj1);
12236 if (arg2 == NULL) SWIG_fail;
12237 temp2 = True;
12238 }
12239 {
12240 arg3 = &temp3;
12241 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12242 }
12243 if (obj3) {
12244 arg4 = (int) SWIG_AsInt(obj3);
12245 if (PyErr_Occurred()) SWIG_fail;
12246 }
12247 if (obj4) {
12248 arg5 = (int) SWIG_AsInt(obj4);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 {
12252 PyThreadState* __tstate = wxPyBeginAllowThreads();
12253 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12254
12255 wxPyEndAllowThreads(__tstate);
12256 if (PyErr_Occurred()) SWIG_fail;
12257 }
12258 Py_INCREF(Py_None); resultobj = Py_None;
12259 {
12260 if (temp2)
12261 delete arg2;
12262 }
12263 return resultobj;
12264 fail:
12265 {
12266 if (temp2)
12267 delete arg2;
12268 }
12269 return NULL;
12270 }
12271
12272
12273 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12274 PyObject *resultobj;
12275 wxDC *arg1 = (wxDC *) 0 ;
12276 wxString *arg2 = 0 ;
12277 wxBitmap *arg3 = 0 ;
12278 wxRect *arg4 = 0 ;
12279 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12280 int arg6 = (int) -1 ;
12281 wxRect result;
12282 bool temp2 = False ;
12283 wxRect temp4 ;
12284 PyObject * obj0 = 0 ;
12285 PyObject * obj1 = 0 ;
12286 PyObject * obj2 = 0 ;
12287 PyObject * obj3 = 0 ;
12288 PyObject * obj4 = 0 ;
12289 PyObject * obj5 = 0 ;
12290 char *kwnames[] = {
12291 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12292 };
12293
12294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12297 {
12298 arg2 = wxString_in_helper(obj1);
12299 if (arg2 == NULL) SWIG_fail;
12300 temp2 = True;
12301 }
12302 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12303 SWIG_POINTER_EXCEPTION | 0)) == -1)
12304 SWIG_fail;
12305 if (arg3 == NULL) {
12306 PyErr_SetString(PyExc_TypeError,"null reference");
12307 SWIG_fail;
12308 }
12309 {
12310 arg4 = &temp4;
12311 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12312 }
12313 if (obj4) {
12314 arg5 = (int) SWIG_AsInt(obj4);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 if (obj5) {
12318 arg6 = (int) SWIG_AsInt(obj5);
12319 if (PyErr_Occurred()) SWIG_fail;
12320 }
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12324
12325 wxPyEndAllowThreads(__tstate);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 }
12328 {
12329 wxRect * resultptr;
12330 resultptr = new wxRect((wxRect &) result);
12331 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12332 }
12333 {
12334 if (temp2)
12335 delete arg2;
12336 }
12337 return resultobj;
12338 fail:
12339 {
12340 if (temp2)
12341 delete arg2;
12342 }
12343 return NULL;
12344 }
12345
12346
12347 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12348 PyObject *resultobj;
12349 wxDC *arg1 = (wxDC *) 0 ;
12350 int arg2 ;
12351 wxPoint *arg3 = (wxPoint *) 0 ;
12352 PyObject * obj0 = 0 ;
12353 PyObject * obj1 = 0 ;
12354 char *kwnames[] = {
12355 (char *) "self",(char *) "points", NULL
12356 };
12357
12358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12361 {
12362 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12363 if (arg3 == NULL) SWIG_fail;
12364 }
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 (arg1)->DrawSpline(arg2,arg3);
12368
12369 wxPyEndAllowThreads(__tstate);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 Py_INCREF(Py_None); resultobj = Py_None;
12373 {
12374 if (arg3) delete [] arg3;
12375 }
12376 return resultobj;
12377 fail:
12378 {
12379 if (arg3) delete [] arg3;
12380 }
12381 return NULL;
12382 }
12383
12384
12385 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12386 PyObject *resultobj;
12387 wxDC *arg1 = (wxDC *) 0 ;
12388 PyObject * obj0 = 0 ;
12389 char *kwnames[] = {
12390 (char *) "self", NULL
12391 };
12392
12393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12396 {
12397 PyThreadState* __tstate = wxPyBeginAllowThreads();
12398 (arg1)->Clear();
12399
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 Py_INCREF(Py_None); resultobj = Py_None;
12404 return resultobj;
12405 fail:
12406 return NULL;
12407 }
12408
12409
12410 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12411 PyObject *resultobj;
12412 wxDC *arg1 = (wxDC *) 0 ;
12413 wxString *arg2 = 0 ;
12414 bool result;
12415 bool temp2 = False ;
12416 PyObject * obj0 = 0 ;
12417 PyObject * obj1 = 0 ;
12418 char *kwnames[] = {
12419 (char *) "self",(char *) "message", NULL
12420 };
12421
12422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12425 {
12426 arg2 = wxString_in_helper(obj1);
12427 if (arg2 == NULL) SWIG_fail;
12428 temp2 = True;
12429 }
12430 {
12431 PyThreadState* __tstate = wxPyBeginAllowThreads();
12432 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12433
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 {
12438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12439 }
12440 {
12441 if (temp2)
12442 delete arg2;
12443 }
12444 return resultobj;
12445 fail:
12446 {
12447 if (temp2)
12448 delete arg2;
12449 }
12450 return NULL;
12451 }
12452
12453
12454 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12455 PyObject *resultobj;
12456 wxDC *arg1 = (wxDC *) 0 ;
12457 PyObject * obj0 = 0 ;
12458 char *kwnames[] = {
12459 (char *) "self", NULL
12460 };
12461
12462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12465 {
12466 PyThreadState* __tstate = wxPyBeginAllowThreads();
12467 (arg1)->EndDoc();
12468
12469 wxPyEndAllowThreads(__tstate);
12470 if (PyErr_Occurred()) SWIG_fail;
12471 }
12472 Py_INCREF(Py_None); resultobj = Py_None;
12473 return resultobj;
12474 fail:
12475 return NULL;
12476 }
12477
12478
12479 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12480 PyObject *resultobj;
12481 wxDC *arg1 = (wxDC *) 0 ;
12482 PyObject * obj0 = 0 ;
12483 char *kwnames[] = {
12484 (char *) "self", NULL
12485 };
12486
12487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12490 {
12491 PyThreadState* __tstate = wxPyBeginAllowThreads();
12492 (arg1)->StartPage();
12493
12494 wxPyEndAllowThreads(__tstate);
12495 if (PyErr_Occurred()) SWIG_fail;
12496 }
12497 Py_INCREF(Py_None); resultobj = Py_None;
12498 return resultobj;
12499 fail:
12500 return NULL;
12501 }
12502
12503
12504 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12505 PyObject *resultobj;
12506 wxDC *arg1 = (wxDC *) 0 ;
12507 PyObject * obj0 = 0 ;
12508 char *kwnames[] = {
12509 (char *) "self", NULL
12510 };
12511
12512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12515 {
12516 PyThreadState* __tstate = wxPyBeginAllowThreads();
12517 (arg1)->EndPage();
12518
12519 wxPyEndAllowThreads(__tstate);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 Py_INCREF(Py_None); resultobj = Py_None;
12523 return resultobj;
12524 fail:
12525 return NULL;
12526 }
12527
12528
12529 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12530 PyObject *resultobj;
12531 wxDC *arg1 = (wxDC *) 0 ;
12532 wxFont *arg2 = 0 ;
12533 PyObject * obj0 = 0 ;
12534 PyObject * obj1 = 0 ;
12535 char *kwnames[] = {
12536 (char *) "self",(char *) "font", NULL
12537 };
12538
12539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12542 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12543 SWIG_POINTER_EXCEPTION | 0)) == -1)
12544 SWIG_fail;
12545 if (arg2 == NULL) {
12546 PyErr_SetString(PyExc_TypeError,"null reference");
12547 SWIG_fail;
12548 }
12549 {
12550 PyThreadState* __tstate = wxPyBeginAllowThreads();
12551 (arg1)->SetFont((wxFont const &)*arg2);
12552
12553 wxPyEndAllowThreads(__tstate);
12554 if (PyErr_Occurred()) SWIG_fail;
12555 }
12556 Py_INCREF(Py_None); resultobj = Py_None;
12557 return resultobj;
12558 fail:
12559 return NULL;
12560 }
12561
12562
12563 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12564 PyObject *resultobj;
12565 wxDC *arg1 = (wxDC *) 0 ;
12566 wxPen *arg2 = 0 ;
12567 PyObject * obj0 = 0 ;
12568 PyObject * obj1 = 0 ;
12569 char *kwnames[] = {
12570 (char *) "self",(char *) "pen", NULL
12571 };
12572
12573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12576 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12577 SWIG_POINTER_EXCEPTION | 0)) == -1)
12578 SWIG_fail;
12579 if (arg2 == NULL) {
12580 PyErr_SetString(PyExc_TypeError,"null reference");
12581 SWIG_fail;
12582 }
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 (arg1)->SetPen((wxPen const &)*arg2);
12586
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 Py_INCREF(Py_None); resultobj = Py_None;
12591 return resultobj;
12592 fail:
12593 return NULL;
12594 }
12595
12596
12597 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj;
12599 wxDC *arg1 = (wxDC *) 0 ;
12600 wxBrush *arg2 = 0 ;
12601 PyObject * obj0 = 0 ;
12602 PyObject * obj1 = 0 ;
12603 char *kwnames[] = {
12604 (char *) "self",(char *) "brush", NULL
12605 };
12606
12607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12611 SWIG_POINTER_EXCEPTION | 0)) == -1)
12612 SWIG_fail;
12613 if (arg2 == NULL) {
12614 PyErr_SetString(PyExc_TypeError,"null reference");
12615 SWIG_fail;
12616 }
12617 {
12618 PyThreadState* __tstate = wxPyBeginAllowThreads();
12619 (arg1)->SetBrush((wxBrush const &)*arg2);
12620
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 Py_INCREF(Py_None); resultobj = Py_None;
12625 return resultobj;
12626 fail:
12627 return NULL;
12628 }
12629
12630
12631 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12632 PyObject *resultobj;
12633 wxDC *arg1 = (wxDC *) 0 ;
12634 wxBrush *arg2 = 0 ;
12635 PyObject * obj0 = 0 ;
12636 PyObject * obj1 = 0 ;
12637 char *kwnames[] = {
12638 (char *) "self",(char *) "brush", NULL
12639 };
12640
12641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12644 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12645 SWIG_POINTER_EXCEPTION | 0)) == -1)
12646 SWIG_fail;
12647 if (arg2 == NULL) {
12648 PyErr_SetString(PyExc_TypeError,"null reference");
12649 SWIG_fail;
12650 }
12651 {
12652 PyThreadState* __tstate = wxPyBeginAllowThreads();
12653 (arg1)->SetBackground((wxBrush const &)*arg2);
12654
12655 wxPyEndAllowThreads(__tstate);
12656 if (PyErr_Occurred()) SWIG_fail;
12657 }
12658 Py_INCREF(Py_None); resultobj = Py_None;
12659 return resultobj;
12660 fail:
12661 return NULL;
12662 }
12663
12664
12665 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12666 PyObject *resultobj;
12667 wxDC *arg1 = (wxDC *) 0 ;
12668 int arg2 ;
12669 PyObject * obj0 = 0 ;
12670 PyObject * obj1 = 0 ;
12671 char *kwnames[] = {
12672 (char *) "self",(char *) "mode", NULL
12673 };
12674
12675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12678 arg2 = (int) SWIG_AsInt(obj1);
12679 if (PyErr_Occurred()) SWIG_fail;
12680 {
12681 PyThreadState* __tstate = wxPyBeginAllowThreads();
12682 (arg1)->SetBackgroundMode(arg2);
12683
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 Py_INCREF(Py_None); resultobj = Py_None;
12688 return resultobj;
12689 fail:
12690 return NULL;
12691 }
12692
12693
12694 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12695 PyObject *resultobj;
12696 wxDC *arg1 = (wxDC *) 0 ;
12697 wxPalette *arg2 = 0 ;
12698 PyObject * obj0 = 0 ;
12699 PyObject * obj1 = 0 ;
12700 char *kwnames[] = {
12701 (char *) "self",(char *) "palette", NULL
12702 };
12703
12704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12707 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12708 SWIG_POINTER_EXCEPTION | 0)) == -1)
12709 SWIG_fail;
12710 if (arg2 == NULL) {
12711 PyErr_SetString(PyExc_TypeError,"null reference");
12712 SWIG_fail;
12713 }
12714 {
12715 PyThreadState* __tstate = wxPyBeginAllowThreads();
12716 (arg1)->SetPalette((wxPalette const &)*arg2);
12717
12718 wxPyEndAllowThreads(__tstate);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 }
12721 Py_INCREF(Py_None); resultobj = Py_None;
12722 return resultobj;
12723 fail:
12724 return NULL;
12725 }
12726
12727
12728 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12729 PyObject *resultobj;
12730 wxDC *arg1 = (wxDC *) 0 ;
12731 PyObject * obj0 = 0 ;
12732 char *kwnames[] = {
12733 (char *) "self", NULL
12734 };
12735
12736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 (arg1)->DestroyClippingRegion();
12742
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 Py_INCREF(Py_None); resultobj = Py_None;
12747 return resultobj;
12748 fail:
12749 return NULL;
12750 }
12751
12752
12753 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12754 PyObject *resultobj;
12755 wxDC *arg1 = (wxDC *) 0 ;
12756 int *arg2 = (int *) 0 ;
12757 int *arg3 = (int *) 0 ;
12758 int *arg4 = (int *) 0 ;
12759 int *arg5 = (int *) 0 ;
12760 int temp2 ;
12761 int temp3 ;
12762 int temp4 ;
12763 int temp5 ;
12764 PyObject * obj0 = 0 ;
12765 char *kwnames[] = {
12766 (char *) "self", NULL
12767 };
12768
12769 arg2 = &temp2;
12770 arg3 = &temp3;
12771 arg4 = &temp4;
12772 arg5 = &temp5;
12773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12776 {
12777 PyThreadState* __tstate = wxPyBeginAllowThreads();
12778 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12779
12780 wxPyEndAllowThreads(__tstate);
12781 if (PyErr_Occurred()) SWIG_fail;
12782 }
12783 Py_INCREF(Py_None); resultobj = Py_None;
12784 {
12785 PyObject *o = PyInt_FromLong((long) (*arg2));
12786 resultobj = t_output_helper(resultobj,o);
12787 }
12788 {
12789 PyObject *o = PyInt_FromLong((long) (*arg3));
12790 resultobj = t_output_helper(resultobj,o);
12791 }
12792 {
12793 PyObject *o = PyInt_FromLong((long) (*arg4));
12794 resultobj = t_output_helper(resultobj,o);
12795 }
12796 {
12797 PyObject *o = PyInt_FromLong((long) (*arg5));
12798 resultobj = t_output_helper(resultobj,o);
12799 }
12800 return resultobj;
12801 fail:
12802 return NULL;
12803 }
12804
12805
12806 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12807 PyObject *resultobj;
12808 wxDC *arg1 = (wxDC *) 0 ;
12809 wxRect result;
12810 PyObject * obj0 = 0 ;
12811 char *kwnames[] = {
12812 (char *) "self", NULL
12813 };
12814
12815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12818 {
12819 PyThreadState* __tstate = wxPyBeginAllowThreads();
12820 result = wxDC_GetClippingRect(arg1);
12821
12822 wxPyEndAllowThreads(__tstate);
12823 if (PyErr_Occurred()) SWIG_fail;
12824 }
12825 {
12826 wxRect * resultptr;
12827 resultptr = new wxRect((wxRect &) result);
12828 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12829 }
12830 return resultobj;
12831 fail:
12832 return NULL;
12833 }
12834
12835
12836 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12837 PyObject *resultobj;
12838 wxDC *arg1 = (wxDC *) 0 ;
12839 int result;
12840 PyObject * obj0 = 0 ;
12841 char *kwnames[] = {
12842 (char *) "self", NULL
12843 };
12844
12845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12848 {
12849 PyThreadState* __tstate = wxPyBeginAllowThreads();
12850 result = (int)((wxDC const *)arg1)->GetCharHeight();
12851
12852 wxPyEndAllowThreads(__tstate);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 resultobj = SWIG_FromInt((int)result);
12856 return resultobj;
12857 fail:
12858 return NULL;
12859 }
12860
12861
12862 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12863 PyObject *resultobj;
12864 wxDC *arg1 = (wxDC *) 0 ;
12865 int result;
12866 PyObject * obj0 = 0 ;
12867 char *kwnames[] = {
12868 (char *) "self", NULL
12869 };
12870
12871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12874 {
12875 PyThreadState* __tstate = wxPyBeginAllowThreads();
12876 result = (int)((wxDC const *)arg1)->GetCharWidth();
12877
12878 wxPyEndAllowThreads(__tstate);
12879 if (PyErr_Occurred()) SWIG_fail;
12880 }
12881 resultobj = SWIG_FromInt((int)result);
12882 return resultobj;
12883 fail:
12884 return NULL;
12885 }
12886
12887
12888 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12889 PyObject *resultobj;
12890 wxDC *arg1 = (wxDC *) 0 ;
12891 wxString *arg2 = 0 ;
12892 int *arg3 = (int *) 0 ;
12893 int *arg4 = (int *) 0 ;
12894 bool temp2 = False ;
12895 int temp3 ;
12896 int temp4 ;
12897 PyObject * obj0 = 0 ;
12898 PyObject * obj1 = 0 ;
12899 char *kwnames[] = {
12900 (char *) "self",(char *) "string", NULL
12901 };
12902
12903 arg3 = &temp3;
12904 arg4 = &temp4;
12905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12908 {
12909 arg2 = wxString_in_helper(obj1);
12910 if (arg2 == NULL) SWIG_fail;
12911 temp2 = True;
12912 }
12913 {
12914 PyThreadState* __tstate = wxPyBeginAllowThreads();
12915 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12916
12917 wxPyEndAllowThreads(__tstate);
12918 if (PyErr_Occurred()) SWIG_fail;
12919 }
12920 Py_INCREF(Py_None); resultobj = Py_None;
12921 {
12922 PyObject *o = PyInt_FromLong((long) (*arg3));
12923 resultobj = t_output_helper(resultobj,o);
12924 }
12925 {
12926 PyObject *o = PyInt_FromLong((long) (*arg4));
12927 resultobj = t_output_helper(resultobj,o);
12928 }
12929 {
12930 if (temp2)
12931 delete arg2;
12932 }
12933 return resultobj;
12934 fail:
12935 {
12936 if (temp2)
12937 delete arg2;
12938 }
12939 return NULL;
12940 }
12941
12942
12943 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12944 PyObject *resultobj;
12945 wxDC *arg1 = (wxDC *) 0 ;
12946 wxString *arg2 = 0 ;
12947 int *arg3 = (int *) 0 ;
12948 int *arg4 = (int *) 0 ;
12949 int *arg5 = (int *) 0 ;
12950 int *arg6 = (int *) 0 ;
12951 wxFont *arg7 = (wxFont *) NULL ;
12952 bool temp2 = False ;
12953 int temp3 ;
12954 int temp4 ;
12955 int temp5 ;
12956 int temp6 ;
12957 PyObject * obj0 = 0 ;
12958 PyObject * obj1 = 0 ;
12959 PyObject * obj2 = 0 ;
12960 char *kwnames[] = {
12961 (char *) "self",(char *) "string",(char *) "font", NULL
12962 };
12963
12964 arg3 = &temp3;
12965 arg4 = &temp4;
12966 arg5 = &temp5;
12967 arg6 = &temp6;
12968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12971 {
12972 arg2 = wxString_in_helper(obj1);
12973 if (arg2 == NULL) SWIG_fail;
12974 temp2 = True;
12975 }
12976 if (obj2) {
12977 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12979 }
12980 {
12981 PyThreadState* __tstate = wxPyBeginAllowThreads();
12982 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12983
12984 wxPyEndAllowThreads(__tstate);
12985 if (PyErr_Occurred()) SWIG_fail;
12986 }
12987 Py_INCREF(Py_None); resultobj = Py_None;
12988 {
12989 PyObject *o = PyInt_FromLong((long) (*arg3));
12990 resultobj = t_output_helper(resultobj,o);
12991 }
12992 {
12993 PyObject *o = PyInt_FromLong((long) (*arg4));
12994 resultobj = t_output_helper(resultobj,o);
12995 }
12996 {
12997 PyObject *o = PyInt_FromLong((long) (*arg5));
12998 resultobj = t_output_helper(resultobj,o);
12999 }
13000 {
13001 PyObject *o = PyInt_FromLong((long) (*arg6));
13002 resultobj = t_output_helper(resultobj,o);
13003 }
13004 {
13005 if (temp2)
13006 delete arg2;
13007 }
13008 return resultobj;
13009 fail:
13010 {
13011 if (temp2)
13012 delete arg2;
13013 }
13014 return NULL;
13015 }
13016
13017
13018 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13019 PyObject *resultobj;
13020 wxDC *arg1 = (wxDC *) 0 ;
13021 wxString *arg2 = 0 ;
13022 int *arg3 = (int *) 0 ;
13023 int *arg4 = (int *) 0 ;
13024 int *arg5 = (int *) 0 ;
13025 wxFont *arg6 = (wxFont *) NULL ;
13026 bool temp2 = False ;
13027 int temp3 ;
13028 int temp4 ;
13029 int temp5 ;
13030 PyObject * obj0 = 0 ;
13031 PyObject * obj1 = 0 ;
13032 PyObject * obj2 = 0 ;
13033 char *kwnames[] = {
13034 (char *) "self",(char *) "text",(char *) "font", NULL
13035 };
13036
13037 arg3 = &temp3;
13038 arg4 = &temp4;
13039 arg5 = &temp5;
13040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13043 {
13044 arg2 = wxString_in_helper(obj1);
13045 if (arg2 == NULL) SWIG_fail;
13046 temp2 = True;
13047 }
13048 if (obj2) {
13049 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13051 }
13052 {
13053 PyThreadState* __tstate = wxPyBeginAllowThreads();
13054 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13055
13056 wxPyEndAllowThreads(__tstate);
13057 if (PyErr_Occurred()) SWIG_fail;
13058 }
13059 Py_INCREF(Py_None); resultobj = Py_None;
13060 {
13061 PyObject *o = PyInt_FromLong((long) (*arg3));
13062 resultobj = t_output_helper(resultobj,o);
13063 }
13064 {
13065 PyObject *o = PyInt_FromLong((long) (*arg4));
13066 resultobj = t_output_helper(resultobj,o);
13067 }
13068 {
13069 PyObject *o = PyInt_FromLong((long) (*arg5));
13070 resultobj = t_output_helper(resultobj,o);
13071 }
13072 {
13073 if (temp2)
13074 delete arg2;
13075 }
13076 return resultobj;
13077 fail:
13078 {
13079 if (temp2)
13080 delete arg2;
13081 }
13082 return NULL;
13083 }
13084
13085
13086 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13087 PyObject *resultobj;
13088 wxDC *arg1 = (wxDC *) 0 ;
13089 wxString *arg2 = 0 ;
13090 wxArrayInt result;
13091 bool temp2 = False ;
13092 PyObject * obj0 = 0 ;
13093 PyObject * obj1 = 0 ;
13094 char *kwnames[] = {
13095 (char *) "self",(char *) "text", NULL
13096 };
13097
13098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13101 {
13102 arg2 = wxString_in_helper(obj1);
13103 if (arg2 == NULL) SWIG_fail;
13104 temp2 = True;
13105 }
13106 {
13107 PyThreadState* __tstate = wxPyBeginAllowThreads();
13108 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13109
13110 wxPyEndAllowThreads(__tstate);
13111 if (PyErr_Occurred()) SWIG_fail;
13112 }
13113 {
13114 resultobj = PyList_New(0);
13115 size_t idx;
13116 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13117 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13118 PyList_Append(resultobj, val);
13119 Py_DECREF(val);
13120 }
13121 }
13122 {
13123 if (temp2)
13124 delete arg2;
13125 }
13126 return resultobj;
13127 fail:
13128 {
13129 if (temp2)
13130 delete arg2;
13131 }
13132 return NULL;
13133 }
13134
13135
13136 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13137 PyObject *resultobj;
13138 wxDC *arg1 = (wxDC *) 0 ;
13139 wxSize result;
13140 PyObject * obj0 = 0 ;
13141 char *kwnames[] = {
13142 (char *) "self", NULL
13143 };
13144
13145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13148 {
13149 PyThreadState* __tstate = wxPyBeginAllowThreads();
13150 result = (arg1)->GetSize();
13151
13152 wxPyEndAllowThreads(__tstate);
13153 if (PyErr_Occurred()) SWIG_fail;
13154 }
13155 {
13156 wxSize * resultptr;
13157 resultptr = new wxSize((wxSize &) result);
13158 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13159 }
13160 return resultobj;
13161 fail:
13162 return NULL;
13163 }
13164
13165
13166 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13167 PyObject *resultobj;
13168 wxDC *arg1 = (wxDC *) 0 ;
13169 int *arg2 = (int *) 0 ;
13170 int *arg3 = (int *) 0 ;
13171 int temp2 ;
13172 int temp3 ;
13173 PyObject * obj0 = 0 ;
13174 char *kwnames[] = {
13175 (char *) "self", NULL
13176 };
13177
13178 arg2 = &temp2;
13179 arg3 = &temp3;
13180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13183 {
13184 PyThreadState* __tstate = wxPyBeginAllowThreads();
13185 (arg1)->GetSize(arg2,arg3);
13186
13187 wxPyEndAllowThreads(__tstate);
13188 if (PyErr_Occurred()) SWIG_fail;
13189 }
13190 Py_INCREF(Py_None); resultobj = Py_None;
13191 {
13192 PyObject *o = PyInt_FromLong((long) (*arg2));
13193 resultobj = t_output_helper(resultobj,o);
13194 }
13195 {
13196 PyObject *o = PyInt_FromLong((long) (*arg3));
13197 resultobj = t_output_helper(resultobj,o);
13198 }
13199 return resultobj;
13200 fail:
13201 return NULL;
13202 }
13203
13204
13205 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13206 PyObject *resultobj;
13207 wxDC *arg1 = (wxDC *) 0 ;
13208 wxSize result;
13209 PyObject * obj0 = 0 ;
13210 char *kwnames[] = {
13211 (char *) "self", NULL
13212 };
13213
13214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13217 {
13218 PyThreadState* __tstate = wxPyBeginAllowThreads();
13219 result = ((wxDC const *)arg1)->GetSizeMM();
13220
13221 wxPyEndAllowThreads(__tstate);
13222 if (PyErr_Occurred()) SWIG_fail;
13223 }
13224 {
13225 wxSize * resultptr;
13226 resultptr = new wxSize((wxSize &) result);
13227 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13228 }
13229 return resultobj;
13230 fail:
13231 return NULL;
13232 }
13233
13234
13235 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13236 PyObject *resultobj;
13237 wxDC *arg1 = (wxDC *) 0 ;
13238 int *arg2 = (int *) 0 ;
13239 int *arg3 = (int *) 0 ;
13240 int temp2 ;
13241 int temp3 ;
13242 PyObject * obj0 = 0 ;
13243 char *kwnames[] = {
13244 (char *) "self", NULL
13245 };
13246
13247 arg2 = &temp2;
13248 arg3 = &temp3;
13249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13252 {
13253 PyThreadState* __tstate = wxPyBeginAllowThreads();
13254 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13255
13256 wxPyEndAllowThreads(__tstate);
13257 if (PyErr_Occurred()) SWIG_fail;
13258 }
13259 Py_INCREF(Py_None); resultobj = Py_None;
13260 {
13261 PyObject *o = PyInt_FromLong((long) (*arg2));
13262 resultobj = t_output_helper(resultobj,o);
13263 }
13264 {
13265 PyObject *o = PyInt_FromLong((long) (*arg3));
13266 resultobj = t_output_helper(resultobj,o);
13267 }
13268 return resultobj;
13269 fail:
13270 return NULL;
13271 }
13272
13273
13274 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13275 PyObject *resultobj;
13276 wxDC *arg1 = (wxDC *) 0 ;
13277 int arg2 ;
13278 int result;
13279 PyObject * obj0 = 0 ;
13280 PyObject * obj1 = 0 ;
13281 char *kwnames[] = {
13282 (char *) "self",(char *) "x", NULL
13283 };
13284
13285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13288 arg2 = (int) SWIG_AsInt(obj1);
13289 if (PyErr_Occurred()) SWIG_fail;
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13293
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 resultobj = SWIG_FromInt((int)result);
13298 return resultobj;
13299 fail:
13300 return NULL;
13301 }
13302
13303
13304 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13305 PyObject *resultobj;
13306 wxDC *arg1 = (wxDC *) 0 ;
13307 int arg2 ;
13308 int result;
13309 PyObject * obj0 = 0 ;
13310 PyObject * obj1 = 0 ;
13311 char *kwnames[] = {
13312 (char *) "self",(char *) "y", NULL
13313 };
13314
13315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13318 arg2 = (int) SWIG_AsInt(obj1);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 {
13321 PyThreadState* __tstate = wxPyBeginAllowThreads();
13322 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13323
13324 wxPyEndAllowThreads(__tstate);
13325 if (PyErr_Occurred()) SWIG_fail;
13326 }
13327 resultobj = SWIG_FromInt((int)result);
13328 return resultobj;
13329 fail:
13330 return NULL;
13331 }
13332
13333
13334 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13335 PyObject *resultobj;
13336 wxDC *arg1 = (wxDC *) 0 ;
13337 int arg2 ;
13338 int result;
13339 PyObject * obj0 = 0 ;
13340 PyObject * obj1 = 0 ;
13341 char *kwnames[] = {
13342 (char *) "self",(char *) "x", NULL
13343 };
13344
13345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13348 arg2 = (int) SWIG_AsInt(obj1);
13349 if (PyErr_Occurred()) SWIG_fail;
13350 {
13351 PyThreadState* __tstate = wxPyBeginAllowThreads();
13352 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13353
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 resultobj = SWIG_FromInt((int)result);
13358 return resultobj;
13359 fail:
13360 return NULL;
13361 }
13362
13363
13364 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13365 PyObject *resultobj;
13366 wxDC *arg1 = (wxDC *) 0 ;
13367 int arg2 ;
13368 int result;
13369 PyObject * obj0 = 0 ;
13370 PyObject * obj1 = 0 ;
13371 char *kwnames[] = {
13372 (char *) "self",(char *) "y", NULL
13373 };
13374
13375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13378 arg2 = (int) SWIG_AsInt(obj1);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 {
13381 PyThreadState* __tstate = wxPyBeginAllowThreads();
13382 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13383
13384 wxPyEndAllowThreads(__tstate);
13385 if (PyErr_Occurred()) SWIG_fail;
13386 }
13387 resultobj = SWIG_FromInt((int)result);
13388 return resultobj;
13389 fail:
13390 return NULL;
13391 }
13392
13393
13394 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13395 PyObject *resultobj;
13396 wxDC *arg1 = (wxDC *) 0 ;
13397 int arg2 ;
13398 int result;
13399 PyObject * obj0 = 0 ;
13400 PyObject * obj1 = 0 ;
13401 char *kwnames[] = {
13402 (char *) "self",(char *) "x", NULL
13403 };
13404
13405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13408 arg2 = (int) SWIG_AsInt(obj1);
13409 if (PyErr_Occurred()) SWIG_fail;
13410 {
13411 PyThreadState* __tstate = wxPyBeginAllowThreads();
13412 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13413
13414 wxPyEndAllowThreads(__tstate);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 }
13417 resultobj = SWIG_FromInt((int)result);
13418 return resultobj;
13419 fail:
13420 return NULL;
13421 }
13422
13423
13424 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13425 PyObject *resultobj;
13426 wxDC *arg1 = (wxDC *) 0 ;
13427 int arg2 ;
13428 int result;
13429 PyObject * obj0 = 0 ;
13430 PyObject * obj1 = 0 ;
13431 char *kwnames[] = {
13432 (char *) "self",(char *) "y", NULL
13433 };
13434
13435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13438 arg2 = (int) SWIG_AsInt(obj1);
13439 if (PyErr_Occurred()) SWIG_fail;
13440 {
13441 PyThreadState* __tstate = wxPyBeginAllowThreads();
13442 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13443
13444 wxPyEndAllowThreads(__tstate);
13445 if (PyErr_Occurred()) SWIG_fail;
13446 }
13447 resultobj = SWIG_FromInt((int)result);
13448 return resultobj;
13449 fail:
13450 return NULL;
13451 }
13452
13453
13454 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13455 PyObject *resultobj;
13456 wxDC *arg1 = (wxDC *) 0 ;
13457 int arg2 ;
13458 int result;
13459 PyObject * obj0 = 0 ;
13460 PyObject * obj1 = 0 ;
13461 char *kwnames[] = {
13462 (char *) "self",(char *) "x", NULL
13463 };
13464
13465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13468 arg2 = (int) SWIG_AsInt(obj1);
13469 if (PyErr_Occurred()) SWIG_fail;
13470 {
13471 PyThreadState* __tstate = wxPyBeginAllowThreads();
13472 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13473
13474 wxPyEndAllowThreads(__tstate);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 }
13477 resultobj = SWIG_FromInt((int)result);
13478 return resultobj;
13479 fail:
13480 return NULL;
13481 }
13482
13483
13484 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13485 PyObject *resultobj;
13486 wxDC *arg1 = (wxDC *) 0 ;
13487 int arg2 ;
13488 int result;
13489 PyObject * obj0 = 0 ;
13490 PyObject * obj1 = 0 ;
13491 char *kwnames[] = {
13492 (char *) "self",(char *) "y", NULL
13493 };
13494
13495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13498 arg2 = (int) SWIG_AsInt(obj1);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 {
13501 PyThreadState* __tstate = wxPyBeginAllowThreads();
13502 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13503
13504 wxPyEndAllowThreads(__tstate);
13505 if (PyErr_Occurred()) SWIG_fail;
13506 }
13507 resultobj = SWIG_FromInt((int)result);
13508 return resultobj;
13509 fail:
13510 return NULL;
13511 }
13512
13513
13514 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13515 PyObject *resultobj;
13516 wxDC *arg1 = (wxDC *) 0 ;
13517 bool result;
13518 PyObject * obj0 = 0 ;
13519 char *kwnames[] = {
13520 (char *) "self", NULL
13521 };
13522
13523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13529
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 {
13534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13535 }
13536 return resultobj;
13537 fail:
13538 return NULL;
13539 }
13540
13541
13542 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13543 PyObject *resultobj;
13544 wxDC *arg1 = (wxDC *) 0 ;
13545 bool result;
13546 PyObject * obj0 = 0 ;
13547 char *kwnames[] = {
13548 (char *) "self", NULL
13549 };
13550
13551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13554 {
13555 PyThreadState* __tstate = wxPyBeginAllowThreads();
13556 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13557
13558 wxPyEndAllowThreads(__tstate);
13559 if (PyErr_Occurred()) SWIG_fail;
13560 }
13561 {
13562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13563 }
13564 return resultobj;
13565 fail:
13566 return NULL;
13567 }
13568
13569
13570 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13571 PyObject *resultobj;
13572 wxDC *arg1 = (wxDC *) 0 ;
13573 int result;
13574 PyObject * obj0 = 0 ;
13575 char *kwnames[] = {
13576 (char *) "self", NULL
13577 };
13578
13579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13582 {
13583 PyThreadState* __tstate = wxPyBeginAllowThreads();
13584 result = (int)((wxDC const *)arg1)->GetDepth();
13585
13586 wxPyEndAllowThreads(__tstate);
13587 if (PyErr_Occurred()) SWIG_fail;
13588 }
13589 resultobj = SWIG_FromInt((int)result);
13590 return resultobj;
13591 fail:
13592 return NULL;
13593 }
13594
13595
13596 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13597 PyObject *resultobj;
13598 wxDC *arg1 = (wxDC *) 0 ;
13599 wxSize result;
13600 PyObject * obj0 = 0 ;
13601 char *kwnames[] = {
13602 (char *) "self", NULL
13603 };
13604
13605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13608 {
13609 PyThreadState* __tstate = wxPyBeginAllowThreads();
13610 result = ((wxDC const *)arg1)->GetPPI();
13611
13612 wxPyEndAllowThreads(__tstate);
13613 if (PyErr_Occurred()) SWIG_fail;
13614 }
13615 {
13616 wxSize * resultptr;
13617 resultptr = new wxSize((wxSize &) result);
13618 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13619 }
13620 return resultobj;
13621 fail:
13622 return NULL;
13623 }
13624
13625
13626 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13627 PyObject *resultobj;
13628 wxDC *arg1 = (wxDC *) 0 ;
13629 bool result;
13630 PyObject * obj0 = 0 ;
13631 char *kwnames[] = {
13632 (char *) "self", NULL
13633 };
13634
13635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13638 {
13639 PyThreadState* __tstate = wxPyBeginAllowThreads();
13640 result = (bool)((wxDC const *)arg1)->Ok();
13641
13642 wxPyEndAllowThreads(__tstate);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
13645 {
13646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13647 }
13648 return resultobj;
13649 fail:
13650 return NULL;
13651 }
13652
13653
13654 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13655 PyObject *resultobj;
13656 wxDC *arg1 = (wxDC *) 0 ;
13657 int result;
13658 PyObject * obj0 = 0 ;
13659 char *kwnames[] = {
13660 (char *) "self", NULL
13661 };
13662
13663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13666 {
13667 PyThreadState* __tstate = wxPyBeginAllowThreads();
13668 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13669
13670 wxPyEndAllowThreads(__tstate);
13671 if (PyErr_Occurred()) SWIG_fail;
13672 }
13673 resultobj = SWIG_FromInt((int)result);
13674 return resultobj;
13675 fail:
13676 return NULL;
13677 }
13678
13679
13680 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj;
13682 wxDC *arg1 = (wxDC *) 0 ;
13683 wxBrush *result;
13684 PyObject * obj0 = 0 ;
13685 char *kwnames[] = {
13686 (char *) "self", NULL
13687 };
13688
13689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 {
13695 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13696 result = (wxBrush *) &_result_ref;
13697 }
13698
13699 wxPyEndAllowThreads(__tstate);
13700 if (PyErr_Occurred()) SWIG_fail;
13701 }
13702 {
13703 wxBrush* resultptr = new wxBrush(*result);
13704 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13705 }
13706 return resultobj;
13707 fail:
13708 return NULL;
13709 }
13710
13711
13712 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13713 PyObject *resultobj;
13714 wxDC *arg1 = (wxDC *) 0 ;
13715 wxBrush *result;
13716 PyObject * obj0 = 0 ;
13717 char *kwnames[] = {
13718 (char *) "self", NULL
13719 };
13720
13721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13724 {
13725 PyThreadState* __tstate = wxPyBeginAllowThreads();
13726 {
13727 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13728 result = (wxBrush *) &_result_ref;
13729 }
13730
13731 wxPyEndAllowThreads(__tstate);
13732 if (PyErr_Occurred()) SWIG_fail;
13733 }
13734 {
13735 wxBrush* resultptr = new wxBrush(*result);
13736 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13737 }
13738 return resultobj;
13739 fail:
13740 return NULL;
13741 }
13742
13743
13744 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13745 PyObject *resultobj;
13746 wxDC *arg1 = (wxDC *) 0 ;
13747 wxFont *result;
13748 PyObject * obj0 = 0 ;
13749 char *kwnames[] = {
13750 (char *) "self", NULL
13751 };
13752
13753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13756 {
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 {
13759 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13760 result = (wxFont *) &_result_ref;
13761 }
13762
13763 wxPyEndAllowThreads(__tstate);
13764 if (PyErr_Occurred()) SWIG_fail;
13765 }
13766 {
13767 wxFont* resultptr = new wxFont(*result);
13768 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13769 }
13770 return resultobj;
13771 fail:
13772 return NULL;
13773 }
13774
13775
13776 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13777 PyObject *resultobj;
13778 wxDC *arg1 = (wxDC *) 0 ;
13779 wxPen *result;
13780 PyObject * obj0 = 0 ;
13781 char *kwnames[] = {
13782 (char *) "self", NULL
13783 };
13784
13785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13788 {
13789 PyThreadState* __tstate = wxPyBeginAllowThreads();
13790 {
13791 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13792 result = (wxPen *) &_result_ref;
13793 }
13794
13795 wxPyEndAllowThreads(__tstate);
13796 if (PyErr_Occurred()) SWIG_fail;
13797 }
13798 {
13799 wxPen* resultptr = new wxPen(*result);
13800 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13801 }
13802 return resultobj;
13803 fail:
13804 return NULL;
13805 }
13806
13807
13808 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13809 PyObject *resultobj;
13810 wxDC *arg1 = (wxDC *) 0 ;
13811 wxColour *result;
13812 PyObject * obj0 = 0 ;
13813 char *kwnames[] = {
13814 (char *) "self", NULL
13815 };
13816
13817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13820 {
13821 PyThreadState* __tstate = wxPyBeginAllowThreads();
13822 {
13823 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13824 result = (wxColour *) &_result_ref;
13825 }
13826
13827 wxPyEndAllowThreads(__tstate);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 }
13830 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13831 return resultobj;
13832 fail:
13833 return NULL;
13834 }
13835
13836
13837 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13838 PyObject *resultobj;
13839 wxDC *arg1 = (wxDC *) 0 ;
13840 wxColour *result;
13841 PyObject * obj0 = 0 ;
13842 char *kwnames[] = {
13843 (char *) "self", NULL
13844 };
13845
13846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13849 {
13850 PyThreadState* __tstate = wxPyBeginAllowThreads();
13851 {
13852 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13853 result = (wxColour *) &_result_ref;
13854 }
13855
13856 wxPyEndAllowThreads(__tstate);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13860 return resultobj;
13861 fail:
13862 return NULL;
13863 }
13864
13865
13866 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13867 PyObject *resultobj;
13868 wxDC *arg1 = (wxDC *) 0 ;
13869 wxColour *arg2 = 0 ;
13870 wxColour temp2 ;
13871 PyObject * obj0 = 0 ;
13872 PyObject * obj1 = 0 ;
13873 char *kwnames[] = {
13874 (char *) "self",(char *) "colour", NULL
13875 };
13876
13877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13880 {
13881 arg2 = &temp2;
13882 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13883 }
13884 {
13885 PyThreadState* __tstate = wxPyBeginAllowThreads();
13886 (arg1)->SetTextForeground((wxColour const &)*arg2);
13887
13888 wxPyEndAllowThreads(__tstate);
13889 if (PyErr_Occurred()) SWIG_fail;
13890 }
13891 Py_INCREF(Py_None); resultobj = Py_None;
13892 return resultobj;
13893 fail:
13894 return NULL;
13895 }
13896
13897
13898 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13899 PyObject *resultobj;
13900 wxDC *arg1 = (wxDC *) 0 ;
13901 wxColour *arg2 = 0 ;
13902 wxColour temp2 ;
13903 PyObject * obj0 = 0 ;
13904 PyObject * obj1 = 0 ;
13905 char *kwnames[] = {
13906 (char *) "self",(char *) "colour", NULL
13907 };
13908
13909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13912 {
13913 arg2 = &temp2;
13914 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13915 }
13916 {
13917 PyThreadState* __tstate = wxPyBeginAllowThreads();
13918 (arg1)->SetTextBackground((wxColour const &)*arg2);
13919
13920 wxPyEndAllowThreads(__tstate);
13921 if (PyErr_Occurred()) SWIG_fail;
13922 }
13923 Py_INCREF(Py_None); resultobj = Py_None;
13924 return resultobj;
13925 fail:
13926 return NULL;
13927 }
13928
13929
13930 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13931 PyObject *resultobj;
13932 wxDC *arg1 = (wxDC *) 0 ;
13933 int result;
13934 PyObject * obj0 = 0 ;
13935 char *kwnames[] = {
13936 (char *) "self", NULL
13937 };
13938
13939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13942 {
13943 PyThreadState* __tstate = wxPyBeginAllowThreads();
13944 result = (int)((wxDC const *)arg1)->GetMapMode();
13945
13946 wxPyEndAllowThreads(__tstate);
13947 if (PyErr_Occurred()) SWIG_fail;
13948 }
13949 resultobj = SWIG_FromInt((int)result);
13950 return resultobj;
13951 fail:
13952 return NULL;
13953 }
13954
13955
13956 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13957 PyObject *resultobj;
13958 wxDC *arg1 = (wxDC *) 0 ;
13959 int arg2 ;
13960 PyObject * obj0 = 0 ;
13961 PyObject * obj1 = 0 ;
13962 char *kwnames[] = {
13963 (char *) "self",(char *) "mode", NULL
13964 };
13965
13966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13969 arg2 = (int) SWIG_AsInt(obj1);
13970 if (PyErr_Occurred()) SWIG_fail;
13971 {
13972 PyThreadState* __tstate = wxPyBeginAllowThreads();
13973 (arg1)->SetMapMode(arg2);
13974
13975 wxPyEndAllowThreads(__tstate);
13976 if (PyErr_Occurred()) SWIG_fail;
13977 }
13978 Py_INCREF(Py_None); resultobj = Py_None;
13979 return resultobj;
13980 fail:
13981 return NULL;
13982 }
13983
13984
13985 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13986 PyObject *resultobj;
13987 wxDC *arg1 = (wxDC *) 0 ;
13988 double *arg2 = (double *) 0 ;
13989 double *arg3 = (double *) 0 ;
13990 double temp2 ;
13991 double temp3 ;
13992 PyObject * obj0 = 0 ;
13993 char *kwnames[] = {
13994 (char *) "self", NULL
13995 };
13996
13997 arg2 = &temp2;
13998 arg3 = &temp3;
13999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14002 {
14003 PyThreadState* __tstate = wxPyBeginAllowThreads();
14004 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14005
14006 wxPyEndAllowThreads(__tstate);
14007 if (PyErr_Occurred()) SWIG_fail;
14008 }
14009 Py_INCREF(Py_None); resultobj = Py_None;
14010 {
14011 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14012 resultobj = t_output_helper(resultobj,o);
14013 }
14014 {
14015 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14016 resultobj = t_output_helper(resultobj,o);
14017 }
14018 return resultobj;
14019 fail:
14020 return NULL;
14021 }
14022
14023
14024 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14025 PyObject *resultobj;
14026 wxDC *arg1 = (wxDC *) 0 ;
14027 double arg2 ;
14028 double arg3 ;
14029 PyObject * obj0 = 0 ;
14030 PyObject * obj1 = 0 ;
14031 PyObject * obj2 = 0 ;
14032 char *kwnames[] = {
14033 (char *) "self",(char *) "x",(char *) "y", NULL
14034 };
14035
14036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14039 arg2 = (double) SWIG_AsDouble(obj1);
14040 if (PyErr_Occurred()) SWIG_fail;
14041 arg3 = (double) SWIG_AsDouble(obj2);
14042 if (PyErr_Occurred()) SWIG_fail;
14043 {
14044 PyThreadState* __tstate = wxPyBeginAllowThreads();
14045 (arg1)->SetUserScale(arg2,arg3);
14046
14047 wxPyEndAllowThreads(__tstate);
14048 if (PyErr_Occurred()) SWIG_fail;
14049 }
14050 Py_INCREF(Py_None); resultobj = Py_None;
14051 return resultobj;
14052 fail:
14053 return NULL;
14054 }
14055
14056
14057 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14058 PyObject *resultobj;
14059 wxDC *arg1 = (wxDC *) 0 ;
14060 double *arg2 = (double *) 0 ;
14061 double *arg3 = (double *) 0 ;
14062 double temp2 ;
14063 double temp3 ;
14064 PyObject * obj0 = 0 ;
14065 char *kwnames[] = {
14066 (char *) "self", NULL
14067 };
14068
14069 arg2 = &temp2;
14070 arg3 = &temp3;
14071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14074 {
14075 PyThreadState* __tstate = wxPyBeginAllowThreads();
14076 (arg1)->GetLogicalScale(arg2,arg3);
14077
14078 wxPyEndAllowThreads(__tstate);
14079 if (PyErr_Occurred()) SWIG_fail;
14080 }
14081 Py_INCREF(Py_None); resultobj = Py_None;
14082 {
14083 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14084 resultobj = t_output_helper(resultobj,o);
14085 }
14086 {
14087 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14088 resultobj = t_output_helper(resultobj,o);
14089 }
14090 return resultobj;
14091 fail:
14092 return NULL;
14093 }
14094
14095
14096 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14097 PyObject *resultobj;
14098 wxDC *arg1 = (wxDC *) 0 ;
14099 double arg2 ;
14100 double arg3 ;
14101 PyObject * obj0 = 0 ;
14102 PyObject * obj1 = 0 ;
14103 PyObject * obj2 = 0 ;
14104 char *kwnames[] = {
14105 (char *) "self",(char *) "x",(char *) "y", NULL
14106 };
14107
14108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14111 arg2 = (double) SWIG_AsDouble(obj1);
14112 if (PyErr_Occurred()) SWIG_fail;
14113 arg3 = (double) SWIG_AsDouble(obj2);
14114 if (PyErr_Occurred()) SWIG_fail;
14115 {
14116 PyThreadState* __tstate = wxPyBeginAllowThreads();
14117 (arg1)->SetLogicalScale(arg2,arg3);
14118
14119 wxPyEndAllowThreads(__tstate);
14120 if (PyErr_Occurred()) SWIG_fail;
14121 }
14122 Py_INCREF(Py_None); resultobj = Py_None;
14123 return resultobj;
14124 fail:
14125 return NULL;
14126 }
14127
14128
14129 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14130 PyObject *resultobj;
14131 wxDC *arg1 = (wxDC *) 0 ;
14132 wxPoint result;
14133 PyObject * obj0 = 0 ;
14134 char *kwnames[] = {
14135 (char *) "self", NULL
14136 };
14137
14138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14141 {
14142 PyThreadState* __tstate = wxPyBeginAllowThreads();
14143 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14144
14145 wxPyEndAllowThreads(__tstate);
14146 if (PyErr_Occurred()) SWIG_fail;
14147 }
14148 {
14149 wxPoint * resultptr;
14150 resultptr = new wxPoint((wxPoint &) result);
14151 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14152 }
14153 return resultobj;
14154 fail:
14155 return NULL;
14156 }
14157
14158
14159 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14160 PyObject *resultobj;
14161 wxDC *arg1 = (wxDC *) 0 ;
14162 int *arg2 = (int *) 0 ;
14163 int *arg3 = (int *) 0 ;
14164 int temp2 ;
14165 int temp3 ;
14166 PyObject * obj0 = 0 ;
14167 char *kwnames[] = {
14168 (char *) "self", NULL
14169 };
14170
14171 arg2 = &temp2;
14172 arg3 = &temp3;
14173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14176 {
14177 PyThreadState* __tstate = wxPyBeginAllowThreads();
14178 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14179
14180 wxPyEndAllowThreads(__tstate);
14181 if (PyErr_Occurred()) SWIG_fail;
14182 }
14183 Py_INCREF(Py_None); resultobj = Py_None;
14184 {
14185 PyObject *o = PyInt_FromLong((long) (*arg2));
14186 resultobj = t_output_helper(resultobj,o);
14187 }
14188 {
14189 PyObject *o = PyInt_FromLong((long) (*arg3));
14190 resultobj = t_output_helper(resultobj,o);
14191 }
14192 return resultobj;
14193 fail:
14194 return NULL;
14195 }
14196
14197
14198 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14199 PyObject *resultobj;
14200 wxDC *arg1 = (wxDC *) 0 ;
14201 int arg2 ;
14202 int arg3 ;
14203 PyObject * obj0 = 0 ;
14204 PyObject * obj1 = 0 ;
14205 PyObject * obj2 = 0 ;
14206 char *kwnames[] = {
14207 (char *) "self",(char *) "x",(char *) "y", NULL
14208 };
14209
14210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14213 arg2 = (int) SWIG_AsInt(obj1);
14214 if (PyErr_Occurred()) SWIG_fail;
14215 arg3 = (int) SWIG_AsInt(obj2);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 {
14218 PyThreadState* __tstate = wxPyBeginAllowThreads();
14219 (arg1)->SetLogicalOrigin(arg2,arg3);
14220
14221 wxPyEndAllowThreads(__tstate);
14222 if (PyErr_Occurred()) SWIG_fail;
14223 }
14224 Py_INCREF(Py_None); resultobj = Py_None;
14225 return resultobj;
14226 fail:
14227 return NULL;
14228 }
14229
14230
14231 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14232 PyObject *resultobj;
14233 wxDC *arg1 = (wxDC *) 0 ;
14234 wxPoint *arg2 = 0 ;
14235 wxPoint temp2 ;
14236 PyObject * obj0 = 0 ;
14237 PyObject * obj1 = 0 ;
14238 char *kwnames[] = {
14239 (char *) "self",(char *) "point", NULL
14240 };
14241
14242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14245 {
14246 arg2 = &temp2;
14247 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14248 }
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14252
14253 wxPyEndAllowThreads(__tstate);
14254 if (PyErr_Occurred()) SWIG_fail;
14255 }
14256 Py_INCREF(Py_None); resultobj = Py_None;
14257 return resultobj;
14258 fail:
14259 return NULL;
14260 }
14261
14262
14263 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14264 PyObject *resultobj;
14265 wxDC *arg1 = (wxDC *) 0 ;
14266 wxPoint result;
14267 PyObject * obj0 = 0 ;
14268 char *kwnames[] = {
14269 (char *) "self", NULL
14270 };
14271
14272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14278
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 {
14283 wxPoint * resultptr;
14284 resultptr = new wxPoint((wxPoint &) result);
14285 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14286 }
14287 return resultobj;
14288 fail:
14289 return NULL;
14290 }
14291
14292
14293 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14294 PyObject *resultobj;
14295 wxDC *arg1 = (wxDC *) 0 ;
14296 int *arg2 = (int *) 0 ;
14297 int *arg3 = (int *) 0 ;
14298 int temp2 ;
14299 int temp3 ;
14300 PyObject * obj0 = 0 ;
14301 char *kwnames[] = {
14302 (char *) "self", NULL
14303 };
14304
14305 arg2 = &temp2;
14306 arg3 = &temp3;
14307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14310 {
14311 PyThreadState* __tstate = wxPyBeginAllowThreads();
14312 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14313
14314 wxPyEndAllowThreads(__tstate);
14315 if (PyErr_Occurred()) SWIG_fail;
14316 }
14317 Py_INCREF(Py_None); resultobj = Py_None;
14318 {
14319 PyObject *o = PyInt_FromLong((long) (*arg2));
14320 resultobj = t_output_helper(resultobj,o);
14321 }
14322 {
14323 PyObject *o = PyInt_FromLong((long) (*arg3));
14324 resultobj = t_output_helper(resultobj,o);
14325 }
14326 return resultobj;
14327 fail:
14328 return NULL;
14329 }
14330
14331
14332 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14333 PyObject *resultobj;
14334 wxDC *arg1 = (wxDC *) 0 ;
14335 int arg2 ;
14336 int arg3 ;
14337 PyObject * obj0 = 0 ;
14338 PyObject * obj1 = 0 ;
14339 PyObject * obj2 = 0 ;
14340 char *kwnames[] = {
14341 (char *) "self",(char *) "x",(char *) "y", NULL
14342 };
14343
14344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14347 arg2 = (int) SWIG_AsInt(obj1);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 arg3 = (int) SWIG_AsInt(obj2);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 {
14352 PyThreadState* __tstate = wxPyBeginAllowThreads();
14353 (arg1)->SetDeviceOrigin(arg2,arg3);
14354
14355 wxPyEndAllowThreads(__tstate);
14356 if (PyErr_Occurred()) SWIG_fail;
14357 }
14358 Py_INCREF(Py_None); resultobj = Py_None;
14359 return resultobj;
14360 fail:
14361 return NULL;
14362 }
14363
14364
14365 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14366 PyObject *resultobj;
14367 wxDC *arg1 = (wxDC *) 0 ;
14368 wxPoint *arg2 = 0 ;
14369 wxPoint temp2 ;
14370 PyObject * obj0 = 0 ;
14371 PyObject * obj1 = 0 ;
14372 char *kwnames[] = {
14373 (char *) "self",(char *) "point", NULL
14374 };
14375
14376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14379 {
14380 arg2 = &temp2;
14381 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14382 }
14383 {
14384 PyThreadState* __tstate = wxPyBeginAllowThreads();
14385 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14386
14387 wxPyEndAllowThreads(__tstate);
14388 if (PyErr_Occurred()) SWIG_fail;
14389 }
14390 Py_INCREF(Py_None); resultobj = Py_None;
14391 return resultobj;
14392 fail:
14393 return NULL;
14394 }
14395
14396
14397 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14398 PyObject *resultobj;
14399 wxDC *arg1 = (wxDC *) 0 ;
14400 bool arg2 ;
14401 bool arg3 ;
14402 PyObject * obj0 = 0 ;
14403 PyObject * obj1 = 0 ;
14404 PyObject * obj2 = 0 ;
14405 char *kwnames[] = {
14406 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14407 };
14408
14409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14412 arg2 = (bool) SWIG_AsBool(obj1);
14413 if (PyErr_Occurred()) SWIG_fail;
14414 arg3 = (bool) SWIG_AsBool(obj2);
14415 if (PyErr_Occurred()) SWIG_fail;
14416 {
14417 PyThreadState* __tstate = wxPyBeginAllowThreads();
14418 (arg1)->SetAxisOrientation(arg2,arg3);
14419
14420 wxPyEndAllowThreads(__tstate);
14421 if (PyErr_Occurred()) SWIG_fail;
14422 }
14423 Py_INCREF(Py_None); resultobj = Py_None;
14424 return resultobj;
14425 fail:
14426 return NULL;
14427 }
14428
14429
14430 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14431 PyObject *resultobj;
14432 wxDC *arg1 = (wxDC *) 0 ;
14433 int result;
14434 PyObject * obj0 = 0 ;
14435 char *kwnames[] = {
14436 (char *) "self", NULL
14437 };
14438
14439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14442 {
14443 PyThreadState* __tstate = wxPyBeginAllowThreads();
14444 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14445
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 resultobj = SWIG_FromInt((int)result);
14450 return resultobj;
14451 fail:
14452 return NULL;
14453 }
14454
14455
14456 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14457 PyObject *resultobj;
14458 wxDC *arg1 = (wxDC *) 0 ;
14459 int arg2 ;
14460 PyObject * obj0 = 0 ;
14461 PyObject * obj1 = 0 ;
14462 char *kwnames[] = {
14463 (char *) "self",(char *) "function", NULL
14464 };
14465
14466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14469 arg2 = (int) SWIG_AsInt(obj1);
14470 if (PyErr_Occurred()) SWIG_fail;
14471 {
14472 PyThreadState* __tstate = wxPyBeginAllowThreads();
14473 (arg1)->SetLogicalFunction(arg2);
14474
14475 wxPyEndAllowThreads(__tstate);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 }
14478 Py_INCREF(Py_None); resultobj = Py_None;
14479 return resultobj;
14480 fail:
14481 return NULL;
14482 }
14483
14484
14485 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14486 PyObject *resultobj;
14487 wxDC *arg1 = (wxDC *) 0 ;
14488 bool arg2 ;
14489 PyObject * obj0 = 0 ;
14490 PyObject * obj1 = 0 ;
14491 char *kwnames[] = {
14492 (char *) "self",(char *) "opt", NULL
14493 };
14494
14495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14498 arg2 = (bool) SWIG_AsBool(obj1);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 {
14501 PyThreadState* __tstate = wxPyBeginAllowThreads();
14502 (arg1)->SetOptimization(arg2);
14503
14504 wxPyEndAllowThreads(__tstate);
14505 if (PyErr_Occurred()) SWIG_fail;
14506 }
14507 Py_INCREF(Py_None); resultobj = Py_None;
14508 return resultobj;
14509 fail:
14510 return NULL;
14511 }
14512
14513
14514 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14515 PyObject *resultobj;
14516 wxDC *arg1 = (wxDC *) 0 ;
14517 bool result;
14518 PyObject * obj0 = 0 ;
14519 char *kwnames[] = {
14520 (char *) "self", NULL
14521 };
14522
14523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14526 {
14527 PyThreadState* __tstate = wxPyBeginAllowThreads();
14528 result = (bool)(arg1)->GetOptimization();
14529
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 {
14534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14535 }
14536 return resultobj;
14537 fail:
14538 return NULL;
14539 }
14540
14541
14542 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14543 PyObject *resultobj;
14544 wxDC *arg1 = (wxDC *) 0 ;
14545 int arg2 ;
14546 int arg3 ;
14547 PyObject * obj0 = 0 ;
14548 PyObject * obj1 = 0 ;
14549 PyObject * obj2 = 0 ;
14550 char *kwnames[] = {
14551 (char *) "self",(char *) "x",(char *) "y", NULL
14552 };
14553
14554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14557 arg2 = (int) SWIG_AsInt(obj1);
14558 if (PyErr_Occurred()) SWIG_fail;
14559 arg3 = (int) SWIG_AsInt(obj2);
14560 if (PyErr_Occurred()) SWIG_fail;
14561 {
14562 PyThreadState* __tstate = wxPyBeginAllowThreads();
14563 (arg1)->CalcBoundingBox(arg2,arg3);
14564
14565 wxPyEndAllowThreads(__tstate);
14566 if (PyErr_Occurred()) SWIG_fail;
14567 }
14568 Py_INCREF(Py_None); resultobj = Py_None;
14569 return resultobj;
14570 fail:
14571 return NULL;
14572 }
14573
14574
14575 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14576 PyObject *resultobj;
14577 wxDC *arg1 = (wxDC *) 0 ;
14578 wxPoint *arg2 = 0 ;
14579 wxPoint temp2 ;
14580 PyObject * obj0 = 0 ;
14581 PyObject * obj1 = 0 ;
14582 char *kwnames[] = {
14583 (char *) "self",(char *) "point", NULL
14584 };
14585
14586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14589 {
14590 arg2 = &temp2;
14591 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14592 }
14593 {
14594 PyThreadState* __tstate = wxPyBeginAllowThreads();
14595 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14596
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 Py_INCREF(Py_None); resultobj = Py_None;
14601 return resultobj;
14602 fail:
14603 return NULL;
14604 }
14605
14606
14607 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14608 PyObject *resultobj;
14609 wxDC *arg1 = (wxDC *) 0 ;
14610 PyObject * obj0 = 0 ;
14611 char *kwnames[] = {
14612 (char *) "self", NULL
14613 };
14614
14615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14618 {
14619 PyThreadState* __tstate = wxPyBeginAllowThreads();
14620 (arg1)->ResetBoundingBox();
14621
14622 wxPyEndAllowThreads(__tstate);
14623 if (PyErr_Occurred()) SWIG_fail;
14624 }
14625 Py_INCREF(Py_None); resultobj = Py_None;
14626 return resultobj;
14627 fail:
14628 return NULL;
14629 }
14630
14631
14632 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14633 PyObject *resultobj;
14634 wxDC *arg1 = (wxDC *) 0 ;
14635 int result;
14636 PyObject * obj0 = 0 ;
14637 char *kwnames[] = {
14638 (char *) "self", NULL
14639 };
14640
14641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14644 {
14645 PyThreadState* __tstate = wxPyBeginAllowThreads();
14646 result = (int)((wxDC const *)arg1)->MinX();
14647
14648 wxPyEndAllowThreads(__tstate);
14649 if (PyErr_Occurred()) SWIG_fail;
14650 }
14651 resultobj = SWIG_FromInt((int)result);
14652 return resultobj;
14653 fail:
14654 return NULL;
14655 }
14656
14657
14658 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14659 PyObject *resultobj;
14660 wxDC *arg1 = (wxDC *) 0 ;
14661 int result;
14662 PyObject * obj0 = 0 ;
14663 char *kwnames[] = {
14664 (char *) "self", NULL
14665 };
14666
14667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14670 {
14671 PyThreadState* __tstate = wxPyBeginAllowThreads();
14672 result = (int)((wxDC const *)arg1)->MaxX();
14673
14674 wxPyEndAllowThreads(__tstate);
14675 if (PyErr_Occurred()) SWIG_fail;
14676 }
14677 resultobj = SWIG_FromInt((int)result);
14678 return resultobj;
14679 fail:
14680 return NULL;
14681 }
14682
14683
14684 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14685 PyObject *resultobj;
14686 wxDC *arg1 = (wxDC *) 0 ;
14687 int result;
14688 PyObject * obj0 = 0 ;
14689 char *kwnames[] = {
14690 (char *) "self", NULL
14691 };
14692
14693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14696 {
14697 PyThreadState* __tstate = wxPyBeginAllowThreads();
14698 result = (int)((wxDC const *)arg1)->MinY();
14699
14700 wxPyEndAllowThreads(__tstate);
14701 if (PyErr_Occurred()) SWIG_fail;
14702 }
14703 resultobj = SWIG_FromInt((int)result);
14704 return resultobj;
14705 fail:
14706 return NULL;
14707 }
14708
14709
14710 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14711 PyObject *resultobj;
14712 wxDC *arg1 = (wxDC *) 0 ;
14713 int result;
14714 PyObject * obj0 = 0 ;
14715 char *kwnames[] = {
14716 (char *) "self", NULL
14717 };
14718
14719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14722 {
14723 PyThreadState* __tstate = wxPyBeginAllowThreads();
14724 result = (int)((wxDC const *)arg1)->MaxY();
14725
14726 wxPyEndAllowThreads(__tstate);
14727 if (PyErr_Occurred()) SWIG_fail;
14728 }
14729 resultobj = SWIG_FromInt((int)result);
14730 return resultobj;
14731 fail:
14732 return NULL;
14733 }
14734
14735
14736 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14737 PyObject *resultobj;
14738 wxDC *arg1 = (wxDC *) 0 ;
14739 int *arg2 = (int *) 0 ;
14740 int *arg3 = (int *) 0 ;
14741 int *arg4 = (int *) 0 ;
14742 int *arg5 = (int *) 0 ;
14743 int temp2 ;
14744 int temp3 ;
14745 int temp4 ;
14746 int temp5 ;
14747 PyObject * obj0 = 0 ;
14748 char *kwnames[] = {
14749 (char *) "self", NULL
14750 };
14751
14752 arg2 = &temp2;
14753 arg3 = &temp3;
14754 arg4 = &temp4;
14755 arg5 = &temp5;
14756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14759 {
14760 PyThreadState* __tstate = wxPyBeginAllowThreads();
14761 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14762
14763 wxPyEndAllowThreads(__tstate);
14764 if (PyErr_Occurred()) SWIG_fail;
14765 }
14766 Py_INCREF(Py_None); resultobj = Py_None;
14767 {
14768 PyObject *o = PyInt_FromLong((long) (*arg2));
14769 resultobj = t_output_helper(resultobj,o);
14770 }
14771 {
14772 PyObject *o = PyInt_FromLong((long) (*arg3));
14773 resultobj = t_output_helper(resultobj,o);
14774 }
14775 {
14776 PyObject *o = PyInt_FromLong((long) (*arg4));
14777 resultobj = t_output_helper(resultobj,o);
14778 }
14779 {
14780 PyObject *o = PyInt_FromLong((long) (*arg5));
14781 resultobj = t_output_helper(resultobj,o);
14782 }
14783 return resultobj;
14784 fail:
14785 return NULL;
14786 }
14787
14788
14789 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14790 PyObject *resultobj;
14791 wxDC *arg1 = (wxDC *) 0 ;
14792 PyObject *arg2 = (PyObject *) 0 ;
14793 PyObject *arg3 = (PyObject *) 0 ;
14794 PyObject *arg4 = (PyObject *) 0 ;
14795 PyObject *result;
14796 PyObject * obj0 = 0 ;
14797 PyObject * obj1 = 0 ;
14798 PyObject * obj2 = 0 ;
14799 PyObject * obj3 = 0 ;
14800 char *kwnames[] = {
14801 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14802 };
14803
14804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14807 arg2 = obj1;
14808 arg3 = obj2;
14809 arg4 = obj3;
14810 {
14811 PyThreadState* __tstate = wxPyBeginAllowThreads();
14812 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14813
14814 wxPyEndAllowThreads(__tstate);
14815 if (PyErr_Occurred()) SWIG_fail;
14816 }
14817 resultobj = result;
14818 return resultobj;
14819 fail:
14820 return NULL;
14821 }
14822
14823
14824 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14825 PyObject *resultobj;
14826 wxDC *arg1 = (wxDC *) 0 ;
14827 PyObject *arg2 = (PyObject *) 0 ;
14828 PyObject *arg3 = (PyObject *) 0 ;
14829 PyObject *arg4 = (PyObject *) 0 ;
14830 PyObject *result;
14831 PyObject * obj0 = 0 ;
14832 PyObject * obj1 = 0 ;
14833 PyObject * obj2 = 0 ;
14834 PyObject * obj3 = 0 ;
14835 char *kwnames[] = {
14836 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14837 };
14838
14839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14842 arg2 = obj1;
14843 arg3 = obj2;
14844 arg4 = obj3;
14845 {
14846 PyThreadState* __tstate = wxPyBeginAllowThreads();
14847 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14848
14849 wxPyEndAllowThreads(__tstate);
14850 if (PyErr_Occurred()) SWIG_fail;
14851 }
14852 resultobj = result;
14853 return resultobj;
14854 fail:
14855 return NULL;
14856 }
14857
14858
14859 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14860 PyObject *resultobj;
14861 wxDC *arg1 = (wxDC *) 0 ;
14862 PyObject *arg2 = (PyObject *) 0 ;
14863 PyObject *arg3 = (PyObject *) 0 ;
14864 PyObject *arg4 = (PyObject *) 0 ;
14865 PyObject *result;
14866 PyObject * obj0 = 0 ;
14867 PyObject * obj1 = 0 ;
14868 PyObject * obj2 = 0 ;
14869 PyObject * obj3 = 0 ;
14870 char *kwnames[] = {
14871 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14872 };
14873
14874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14877 arg2 = obj1;
14878 arg3 = obj2;
14879 arg4 = obj3;
14880 {
14881 PyThreadState* __tstate = wxPyBeginAllowThreads();
14882 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14883
14884 wxPyEndAllowThreads(__tstate);
14885 if (PyErr_Occurred()) SWIG_fail;
14886 }
14887 resultobj = result;
14888 return resultobj;
14889 fail:
14890 return NULL;
14891 }
14892
14893
14894 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14895 PyObject *resultobj;
14896 wxDC *arg1 = (wxDC *) 0 ;
14897 PyObject *arg2 = (PyObject *) 0 ;
14898 PyObject *arg3 = (PyObject *) 0 ;
14899 PyObject *arg4 = (PyObject *) 0 ;
14900 PyObject *result;
14901 PyObject * obj0 = 0 ;
14902 PyObject * obj1 = 0 ;
14903 PyObject * obj2 = 0 ;
14904 PyObject * obj3 = 0 ;
14905 char *kwnames[] = {
14906 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14907 };
14908
14909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14912 arg2 = obj1;
14913 arg3 = obj2;
14914 arg4 = obj3;
14915 {
14916 PyThreadState* __tstate = wxPyBeginAllowThreads();
14917 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14918
14919 wxPyEndAllowThreads(__tstate);
14920 if (PyErr_Occurred()) SWIG_fail;
14921 }
14922 resultobj = result;
14923 return resultobj;
14924 fail:
14925 return NULL;
14926 }
14927
14928
14929 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14930 PyObject *resultobj;
14931 wxDC *arg1 = (wxDC *) 0 ;
14932 PyObject *arg2 = (PyObject *) 0 ;
14933 PyObject *arg3 = (PyObject *) 0 ;
14934 PyObject *arg4 = (PyObject *) 0 ;
14935 PyObject *result;
14936 PyObject * obj0 = 0 ;
14937 PyObject * obj1 = 0 ;
14938 PyObject * obj2 = 0 ;
14939 PyObject * obj3 = 0 ;
14940 char *kwnames[] = {
14941 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14942 };
14943
14944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14947 arg2 = obj1;
14948 arg3 = obj2;
14949 arg4 = obj3;
14950 {
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14953
14954 wxPyEndAllowThreads(__tstate);
14955 if (PyErr_Occurred()) SWIG_fail;
14956 }
14957 resultobj = result;
14958 return resultobj;
14959 fail:
14960 return NULL;
14961 }
14962
14963
14964 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14965 PyObject *resultobj;
14966 wxDC *arg1 = (wxDC *) 0 ;
14967 PyObject *arg2 = (PyObject *) 0 ;
14968 PyObject *arg3 = (PyObject *) 0 ;
14969 PyObject *arg4 = (PyObject *) 0 ;
14970 PyObject *arg5 = (PyObject *) 0 ;
14971 PyObject *result;
14972 PyObject * obj0 = 0 ;
14973 PyObject * obj1 = 0 ;
14974 PyObject * obj2 = 0 ;
14975 PyObject * obj3 = 0 ;
14976 PyObject * obj4 = 0 ;
14977 char *kwnames[] = {
14978 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14979 };
14980
14981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14984 arg2 = obj1;
14985 arg3 = obj2;
14986 arg4 = obj3;
14987 arg5 = obj4;
14988 {
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14991
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 resultobj = result;
14996 return resultobj;
14997 fail:
14998 return NULL;
14999 }
15000
15001
15002 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15003 PyObject *obj;
15004 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15005 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15006 Py_INCREF(obj);
15007 return Py_BuildValue((char *)"");
15008 }
15009 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15010 PyObject *resultobj;
15011 wxMemoryDC *result;
15012 char *kwnames[] = {
15013 NULL
15014 };
15015
15016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15017 {
15018 if (!wxPyCheckForApp()) SWIG_fail;
15019 PyThreadState* __tstate = wxPyBeginAllowThreads();
15020 result = (wxMemoryDC *)new wxMemoryDC();
15021
15022 wxPyEndAllowThreads(__tstate);
15023 if (PyErr_Occurred()) SWIG_fail;
15024 }
15025 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15026 return resultobj;
15027 fail:
15028 return NULL;
15029 }
15030
15031
15032 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15033 PyObject *resultobj;
15034 wxDC *arg1 = (wxDC *) 0 ;
15035 wxMemoryDC *result;
15036 PyObject * obj0 = 0 ;
15037 char *kwnames[] = {
15038 (char *) "oldDC", NULL
15039 };
15040
15041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15044 {
15045 if (!wxPyCheckForApp()) SWIG_fail;
15046 PyThreadState* __tstate = wxPyBeginAllowThreads();
15047 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15048
15049 wxPyEndAllowThreads(__tstate);
15050 if (PyErr_Occurred()) SWIG_fail;
15051 }
15052 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15053 return resultobj;
15054 fail:
15055 return NULL;
15056 }
15057
15058
15059 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15060 PyObject *resultobj;
15061 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15062 wxBitmap *arg2 = 0 ;
15063 PyObject * obj0 = 0 ;
15064 PyObject * obj1 = 0 ;
15065 char *kwnames[] = {
15066 (char *) "self",(char *) "bitmap", NULL
15067 };
15068
15069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15072 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15073 SWIG_POINTER_EXCEPTION | 0)) == -1)
15074 SWIG_fail;
15075 if (arg2 == NULL) {
15076 PyErr_SetString(PyExc_TypeError,"null reference");
15077 SWIG_fail;
15078 }
15079 {
15080 PyThreadState* __tstate = wxPyBeginAllowThreads();
15081 (arg1)->SelectObject((wxBitmap const &)*arg2);
15082
15083 wxPyEndAllowThreads(__tstate);
15084 if (PyErr_Occurred()) SWIG_fail;
15085 }
15086 Py_INCREF(Py_None); resultobj = Py_None;
15087 return resultobj;
15088 fail:
15089 return NULL;
15090 }
15091
15092
15093 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15094 PyObject *obj;
15095 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15096 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15097 Py_INCREF(obj);
15098 return Py_BuildValue((char *)"");
15099 }
15100 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15101 PyObject *resultobj;
15102 wxDC *arg1 = (wxDC *) 0 ;
15103 wxBitmap *arg2 = 0 ;
15104 wxBufferedDC *result;
15105 PyObject * obj0 = 0 ;
15106 PyObject * obj1 = 0 ;
15107
15108 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15111 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15112 SWIG_POINTER_EXCEPTION | 0)) == -1)
15113 SWIG_fail;
15114 if (arg2 == NULL) {
15115 PyErr_SetString(PyExc_TypeError,"null reference");
15116 SWIG_fail;
15117 }
15118 {
15119 if (!wxPyCheckForApp()) SWIG_fail;
15120 PyThreadState* __tstate = wxPyBeginAllowThreads();
15121 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15122
15123 wxPyEndAllowThreads(__tstate);
15124 if (PyErr_Occurred()) SWIG_fail;
15125 }
15126 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15127 return resultobj;
15128 fail:
15129 return NULL;
15130 }
15131
15132
15133 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15134 PyObject *resultobj;
15135 wxDC *arg1 = (wxDC *) 0 ;
15136 wxSize *arg2 = 0 ;
15137 wxBufferedDC *result;
15138 wxSize temp2 ;
15139 PyObject * obj0 = 0 ;
15140 PyObject * obj1 = 0 ;
15141
15142 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15145 {
15146 arg2 = &temp2;
15147 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15148 }
15149 {
15150 if (!wxPyCheckForApp()) SWIG_fail;
15151 PyThreadState* __tstate = wxPyBeginAllowThreads();
15152 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15153
15154 wxPyEndAllowThreads(__tstate);
15155 if (PyErr_Occurred()) SWIG_fail;
15156 }
15157 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15158 return resultobj;
15159 fail:
15160 return NULL;
15161 }
15162
15163
15164 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15165 int argc;
15166 PyObject *argv[3];
15167 int ii;
15168
15169 argc = PyObject_Length(args);
15170 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15171 argv[ii] = PyTuple_GetItem(args,ii);
15172 }
15173 if (argc == 2) {
15174 int _v;
15175 {
15176 void *ptr;
15177 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15178 _v = 0;
15179 PyErr_Clear();
15180 } else {
15181 _v = 1;
15182 }
15183 }
15184 if (_v) {
15185 {
15186 void *ptr;
15187 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15188 _v = 0;
15189 PyErr_Clear();
15190 } else {
15191 _v = 1;
15192 }
15193 }
15194 if (_v) {
15195 return _wrap_new_BufferedDC__SWIG_0(self,args);
15196 }
15197 }
15198 }
15199 if (argc == 2) {
15200 int _v;
15201 {
15202 void *ptr;
15203 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15204 _v = 0;
15205 PyErr_Clear();
15206 } else {
15207 _v = 1;
15208 }
15209 }
15210 if (_v) {
15211 {
15212 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15213 }
15214 if (_v) {
15215 return _wrap_new_BufferedDC__SWIG_1(self,args);
15216 }
15217 }
15218 }
15219
15220 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15221 return NULL;
15222 }
15223
15224
15225 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15226 PyObject *resultobj;
15227 wxDC *arg1 = (wxDC *) 0 ;
15228 wxSize *arg2 = 0 ;
15229 wxBufferedDC *result;
15230 wxSize temp2 ;
15231 PyObject * obj0 = 0 ;
15232 PyObject * obj1 = 0 ;
15233
15234 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15237 {
15238 arg2 = &temp2;
15239 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15240 }
15241 {
15242 if (!wxPyCheckForApp()) SWIG_fail;
15243 PyThreadState* __tstate = wxPyBeginAllowThreads();
15244 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15245
15246 wxPyEndAllowThreads(__tstate);
15247 if (PyErr_Occurred()) SWIG_fail;
15248 }
15249 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15250 return resultobj;
15251 fail:
15252 return NULL;
15253 }
15254
15255
15256 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15257 PyObject *resultobj;
15258 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15259 PyObject * obj0 = 0 ;
15260 char *kwnames[] = {
15261 (char *) "self", NULL
15262 };
15263
15264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15267 {
15268 PyThreadState* __tstate = wxPyBeginAllowThreads();
15269 delete arg1;
15270
15271 wxPyEndAllowThreads(__tstate);
15272 if (PyErr_Occurred()) SWIG_fail;
15273 }
15274 Py_INCREF(Py_None); resultobj = Py_None;
15275 return resultobj;
15276 fail:
15277 return NULL;
15278 }
15279
15280
15281 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15282 PyObject *resultobj;
15283 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15284 PyObject * obj0 = 0 ;
15285 char *kwnames[] = {
15286 (char *) "self", NULL
15287 };
15288
15289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15292 {
15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
15294 (arg1)->UnMask();
15295
15296 wxPyEndAllowThreads(__tstate);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 }
15299 Py_INCREF(Py_None); resultobj = Py_None;
15300 return resultobj;
15301 fail:
15302 return NULL;
15303 }
15304
15305
15306 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15307 PyObject *obj;
15308 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15309 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15310 Py_INCREF(obj);
15311 return Py_BuildValue((char *)"");
15312 }
15313 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15314 PyObject *resultobj;
15315 wxWindow *arg1 = (wxWindow *) 0 ;
15316 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15317 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15318 wxBufferedPaintDC *result;
15319 PyObject * obj0 = 0 ;
15320 PyObject * obj1 = 0 ;
15321 char *kwnames[] = {
15322 (char *) "window",(char *) "buffer", NULL
15323 };
15324
15325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15328 if (obj1) {
15329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15330 SWIG_POINTER_EXCEPTION | 0)) == -1)
15331 SWIG_fail;
15332 if (arg2 == NULL) {
15333 PyErr_SetString(PyExc_TypeError,"null reference");
15334 SWIG_fail;
15335 }
15336 }
15337 {
15338 if (!wxPyCheckForApp()) SWIG_fail;
15339 PyThreadState* __tstate = wxPyBeginAllowThreads();
15340 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15341
15342 wxPyEndAllowThreads(__tstate);
15343 if (PyErr_Occurred()) SWIG_fail;
15344 }
15345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15346 return resultobj;
15347 fail:
15348 return NULL;
15349 }
15350
15351
15352 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15353 PyObject *obj;
15354 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15355 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15356 Py_INCREF(obj);
15357 return Py_BuildValue((char *)"");
15358 }
15359 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15360 PyObject *resultobj;
15361 wxScreenDC *result;
15362 char *kwnames[] = {
15363 NULL
15364 };
15365
15366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15367 {
15368 if (!wxPyCheckForApp()) SWIG_fail;
15369 PyThreadState* __tstate = wxPyBeginAllowThreads();
15370 result = (wxScreenDC *)new wxScreenDC();
15371
15372 wxPyEndAllowThreads(__tstate);
15373 if (PyErr_Occurred()) SWIG_fail;
15374 }
15375 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15376 return resultobj;
15377 fail:
15378 return NULL;
15379 }
15380
15381
15382 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15383 PyObject *resultobj;
15384 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15385 wxWindow *arg2 = (wxWindow *) 0 ;
15386 bool result;
15387 PyObject * obj0 = 0 ;
15388 PyObject * obj1 = 0 ;
15389 char *kwnames[] = {
15390 (char *) "self",(char *) "window", NULL
15391 };
15392
15393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15396 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15398 {
15399 PyThreadState* __tstate = wxPyBeginAllowThreads();
15400 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15401
15402 wxPyEndAllowThreads(__tstate);
15403 if (PyErr_Occurred()) SWIG_fail;
15404 }
15405 {
15406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15407 }
15408 return resultobj;
15409 fail:
15410 return NULL;
15411 }
15412
15413
15414 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15415 PyObject *resultobj;
15416 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15417 wxRect *arg2 = (wxRect *) NULL ;
15418 bool result;
15419 PyObject * obj0 = 0 ;
15420 PyObject * obj1 = 0 ;
15421 char *kwnames[] = {
15422 (char *) "self",(char *) "rect", NULL
15423 };
15424
15425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15428 if (obj1) {
15429 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15431 }
15432 {
15433 PyThreadState* __tstate = wxPyBeginAllowThreads();
15434 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15435
15436 wxPyEndAllowThreads(__tstate);
15437 if (PyErr_Occurred()) SWIG_fail;
15438 }
15439 {
15440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15441 }
15442 return resultobj;
15443 fail:
15444 return NULL;
15445 }
15446
15447
15448 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15449 PyObject *resultobj;
15450 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15451 bool result;
15452 PyObject * obj0 = 0 ;
15453 char *kwnames[] = {
15454 (char *) "self", NULL
15455 };
15456
15457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15460 {
15461 PyThreadState* __tstate = wxPyBeginAllowThreads();
15462 result = (bool)(arg1)->EndDrawingOnTop();
15463
15464 wxPyEndAllowThreads(__tstate);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
15467 {
15468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15469 }
15470 return resultobj;
15471 fail:
15472 return NULL;
15473 }
15474
15475
15476 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15477 PyObject *obj;
15478 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15479 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15480 Py_INCREF(obj);
15481 return Py_BuildValue((char *)"");
15482 }
15483 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15484 PyObject *resultobj;
15485 wxWindow *arg1 = (wxWindow *) 0 ;
15486 wxClientDC *result;
15487 PyObject * obj0 = 0 ;
15488 char *kwnames[] = {
15489 (char *) "win", NULL
15490 };
15491
15492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15495 {
15496 if (!wxPyCheckForApp()) SWIG_fail;
15497 PyThreadState* __tstate = wxPyBeginAllowThreads();
15498 result = (wxClientDC *)new wxClientDC(arg1);
15499
15500 wxPyEndAllowThreads(__tstate);
15501 if (PyErr_Occurred()) SWIG_fail;
15502 }
15503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15504 return resultobj;
15505 fail:
15506 return NULL;
15507 }
15508
15509
15510 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15511 PyObject *obj;
15512 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15513 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15514 Py_INCREF(obj);
15515 return Py_BuildValue((char *)"");
15516 }
15517 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15518 PyObject *resultobj;
15519 wxWindow *arg1 = (wxWindow *) 0 ;
15520 wxPaintDC *result;
15521 PyObject * obj0 = 0 ;
15522 char *kwnames[] = {
15523 (char *) "win", NULL
15524 };
15525
15526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15529 {
15530 if (!wxPyCheckForApp()) SWIG_fail;
15531 PyThreadState* __tstate = wxPyBeginAllowThreads();
15532 result = (wxPaintDC *)new wxPaintDC(arg1);
15533
15534 wxPyEndAllowThreads(__tstate);
15535 if (PyErr_Occurred()) SWIG_fail;
15536 }
15537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15538 return resultobj;
15539 fail:
15540 return NULL;
15541 }
15542
15543
15544 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15545 PyObject *obj;
15546 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15547 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15548 Py_INCREF(obj);
15549 return Py_BuildValue((char *)"");
15550 }
15551 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15552 PyObject *resultobj;
15553 wxWindow *arg1 = (wxWindow *) 0 ;
15554 wxWindowDC *result;
15555 PyObject * obj0 = 0 ;
15556 char *kwnames[] = {
15557 (char *) "win", NULL
15558 };
15559
15560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15563 {
15564 if (!wxPyCheckForApp()) SWIG_fail;
15565 PyThreadState* __tstate = wxPyBeginAllowThreads();
15566 result = (wxWindowDC *)new wxWindowDC(arg1);
15567
15568 wxPyEndAllowThreads(__tstate);
15569 if (PyErr_Occurred()) SWIG_fail;
15570 }
15571 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15572 return resultobj;
15573 fail:
15574 return NULL;
15575 }
15576
15577
15578 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15579 PyObject *obj;
15580 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15581 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15582 Py_INCREF(obj);
15583 return Py_BuildValue((char *)"");
15584 }
15585 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15586 PyObject *resultobj;
15587 wxDC *arg1 = 0 ;
15588 bool arg2 ;
15589 wxMirrorDC *result;
15590 PyObject * obj0 = 0 ;
15591 PyObject * obj1 = 0 ;
15592 char *kwnames[] = {
15593 (char *) "dc",(char *) "mirror", NULL
15594 };
15595
15596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15598 SWIG_POINTER_EXCEPTION | 0)) == -1)
15599 SWIG_fail;
15600 if (arg1 == NULL) {
15601 PyErr_SetString(PyExc_TypeError,"null reference");
15602 SWIG_fail;
15603 }
15604 arg2 = (bool) SWIG_AsBool(obj1);
15605 if (PyErr_Occurred()) SWIG_fail;
15606 {
15607 if (!wxPyCheckForApp()) SWIG_fail;
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15610
15611 wxPyEndAllowThreads(__tstate);
15612 if (PyErr_Occurred()) SWIG_fail;
15613 }
15614 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15615 return resultobj;
15616 fail:
15617 return NULL;
15618 }
15619
15620
15621 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15622 PyObject *obj;
15623 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15624 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15625 Py_INCREF(obj);
15626 return Py_BuildValue((char *)"");
15627 }
15628 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15629 PyObject *resultobj;
15630 wxPrintData *arg1 = 0 ;
15631 wxPostScriptDC *result;
15632 PyObject * obj0 = 0 ;
15633 char *kwnames[] = {
15634 (char *) "printData", NULL
15635 };
15636
15637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15639 SWIG_POINTER_EXCEPTION | 0)) == -1)
15640 SWIG_fail;
15641 if (arg1 == NULL) {
15642 PyErr_SetString(PyExc_TypeError,"null reference");
15643 SWIG_fail;
15644 }
15645 {
15646 if (!wxPyCheckForApp()) SWIG_fail;
15647 PyThreadState* __tstate = wxPyBeginAllowThreads();
15648 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15649
15650 wxPyEndAllowThreads(__tstate);
15651 if (PyErr_Occurred()) SWIG_fail;
15652 }
15653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15654 return resultobj;
15655 fail:
15656 return NULL;
15657 }
15658
15659
15660 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15661 PyObject *resultobj;
15662 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15663 wxPrintData *result;
15664 PyObject * obj0 = 0 ;
15665 char *kwnames[] = {
15666 (char *) "self", NULL
15667 };
15668
15669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15672 {
15673 PyThreadState* __tstate = wxPyBeginAllowThreads();
15674 {
15675 wxPrintData &_result_ref = (arg1)->GetPrintData();
15676 result = (wxPrintData *) &_result_ref;
15677 }
15678
15679 wxPyEndAllowThreads(__tstate);
15680 if (PyErr_Occurred()) SWIG_fail;
15681 }
15682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15683 return resultobj;
15684 fail:
15685 return NULL;
15686 }
15687
15688
15689 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15690 PyObject *resultobj;
15691 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15692 wxPrintData *arg2 = 0 ;
15693 PyObject * obj0 = 0 ;
15694 PyObject * obj1 = 0 ;
15695 char *kwnames[] = {
15696 (char *) "self",(char *) "data", NULL
15697 };
15698
15699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15702 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15703 SWIG_POINTER_EXCEPTION | 0)) == -1)
15704 SWIG_fail;
15705 if (arg2 == NULL) {
15706 PyErr_SetString(PyExc_TypeError,"null reference");
15707 SWIG_fail;
15708 }
15709 {
15710 PyThreadState* __tstate = wxPyBeginAllowThreads();
15711 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15712
15713 wxPyEndAllowThreads(__tstate);
15714 if (PyErr_Occurred()) SWIG_fail;
15715 }
15716 Py_INCREF(Py_None); resultobj = Py_None;
15717 return resultobj;
15718 fail:
15719 return NULL;
15720 }
15721
15722
15723 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15724 PyObject *resultobj;
15725 int arg1 ;
15726 PyObject * obj0 = 0 ;
15727 char *kwnames[] = {
15728 (char *) "ppi", NULL
15729 };
15730
15731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15732 arg1 = (int) SWIG_AsInt(obj0);
15733 if (PyErr_Occurred()) SWIG_fail;
15734 {
15735 PyThreadState* __tstate = wxPyBeginAllowThreads();
15736 wxPostScriptDC::SetResolution(arg1);
15737
15738 wxPyEndAllowThreads(__tstate);
15739 if (PyErr_Occurred()) SWIG_fail;
15740 }
15741 Py_INCREF(Py_None); resultobj = Py_None;
15742 return resultobj;
15743 fail:
15744 return NULL;
15745 }
15746
15747
15748 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15749 PyObject *resultobj;
15750 int result;
15751 char *kwnames[] = {
15752 NULL
15753 };
15754
15755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15756 {
15757 PyThreadState* __tstate = wxPyBeginAllowThreads();
15758 result = (int)wxPostScriptDC::GetResolution();
15759
15760 wxPyEndAllowThreads(__tstate);
15761 if (PyErr_Occurred()) SWIG_fail;
15762 }
15763 resultobj = SWIG_FromInt((int)result);
15764 return resultobj;
15765 fail:
15766 return NULL;
15767 }
15768
15769
15770 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15771 PyObject *obj;
15772 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15773 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15774 Py_INCREF(obj);
15775 return Py_BuildValue((char *)"");
15776 }
15777 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15778 PyObject *resultobj;
15779 wxString const &arg1_defvalue = wxPyEmptyString ;
15780 wxString *arg1 = (wxString *) &arg1_defvalue ;
15781 wxMetaFile *result;
15782 bool temp1 = False ;
15783 PyObject * obj0 = 0 ;
15784 char *kwnames[] = {
15785 (char *) "filename", NULL
15786 };
15787
15788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15789 if (obj0) {
15790 {
15791 arg1 = wxString_in_helper(obj0);
15792 if (arg1 == NULL) SWIG_fail;
15793 temp1 = True;
15794 }
15795 }
15796 {
15797 if (!wxPyCheckForApp()) SWIG_fail;
15798 PyThreadState* __tstate = wxPyBeginAllowThreads();
15799 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15800
15801 wxPyEndAllowThreads(__tstate);
15802 if (PyErr_Occurred()) SWIG_fail;
15803 }
15804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15805 {
15806 if (temp1)
15807 delete arg1;
15808 }
15809 return resultobj;
15810 fail:
15811 {
15812 if (temp1)
15813 delete arg1;
15814 }
15815 return NULL;
15816 }
15817
15818
15819 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15820 PyObject *resultobj;
15821 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15822 PyObject * obj0 = 0 ;
15823 char *kwnames[] = {
15824 (char *) "self", NULL
15825 };
15826
15827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15830 {
15831 PyThreadState* __tstate = wxPyBeginAllowThreads();
15832 delete arg1;
15833
15834 wxPyEndAllowThreads(__tstate);
15835 if (PyErr_Occurred()) SWIG_fail;
15836 }
15837 Py_INCREF(Py_None); resultobj = Py_None;
15838 return resultobj;
15839 fail:
15840 return NULL;
15841 }
15842
15843
15844 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15845 PyObject *resultobj;
15846 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15847 bool result;
15848 PyObject * obj0 = 0 ;
15849 char *kwnames[] = {
15850 (char *) "self", NULL
15851 };
15852
15853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15856 {
15857 PyThreadState* __tstate = wxPyBeginAllowThreads();
15858 result = (bool)(arg1)->Ok();
15859
15860 wxPyEndAllowThreads(__tstate);
15861 if (PyErr_Occurred()) SWIG_fail;
15862 }
15863 {
15864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15865 }
15866 return resultobj;
15867 fail:
15868 return NULL;
15869 }
15870
15871
15872 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15873 PyObject *resultobj;
15874 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15875 int arg2 = (int) 0 ;
15876 int arg3 = (int) 0 ;
15877 bool result;
15878 PyObject * obj0 = 0 ;
15879 PyObject * obj1 = 0 ;
15880 PyObject * obj2 = 0 ;
15881 char *kwnames[] = {
15882 (char *) "self",(char *) "width",(char *) "height", NULL
15883 };
15884
15885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15888 if (obj1) {
15889 arg2 = (int) SWIG_AsInt(obj1);
15890 if (PyErr_Occurred()) SWIG_fail;
15891 }
15892 if (obj2) {
15893 arg3 = (int) SWIG_AsInt(obj2);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 {
15897 PyThreadState* __tstate = wxPyBeginAllowThreads();
15898 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15899
15900 wxPyEndAllowThreads(__tstate);
15901 if (PyErr_Occurred()) SWIG_fail;
15902 }
15903 {
15904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15905 }
15906 return resultobj;
15907 fail:
15908 return NULL;
15909 }
15910
15911
15912 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15913 PyObject *resultobj;
15914 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15915 wxSize result;
15916 PyObject * obj0 = 0 ;
15917 char *kwnames[] = {
15918 (char *) "self", NULL
15919 };
15920
15921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15924 {
15925 PyThreadState* __tstate = wxPyBeginAllowThreads();
15926 result = (arg1)->GetSize();
15927
15928 wxPyEndAllowThreads(__tstate);
15929 if (PyErr_Occurred()) SWIG_fail;
15930 }
15931 {
15932 wxSize * resultptr;
15933 resultptr = new wxSize((wxSize &) result);
15934 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15935 }
15936 return resultobj;
15937 fail:
15938 return NULL;
15939 }
15940
15941
15942 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
15943 PyObject *resultobj;
15944 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15945 int result;
15946 PyObject * obj0 = 0 ;
15947 char *kwnames[] = {
15948 (char *) "self", NULL
15949 };
15950
15951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15954 {
15955 PyThreadState* __tstate = wxPyBeginAllowThreads();
15956 result = (int)(arg1)->GetWidth();
15957
15958 wxPyEndAllowThreads(__tstate);
15959 if (PyErr_Occurred()) SWIG_fail;
15960 }
15961 resultobj = SWIG_FromInt((int)result);
15962 return resultobj;
15963 fail:
15964 return NULL;
15965 }
15966
15967
15968 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
15969 PyObject *resultobj;
15970 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15971 int result;
15972 PyObject * obj0 = 0 ;
15973 char *kwnames[] = {
15974 (char *) "self", NULL
15975 };
15976
15977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15980 {
15981 PyThreadState* __tstate = wxPyBeginAllowThreads();
15982 result = (int)(arg1)->GetHeight();
15983
15984 wxPyEndAllowThreads(__tstate);
15985 if (PyErr_Occurred()) SWIG_fail;
15986 }
15987 resultobj = SWIG_FromInt((int)result);
15988 return resultobj;
15989 fail:
15990 return NULL;
15991 }
15992
15993
15994 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15995 PyObject *obj;
15996 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15997 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15998 Py_INCREF(obj);
15999 return Py_BuildValue((char *)"");
16000 }
16001 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16002 PyObject *resultobj;
16003 wxString const &arg1_defvalue = wxPyEmptyString ;
16004 wxString *arg1 = (wxString *) &arg1_defvalue ;
16005 int arg2 = (int) 0 ;
16006 int arg3 = (int) 0 ;
16007 wxString const &arg4_defvalue = wxPyEmptyString ;
16008 wxString *arg4 = (wxString *) &arg4_defvalue ;
16009 wxMetaFileDC *result;
16010 bool temp1 = False ;
16011 bool temp4 = False ;
16012 PyObject * obj0 = 0 ;
16013 PyObject * obj1 = 0 ;
16014 PyObject * obj2 = 0 ;
16015 PyObject * obj3 = 0 ;
16016 char *kwnames[] = {
16017 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16018 };
16019
16020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16021 if (obj0) {
16022 {
16023 arg1 = wxString_in_helper(obj0);
16024 if (arg1 == NULL) SWIG_fail;
16025 temp1 = True;
16026 }
16027 }
16028 if (obj1) {
16029 arg2 = (int) SWIG_AsInt(obj1);
16030 if (PyErr_Occurred()) SWIG_fail;
16031 }
16032 if (obj2) {
16033 arg3 = (int) SWIG_AsInt(obj2);
16034 if (PyErr_Occurred()) SWIG_fail;
16035 }
16036 if (obj3) {
16037 {
16038 arg4 = wxString_in_helper(obj3);
16039 if (arg4 == NULL) SWIG_fail;
16040 temp4 = True;
16041 }
16042 }
16043 {
16044 if (!wxPyCheckForApp()) SWIG_fail;
16045 PyThreadState* __tstate = wxPyBeginAllowThreads();
16046 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16047
16048 wxPyEndAllowThreads(__tstate);
16049 if (PyErr_Occurred()) SWIG_fail;
16050 }
16051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16052 {
16053 if (temp1)
16054 delete arg1;
16055 }
16056 {
16057 if (temp4)
16058 delete arg4;
16059 }
16060 return resultobj;
16061 fail:
16062 {
16063 if (temp1)
16064 delete arg1;
16065 }
16066 {
16067 if (temp4)
16068 delete arg4;
16069 }
16070 return NULL;
16071 }
16072
16073
16074 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16075 PyObject *resultobj;
16076 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16077 wxMetaFile *result;
16078 PyObject * obj0 = 0 ;
16079 char *kwnames[] = {
16080 (char *) "self", NULL
16081 };
16082
16083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16086 {
16087 PyThreadState* __tstate = wxPyBeginAllowThreads();
16088 result = (wxMetaFile *)(arg1)->Close();
16089
16090 wxPyEndAllowThreads(__tstate);
16091 if (PyErr_Occurred()) SWIG_fail;
16092 }
16093 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16094 return resultobj;
16095 fail:
16096 return NULL;
16097 }
16098
16099
16100 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16101 PyObject *obj;
16102 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16103 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16104 Py_INCREF(obj);
16105 return Py_BuildValue((char *)"");
16106 }
16107 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16108 PyObject *resultobj;
16109 wxPrintData *arg1 = 0 ;
16110 wxPrinterDC *result;
16111 PyObject * obj0 = 0 ;
16112 char *kwnames[] = {
16113 (char *) "printData", NULL
16114 };
16115
16116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16118 SWIG_POINTER_EXCEPTION | 0)) == -1)
16119 SWIG_fail;
16120 if (arg1 == NULL) {
16121 PyErr_SetString(PyExc_TypeError,"null reference");
16122 SWIG_fail;
16123 }
16124 {
16125 if (!wxPyCheckForApp()) SWIG_fail;
16126 PyThreadState* __tstate = wxPyBeginAllowThreads();
16127 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16128
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16133 return resultobj;
16134 fail:
16135 return NULL;
16136 }
16137
16138
16139 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16140 PyObject *obj;
16141 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16142 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16143 Py_INCREF(obj);
16144 return Py_BuildValue((char *)"");
16145 }
16146 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16147 PyObject *resultobj;
16148 int arg1 ;
16149 int arg2 ;
16150 int arg3 = (int) True ;
16151 int arg4 = (int) 1 ;
16152 wxImageList *result;
16153 PyObject * obj0 = 0 ;
16154 PyObject * obj1 = 0 ;
16155 PyObject * obj2 = 0 ;
16156 PyObject * obj3 = 0 ;
16157 char *kwnames[] = {
16158 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16159 };
16160
16161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16162 arg1 = (int) SWIG_AsInt(obj0);
16163 if (PyErr_Occurred()) SWIG_fail;
16164 arg2 = (int) SWIG_AsInt(obj1);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 if (obj2) {
16167 arg3 = (int) SWIG_AsInt(obj2);
16168 if (PyErr_Occurred()) SWIG_fail;
16169 }
16170 if (obj3) {
16171 arg4 = (int) SWIG_AsInt(obj3);
16172 if (PyErr_Occurred()) SWIG_fail;
16173 }
16174 {
16175 if (!wxPyCheckForApp()) SWIG_fail;
16176 PyThreadState* __tstate = wxPyBeginAllowThreads();
16177 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16178
16179 wxPyEndAllowThreads(__tstate);
16180 if (PyErr_Occurred()) SWIG_fail;
16181 }
16182 {
16183 resultobj = wxPyMake_wxObject(result, 1);
16184 }
16185 return resultobj;
16186 fail:
16187 return NULL;
16188 }
16189
16190
16191 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16192 PyObject *resultobj;
16193 wxImageList *arg1 = (wxImageList *) 0 ;
16194 PyObject * obj0 = 0 ;
16195 char *kwnames[] = {
16196 (char *) "self", NULL
16197 };
16198
16199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16202 {
16203 PyThreadState* __tstate = wxPyBeginAllowThreads();
16204 delete arg1;
16205
16206 wxPyEndAllowThreads(__tstate);
16207 if (PyErr_Occurred()) SWIG_fail;
16208 }
16209 Py_INCREF(Py_None); resultobj = Py_None;
16210 return resultobj;
16211 fail:
16212 return NULL;
16213 }
16214
16215
16216 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16217 PyObject *resultobj;
16218 wxImageList *arg1 = (wxImageList *) 0 ;
16219 wxBitmap *arg2 = 0 ;
16220 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16221 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16222 int result;
16223 PyObject * obj0 = 0 ;
16224 PyObject * obj1 = 0 ;
16225 PyObject * obj2 = 0 ;
16226 char *kwnames[] = {
16227 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16228 };
16229
16230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16233 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16234 SWIG_POINTER_EXCEPTION | 0)) == -1)
16235 SWIG_fail;
16236 if (arg2 == NULL) {
16237 PyErr_SetString(PyExc_TypeError,"null reference");
16238 SWIG_fail;
16239 }
16240 if (obj2) {
16241 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16242 SWIG_POINTER_EXCEPTION | 0)) == -1)
16243 SWIG_fail;
16244 if (arg3 == NULL) {
16245 PyErr_SetString(PyExc_TypeError,"null reference");
16246 SWIG_fail;
16247 }
16248 }
16249 {
16250 PyThreadState* __tstate = wxPyBeginAllowThreads();
16251 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16252
16253 wxPyEndAllowThreads(__tstate);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 }
16256 resultobj = SWIG_FromInt((int)result);
16257 return resultobj;
16258 fail:
16259 return NULL;
16260 }
16261
16262
16263 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16264 PyObject *resultobj;
16265 wxImageList *arg1 = (wxImageList *) 0 ;
16266 wxBitmap *arg2 = 0 ;
16267 wxColour *arg3 = 0 ;
16268 int result;
16269 wxColour temp3 ;
16270 PyObject * obj0 = 0 ;
16271 PyObject * obj1 = 0 ;
16272 PyObject * obj2 = 0 ;
16273 char *kwnames[] = {
16274 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16275 };
16276
16277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16280 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16281 SWIG_POINTER_EXCEPTION | 0)) == -1)
16282 SWIG_fail;
16283 if (arg2 == NULL) {
16284 PyErr_SetString(PyExc_TypeError,"null reference");
16285 SWIG_fail;
16286 }
16287 {
16288 arg3 = &temp3;
16289 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16290 }
16291 {
16292 PyThreadState* __tstate = wxPyBeginAllowThreads();
16293 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16294
16295 wxPyEndAllowThreads(__tstate);
16296 if (PyErr_Occurred()) SWIG_fail;
16297 }
16298 resultobj = SWIG_FromInt((int)result);
16299 return resultobj;
16300 fail:
16301 return NULL;
16302 }
16303
16304
16305 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16306 PyObject *resultobj;
16307 wxImageList *arg1 = (wxImageList *) 0 ;
16308 wxIcon *arg2 = 0 ;
16309 int result;
16310 PyObject * obj0 = 0 ;
16311 PyObject * obj1 = 0 ;
16312 char *kwnames[] = {
16313 (char *) "self",(char *) "icon", NULL
16314 };
16315
16316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16319 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16320 SWIG_POINTER_EXCEPTION | 0)) == -1)
16321 SWIG_fail;
16322 if (arg2 == NULL) {
16323 PyErr_SetString(PyExc_TypeError,"null reference");
16324 SWIG_fail;
16325 }
16326 {
16327 PyThreadState* __tstate = wxPyBeginAllowThreads();
16328 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16329
16330 wxPyEndAllowThreads(__tstate);
16331 if (PyErr_Occurred()) SWIG_fail;
16332 }
16333 resultobj = SWIG_FromInt((int)result);
16334 return resultobj;
16335 fail:
16336 return NULL;
16337 }
16338
16339
16340 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16341 PyObject *resultobj;
16342 wxImageList *arg1 = (wxImageList *) 0 ;
16343 int arg2 ;
16344 wxBitmap *arg3 = 0 ;
16345 bool result;
16346 PyObject * obj0 = 0 ;
16347 PyObject * obj1 = 0 ;
16348 PyObject * obj2 = 0 ;
16349 char *kwnames[] = {
16350 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16351 };
16352
16353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16356 arg2 = (int) SWIG_AsInt(obj1);
16357 if (PyErr_Occurred()) SWIG_fail;
16358 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16359 SWIG_POINTER_EXCEPTION | 0)) == -1)
16360 SWIG_fail;
16361 if (arg3 == NULL) {
16362 PyErr_SetString(PyExc_TypeError,"null reference");
16363 SWIG_fail;
16364 }
16365 {
16366 PyThreadState* __tstate = wxPyBeginAllowThreads();
16367 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16368
16369 wxPyEndAllowThreads(__tstate);
16370 if (PyErr_Occurred()) SWIG_fail;
16371 }
16372 {
16373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16374 }
16375 return resultobj;
16376 fail:
16377 return NULL;
16378 }
16379
16380
16381 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16382 PyObject *resultobj;
16383 wxImageList *arg1 = (wxImageList *) 0 ;
16384 int arg2 ;
16385 wxDC *arg3 = 0 ;
16386 int arg4 ;
16387 int arg5 ;
16388 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16389 bool arg7 = (bool) (bool)False ;
16390 bool result;
16391 PyObject * obj0 = 0 ;
16392 PyObject * obj1 = 0 ;
16393 PyObject * obj2 = 0 ;
16394 PyObject * obj3 = 0 ;
16395 PyObject * obj4 = 0 ;
16396 PyObject * obj5 = 0 ;
16397 PyObject * obj6 = 0 ;
16398 char *kwnames[] = {
16399 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16400 };
16401
16402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16405 arg2 = (int) SWIG_AsInt(obj1);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16408 SWIG_POINTER_EXCEPTION | 0)) == -1)
16409 SWIG_fail;
16410 if (arg3 == NULL) {
16411 PyErr_SetString(PyExc_TypeError,"null reference");
16412 SWIG_fail;
16413 }
16414 arg4 = (int) SWIG_AsInt(obj3);
16415 if (PyErr_Occurred()) SWIG_fail;
16416 arg5 = (int) SWIG_AsInt(obj4);
16417 if (PyErr_Occurred()) SWIG_fail;
16418 if (obj5) {
16419 arg6 = (int) SWIG_AsInt(obj5);
16420 if (PyErr_Occurred()) SWIG_fail;
16421 }
16422 if (obj6) {
16423 arg7 = (bool const) SWIG_AsBool(obj6);
16424 if (PyErr_Occurred()) SWIG_fail;
16425 }
16426 {
16427 PyThreadState* __tstate = wxPyBeginAllowThreads();
16428 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16429
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 {
16434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16435 }
16436 return resultobj;
16437 fail:
16438 return NULL;
16439 }
16440
16441
16442 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16443 PyObject *resultobj;
16444 wxImageList *arg1 = (wxImageList *) 0 ;
16445 int result;
16446 PyObject * obj0 = 0 ;
16447 char *kwnames[] = {
16448 (char *) "self", NULL
16449 };
16450
16451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16454 {
16455 PyThreadState* __tstate = wxPyBeginAllowThreads();
16456 result = (int)(arg1)->GetImageCount();
16457
16458 wxPyEndAllowThreads(__tstate);
16459 if (PyErr_Occurred()) SWIG_fail;
16460 }
16461 resultobj = SWIG_FromInt((int)result);
16462 return resultobj;
16463 fail:
16464 return NULL;
16465 }
16466
16467
16468 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16469 PyObject *resultobj;
16470 wxImageList *arg1 = (wxImageList *) 0 ;
16471 int arg2 ;
16472 bool result;
16473 PyObject * obj0 = 0 ;
16474 PyObject * obj1 = 0 ;
16475 char *kwnames[] = {
16476 (char *) "self",(char *) "index", NULL
16477 };
16478
16479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16482 arg2 = (int) SWIG_AsInt(obj1);
16483 if (PyErr_Occurred()) SWIG_fail;
16484 {
16485 PyThreadState* __tstate = wxPyBeginAllowThreads();
16486 result = (bool)(arg1)->Remove(arg2);
16487
16488 wxPyEndAllowThreads(__tstate);
16489 if (PyErr_Occurred()) SWIG_fail;
16490 }
16491 {
16492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16493 }
16494 return resultobj;
16495 fail:
16496 return NULL;
16497 }
16498
16499
16500 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16501 PyObject *resultobj;
16502 wxImageList *arg1 = (wxImageList *) 0 ;
16503 bool result;
16504 PyObject * obj0 = 0 ;
16505 char *kwnames[] = {
16506 (char *) "self", NULL
16507 };
16508
16509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16512 {
16513 PyThreadState* __tstate = wxPyBeginAllowThreads();
16514 result = (bool)(arg1)->RemoveAll();
16515
16516 wxPyEndAllowThreads(__tstate);
16517 if (PyErr_Occurred()) SWIG_fail;
16518 }
16519 {
16520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16521 }
16522 return resultobj;
16523 fail:
16524 return NULL;
16525 }
16526
16527
16528 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16529 PyObject *resultobj;
16530 wxImageList *arg1 = (wxImageList *) 0 ;
16531 int arg2 ;
16532 int *arg3 = 0 ;
16533 int *arg4 = 0 ;
16534 int temp3 ;
16535 int temp4 ;
16536 PyObject * obj0 = 0 ;
16537 PyObject * obj1 = 0 ;
16538 char *kwnames[] = {
16539 (char *) "self",(char *) "index", NULL
16540 };
16541
16542 arg3 = &temp3;
16543 arg4 = &temp4;
16544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16547 arg2 = (int) SWIG_AsInt(obj1);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 {
16550 PyThreadState* __tstate = wxPyBeginAllowThreads();
16551 (arg1)->GetSize(arg2,*arg3,*arg4);
16552
16553 wxPyEndAllowThreads(__tstate);
16554 if (PyErr_Occurred()) SWIG_fail;
16555 }
16556 Py_INCREF(Py_None); resultobj = Py_None;
16557 {
16558 PyObject *o = PyInt_FromLong((long) (*arg3));
16559 resultobj = t_output_helper(resultobj,o);
16560 }
16561 {
16562 PyObject *o = PyInt_FromLong((long) (*arg4));
16563 resultobj = t_output_helper(resultobj,o);
16564 }
16565 return resultobj;
16566 fail:
16567 return NULL;
16568 }
16569
16570
16571 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16572 PyObject *obj;
16573 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16574 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16575 Py_INCREF(obj);
16576 return Py_BuildValue((char *)"");
16577 }
16578 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16579 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16580 return 1;
16581 }
16582
16583
16584 static PyObject *_wrap_NORMAL_FONT_get() {
16585 PyObject *pyobj;
16586
16587 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16588 return pyobj;
16589 }
16590
16591
16592 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16593 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16594 return 1;
16595 }
16596
16597
16598 static PyObject *_wrap_SMALL_FONT_get() {
16599 PyObject *pyobj;
16600
16601 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16602 return pyobj;
16603 }
16604
16605
16606 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16607 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16608 return 1;
16609 }
16610
16611
16612 static PyObject *_wrap_ITALIC_FONT_get() {
16613 PyObject *pyobj;
16614
16615 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16616 return pyobj;
16617 }
16618
16619
16620 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16621 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16622 return 1;
16623 }
16624
16625
16626 static PyObject *_wrap_SWISS_FONT_get() {
16627 PyObject *pyobj;
16628
16629 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16630 return pyobj;
16631 }
16632
16633
16634 static int _wrap_RED_PEN_set(PyObject *_val) {
16635 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16636 return 1;
16637 }
16638
16639
16640 static PyObject *_wrap_RED_PEN_get() {
16641 PyObject *pyobj;
16642
16643 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16644 return pyobj;
16645 }
16646
16647
16648 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16649 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16650 return 1;
16651 }
16652
16653
16654 static PyObject *_wrap_CYAN_PEN_get() {
16655 PyObject *pyobj;
16656
16657 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16658 return pyobj;
16659 }
16660
16661
16662 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16663 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16664 return 1;
16665 }
16666
16667
16668 static PyObject *_wrap_GREEN_PEN_get() {
16669 PyObject *pyobj;
16670
16671 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16672 return pyobj;
16673 }
16674
16675
16676 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16677 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16678 return 1;
16679 }
16680
16681
16682 static PyObject *_wrap_BLACK_PEN_get() {
16683 PyObject *pyobj;
16684
16685 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16686 return pyobj;
16687 }
16688
16689
16690 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16691 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16692 return 1;
16693 }
16694
16695
16696 static PyObject *_wrap_WHITE_PEN_get() {
16697 PyObject *pyobj;
16698
16699 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16700 return pyobj;
16701 }
16702
16703
16704 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16705 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16706 return 1;
16707 }
16708
16709
16710 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16711 PyObject *pyobj;
16712
16713 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16714 return pyobj;
16715 }
16716
16717
16718 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16719 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16720 return 1;
16721 }
16722
16723
16724 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16725 PyObject *pyobj;
16726
16727 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16728 return pyobj;
16729 }
16730
16731
16732 static int _wrap_GREY_PEN_set(PyObject *_val) {
16733 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16734 return 1;
16735 }
16736
16737
16738 static PyObject *_wrap_GREY_PEN_get() {
16739 PyObject *pyobj;
16740
16741 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16742 return pyobj;
16743 }
16744
16745
16746 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16747 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16748 return 1;
16749 }
16750
16751
16752 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16753 PyObject *pyobj;
16754
16755 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16756 return pyobj;
16757 }
16758
16759
16760 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16761 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16762 return 1;
16763 }
16764
16765
16766 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16767 PyObject *pyobj;
16768
16769 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16770 return pyobj;
16771 }
16772
16773
16774 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16775 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16776 return 1;
16777 }
16778
16779
16780 static PyObject *_wrap_BLUE_BRUSH_get() {
16781 PyObject *pyobj;
16782
16783 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16784 return pyobj;
16785 }
16786
16787
16788 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16789 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16790 return 1;
16791 }
16792
16793
16794 static PyObject *_wrap_GREEN_BRUSH_get() {
16795 PyObject *pyobj;
16796
16797 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16798 return pyobj;
16799 }
16800
16801
16802 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16803 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16804 return 1;
16805 }
16806
16807
16808 static PyObject *_wrap_WHITE_BRUSH_get() {
16809 PyObject *pyobj;
16810
16811 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16812 return pyobj;
16813 }
16814
16815
16816 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16817 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16818 return 1;
16819 }
16820
16821
16822 static PyObject *_wrap_BLACK_BRUSH_get() {
16823 PyObject *pyobj;
16824
16825 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16826 return pyobj;
16827 }
16828
16829
16830 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16831 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16832 return 1;
16833 }
16834
16835
16836 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16837 PyObject *pyobj;
16838
16839 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16840 return pyobj;
16841 }
16842
16843
16844 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16845 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16846 return 1;
16847 }
16848
16849
16850 static PyObject *_wrap_CYAN_BRUSH_get() {
16851 PyObject *pyobj;
16852
16853 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16854 return pyobj;
16855 }
16856
16857
16858 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16859 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16860 return 1;
16861 }
16862
16863
16864 static PyObject *_wrap_RED_BRUSH_get() {
16865 PyObject *pyobj;
16866
16867 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16868 return pyobj;
16869 }
16870
16871
16872 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16873 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16874 return 1;
16875 }
16876
16877
16878 static PyObject *_wrap_GREY_BRUSH_get() {
16879 PyObject *pyobj;
16880
16881 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16882 return pyobj;
16883 }
16884
16885
16886 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16887 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16888 return 1;
16889 }
16890
16891
16892 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16893 PyObject *pyobj;
16894
16895 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16896 return pyobj;
16897 }
16898
16899
16900 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16901 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16902 return 1;
16903 }
16904
16905
16906 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16907 PyObject *pyobj;
16908
16909 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16910 return pyobj;
16911 }
16912
16913
16914 static int _wrap_BLACK_set(PyObject *_val) {
16915 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16916 return 1;
16917 }
16918
16919
16920 static PyObject *_wrap_BLACK_get() {
16921 PyObject *pyobj;
16922
16923 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16924 return pyobj;
16925 }
16926
16927
16928 static int _wrap_WHITE_set(PyObject *_val) {
16929 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16930 return 1;
16931 }
16932
16933
16934 static PyObject *_wrap_WHITE_get() {
16935 PyObject *pyobj;
16936
16937 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16938 return pyobj;
16939 }
16940
16941
16942 static int _wrap_RED_set(PyObject *_val) {
16943 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16944 return 1;
16945 }
16946
16947
16948 static PyObject *_wrap_RED_get() {
16949 PyObject *pyobj;
16950
16951 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16952 return pyobj;
16953 }
16954
16955
16956 static int _wrap_BLUE_set(PyObject *_val) {
16957 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16958 return 1;
16959 }
16960
16961
16962 static PyObject *_wrap_BLUE_get() {
16963 PyObject *pyobj;
16964
16965 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16966 return pyobj;
16967 }
16968
16969
16970 static int _wrap_GREEN_set(PyObject *_val) {
16971 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16972 return 1;
16973 }
16974
16975
16976 static PyObject *_wrap_GREEN_get() {
16977 PyObject *pyobj;
16978
16979 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16980 return pyobj;
16981 }
16982
16983
16984 static int _wrap_CYAN_set(PyObject *_val) {
16985 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16986 return 1;
16987 }
16988
16989
16990 static PyObject *_wrap_CYAN_get() {
16991 PyObject *pyobj;
16992
16993 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16994 return pyobj;
16995 }
16996
16997
16998 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16999 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17000 return 1;
17001 }
17002
17003
17004 static PyObject *_wrap_LIGHT_GREY_get() {
17005 PyObject *pyobj;
17006
17007 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17008 return pyobj;
17009 }
17010
17011
17012 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17013 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17014 return 1;
17015 }
17016
17017
17018 static PyObject *_wrap_STANDARD_CURSOR_get() {
17019 PyObject *pyobj;
17020
17021 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17022 return pyobj;
17023 }
17024
17025
17026 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17027 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17028 return 1;
17029 }
17030
17031
17032 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17033 PyObject *pyobj;
17034
17035 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17036 return pyobj;
17037 }
17038
17039
17040 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17041 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17042 return 1;
17043 }
17044
17045
17046 static PyObject *_wrap_CROSS_CURSOR_get() {
17047 PyObject *pyobj;
17048
17049 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17050 return pyobj;
17051 }
17052
17053
17054 static int _wrap_NullBitmap_set(PyObject *_val) {
17055 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17056 return 1;
17057 }
17058
17059
17060 static PyObject *_wrap_NullBitmap_get() {
17061 PyObject *pyobj;
17062
17063 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17064 return pyobj;
17065 }
17066
17067
17068 static int _wrap_NullIcon_set(PyObject *_val) {
17069 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17070 return 1;
17071 }
17072
17073
17074 static PyObject *_wrap_NullIcon_get() {
17075 PyObject *pyobj;
17076
17077 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17078 return pyobj;
17079 }
17080
17081
17082 static int _wrap_NullCursor_set(PyObject *_val) {
17083 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17084 return 1;
17085 }
17086
17087
17088 static PyObject *_wrap_NullCursor_get() {
17089 PyObject *pyobj;
17090
17091 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17092 return pyobj;
17093 }
17094
17095
17096 static int _wrap_NullPen_set(PyObject *_val) {
17097 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17098 return 1;
17099 }
17100
17101
17102 static PyObject *_wrap_NullPen_get() {
17103 PyObject *pyobj;
17104
17105 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17106 return pyobj;
17107 }
17108
17109
17110 static int _wrap_NullBrush_set(PyObject *_val) {
17111 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17112 return 1;
17113 }
17114
17115
17116 static PyObject *_wrap_NullBrush_get() {
17117 PyObject *pyobj;
17118
17119 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17120 return pyobj;
17121 }
17122
17123
17124 static int _wrap_NullPalette_set(PyObject *_val) {
17125 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17126 return 1;
17127 }
17128
17129
17130 static PyObject *_wrap_NullPalette_get() {
17131 PyObject *pyobj;
17132
17133 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17134 return pyobj;
17135 }
17136
17137
17138 static int _wrap_NullFont_set(PyObject *_val) {
17139 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17140 return 1;
17141 }
17142
17143
17144 static PyObject *_wrap_NullFont_get() {
17145 PyObject *pyobj;
17146
17147 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17148 return pyobj;
17149 }
17150
17151
17152 static int _wrap_NullColour_set(PyObject *_val) {
17153 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17154 return 1;
17155 }
17156
17157
17158 static PyObject *_wrap_NullColour_get() {
17159 PyObject *pyobj;
17160
17161 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17162 return pyobj;
17163 }
17164
17165
17166 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17167 PyObject *resultobj;
17168 wxPenList *arg1 = (wxPenList *) 0 ;
17169 wxPen *arg2 = (wxPen *) 0 ;
17170 PyObject * obj0 = 0 ;
17171 PyObject * obj1 = 0 ;
17172 char *kwnames[] = {
17173 (char *) "self",(char *) "pen", NULL
17174 };
17175
17176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17179 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17181 {
17182 PyThreadState* __tstate = wxPyBeginAllowThreads();
17183 (arg1)->AddPen(arg2);
17184
17185 wxPyEndAllowThreads(__tstate);
17186 if (PyErr_Occurred()) SWIG_fail;
17187 }
17188 Py_INCREF(Py_None); resultobj = Py_None;
17189 return resultobj;
17190 fail:
17191 return NULL;
17192 }
17193
17194
17195 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17196 PyObject *resultobj;
17197 wxPenList *arg1 = (wxPenList *) 0 ;
17198 wxColour *arg2 = 0 ;
17199 int arg3 ;
17200 int arg4 ;
17201 wxPen *result;
17202 wxColour temp2 ;
17203 PyObject * obj0 = 0 ;
17204 PyObject * obj1 = 0 ;
17205 PyObject * obj2 = 0 ;
17206 PyObject * obj3 = 0 ;
17207 char *kwnames[] = {
17208 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17209 };
17210
17211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17214 {
17215 arg2 = &temp2;
17216 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17217 }
17218 arg3 = (int) SWIG_AsInt(obj2);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 arg4 = (int) SWIG_AsInt(obj3);
17221 if (PyErr_Occurred()) SWIG_fail;
17222 {
17223 PyThreadState* __tstate = wxPyBeginAllowThreads();
17224 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17225
17226 wxPyEndAllowThreads(__tstate);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17230 return resultobj;
17231 fail:
17232 return NULL;
17233 }
17234
17235
17236 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17237 PyObject *resultobj;
17238 wxPenList *arg1 = (wxPenList *) 0 ;
17239 wxPen *arg2 = (wxPen *) 0 ;
17240 PyObject * obj0 = 0 ;
17241 PyObject * obj1 = 0 ;
17242 char *kwnames[] = {
17243 (char *) "self",(char *) "pen", NULL
17244 };
17245
17246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17249 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17251 {
17252 PyThreadState* __tstate = wxPyBeginAllowThreads();
17253 (arg1)->RemovePen(arg2);
17254
17255 wxPyEndAllowThreads(__tstate);
17256 if (PyErr_Occurred()) SWIG_fail;
17257 }
17258 Py_INCREF(Py_None); resultobj = Py_None;
17259 return resultobj;
17260 fail:
17261 return NULL;
17262 }
17263
17264
17265 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17266 PyObject *resultobj;
17267 wxPenList *arg1 = (wxPenList *) 0 ;
17268 int result;
17269 PyObject * obj0 = 0 ;
17270 char *kwnames[] = {
17271 (char *) "self", NULL
17272 };
17273
17274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17277 {
17278 PyThreadState* __tstate = wxPyBeginAllowThreads();
17279 result = (int)(arg1)->GetCount();
17280
17281 wxPyEndAllowThreads(__tstate);
17282 if (PyErr_Occurred()) SWIG_fail;
17283 }
17284 resultobj = SWIG_FromInt((int)result);
17285 return resultobj;
17286 fail:
17287 return NULL;
17288 }
17289
17290
17291 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17292 PyObject *obj;
17293 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17294 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17295 Py_INCREF(obj);
17296 return Py_BuildValue((char *)"");
17297 }
17298 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17299 PyObject *resultobj;
17300 wxBrushList *arg1 = (wxBrushList *) 0 ;
17301 wxBrush *arg2 = (wxBrush *) 0 ;
17302 PyObject * obj0 = 0 ;
17303 PyObject * obj1 = 0 ;
17304 char *kwnames[] = {
17305 (char *) "self",(char *) "brush", NULL
17306 };
17307
17308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17313 {
17314 PyThreadState* __tstate = wxPyBeginAllowThreads();
17315 (arg1)->AddBrush(arg2);
17316
17317 wxPyEndAllowThreads(__tstate);
17318 if (PyErr_Occurred()) SWIG_fail;
17319 }
17320 Py_INCREF(Py_None); resultobj = Py_None;
17321 return resultobj;
17322 fail:
17323 return NULL;
17324 }
17325
17326
17327 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17328 PyObject *resultobj;
17329 wxBrushList *arg1 = (wxBrushList *) 0 ;
17330 wxColour *arg2 = 0 ;
17331 int arg3 ;
17332 wxBrush *result;
17333 wxColour temp2 ;
17334 PyObject * obj0 = 0 ;
17335 PyObject * obj1 = 0 ;
17336 PyObject * obj2 = 0 ;
17337 char *kwnames[] = {
17338 (char *) "self",(char *) "colour",(char *) "style", NULL
17339 };
17340
17341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17344 {
17345 arg2 = &temp2;
17346 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17347 }
17348 arg3 = (int) SWIG_AsInt(obj2);
17349 if (PyErr_Occurred()) SWIG_fail;
17350 {
17351 PyThreadState* __tstate = wxPyBeginAllowThreads();
17352 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17353
17354 wxPyEndAllowThreads(__tstate);
17355 if (PyErr_Occurred()) SWIG_fail;
17356 }
17357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17358 return resultobj;
17359 fail:
17360 return NULL;
17361 }
17362
17363
17364 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17365 PyObject *resultobj;
17366 wxBrushList *arg1 = (wxBrushList *) 0 ;
17367 wxBrush *arg2 = (wxBrush *) 0 ;
17368 PyObject * obj0 = 0 ;
17369 PyObject * obj1 = 0 ;
17370 char *kwnames[] = {
17371 (char *) "self",(char *) "brush", NULL
17372 };
17373
17374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17379 {
17380 PyThreadState* __tstate = wxPyBeginAllowThreads();
17381 (arg1)->RemoveBrush(arg2);
17382
17383 wxPyEndAllowThreads(__tstate);
17384 if (PyErr_Occurred()) SWIG_fail;
17385 }
17386 Py_INCREF(Py_None); resultobj = Py_None;
17387 return resultobj;
17388 fail:
17389 return NULL;
17390 }
17391
17392
17393 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17394 PyObject *resultobj;
17395 wxBrushList *arg1 = (wxBrushList *) 0 ;
17396 int result;
17397 PyObject * obj0 = 0 ;
17398 char *kwnames[] = {
17399 (char *) "self", NULL
17400 };
17401
17402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17405 {
17406 PyThreadState* __tstate = wxPyBeginAllowThreads();
17407 result = (int)(arg1)->GetCount();
17408
17409 wxPyEndAllowThreads(__tstate);
17410 if (PyErr_Occurred()) SWIG_fail;
17411 }
17412 resultobj = SWIG_FromInt((int)result);
17413 return resultobj;
17414 fail:
17415 return NULL;
17416 }
17417
17418
17419 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17420 PyObject *obj;
17421 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17422 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17423 Py_INCREF(obj);
17424 return Py_BuildValue((char *)"");
17425 }
17426 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17427 PyObject *resultobj;
17428 wxColourDatabase *result;
17429 char *kwnames[] = {
17430 NULL
17431 };
17432
17433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17434 {
17435 if (!wxPyCheckForApp()) SWIG_fail;
17436 PyThreadState* __tstate = wxPyBeginAllowThreads();
17437 result = (wxColourDatabase *)new wxColourDatabase();
17438
17439 wxPyEndAllowThreads(__tstate);
17440 if (PyErr_Occurred()) SWIG_fail;
17441 }
17442 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17443 return resultobj;
17444 fail:
17445 return NULL;
17446 }
17447
17448
17449 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17450 PyObject *resultobj;
17451 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17452 PyObject * obj0 = 0 ;
17453 char *kwnames[] = {
17454 (char *) "self", NULL
17455 };
17456
17457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17460 {
17461 PyThreadState* __tstate = wxPyBeginAllowThreads();
17462 delete arg1;
17463
17464 wxPyEndAllowThreads(__tstate);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 }
17467 Py_INCREF(Py_None); resultobj = Py_None;
17468 return resultobj;
17469 fail:
17470 return NULL;
17471 }
17472
17473
17474 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17475 PyObject *resultobj;
17476 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17477 wxString *arg2 = 0 ;
17478 wxColour result;
17479 bool temp2 = False ;
17480 PyObject * obj0 = 0 ;
17481 PyObject * obj1 = 0 ;
17482 char *kwnames[] = {
17483 (char *) "self",(char *) "name", NULL
17484 };
17485
17486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17489 {
17490 arg2 = wxString_in_helper(obj1);
17491 if (arg2 == NULL) SWIG_fail;
17492 temp2 = True;
17493 }
17494 {
17495 PyThreadState* __tstate = wxPyBeginAllowThreads();
17496 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17497
17498 wxPyEndAllowThreads(__tstate);
17499 if (PyErr_Occurred()) SWIG_fail;
17500 }
17501 {
17502 wxColour * resultptr;
17503 resultptr = new wxColour((wxColour &) result);
17504 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17505 }
17506 {
17507 if (temp2)
17508 delete arg2;
17509 }
17510 return resultobj;
17511 fail:
17512 {
17513 if (temp2)
17514 delete arg2;
17515 }
17516 return NULL;
17517 }
17518
17519
17520 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17521 PyObject *resultobj;
17522 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17523 wxColour *arg2 = 0 ;
17524 wxString result;
17525 wxColour temp2 ;
17526 PyObject * obj0 = 0 ;
17527 PyObject * obj1 = 0 ;
17528 char *kwnames[] = {
17529 (char *) "self",(char *) "colour", NULL
17530 };
17531
17532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17535 {
17536 arg2 = &temp2;
17537 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17538 }
17539 {
17540 PyThreadState* __tstate = wxPyBeginAllowThreads();
17541 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17542
17543 wxPyEndAllowThreads(__tstate);
17544 if (PyErr_Occurred()) SWIG_fail;
17545 }
17546 {
17547 #if wxUSE_UNICODE
17548 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17549 #else
17550 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17551 #endif
17552 }
17553 return resultobj;
17554 fail:
17555 return NULL;
17556 }
17557
17558
17559 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17560 PyObject *resultobj;
17561 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17562 wxString *arg2 = 0 ;
17563 wxColour *arg3 = 0 ;
17564 bool temp2 = False ;
17565 wxColour temp3 ;
17566 PyObject * obj0 = 0 ;
17567 PyObject * obj1 = 0 ;
17568 PyObject * obj2 = 0 ;
17569 char *kwnames[] = {
17570 (char *) "self",(char *) "name",(char *) "colour", NULL
17571 };
17572
17573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17576 {
17577 arg2 = wxString_in_helper(obj1);
17578 if (arg2 == NULL) SWIG_fail;
17579 temp2 = True;
17580 }
17581 {
17582 arg3 = &temp3;
17583 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17584 }
17585 {
17586 PyThreadState* __tstate = wxPyBeginAllowThreads();
17587 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17588
17589 wxPyEndAllowThreads(__tstate);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 }
17592 Py_INCREF(Py_None); resultobj = Py_None;
17593 {
17594 if (temp2)
17595 delete arg2;
17596 }
17597 return resultobj;
17598 fail:
17599 {
17600 if (temp2)
17601 delete arg2;
17602 }
17603 return NULL;
17604 }
17605
17606
17607 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17608 PyObject *resultobj;
17609 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17610 wxString *arg2 = 0 ;
17611 int arg3 ;
17612 int arg4 ;
17613 int arg5 ;
17614 bool temp2 = False ;
17615 PyObject * obj0 = 0 ;
17616 PyObject * obj1 = 0 ;
17617 PyObject * obj2 = 0 ;
17618 PyObject * obj3 = 0 ;
17619 PyObject * obj4 = 0 ;
17620 char *kwnames[] = {
17621 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17622 };
17623
17624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17627 {
17628 arg2 = wxString_in_helper(obj1);
17629 if (arg2 == NULL) SWIG_fail;
17630 temp2 = True;
17631 }
17632 arg3 = (int) SWIG_AsInt(obj2);
17633 if (PyErr_Occurred()) SWIG_fail;
17634 arg4 = (int) SWIG_AsInt(obj3);
17635 if (PyErr_Occurred()) SWIG_fail;
17636 arg5 = (int) SWIG_AsInt(obj4);
17637 if (PyErr_Occurred()) SWIG_fail;
17638 {
17639 PyThreadState* __tstate = wxPyBeginAllowThreads();
17640 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17641
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 Py_INCREF(Py_None); resultobj = Py_None;
17646 {
17647 if (temp2)
17648 delete arg2;
17649 }
17650 return resultobj;
17651 fail:
17652 {
17653 if (temp2)
17654 delete arg2;
17655 }
17656 return NULL;
17657 }
17658
17659
17660 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17661 PyObject *obj;
17662 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17663 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17664 Py_INCREF(obj);
17665 return Py_BuildValue((char *)"");
17666 }
17667 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17668 PyObject *resultobj;
17669 wxFontList *arg1 = (wxFontList *) 0 ;
17670 wxFont *arg2 = (wxFont *) 0 ;
17671 PyObject * obj0 = 0 ;
17672 PyObject * obj1 = 0 ;
17673 char *kwnames[] = {
17674 (char *) "self",(char *) "font", NULL
17675 };
17676
17677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17680 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17682 {
17683 PyThreadState* __tstate = wxPyBeginAllowThreads();
17684 (arg1)->AddFont(arg2);
17685
17686 wxPyEndAllowThreads(__tstate);
17687 if (PyErr_Occurred()) SWIG_fail;
17688 }
17689 Py_INCREF(Py_None); resultobj = Py_None;
17690 return resultobj;
17691 fail:
17692 return NULL;
17693 }
17694
17695
17696 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17697 PyObject *resultobj;
17698 wxFontList *arg1 = (wxFontList *) 0 ;
17699 int arg2 ;
17700 int arg3 ;
17701 int arg4 ;
17702 int arg5 ;
17703 bool arg6 = (bool) False ;
17704 wxString const &arg7_defvalue = wxPyEmptyString ;
17705 wxString *arg7 = (wxString *) &arg7_defvalue ;
17706 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17707 wxFont *result;
17708 bool temp7 = False ;
17709 PyObject * obj0 = 0 ;
17710 PyObject * obj1 = 0 ;
17711 PyObject * obj2 = 0 ;
17712 PyObject * obj3 = 0 ;
17713 PyObject * obj4 = 0 ;
17714 PyObject * obj5 = 0 ;
17715 PyObject * obj6 = 0 ;
17716 PyObject * obj7 = 0 ;
17717 char *kwnames[] = {
17718 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17719 };
17720
17721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17724 arg2 = (int) SWIG_AsInt(obj1);
17725 if (PyErr_Occurred()) SWIG_fail;
17726 arg3 = (int) SWIG_AsInt(obj2);
17727 if (PyErr_Occurred()) SWIG_fail;
17728 arg4 = (int) SWIG_AsInt(obj3);
17729 if (PyErr_Occurred()) SWIG_fail;
17730 arg5 = (int) SWIG_AsInt(obj4);
17731 if (PyErr_Occurred()) SWIG_fail;
17732 if (obj5) {
17733 arg6 = (bool) SWIG_AsBool(obj5);
17734 if (PyErr_Occurred()) SWIG_fail;
17735 }
17736 if (obj6) {
17737 {
17738 arg7 = wxString_in_helper(obj6);
17739 if (arg7 == NULL) SWIG_fail;
17740 temp7 = True;
17741 }
17742 }
17743 if (obj7) {
17744 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17745 if (PyErr_Occurred()) SWIG_fail;
17746 }
17747 {
17748 PyThreadState* __tstate = wxPyBeginAllowThreads();
17749 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17750
17751 wxPyEndAllowThreads(__tstate);
17752 if (PyErr_Occurred()) SWIG_fail;
17753 }
17754 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17755 {
17756 if (temp7)
17757 delete arg7;
17758 }
17759 return resultobj;
17760 fail:
17761 {
17762 if (temp7)
17763 delete arg7;
17764 }
17765 return NULL;
17766 }
17767
17768
17769 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17770 PyObject *resultobj;
17771 wxFontList *arg1 = (wxFontList *) 0 ;
17772 wxFont *arg2 = (wxFont *) 0 ;
17773 PyObject * obj0 = 0 ;
17774 PyObject * obj1 = 0 ;
17775 char *kwnames[] = {
17776 (char *) "self",(char *) "font", NULL
17777 };
17778
17779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17782 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17784 {
17785 PyThreadState* __tstate = wxPyBeginAllowThreads();
17786 (arg1)->RemoveFont(arg2);
17787
17788 wxPyEndAllowThreads(__tstate);
17789 if (PyErr_Occurred()) SWIG_fail;
17790 }
17791 Py_INCREF(Py_None); resultobj = Py_None;
17792 return resultobj;
17793 fail:
17794 return NULL;
17795 }
17796
17797
17798 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17799 PyObject *resultobj;
17800 wxFontList *arg1 = (wxFontList *) 0 ;
17801 int result;
17802 PyObject * obj0 = 0 ;
17803 char *kwnames[] = {
17804 (char *) "self", NULL
17805 };
17806
17807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17810 {
17811 PyThreadState* __tstate = wxPyBeginAllowThreads();
17812 result = (int)(arg1)->GetCount();
17813
17814 wxPyEndAllowThreads(__tstate);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 }
17817 resultobj = SWIG_FromInt((int)result);
17818 return resultobj;
17819 fail:
17820 return NULL;
17821 }
17822
17823
17824 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17825 PyObject *obj;
17826 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17827 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17828 Py_INCREF(obj);
17829 return Py_BuildValue((char *)"");
17830 }
17831 static int _wrap_TheFontList_set(PyObject *_val) {
17832 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17833 return 1;
17834 }
17835
17836
17837 static PyObject *_wrap_TheFontList_get() {
17838 PyObject *pyobj;
17839
17840 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17841 return pyobj;
17842 }
17843
17844
17845 static int _wrap_ThePenList_set(PyObject *_val) {
17846 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17847 return 1;
17848 }
17849
17850
17851 static PyObject *_wrap_ThePenList_get() {
17852 PyObject *pyobj;
17853
17854 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17855 return pyobj;
17856 }
17857
17858
17859 static int _wrap_TheBrushList_set(PyObject *_val) {
17860 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17861 return 1;
17862 }
17863
17864
17865 static PyObject *_wrap_TheBrushList_get() {
17866 PyObject *pyobj;
17867
17868 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17869 return pyobj;
17870 }
17871
17872
17873 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17874 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17875 return 1;
17876 }
17877
17878
17879 static PyObject *_wrap_TheColourDatabase_get() {
17880 PyObject *pyobj;
17881
17882 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17883 return pyobj;
17884 }
17885
17886
17887 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17888 PyObject *resultobj;
17889 wxEffects *result;
17890 char *kwnames[] = {
17891 NULL
17892 };
17893
17894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17895 {
17896 PyThreadState* __tstate = wxPyBeginAllowThreads();
17897 result = (wxEffects *)new wxEffects();
17898
17899 wxPyEndAllowThreads(__tstate);
17900 if (PyErr_Occurred()) SWIG_fail;
17901 }
17902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17903 return resultobj;
17904 fail:
17905 return NULL;
17906 }
17907
17908
17909 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17910 PyObject *resultobj;
17911 wxEffects *arg1 = (wxEffects *) 0 ;
17912 wxColour result;
17913 PyObject * obj0 = 0 ;
17914 char *kwnames[] = {
17915 (char *) "self", NULL
17916 };
17917
17918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 result = ((wxEffects const *)arg1)->GetHighlightColour();
17924
17925 wxPyEndAllowThreads(__tstate);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 }
17928 {
17929 wxColour * resultptr;
17930 resultptr = new wxColour((wxColour &) result);
17931 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17932 }
17933 return resultobj;
17934 fail:
17935 return NULL;
17936 }
17937
17938
17939 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17940 PyObject *resultobj;
17941 wxEffects *arg1 = (wxEffects *) 0 ;
17942 wxColour result;
17943 PyObject * obj0 = 0 ;
17944 char *kwnames[] = {
17945 (char *) "self", NULL
17946 };
17947
17948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17951 {
17952 PyThreadState* __tstate = wxPyBeginAllowThreads();
17953 result = ((wxEffects const *)arg1)->GetLightShadow();
17954
17955 wxPyEndAllowThreads(__tstate);
17956 if (PyErr_Occurred()) SWIG_fail;
17957 }
17958 {
17959 wxColour * resultptr;
17960 resultptr = new wxColour((wxColour &) result);
17961 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17962 }
17963 return resultobj;
17964 fail:
17965 return NULL;
17966 }
17967
17968
17969 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17970 PyObject *resultobj;
17971 wxEffects *arg1 = (wxEffects *) 0 ;
17972 wxColour result;
17973 PyObject * obj0 = 0 ;
17974 char *kwnames[] = {
17975 (char *) "self", NULL
17976 };
17977
17978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17981 {
17982 PyThreadState* __tstate = wxPyBeginAllowThreads();
17983 result = ((wxEffects const *)arg1)->GetFaceColour();
17984
17985 wxPyEndAllowThreads(__tstate);
17986 if (PyErr_Occurred()) SWIG_fail;
17987 }
17988 {
17989 wxColour * resultptr;
17990 resultptr = new wxColour((wxColour &) result);
17991 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17992 }
17993 return resultobj;
17994 fail:
17995 return NULL;
17996 }
17997
17998
17999 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18000 PyObject *resultobj;
18001 wxEffects *arg1 = (wxEffects *) 0 ;
18002 wxColour result;
18003 PyObject * obj0 = 0 ;
18004 char *kwnames[] = {
18005 (char *) "self", NULL
18006 };
18007
18008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18011 {
18012 PyThreadState* __tstate = wxPyBeginAllowThreads();
18013 result = ((wxEffects const *)arg1)->GetMediumShadow();
18014
18015 wxPyEndAllowThreads(__tstate);
18016 if (PyErr_Occurred()) SWIG_fail;
18017 }
18018 {
18019 wxColour * resultptr;
18020 resultptr = new wxColour((wxColour &) result);
18021 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18022 }
18023 return resultobj;
18024 fail:
18025 return NULL;
18026 }
18027
18028
18029 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18030 PyObject *resultobj;
18031 wxEffects *arg1 = (wxEffects *) 0 ;
18032 wxColour result;
18033 PyObject * obj0 = 0 ;
18034 char *kwnames[] = {
18035 (char *) "self", NULL
18036 };
18037
18038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18041 {
18042 PyThreadState* __tstate = wxPyBeginAllowThreads();
18043 result = ((wxEffects const *)arg1)->GetDarkShadow();
18044
18045 wxPyEndAllowThreads(__tstate);
18046 if (PyErr_Occurred()) SWIG_fail;
18047 }
18048 {
18049 wxColour * resultptr;
18050 resultptr = new wxColour((wxColour &) result);
18051 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18052 }
18053 return resultobj;
18054 fail:
18055 return NULL;
18056 }
18057
18058
18059 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18060 PyObject *resultobj;
18061 wxEffects *arg1 = (wxEffects *) 0 ;
18062 wxColour *arg2 = 0 ;
18063 wxColour temp2 ;
18064 PyObject * obj0 = 0 ;
18065 PyObject * obj1 = 0 ;
18066 char *kwnames[] = {
18067 (char *) "self",(char *) "c", NULL
18068 };
18069
18070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18073 {
18074 arg2 = &temp2;
18075 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18076 }
18077 {
18078 PyThreadState* __tstate = wxPyBeginAllowThreads();
18079 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18080
18081 wxPyEndAllowThreads(__tstate);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 }
18084 Py_INCREF(Py_None); resultobj = Py_None;
18085 return resultobj;
18086 fail:
18087 return NULL;
18088 }
18089
18090
18091 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18092 PyObject *resultobj;
18093 wxEffects *arg1 = (wxEffects *) 0 ;
18094 wxColour *arg2 = 0 ;
18095 wxColour temp2 ;
18096 PyObject * obj0 = 0 ;
18097 PyObject * obj1 = 0 ;
18098 char *kwnames[] = {
18099 (char *) "self",(char *) "c", NULL
18100 };
18101
18102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18105 {
18106 arg2 = &temp2;
18107 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18108 }
18109 {
18110 PyThreadState* __tstate = wxPyBeginAllowThreads();
18111 (arg1)->SetLightShadow((wxColour const &)*arg2);
18112
18113 wxPyEndAllowThreads(__tstate);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 }
18116 Py_INCREF(Py_None); resultobj = Py_None;
18117 return resultobj;
18118 fail:
18119 return NULL;
18120 }
18121
18122
18123 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18124 PyObject *resultobj;
18125 wxEffects *arg1 = (wxEffects *) 0 ;
18126 wxColour *arg2 = 0 ;
18127 wxColour temp2 ;
18128 PyObject * obj0 = 0 ;
18129 PyObject * obj1 = 0 ;
18130 char *kwnames[] = {
18131 (char *) "self",(char *) "c", NULL
18132 };
18133
18134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18137 {
18138 arg2 = &temp2;
18139 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18140 }
18141 {
18142 PyThreadState* __tstate = wxPyBeginAllowThreads();
18143 (arg1)->SetFaceColour((wxColour const &)*arg2);
18144
18145 wxPyEndAllowThreads(__tstate);
18146 if (PyErr_Occurred()) SWIG_fail;
18147 }
18148 Py_INCREF(Py_None); resultobj = Py_None;
18149 return resultobj;
18150 fail:
18151 return NULL;
18152 }
18153
18154
18155 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18156 PyObject *resultobj;
18157 wxEffects *arg1 = (wxEffects *) 0 ;
18158 wxColour *arg2 = 0 ;
18159 wxColour temp2 ;
18160 PyObject * obj0 = 0 ;
18161 PyObject * obj1 = 0 ;
18162 char *kwnames[] = {
18163 (char *) "self",(char *) "c", NULL
18164 };
18165
18166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18169 {
18170 arg2 = &temp2;
18171 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18172 }
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18176
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 Py_INCREF(Py_None); resultobj = Py_None;
18181 return resultobj;
18182 fail:
18183 return NULL;
18184 }
18185
18186
18187 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18188 PyObject *resultobj;
18189 wxEffects *arg1 = (wxEffects *) 0 ;
18190 wxColour *arg2 = 0 ;
18191 wxColour temp2 ;
18192 PyObject * obj0 = 0 ;
18193 PyObject * obj1 = 0 ;
18194 char *kwnames[] = {
18195 (char *) "self",(char *) "c", NULL
18196 };
18197
18198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18201 {
18202 arg2 = &temp2;
18203 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18204 }
18205 {
18206 PyThreadState* __tstate = wxPyBeginAllowThreads();
18207 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18208
18209 wxPyEndAllowThreads(__tstate);
18210 if (PyErr_Occurred()) SWIG_fail;
18211 }
18212 Py_INCREF(Py_None); resultobj = Py_None;
18213 return resultobj;
18214 fail:
18215 return NULL;
18216 }
18217
18218
18219 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18220 PyObject *resultobj;
18221 wxEffects *arg1 = (wxEffects *) 0 ;
18222 wxColour *arg2 = 0 ;
18223 wxColour *arg3 = 0 ;
18224 wxColour *arg4 = 0 ;
18225 wxColour *arg5 = 0 ;
18226 wxColour *arg6 = 0 ;
18227 wxColour temp2 ;
18228 wxColour temp3 ;
18229 wxColour temp4 ;
18230 wxColour temp5 ;
18231 wxColour temp6 ;
18232 PyObject * obj0 = 0 ;
18233 PyObject * obj1 = 0 ;
18234 PyObject * obj2 = 0 ;
18235 PyObject * obj3 = 0 ;
18236 PyObject * obj4 = 0 ;
18237 PyObject * obj5 = 0 ;
18238 char *kwnames[] = {
18239 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18240 };
18241
18242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18245 {
18246 arg2 = &temp2;
18247 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18248 }
18249 {
18250 arg3 = &temp3;
18251 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18252 }
18253 {
18254 arg4 = &temp4;
18255 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18256 }
18257 {
18258 arg5 = &temp5;
18259 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18260 }
18261 {
18262 arg6 = &temp6;
18263 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18264 }
18265 {
18266 PyThreadState* __tstate = wxPyBeginAllowThreads();
18267 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18268
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 Py_INCREF(Py_None); resultobj = Py_None;
18273 return resultobj;
18274 fail:
18275 return NULL;
18276 }
18277
18278
18279 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18280 PyObject *resultobj;
18281 wxEffects *arg1 = (wxEffects *) 0 ;
18282 wxDC *arg2 = 0 ;
18283 wxRect *arg3 = 0 ;
18284 int arg4 = (int) 1 ;
18285 wxRect temp3 ;
18286 PyObject * obj0 = 0 ;
18287 PyObject * obj1 = 0 ;
18288 PyObject * obj2 = 0 ;
18289 PyObject * obj3 = 0 ;
18290 char *kwnames[] = {
18291 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18292 };
18293
18294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18297 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18298 SWIG_POINTER_EXCEPTION | 0)) == -1)
18299 SWIG_fail;
18300 if (arg2 == NULL) {
18301 PyErr_SetString(PyExc_TypeError,"null reference");
18302 SWIG_fail;
18303 }
18304 {
18305 arg3 = &temp3;
18306 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18307 }
18308 if (obj3) {
18309 arg4 = (int) SWIG_AsInt(obj3);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 {
18313 PyThreadState* __tstate = wxPyBeginAllowThreads();
18314 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18315
18316 wxPyEndAllowThreads(__tstate);
18317 if (PyErr_Occurred()) SWIG_fail;
18318 }
18319 Py_INCREF(Py_None); resultobj = Py_None;
18320 return resultobj;
18321 fail:
18322 return NULL;
18323 }
18324
18325
18326 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18327 PyObject *resultobj;
18328 wxEffects *arg1 = (wxEffects *) 0 ;
18329 wxRect *arg2 = 0 ;
18330 wxDC *arg3 = 0 ;
18331 wxBitmap *arg4 = 0 ;
18332 bool result;
18333 wxRect temp2 ;
18334 PyObject * obj0 = 0 ;
18335 PyObject * obj1 = 0 ;
18336 PyObject * obj2 = 0 ;
18337 PyObject * obj3 = 0 ;
18338 char *kwnames[] = {
18339 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18340 };
18341
18342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18345 {
18346 arg2 = &temp2;
18347 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18348 }
18349 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18350 SWIG_POINTER_EXCEPTION | 0)) == -1)
18351 SWIG_fail;
18352 if (arg3 == NULL) {
18353 PyErr_SetString(PyExc_TypeError,"null reference");
18354 SWIG_fail;
18355 }
18356 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18357 SWIG_POINTER_EXCEPTION | 0)) == -1)
18358 SWIG_fail;
18359 if (arg4 == NULL) {
18360 PyErr_SetString(PyExc_TypeError,"null reference");
18361 SWIG_fail;
18362 }
18363 {
18364 PyThreadState* __tstate = wxPyBeginAllowThreads();
18365 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18366
18367 wxPyEndAllowThreads(__tstate);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 }
18370 {
18371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18372 }
18373 return resultobj;
18374 fail:
18375 return NULL;
18376 }
18377
18378
18379 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18380 PyObject *obj;
18381 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18382 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18383 Py_INCREF(obj);
18384 return Py_BuildValue((char *)"");
18385 }
18386 static PyMethodDef SwigMethods[] = {
18387 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18393 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18410 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18416 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18435 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18447 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18474 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18476 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18491 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18499 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18507 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18513 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18541 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18555 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18579 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18588 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18608 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18645 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18653 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18660 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18682 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18684 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18692 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
18701 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
18703 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18708 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18710 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
18730 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18759 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18760 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18761 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18764 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18773 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18775 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18776 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18777 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18778 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18779 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18780 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18782 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18783 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18785 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18786 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18790 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18791 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18792 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18793 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18794 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18795 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18796 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
18797 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18798 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18799 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18800 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
18801 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18802 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18803 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18804 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18805 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18806 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18807 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
18808 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18809 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18810 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18811 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18812 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18813 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18814 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18815 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18816 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18817 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18818 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18819 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18820 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18821 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18822 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18823 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18824 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18825 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18826 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18827 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18828 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18829 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18830 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18831 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18832 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18833 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18834 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18835 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18836 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18837 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18838 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18839 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18840 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18841 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18842 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18843 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18844 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18845 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18846 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18847 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18848 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18849 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18850 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18851 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18852 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18853 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18854 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18855 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18856 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18857 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18858 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18859 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18860 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18861 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18862 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18863 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18864 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18865 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18866 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18867 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18868 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18869 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18870 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18871 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18872 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18873 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18874 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18875 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18876 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18877 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18878 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18879 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18880 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18881 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18882 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18883 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18884 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18885 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18886 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18887 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18888 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18889 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18890 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18891 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18892 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18893 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18894 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18895 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18896 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18897 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18898 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18899 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18900 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18901 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18902 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18903 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18904 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18905 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18906 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18907 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18908 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18909 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18910 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18911 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18912 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18913 { NULL, NULL }
18914 };
18915
18916
18917 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18918
18919 static void *_p_wxControlTo_p_wxWindow(void *x) {
18920 return (void *)((wxWindow *) ((wxControl *) x));
18921 }
18922 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18923 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18924 }
18925 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18926 return (void *)((wxWindow *) ((wxMenuBar *) x));
18927 }
18928 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18929 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18930 }
18931 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18932 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18933 }
18934 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18935 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18936 }
18937 static void *_p_wxPenTo_p_wxObject(void *x) {
18938 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18939 }
18940 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18941 return (void *)((wxObject *) ((wxRegionIterator *) x));
18942 }
18943 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18944 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18945 }
18946 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18947 return (void *)((wxObject *) ((wxSizerItem *) x));
18948 }
18949 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18950 return (void *)((wxObject *) ((wxColourDatabase *) x));
18951 }
18952 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18953 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18954 }
18955 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18956 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18957 }
18958 static void *_p_wxIconTo_p_wxObject(void *x) {
18959 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18960 }
18961 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18962 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18963 }
18964 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18965 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18966 }
18967 static void *_p_wxSizerTo_p_wxObject(void *x) {
18968 return (void *)((wxObject *) ((wxSizer *) x));
18969 }
18970 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18971 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18972 }
18973 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18974 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18975 }
18976 static void *_p_wxPenListTo_p_wxObject(void *x) {
18977 return (void *)((wxObject *) ((wxPenList *) x));
18978 }
18979 static void *_p_wxEventTo_p_wxObject(void *x) {
18980 return (void *)((wxObject *) ((wxEvent *) x));
18981 }
18982 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18983 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18984 }
18985 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18986 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18987 }
18988 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18989 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18990 }
18991 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18992 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18993 }
18994 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18995 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18996 }
18997 static void *_p_wxDCTo_p_wxObject(void *x) {
18998 return (void *)((wxObject *) ((wxDC *) x));
18999 }
19000 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19001 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19002 }
19003 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19004 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19005 }
19006 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19007 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19008 }
19009 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19010 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19011 }
19012 static void *_p_wxControlTo_p_wxObject(void *x) {
19013 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19014 }
19015 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19016 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19017 }
19018 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19019 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19020 }
19021 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19022 return (void *)((wxObject *) ((wxFSFile *) x));
19023 }
19024 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19025 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19026 }
19027 static void *_p_wxRegionTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19029 }
19030 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19031 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19032 }
19033 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19034 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19035 }
19036 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19037 return (void *)((wxObject *) ((wxGDIObject *) x));
19038 }
19039 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19040 return (void *)((wxObject *) ((wxEffects *) x));
19041 }
19042 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19043 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19044 }
19045 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19046 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19047 }
19048 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19049 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19050 }
19051 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19052 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19053 }
19054 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19055 return (void *)((wxObject *) ((wxMenuItem *) x));
19056 }
19057 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19058 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19059 }
19060 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19061 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19062 }
19063 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19064 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19065 }
19066 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19067 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19068 }
19069 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19070 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19071 }
19072 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19073 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19074 }
19075 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19076 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19077 }
19078 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19079 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19080 }
19081 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19082 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19083 }
19084 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19085 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19086 }
19087 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19088 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19089 }
19090 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19091 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19092 }
19093 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19094 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19095 }
19096 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19097 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19098 }
19099 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19100 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19101 }
19102 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19103 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19104 }
19105 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19106 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19107 }
19108 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19109 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19110 }
19111 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19112 return (void *)((wxObject *) ((wxImageHandler *) x));
19113 }
19114 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19115 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19116 }
19117 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19118 return (void *)((wxObject *) ((wxEvtHandler *) x));
19119 }
19120 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19121 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19122 }
19123 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19124 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19125 }
19126 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19127 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19128 }
19129 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19130 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19131 }
19132 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19133 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19134 }
19135 static void *_p_wxImageTo_p_wxObject(void *x) {
19136 return (void *)((wxObject *) ((wxImage *) x));
19137 }
19138 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19139 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19140 }
19141 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19142 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19143 }
19144 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19145 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19146 }
19147 static void *_p_wxImageListTo_p_wxObject(void *x) {
19148 return (void *)((wxObject *) ((wxImageList *) x));
19149 }
19150 static void *_p_wxCursorTo_p_wxObject(void *x) {
19151 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19152 }
19153 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19154 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19155 }
19156 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19157 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19158 }
19159 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19160 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19161 }
19162 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19163 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19164 }
19165 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19166 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19167 }
19168 static void *_p_wxWindowTo_p_wxObject(void *x) {
19169 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19170 }
19171 static void *_p_wxMenuTo_p_wxObject(void *x) {
19172 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19173 }
19174 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19175 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19176 }
19177 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19178 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19179 }
19180 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19181 return (void *)((wxObject *) ((wxBrushList *) x));
19182 }
19183 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19184 return (void *)((wxObject *) ((wxFileSystem *) x));
19185 }
19186 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19187 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19188 }
19189 static void *_p_wxMaskTo_p_wxObject(void *x) {
19190 return (void *)((wxObject *) ((wxMask *) x));
19191 }
19192 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19193 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19194 }
19195 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19196 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19197 }
19198 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19199 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19200 }
19201 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19202 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19203 }
19204 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19205 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19206 }
19207 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19208 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19209 }
19210 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19211 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19212 }
19213 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19214 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19215 }
19216 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19217 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19218 }
19219 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19220 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19221 }
19222 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19223 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19224 }
19225 static void *_p_wxFontTo_p_wxObject(void *x) {
19226 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19227 }
19228 static void *_p_wxBrushTo_p_wxObject(void *x) {
19229 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19230 }
19231 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19232 return (void *)((wxObject *) ((wxMetaFile *) x));
19233 }
19234 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19235 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19236 }
19237 static void *_p_wxColourTo_p_wxObject(void *x) {
19238 return (void *)((wxObject *) ((wxColour *) x));
19239 }
19240 static void *_p_wxFontListTo_p_wxObject(void *x) {
19241 return (void *)((wxObject *) ((wxFontList *) x));
19242 }
19243 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19244 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19245 }
19246 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19247 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19248 }
19249 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19250 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19251 }
19252 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19253 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19254 }
19255 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19256 return (void *)((wxDC *) ((wxScreenDC *) x));
19257 }
19258 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19259 return (void *)((wxDC *) ((wxMirrorDC *) x));
19260 }
19261 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19262 return (void *)((wxDC *) ((wxMemoryDC *) x));
19263 }
19264 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19265 return (void *)((wxDC *) ((wxWindowDC *) x));
19266 }
19267 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19268 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19269 }
19270 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19271 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19272 }
19273 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19274 return (void *)((wxDC *) ((wxClientDC *) x));
19275 }
19276 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19277 return (void *)((wxDC *) ((wxPaintDC *) x));
19278 }
19279 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19280 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19281 }
19282 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19283 return (void *)((wxDC *) ((wxPrinterDC *) x));
19284 }
19285 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19286 return (void *)((wxGDIObject *) ((wxIcon *) x));
19287 }
19288 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19289 return (void *)((wxGDIObject *) ((wxPalette *) x));
19290 }
19291 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19292 return (void *)((wxGDIObject *) ((wxPen *) x));
19293 }
19294 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19295 return (void *)((wxGDIObject *) ((wxFont *) x));
19296 }
19297 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19298 return (void *)((wxGDIObject *) ((wxCursor *) x));
19299 }
19300 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19301 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19302 }
19303 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19304 return (void *)((wxGDIObject *) ((wxRegion *) x));
19305 }
19306 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19307 return (void *)((wxGDIObject *) ((wxBrush *) x));
19308 }
19309 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}};
19310 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}};
19311 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}};
19312 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}};
19313 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}};
19314 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}};
19315 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}};
19316 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}};
19317 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}};
19318 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}};
19319 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}};
19320 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}};
19321 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}};
19322 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}};
19323 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}};
19324 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}};
19325 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}};
19326 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}};
19327 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}};
19328 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}};
19329 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}};
19330 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}};
19331 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}};
19332 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}};
19333 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}};
19334 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}};
19335 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}};
19336 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}};
19337 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}};
19338 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}};
19339 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}};
19340 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}};
19341 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}};
19342 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}};
19343 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}};
19344 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}};
19345 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}};
19346 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}};
19347 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}};
19348 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}};
19349 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}};
19350 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}};
19351 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}};
19352 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}};
19353 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}};
19354 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}};
19355 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}};
19356 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}};
19357 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}};
19358 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}};
19359 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}};
19360 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}};
19361 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}};
19362 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}};
19363 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}};
19364
19365 static swig_type_info *swig_types_initial[] = {
19366 _swigt__p_wxPostScriptDC,
19367 _swigt__p_wxBrush,
19368 _swigt__p_wxColour,
19369 _swigt__p_wxDC,
19370 _swigt__p_wxMirrorDC,
19371 _swigt__p_byte,
19372 _swigt__p_wxPyFontEnumerator,
19373 _swigt__p_char,
19374 _swigt__p_wxIconLocation,
19375 _swigt__p_wxImage,
19376 _swigt__p_wxMetaFileDC,
19377 _swigt__p_wxMask,
19378 _swigt__p_wxSize,
19379 _swigt__p_wxFont,
19380 _swigt__p_wxWindow,
19381 _swigt__p_double,
19382 _swigt__p_wxMemoryDC,
19383 _swigt__p_wxFontMapper,
19384 _swigt__p_wxEffects,
19385 _swigt__p_wxNativeEncodingInfo,
19386 _swigt__p_wxPalette,
19387 _swigt__p_wxBitmap,
19388 _swigt__p_wxObject,
19389 _swigt__p_wxRegionIterator,
19390 _swigt__p_wxRect,
19391 _swigt__p_wxString,
19392 _swigt__p_wxPrinterDC,
19393 _swigt__p_wxIconBundle,
19394 _swigt__p_wxPoint,
19395 _swigt__p_wxDash,
19396 _swigt__p_wxScreenDC,
19397 _swigt__p_wxCursor,
19398 _swigt__p_wxClientDC,
19399 _swigt__p_wxBufferedDC,
19400 _swigt__p_wxImageList,
19401 _swigt__p_unsigned_char,
19402 _swigt__p_wxGDIObject,
19403 _swigt__p_wxIcon,
19404 _swigt__p_wxLocale,
19405 _swigt__p_wxRegion,
19406 _swigt__p_wxLanguageInfo,
19407 _swigt__p_wxConfigBase,
19408 _swigt__p_wxWindowDC,
19409 _swigt__p_wxPrintData,
19410 _swigt__p_wxBrushList,
19411 _swigt__p_wxFontList,
19412 _swigt__p_wxPen,
19413 _swigt__p_wxBufferedPaintDC,
19414 _swigt__p_wxPaintDC,
19415 _swigt__p_wxPenList,
19416 _swigt__p_int,
19417 _swigt__p_wxMetaFile,
19418 _swigt__p_wxNativeFontInfo,
19419 _swigt__p_wxEncodingConverter,
19420 _swigt__p_wxColourDatabase,
19421 0
19422 };
19423
19424
19425 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19426
19427 static swig_const_info swig_const_table[] = {
19428 {0}};
19429
19430 #ifdef __cplusplus
19431 }
19432 #endif
19433
19434 #ifdef __cplusplus
19435 extern "C"
19436 #endif
19437 SWIGEXPORT(void) SWIG_init(void) {
19438 static PyObject *SWIG_globals = 0;
19439 static int typeinit = 0;
19440 PyObject *m, *d;
19441 int i;
19442 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19443 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19444 d = PyModule_GetDict(m);
19445
19446 if (!typeinit) {
19447 for (i = 0; swig_types_initial[i]; i++) {
19448 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19449 }
19450 typeinit = 1;
19451 }
19452 SWIG_InstallConstants(d,swig_const_table);
19453
19454 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19455 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19456 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19457 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19458 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19459 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19460 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19461 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19462 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19463 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19464 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19465 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19466 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19467 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19468 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19469 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19470 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19471 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19472 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19473 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19474 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19475 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19476 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19477 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19478 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19479 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19480 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19481 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19482 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19483 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19484 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19485 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19486 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19487 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19488 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19489 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19490 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19491 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19492 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19493 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19494 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19495 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19496 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19497 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19498 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19499 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19500 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19501 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19502 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19503 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19504 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19505 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19506 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19507 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19508 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19509 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19510 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19511 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19512 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19513 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19514 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19515 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19516 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19517 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19518 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19519 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19520 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19521 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19522 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19523 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19524 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19525 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19526 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19527 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19528 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19529 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19530 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19531 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19532 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19533 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19534 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19535 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19536 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19537 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19538 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19539 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19540 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19541 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19542 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19543 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19544 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19545 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19546 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19547 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19548 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19549 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19550 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19551 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19552 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19553 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19554 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19555 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19556 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19557 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19558 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19559 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19560 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19561 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19562 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19563 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19564 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19565 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19566 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19567 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19568 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19569 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19570 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19571 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19572 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19573 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19574 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19575 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19576 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19577 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19578 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19579 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19580 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19581
19582 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19583
19584 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19585 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19586 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19587 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19588 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19589 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19590 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19591 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19592 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19593 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19594 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19595 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19596 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19597 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19598 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19599 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19600 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19601 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19602 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19603 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19604 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19605 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19606 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19607 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19608 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19609 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19610 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19611 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19612 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19613 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19614 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19615 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19616 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19617 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19618 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19619 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19620 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19621 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19622 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19623 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19624 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19625 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19626 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19627 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19628 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19629 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19630 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19631 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19632 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19633 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19634 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19635 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19636 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19637 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19638 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19639 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19640 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19641 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19642 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19643 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19644 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19645 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19646 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19647 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19648 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19649 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19650 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19651 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19652 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19653 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19654 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19655 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19656 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19657 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19658 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19659 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19660 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19661 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19662 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19663 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19664 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19665 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19666 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19667 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19668 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19669 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19670 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19671 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19672 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19673 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19674 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19675 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19676 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19677 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19678 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19679 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19680 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19681 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19682 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19683 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19684 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19685 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19686 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19687 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19688 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19689 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19690 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19691 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19692 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19693 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19694 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19695 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19696 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19697 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19698 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19699 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19700 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19701 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19702 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19703 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19704 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19705 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19706 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19707 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19708 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19709 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19710 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19711 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19712 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19713 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19714 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19715 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19716 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19717 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19718 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19719 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19720 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19721 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19722 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19723 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19724 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19725 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19726 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19727 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19728 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19729 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19730 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19731 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19732 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19733 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19734 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19735 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19736 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19737 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19738 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19739 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19740 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19741 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19742 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19743 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19744 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19745 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19746 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19747 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19748 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19749 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19750 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19751 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19752 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19753 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19754 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19755 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19756 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19757 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19758 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19759 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19760 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19761 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19762 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19763 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19764 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19765 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19766 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19767 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19768 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19769 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19770 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19771 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19772 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19773 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19774 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19775 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19776 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19777 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19778 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19779 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19780 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19781 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19782 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19783 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19784 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19785 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19786 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19787 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19788 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19789 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19790 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19791 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19792 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19793 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19794 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19795 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19796 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19797 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19798 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19799 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19800 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19801 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19802 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19803 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19804 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19805 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19806 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19807 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19808 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19809 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19810 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19811 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19812 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19813 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19814 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19815 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19816 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19817 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19818 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19819 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19820 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19821 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19822 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19823 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19824 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19825 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19826 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19827 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19828 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19829 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19830 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19831 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19832 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19833 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19834 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19835 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19836 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19837 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19838 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19839 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19840 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19841 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19842 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19843 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19844 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19845 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19846 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19847 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19848 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19849 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19850 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19851 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19852 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19853 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19854 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19855 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19856 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19857 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19858 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19859 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19860 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19861 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19862 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19863 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19864 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19865 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19866 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19867 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19868 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19869 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19870 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19871 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19872 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19873 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19874 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19875 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19876 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19877 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19878 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19879 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19880 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19881 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19882 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19883 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19884
19885 // Work around a chicken/egg problem in drawlist.cpp
19886 wxPyDrawList_SetAPIPtr();
19887
19888 }
19889