]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
make it easier to do a gtk2 build
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
210 #define SWIGTYPE_p_wxBrush swig_types[1]
211 #define SWIGTYPE_p_wxColour swig_types[2]
212 #define SWIGTYPE_p_wxDC swig_types[3]
213 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
214 #define SWIGTYPE_p_byte swig_types[5]
215 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
216 #define SWIGTYPE_p_char swig_types[7]
217 #define SWIGTYPE_p_wxIconLocation swig_types[8]
218 #define SWIGTYPE_p_wxImage swig_types[9]
219 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220 #define SWIGTYPE_p_wxMask swig_types[11]
221 #define SWIGTYPE_p_wxSize swig_types[12]
222 #define SWIGTYPE_p_wxFont swig_types[13]
223 #define SWIGTYPE_p_wxWindow swig_types[14]
224 #define SWIGTYPE_p_double swig_types[15]
225 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
226 #define SWIGTYPE_p_wxFontMapper swig_types[17]
227 #define SWIGTYPE_p_wxEffects swig_types[18]
228 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229 #define SWIGTYPE_p_wxPalette swig_types[20]
230 #define SWIGTYPE_p_wxBitmap swig_types[21]
231 #define SWIGTYPE_p_wxObject swig_types[22]
232 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
233 #define SWIGTYPE_p_wxRect swig_types[24]
234 #define SWIGTYPE_p_wxString swig_types[25]
235 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
236 #define SWIGTYPE_p_wxIconBundle swig_types[27]
237 #define SWIGTYPE_p_wxPoint swig_types[28]
238 #define SWIGTYPE_p_wxDash swig_types[29]
239 #define SWIGTYPE_p_wxScreenDC swig_types[30]
240 #define SWIGTYPE_p_wxCursor swig_types[31]
241 #define SWIGTYPE_p_wxClientDC swig_types[32]
242 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
243 #define SWIGTYPE_p_wxImageList swig_types[34]
244 #define SWIGTYPE_p_unsigned_char swig_types[35]
245 #define SWIGTYPE_p_wxGDIObject swig_types[36]
246 #define SWIGTYPE_p_wxIcon swig_types[37]
247 #define SWIGTYPE_p_wxLocale swig_types[38]
248 #define SWIGTYPE_p_wxRegion swig_types[39]
249 #define SWIGTYPE_p_wxConfigBase swig_types[40]
250 #define SWIGTYPE_p_wxLanguageInfo 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_wxPyPen swig_types[50]
260 #define SWIGTYPE_p_int swig_types[51]
261 #define SWIGTYPE_p_wxMetaFile swig_types[52]
262 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
263 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
264 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
265 static swig_type_info *swig_types[57];
266
267 /* -------- TYPES TABLE (END) -------- */
268
269
270 /*-----------------------------------------------
271 @(target):= _gdi_.so
272 ------------------------------------------------*/
273 #define SWIG_init init_gdi_
274
275 #define SWIG_name "_gdi_"
276
277 /* Auxiliar swig macros */
278
279 #ifdef __cplusplus
280 #define SWIGSTATICINLINE(a) static inline a
281 #define SWIGSTATIC(a) static a
282 #define swig_new_array(type, size) (new type[(size)])
283 #define swig_delete_array(cptr) delete[] cptr
284 #define swig_const_cast(type,a) const_cast<type>(a)
285 #define swig_static_cast(type,a) static_cast<type>(a)
286 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
287
288 #ifdef HAVE_NUMERIC_CAST
289 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
290 #else
291 #define swig_numeric_cast(type,a) static_cast<type>(a)
292 #endif
293
294 #else /* C case */
295
296 #define SWIGSTATICINLINE(a) static a
297 #define SWIGSTATIC(a) static a
298 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
299 #define swig_delete_array(cptr) free((char*)cptr)
300 #define swig_const_cast(type,a) (type)(a)
301 #define swig_static_cast(type,a) (type)(a)
302 #define swig_reinterpret_cast(type,a) (type)(a)
303 #define swig_numeric_cast(type,a) (type)(a)
304
305 #endif /* __cplusplus */
306
307
308 #define SWIG_FromSignedChar PyInt_FromLong
309 #define SWIG_FromUnsignedChar PyInt_FromLong
310 #define SWIG_FromShort PyInt_FromLong
311 #define SWIG_FromUnsignedShort PyInt_FromLong
312 #define SWIG_FromInt PyInt_FromLong
313 #define SWIG_FromLong PyInt_FromLong
314 #define SWIG_FromFloat PyFloat_FromDouble
315 #define SWIG_FromDouble PyFloat_FromDouble
316 #define SWIG_FromFloat PyFloat_FromDouble
317 #define SWIG_FromDouble PyFloat_FromDouble
318
319
320 #include "wx/wxPython/wxPython.h"
321 #include "wx/wxPython/pyclasses.h"
322
323
324 static const wxString wxPyEmptyString(wxEmptyString);
325
326 SWIGSTATICINLINE(bool)
327 SWIG_AsBool(PyObject *obj)
328 {
329 return PyObject_IsTrue(obj) ? true : false;
330 }
331
332
333 SWIGSTATICINLINE(int)
334 SWIG_CheckBool(PyObject* obj)
335 {
336 SWIG_AsBool(obj);
337 if (PyErr_Occurred()) {
338 PyErr_Clear();
339 return 0;
340 } else {
341 return 1;
342 }
343 }
344
345
346 #include <limits.h>
347
348
349 SWIGSTATICINLINE(unsigned long)
350 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
351 unsigned long max_value)
352 {
353 if (!PyErr_Occurred()) {
354 if (value > max_value) {
355 PyObject *err =
356 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
357 value, type, max_value);
358 PyErr_SetObject(PyExc_OverflowError, err);
359 Py_DECREF(err);
360 }
361 }
362 return value;
363 }
364
365
366 SWIGSTATICINLINE(long)
367 SWIG_AsLong(PyObject * obj)
368 {
369 if (PyNumber_Check(obj))
370 return PyInt_AsLong(obj);
371 else {
372 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
373 obj->ob_type->tp_name);
374 PyErr_SetObject(PyExc_TypeError, errmsg);
375 Py_DECREF(errmsg);
376 return 0;
377 }
378 }
379
380
381 SWIGSTATICINLINE(unsigned long)
382 SWIG_AsUnsignedLong(PyObject * obj)
383 {
384 if (PyLong_Check(obj)) {
385 return PyLong_AsUnsignedLong(obj);
386 } else {
387 long i = SWIG_AsLong(obj);
388 if ( !PyErr_Occurred() && (i < 0)) {
389 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
390 }
391 return i;
392 }
393 }
394
395
396 SWIGSTATICINLINE(unsigned char)
397 SWIG_AsUnsignedChar(PyObject *obj)
398 {
399 return swig_numeric_cast(unsigned char,
400 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
401 "unsigned char", UCHAR_MAX));
402 }
403
404
405 SWIGSTATICINLINE(int)
406 SWIG_CheckUnsignedChar(PyObject* obj)
407 {
408 SWIG_AsUnsignedChar(obj);
409 if (PyErr_Occurred()) {
410 PyErr_Clear();
411 return 0;
412 } else {
413 return 1;
414 }
415 }
416
417
418 SWIGSTATICINLINE(int)
419 SWIG_CheckUnsignedLong(PyObject* obj)
420 {
421 SWIG_AsUnsignedLong(obj);
422 if (PyErr_Occurred()) {
423 PyErr_Clear();
424 return 0;
425 } else {
426 return 1;
427 }
428 }
429
430 PyObject *wxColour_Get(wxColour *self){
431 PyObject* rv = PyTuple_New(3);
432 int red = -1;
433 int green = -1;
434 int blue = -1;
435 if (self->Ok()) {
436 red = self->Red();
437 green = self->Green();
438 blue = self->Blue();
439 }
440 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
441 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
442 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
443 return rv;
444 }
445 unsigned long wxColour_GetRGB(wxColour *self){
446 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
447 }
448
449 SWIGSTATICINLINE(PyObject* )
450 SWIG_FromUnsignedLong(unsigned long value)
451 {
452 return (value > LONG_MAX) ?
453 PyLong_FromUnsignedLong(value)
454 : PyInt_FromLong(swig_numeric_cast(long,value));
455 }
456
457
458 SWIGSTATICINLINE(long)
459 SWIG_CheckLongInRange(long value, const char* type,
460 long min_value, long max_value)
461 {
462 if (!PyErr_Occurred()) {
463 if (value < min_value) {
464 PyObject *err =
465 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
466 value, type, min_value);
467
468 PyErr_SetObject(PyExc_OverflowError, err);
469 Py_DECREF(err);
470 } else if (value > max_value) {
471 PyObject *err =
472 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
473 value, type, max_value);
474 PyErr_SetObject(PyExc_OverflowError, err);
475 Py_DECREF(err);
476 }
477 }
478 return value;
479 }
480
481
482 #if INT_MAX != LONG_MAX
483 SWIGSTATICINLINE(int)
484 SWIG_AsInt(PyObject *obj)
485 {
486 return swig_numeric_cast(int,
487 SWIG_CheckLongInRange(SWIG_AsLong(obj),
488 "int", INT_MIN, INT_MAX));
489 }
490 #else
491 #define SWIG_AsInt SWIG_AsLong
492 #endif
493
494
495 SWIGSTATICINLINE(int)
496 SWIG_CheckInt(PyObject* obj)
497 {
498 SWIG_AsInt(obj);
499 if (PyErr_Occurred()) {
500 PyErr_Clear();
501 return 0;
502 } else {
503 return 1;
504 }
505 }
506
507
508 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
509 PyObject* o2;
510 PyObject* o3;
511
512 if (!target) {
513 target = o;
514 } else if (target == Py_None) {
515 Py_DECREF(Py_None);
516 target = o;
517 } else {
518 if (!PyTuple_Check(target)) {
519 o2 = target;
520 target = PyTuple_New(1);
521 PyTuple_SetItem(target, 0, o2);
522 }
523 o3 = PyTuple_New(1);
524 PyTuple_SetItem(o3, 0, o);
525
526 o2 = target;
527 target = PySequence_Concat(o2, o3);
528 Py_DECREF(o2);
529 Py_DECREF(o3);
530 }
531 return target;
532 }
533
534 PyObject *wxPen_GetDashes(wxPen *self){
535 wxDash* dashes;
536 int count = self->GetDashes(&dashes);
537 bool blocked = wxPyBeginBlockThreads();
538 PyObject* retval = PyList_New(0);
539 for (int x=0; x<count; x++)
540 PyList_Append(retval, PyInt_FromLong(dashes[x]));
541 wxPyEndBlockThreads(blocked);
542 return retval;
543 }
544 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
545 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
546
547 wxPyPen::~wxPyPen()
548 {
549 if (m_dash)
550 delete [] m_dash;
551 }
552
553 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
554 {
555 if (m_dash)
556 delete [] m_dash;
557 m_dash = new wxDash[nb_dashes];
558 for (int i=0; i<nb_dashes; i++) {
559 m_dash[i] = dash[i];
560 }
561 wxPen::SetDashes(nb_dashes, m_dash);
562 }
563
564
565 #include <wx/image.h>
566
567 static char** ConvertListOfStrings(PyObject* listOfStrings) {
568 char** cArray = NULL;
569 int count;
570
571 if (!PyList_Check(listOfStrings)) {
572 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
573 return NULL;
574 }
575 count = PyList_Size(listOfStrings);
576 cArray = new char*[count];
577
578 for(int x=0; x<count; x++) {
579 // TODO: Need some validation and error checking here
580 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
581 }
582 return cArray;
583 }
584
585
586 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
587 char** cArray = NULL;
588 wxBitmap* bmp;
589
590 cArray = ConvertListOfStrings(listOfStrings);
591 if (! cArray)
592 return NULL;
593 bmp = new wxBitmap(cArray);
594 delete [] cArray;
595 return bmp;
596 }
597 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
598 char* buf;
599 int length;
600 PyString_AsStringAndSize(bits, &buf, &length);
601 return new wxBitmap(buf, width, height, depth);
602 }
603 wxBitmap *new_wxBitmap__SWIG_0(int width,int height,int depth){
604 return new wxBitmap(width, height, depth);
605 }
606 wxBitmap *new_wxBitmap__SWIG_1(wxSize const &size,int depth){
607 return new wxBitmap(size.x, size.y, depth);
608 }
609 wxSize wxBitmap_GetSize(wxBitmap *self){
610 wxSize size(self->GetWidth(), self->GetHeight());
611 return size;
612 }
613 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
614 wxMask *mask = new wxMask(*self, colour);
615 self->SetMask(mask);
616 }
617 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
618 self->SetWidth(size.x);
619 self->SetHeight(size.y);
620 }
621 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
622 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
623 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
624 if ( !colour.Ok() )
625 return new wxMask(bitmap, *wxBLACK);
626 else
627 return new wxMask(bitmap, colour);
628 }
629
630 #include <wx/iconbndl.h>
631
632 wxIcon *new_wxIcon(wxBitmap const &bmp){
633 wxIcon* icon = new wxIcon();
634 icon->CopyFromBitmap(bmp);
635 return icon;
636 }
637 wxIcon *new_wxIcon(PyObject *listOfStrings){
638 char** cArray = NULL;
639 wxIcon* icon;
640
641 cArray = ConvertListOfStrings(listOfStrings);
642 if (! cArray)
643 return NULL;
644 icon = new wxIcon(cArray);
645 delete [] cArray;
646 return icon;
647 }
648 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
649
650
651
652 return new wxIconLocation(*filename);
653
654 }
655 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
656
657
658
659 // do nothing
660
661 }
662 int wxIconLocation_GetIndex(wxIconLocation *self){
663
664
665
666 return -1;
667
668 }
669
670 SWIGSTATICINLINE(int)
671 SWIG_CheckLong(PyObject* obj)
672 {
673 SWIG_AsLong(obj);
674 if (PyErr_Occurred()) {
675 PyErr_Clear();
676 return 0;
677 } else {
678 return 1;
679 }
680 }
681
682 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
683 #ifdef __WXGTK__
684 wxCHECK_MSG(False, NULL,
685 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
686 #else
687 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
688 #endif
689 }
690
691
692 void wxRegionIterator_Next(wxRegionIterator *self){
693 (*self) ++;
694 }
695 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
696 return self->operator bool();
697 }
698
699 #include <wx/fontutil.h>
700 #include <wx/fontmap.h>
701 #include <wx/fontenum.h>
702
703 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
704 return self->ToString();
705 }
706
707 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
708 static wxNativeEncodingInfo info;
709 if ( wxGetNativeFontEncoding(encoding, &info) )
710 return &info;
711 else
712 return NULL;
713 }
714
715 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
716 wxFontEncoding alt_enc;
717 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
718 return PyInt_FromLong(alt_enc);
719 else {
720 Py_INCREF(Py_None);
721 return Py_None;
722 }
723 }
724 wxFont *new_wxFont(wxString const &info){
725 wxNativeFontInfo nfi;
726 nfi.FromString(info);
727 return new wxFont(nfi);
728 }
729 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
730 return wxFont::New(pointSize, family, flags, face, encoding);
731 }
732 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
733 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
734
735 class wxPyFontEnumerator : public wxFontEnumerator {
736 public:
737 wxPyFontEnumerator() {}
738 ~wxPyFontEnumerator() {}
739
740 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
741 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
742
743 PYPRIVATE;
744 };
745
746 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
747 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
748
749
750 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
751 wxArrayString* arr = self->GetEncodings();
752 return wxArrayString2PyList_helper(*arr);
753 }
754 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
755 wxArrayString* arr = self->GetFacenames();
756 return wxArrayString2PyList_helper(*arr);
757 }
758
759
760
761 #include "wx/wxPython/pydrawxxx.h"
762
763 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
764 wxColour col;
765 self->GetPixel(x, y, &col);
766 return col;
767 }
768 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
769 wxColour col;
770 self->GetPixel(pt, &col);
771 return col;
772 }
773
774 SWIGSTATICINLINE(double)
775 SWIG_AsDouble(PyObject *obj)
776 {
777 if (PyNumber_Check(obj))
778 return PyFloat_AsDouble(obj);
779 else {
780 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
781 obj->ob_type->tp_name);
782 PyErr_SetObject(PyExc_TypeError, errmsg);
783 Py_DECREF(errmsg);
784 return 0;
785 }
786 }
787
788
789 SWIGSTATICINLINE(int)
790 SWIG_CheckDouble(PyObject* obj)
791 {
792 SWIG_AsDouble(obj);
793 if (PyErr_Occurred()) {
794 PyErr_Clear();
795 return 0;
796 } else {
797 return 1;
798 }
799 }
800
801 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
802 wxRect rv;
803 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
804 return rv;
805 }
806 wxRect wxDC_GetClippingRect(wxDC *self){
807 wxRect rect;
808 self->GetClippingBox(rect);
809 return rect;
810 }
811 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
812 wxArrayInt widths;
813 self->GetPartialTextExtents(text, widths);
814 return widths;
815 }
816 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
817 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
818 }
819 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
820 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
821 }
822 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
823 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
824 }
825 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
826 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
827 }
828 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
829 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
830 }
831 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
832 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
833 }
834
835 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
836 *x1 = dc->MinX();
837 *y1 = dc->MinY();
838 *x2 = dc->MaxX();
839 *y2 = dc->MaxY();
840 }
841
842
843 #include <wx/dcbuffer.h>
844
845
846 #include <wx/dcps.h>
847
848
849 class wxMetaFile : public wxObject {
850 public:
851 wxMetaFile(const wxString&)
852 { wxPyRaiseNotImplemented(); }
853 };
854
855 class wxMetaFileDC : public wxClientDC {
856 public:
857 wxMetaFileDC(const wxString&, int, int, const wxString&)
858 { wxPyRaiseNotImplemented(); }
859 };
860
861
862
863 class wxPrinterDC : public wxClientDC {
864 public:
865 wxPrinterDC(const wxPrintData&)
866 { wxPyRaiseNotImplemented(); }
867
868 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
869 // { wxPyRaiseNotImplemented(); }
870 };
871
872
873
874 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
875 self->AddColour(name, wxColour(red, green, blue));
876 }
877
878 #include <wx/effects.h>
879
880 #ifdef __cplusplus
881 extern "C" {
882 #endif
883 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
884 PyObject *resultobj;
885 wxGDIObject *result;
886 char *kwnames[] = {
887 NULL
888 };
889
890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
891 {
892 PyThreadState* __tstate = wxPyBeginAllowThreads();
893 result = (wxGDIObject *)new wxGDIObject();
894
895 wxPyEndAllowThreads(__tstate);
896 if (PyErr_Occurred()) SWIG_fail;
897 }
898 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
899 return resultobj;
900 fail:
901 return NULL;
902 }
903
904
905 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
906 PyObject *resultobj;
907 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
908 PyObject * obj0 = 0 ;
909 char *kwnames[] = {
910 (char *) "self", NULL
911 };
912
913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
916 {
917 PyThreadState* __tstate = wxPyBeginAllowThreads();
918 delete arg1;
919
920 wxPyEndAllowThreads(__tstate);
921 if (PyErr_Occurred()) SWIG_fail;
922 }
923 Py_INCREF(Py_None); resultobj = Py_None;
924 return resultobj;
925 fail:
926 return NULL;
927 }
928
929
930 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
931 PyObject *resultobj;
932 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
933 bool result;
934 PyObject * obj0 = 0 ;
935 char *kwnames[] = {
936 (char *) "self", NULL
937 };
938
939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
942 {
943 PyThreadState* __tstate = wxPyBeginAllowThreads();
944 result = (bool)(arg1)->GetVisible();
945
946 wxPyEndAllowThreads(__tstate);
947 if (PyErr_Occurred()) SWIG_fail;
948 }
949 {
950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
951 }
952 return resultobj;
953 fail:
954 return NULL;
955 }
956
957
958 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
959 PyObject *resultobj;
960 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
961 bool arg2 ;
962 PyObject * obj0 = 0 ;
963 PyObject * obj1 = 0 ;
964 char *kwnames[] = {
965 (char *) "self",(char *) "visible", NULL
966 };
967
968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
971 arg2 = (bool) SWIG_AsBool(obj1);
972 if (PyErr_Occurred()) SWIG_fail;
973 {
974 PyThreadState* __tstate = wxPyBeginAllowThreads();
975 (arg1)->SetVisible(arg2);
976
977 wxPyEndAllowThreads(__tstate);
978 if (PyErr_Occurred()) SWIG_fail;
979 }
980 Py_INCREF(Py_None); resultobj = Py_None;
981 return resultobj;
982 fail:
983 return NULL;
984 }
985
986
987 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
988 PyObject *resultobj;
989 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
990 bool result;
991 PyObject * obj0 = 0 ;
992 char *kwnames[] = {
993 (char *) "self", NULL
994 };
995
996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
999 {
1000 PyThreadState* __tstate = wxPyBeginAllowThreads();
1001 result = (bool)(arg1)->IsNull();
1002
1003 wxPyEndAllowThreads(__tstate);
1004 if (PyErr_Occurred()) SWIG_fail;
1005 }
1006 {
1007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1008 }
1009 return resultobj;
1010 fail:
1011 return NULL;
1012 }
1013
1014
1015 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1016 PyObject *obj;
1017 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1018 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1019 Py_INCREF(obj);
1020 return Py_BuildValue((char *)"");
1021 }
1022 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1023 PyObject *resultobj;
1024 unsigned char arg1 = (unsigned char) 0 ;
1025 unsigned char arg2 = (unsigned char) 0 ;
1026 unsigned char arg3 = (unsigned char) 0 ;
1027 wxColour *result;
1028 PyObject * obj0 = 0 ;
1029 PyObject * obj1 = 0 ;
1030 PyObject * obj2 = 0 ;
1031 char *kwnames[] = {
1032 (char *) "red",(char *) "green",(char *) "blue", NULL
1033 };
1034
1035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1036 if (obj0) {
1037 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1038 if (PyErr_Occurred()) SWIG_fail;
1039 }
1040 if (obj1) {
1041 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1042 if (PyErr_Occurred()) SWIG_fail;
1043 }
1044 if (obj2) {
1045 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1046 if (PyErr_Occurred()) SWIG_fail;
1047 }
1048 {
1049 PyThreadState* __tstate = wxPyBeginAllowThreads();
1050 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1051
1052 wxPyEndAllowThreads(__tstate);
1053 if (PyErr_Occurred()) SWIG_fail;
1054 }
1055 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1056 return resultobj;
1057 fail:
1058 return NULL;
1059 }
1060
1061
1062 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1063 PyObject *resultobj;
1064 wxString *arg1 = 0 ;
1065 wxColour *result;
1066 bool temp1 = False ;
1067 PyObject * obj0 = 0 ;
1068 char *kwnames[] = {
1069 (char *) "colorName", NULL
1070 };
1071
1072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1073 {
1074 arg1 = wxString_in_helper(obj0);
1075 if (arg1 == NULL) SWIG_fail;
1076 temp1 = True;
1077 }
1078 {
1079 PyThreadState* __tstate = wxPyBeginAllowThreads();
1080 result = (wxColour *)new wxColour((wxString const &)*arg1);
1081
1082 wxPyEndAllowThreads(__tstate);
1083 if (PyErr_Occurred()) SWIG_fail;
1084 }
1085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1086 {
1087 if (temp1)
1088 delete arg1;
1089 }
1090 return resultobj;
1091 fail:
1092 {
1093 if (temp1)
1094 delete arg1;
1095 }
1096 return NULL;
1097 }
1098
1099
1100 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1101 PyObject *resultobj;
1102 unsigned long arg1 ;
1103 wxColour *result;
1104 PyObject * obj0 = 0 ;
1105 char *kwnames[] = {
1106 (char *) "colRGB", NULL
1107 };
1108
1109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1110 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1111 if (PyErr_Occurred()) SWIG_fail;
1112 {
1113 PyThreadState* __tstate = wxPyBeginAllowThreads();
1114 result = (wxColour *)new wxColour(arg1);
1115
1116 wxPyEndAllowThreads(__tstate);
1117 if (PyErr_Occurred()) SWIG_fail;
1118 }
1119 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1120 return resultobj;
1121 fail:
1122 return NULL;
1123 }
1124
1125
1126 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1127 PyObject *resultobj;
1128 wxColour *arg1 = (wxColour *) 0 ;
1129 PyObject * obj0 = 0 ;
1130 char *kwnames[] = {
1131 (char *) "self", NULL
1132 };
1133
1134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1137 {
1138 PyThreadState* __tstate = wxPyBeginAllowThreads();
1139 delete arg1;
1140
1141 wxPyEndAllowThreads(__tstate);
1142 if (PyErr_Occurred()) SWIG_fail;
1143 }
1144 Py_INCREF(Py_None); resultobj = Py_None;
1145 return resultobj;
1146 fail:
1147 return NULL;
1148 }
1149
1150
1151 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1152 PyObject *resultobj;
1153 wxColour *arg1 = (wxColour *) 0 ;
1154 unsigned char result;
1155 PyObject * obj0 = 0 ;
1156 char *kwnames[] = {
1157 (char *) "self", NULL
1158 };
1159
1160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1163 {
1164 PyThreadState* __tstate = wxPyBeginAllowThreads();
1165 result = (unsigned char)(arg1)->Red();
1166
1167 wxPyEndAllowThreads(__tstate);
1168 if (PyErr_Occurred()) SWIG_fail;
1169 }
1170 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1171 return resultobj;
1172 fail:
1173 return NULL;
1174 }
1175
1176
1177 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1178 PyObject *resultobj;
1179 wxColour *arg1 = (wxColour *) 0 ;
1180 unsigned char result;
1181 PyObject * obj0 = 0 ;
1182 char *kwnames[] = {
1183 (char *) "self", NULL
1184 };
1185
1186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1189 {
1190 PyThreadState* __tstate = wxPyBeginAllowThreads();
1191 result = (unsigned char)(arg1)->Green();
1192
1193 wxPyEndAllowThreads(__tstate);
1194 if (PyErr_Occurred()) SWIG_fail;
1195 }
1196 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1197 return resultobj;
1198 fail:
1199 return NULL;
1200 }
1201
1202
1203 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1204 PyObject *resultobj;
1205 wxColour *arg1 = (wxColour *) 0 ;
1206 unsigned char result;
1207 PyObject * obj0 = 0 ;
1208 char *kwnames[] = {
1209 (char *) "self", NULL
1210 };
1211
1212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1215 {
1216 PyThreadState* __tstate = wxPyBeginAllowThreads();
1217 result = (unsigned char)(arg1)->Blue();
1218
1219 wxPyEndAllowThreads(__tstate);
1220 if (PyErr_Occurred()) SWIG_fail;
1221 }
1222 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1223 return resultobj;
1224 fail:
1225 return NULL;
1226 }
1227
1228
1229 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1230 PyObject *resultobj;
1231 wxColour *arg1 = (wxColour *) 0 ;
1232 bool result;
1233 PyObject * obj0 = 0 ;
1234 char *kwnames[] = {
1235 (char *) "self", NULL
1236 };
1237
1238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1241 {
1242 PyThreadState* __tstate = wxPyBeginAllowThreads();
1243 result = (bool)(arg1)->Ok();
1244
1245 wxPyEndAllowThreads(__tstate);
1246 if (PyErr_Occurred()) SWIG_fail;
1247 }
1248 {
1249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1250 }
1251 return resultobj;
1252 fail:
1253 return NULL;
1254 }
1255
1256
1257 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1258 PyObject *resultobj;
1259 wxColour *arg1 = (wxColour *) 0 ;
1260 unsigned char arg2 ;
1261 unsigned char arg3 ;
1262 unsigned char arg4 ;
1263 PyObject * obj0 = 0 ;
1264 PyObject * obj1 = 0 ;
1265 PyObject * obj2 = 0 ;
1266 PyObject * obj3 = 0 ;
1267 char *kwnames[] = {
1268 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1269 };
1270
1271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1274 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1275 if (PyErr_Occurred()) SWIG_fail;
1276 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1277 if (PyErr_Occurred()) SWIG_fail;
1278 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1279 if (PyErr_Occurred()) SWIG_fail;
1280 {
1281 PyThreadState* __tstate = wxPyBeginAllowThreads();
1282 (arg1)->Set(arg2,arg3,arg4);
1283
1284 wxPyEndAllowThreads(__tstate);
1285 if (PyErr_Occurred()) SWIG_fail;
1286 }
1287 Py_INCREF(Py_None); resultobj = Py_None;
1288 return resultobj;
1289 fail:
1290 return NULL;
1291 }
1292
1293
1294 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1295 PyObject *resultobj;
1296 wxColour *arg1 = (wxColour *) 0 ;
1297 unsigned long arg2 ;
1298 PyObject * obj0 = 0 ;
1299 PyObject * obj1 = 0 ;
1300 char *kwnames[] = {
1301 (char *) "self",(char *) "colRGB", NULL
1302 };
1303
1304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1307 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1308 if (PyErr_Occurred()) SWIG_fail;
1309 {
1310 PyThreadState* __tstate = wxPyBeginAllowThreads();
1311 (arg1)->Set(arg2);
1312
1313 wxPyEndAllowThreads(__tstate);
1314 if (PyErr_Occurred()) SWIG_fail;
1315 }
1316 Py_INCREF(Py_None); resultobj = Py_None;
1317 return resultobj;
1318 fail:
1319 return NULL;
1320 }
1321
1322
1323 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1324 PyObject *resultobj;
1325 wxColour *arg1 = (wxColour *) 0 ;
1326 wxString *arg2 = 0 ;
1327 bool temp2 = False ;
1328 PyObject * obj0 = 0 ;
1329 PyObject * obj1 = 0 ;
1330 char *kwnames[] = {
1331 (char *) "self",(char *) "colourName", NULL
1332 };
1333
1334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1337 {
1338 arg2 = wxString_in_helper(obj1);
1339 if (arg2 == NULL) SWIG_fail;
1340 temp2 = True;
1341 }
1342 {
1343 PyThreadState* __tstate = wxPyBeginAllowThreads();
1344 (arg1)->InitFromName((wxString const &)*arg2);
1345
1346 wxPyEndAllowThreads(__tstate);
1347 if (PyErr_Occurred()) SWIG_fail;
1348 }
1349 Py_INCREF(Py_None); resultobj = Py_None;
1350 {
1351 if (temp2)
1352 delete arg2;
1353 }
1354 return resultobj;
1355 fail:
1356 {
1357 if (temp2)
1358 delete arg2;
1359 }
1360 return NULL;
1361 }
1362
1363
1364 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1365 PyObject *resultobj;
1366 wxColour *arg1 = (wxColour *) 0 ;
1367 long result;
1368 PyObject * obj0 = 0 ;
1369 char *kwnames[] = {
1370 (char *) "self", NULL
1371 };
1372
1373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1376 {
1377 PyThreadState* __tstate = wxPyBeginAllowThreads();
1378 result = (long)((wxColour const *)arg1)->GetPixel();
1379
1380 wxPyEndAllowThreads(__tstate);
1381 if (PyErr_Occurred()) SWIG_fail;
1382 }
1383 resultobj = SWIG_FromLong((long)result);
1384 return resultobj;
1385 fail:
1386 return NULL;
1387 }
1388
1389
1390 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1391 PyObject *resultobj;
1392 wxColour *arg1 = (wxColour *) 0 ;
1393 wxColour *arg2 = 0 ;
1394 bool result;
1395 wxColour temp2 ;
1396 PyObject * obj0 = 0 ;
1397 PyObject * obj1 = 0 ;
1398 char *kwnames[] = {
1399 (char *) "self",(char *) "colour", NULL
1400 };
1401
1402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1405 {
1406 arg2 = &temp2;
1407 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1408 }
1409 {
1410 PyThreadState* __tstate = wxPyBeginAllowThreads();
1411 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1412
1413 wxPyEndAllowThreads(__tstate);
1414 if (PyErr_Occurred()) SWIG_fail;
1415 }
1416 {
1417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1418 }
1419 return resultobj;
1420 fail:
1421 return NULL;
1422 }
1423
1424
1425 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1426 PyObject *resultobj;
1427 wxColour *arg1 = (wxColour *) 0 ;
1428 wxColour *arg2 = 0 ;
1429 bool result;
1430 wxColour temp2 ;
1431 PyObject * obj0 = 0 ;
1432 PyObject * obj1 = 0 ;
1433 char *kwnames[] = {
1434 (char *) "self",(char *) "colour", NULL
1435 };
1436
1437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1440 {
1441 arg2 = &temp2;
1442 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1443 }
1444 {
1445 PyThreadState* __tstate = wxPyBeginAllowThreads();
1446 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1447
1448 wxPyEndAllowThreads(__tstate);
1449 if (PyErr_Occurred()) SWIG_fail;
1450 }
1451 {
1452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1453 }
1454 return resultobj;
1455 fail:
1456 return NULL;
1457 }
1458
1459
1460 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1461 PyObject *resultobj;
1462 wxColour *arg1 = (wxColour *) 0 ;
1463 PyObject *result;
1464 PyObject * obj0 = 0 ;
1465 char *kwnames[] = {
1466 (char *) "self", NULL
1467 };
1468
1469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1472 {
1473 PyThreadState* __tstate = wxPyBeginAllowThreads();
1474 result = (PyObject *)wxColour_Get(arg1);
1475
1476 wxPyEndAllowThreads(__tstate);
1477 if (PyErr_Occurred()) SWIG_fail;
1478 }
1479 resultobj = result;
1480 return resultobj;
1481 fail:
1482 return NULL;
1483 }
1484
1485
1486 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1487 PyObject *resultobj;
1488 wxColour *arg1 = (wxColour *) 0 ;
1489 unsigned long result;
1490 PyObject * obj0 = 0 ;
1491 char *kwnames[] = {
1492 (char *) "self", NULL
1493 };
1494
1495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1498 {
1499 PyThreadState* __tstate = wxPyBeginAllowThreads();
1500 result = (unsigned long)wxColour_GetRGB(arg1);
1501
1502 wxPyEndAllowThreads(__tstate);
1503 if (PyErr_Occurred()) SWIG_fail;
1504 }
1505 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1506 return resultobj;
1507 fail:
1508 return NULL;
1509 }
1510
1511
1512 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1513 PyObject *obj;
1514 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1515 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1516 Py_INCREF(obj);
1517 return Py_BuildValue((char *)"");
1518 }
1519 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1520 PyObject *resultobj;
1521 int arg1 ;
1522 unsigned char *arg2 = (unsigned char *) 0 ;
1523 unsigned char *arg3 = (unsigned char *) 0 ;
1524 unsigned char *arg4 = (unsigned char *) 0 ;
1525 wxPalette *result;
1526 PyObject * obj0 = 0 ;
1527 PyObject * obj1 = 0 ;
1528 PyObject * obj2 = 0 ;
1529 PyObject * obj3 = 0 ;
1530 char *kwnames[] = {
1531 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1532 };
1533
1534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1535 arg1 = (int) SWIG_AsInt(obj0);
1536 if (PyErr_Occurred()) SWIG_fail;
1537 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1539 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1541 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1543 {
1544 PyThreadState* __tstate = wxPyBeginAllowThreads();
1545 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1546
1547 wxPyEndAllowThreads(__tstate);
1548 if (PyErr_Occurred()) SWIG_fail;
1549 }
1550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1551 return resultobj;
1552 fail:
1553 return NULL;
1554 }
1555
1556
1557 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1558 PyObject *resultobj;
1559 wxPalette *arg1 = (wxPalette *) 0 ;
1560 PyObject * obj0 = 0 ;
1561 char *kwnames[] = {
1562 (char *) "self", NULL
1563 };
1564
1565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1568 {
1569 PyThreadState* __tstate = wxPyBeginAllowThreads();
1570 delete arg1;
1571
1572 wxPyEndAllowThreads(__tstate);
1573 if (PyErr_Occurred()) SWIG_fail;
1574 }
1575 Py_INCREF(Py_None); resultobj = Py_None;
1576 return resultobj;
1577 fail:
1578 return NULL;
1579 }
1580
1581
1582 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1583 PyObject *resultobj;
1584 wxPalette *arg1 = (wxPalette *) 0 ;
1585 byte arg2 ;
1586 byte arg3 ;
1587 byte arg4 ;
1588 int result;
1589 PyObject * obj0 = 0 ;
1590 PyObject * obj1 = 0 ;
1591 PyObject * obj2 = 0 ;
1592 PyObject * obj3 = 0 ;
1593 char *kwnames[] = {
1594 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1595 };
1596
1597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1600 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1601 if (PyErr_Occurred()) SWIG_fail;
1602 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1603 if (PyErr_Occurred()) SWIG_fail;
1604 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1605 if (PyErr_Occurred()) SWIG_fail;
1606 {
1607 PyThreadState* __tstate = wxPyBeginAllowThreads();
1608 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1609
1610 wxPyEndAllowThreads(__tstate);
1611 if (PyErr_Occurred()) SWIG_fail;
1612 }
1613 resultobj = SWIG_FromInt((int)result);
1614 return resultobj;
1615 fail:
1616 return NULL;
1617 }
1618
1619
1620 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1621 PyObject *resultobj;
1622 wxPalette *arg1 = (wxPalette *) 0 ;
1623 int arg2 ;
1624 byte *arg3 = (byte *) 0 ;
1625 byte *arg4 = (byte *) 0 ;
1626 byte *arg5 = (byte *) 0 ;
1627 bool result;
1628 byte temp3 ;
1629 byte temp4 ;
1630 byte temp5 ;
1631 PyObject * obj0 = 0 ;
1632 PyObject * obj1 = 0 ;
1633 char *kwnames[] = {
1634 (char *) "self",(char *) "pixel", NULL
1635 };
1636
1637 arg3 = &temp3;
1638 arg4 = &temp4;
1639 arg5 = &temp5;
1640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1643 arg2 = (int) SWIG_AsInt(obj1);
1644 if (PyErr_Occurred()) SWIG_fail;
1645 {
1646 PyThreadState* __tstate = wxPyBeginAllowThreads();
1647 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1648
1649 wxPyEndAllowThreads(__tstate);
1650 if (PyErr_Occurred()) SWIG_fail;
1651 }
1652 {
1653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1654 }
1655 {
1656 PyObject *o = PyInt_FromLong((long) (*arg3));
1657 resultobj = t_output_helper(resultobj,o);
1658 }
1659 {
1660 PyObject *o = PyInt_FromLong((long) (*arg4));
1661 resultobj = t_output_helper(resultobj,o);
1662 }
1663 {
1664 PyObject *o = PyInt_FromLong((long) (*arg5));
1665 resultobj = t_output_helper(resultobj,o);
1666 }
1667 return resultobj;
1668 fail:
1669 return NULL;
1670 }
1671
1672
1673 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1674 PyObject *resultobj;
1675 wxPalette *arg1 = (wxPalette *) 0 ;
1676 bool result;
1677 PyObject * obj0 = 0 ;
1678 char *kwnames[] = {
1679 (char *) "self", NULL
1680 };
1681
1682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1685 {
1686 PyThreadState* __tstate = wxPyBeginAllowThreads();
1687 result = (bool)(arg1)->Ok();
1688
1689 wxPyEndAllowThreads(__tstate);
1690 if (PyErr_Occurred()) SWIG_fail;
1691 }
1692 {
1693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1694 }
1695 return resultobj;
1696 fail:
1697 return NULL;
1698 }
1699
1700
1701 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1702 PyObject *obj;
1703 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1704 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1705 Py_INCREF(obj);
1706 return Py_BuildValue((char *)"");
1707 }
1708 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1709 PyObject *resultobj;
1710 wxColour *arg1 = 0 ;
1711 int arg2 = (int) 1 ;
1712 int arg3 = (int) wxSOLID ;
1713 wxPen *result;
1714 wxColour temp1 ;
1715 PyObject * obj0 = 0 ;
1716 PyObject * obj1 = 0 ;
1717 PyObject * obj2 = 0 ;
1718 char *kwnames[] = {
1719 (char *) "colour",(char *) "width",(char *) "style", NULL
1720 };
1721
1722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1723 {
1724 arg1 = &temp1;
1725 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1726 }
1727 if (obj1) {
1728 arg2 = (int) SWIG_AsInt(obj1);
1729 if (PyErr_Occurred()) SWIG_fail;
1730 }
1731 if (obj2) {
1732 arg3 = (int) SWIG_AsInt(obj2);
1733 if (PyErr_Occurred()) SWIG_fail;
1734 }
1735 {
1736 PyThreadState* __tstate = wxPyBeginAllowThreads();
1737 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1738
1739 wxPyEndAllowThreads(__tstate);
1740 if (PyErr_Occurred()) SWIG_fail;
1741 }
1742 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1743 return resultobj;
1744 fail:
1745 return NULL;
1746 }
1747
1748
1749 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1750 PyObject *resultobj;
1751 wxPen *arg1 = (wxPen *) 0 ;
1752 PyObject * obj0 = 0 ;
1753 char *kwnames[] = {
1754 (char *) "self", NULL
1755 };
1756
1757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1760 {
1761 PyThreadState* __tstate = wxPyBeginAllowThreads();
1762 delete arg1;
1763
1764 wxPyEndAllowThreads(__tstate);
1765 if (PyErr_Occurred()) SWIG_fail;
1766 }
1767 Py_INCREF(Py_None); resultobj = Py_None;
1768 return resultobj;
1769 fail:
1770 return NULL;
1771 }
1772
1773
1774 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1775 PyObject *resultobj;
1776 wxPen *arg1 = (wxPen *) 0 ;
1777 int result;
1778 PyObject * obj0 = 0 ;
1779 char *kwnames[] = {
1780 (char *) "self", NULL
1781 };
1782
1783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1786 {
1787 PyThreadState* __tstate = wxPyBeginAllowThreads();
1788 result = (int)(arg1)->GetCap();
1789
1790 wxPyEndAllowThreads(__tstate);
1791 if (PyErr_Occurred()) SWIG_fail;
1792 }
1793 resultobj = SWIG_FromInt((int)result);
1794 return resultobj;
1795 fail:
1796 return NULL;
1797 }
1798
1799
1800 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1801 PyObject *resultobj;
1802 wxPen *arg1 = (wxPen *) 0 ;
1803 wxColour result;
1804 PyObject * obj0 = 0 ;
1805 char *kwnames[] = {
1806 (char *) "self", NULL
1807 };
1808
1809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1812 {
1813 PyThreadState* __tstate = wxPyBeginAllowThreads();
1814 result = (arg1)->GetColour();
1815
1816 wxPyEndAllowThreads(__tstate);
1817 if (PyErr_Occurred()) SWIG_fail;
1818 }
1819 {
1820 wxColour * resultptr;
1821 resultptr = new wxColour((wxColour &) result);
1822 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1823 }
1824 return resultobj;
1825 fail:
1826 return NULL;
1827 }
1828
1829
1830 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1831 PyObject *resultobj;
1832 wxPen *arg1 = (wxPen *) 0 ;
1833 int result;
1834 PyObject * obj0 = 0 ;
1835 char *kwnames[] = {
1836 (char *) "self", NULL
1837 };
1838
1839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1842 {
1843 PyThreadState* __tstate = wxPyBeginAllowThreads();
1844 result = (int)(arg1)->GetJoin();
1845
1846 wxPyEndAllowThreads(__tstate);
1847 if (PyErr_Occurred()) SWIG_fail;
1848 }
1849 resultobj = SWIG_FromInt((int)result);
1850 return resultobj;
1851 fail:
1852 return NULL;
1853 }
1854
1855
1856 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1857 PyObject *resultobj;
1858 wxPen *arg1 = (wxPen *) 0 ;
1859 int result;
1860 PyObject * obj0 = 0 ;
1861 char *kwnames[] = {
1862 (char *) "self", NULL
1863 };
1864
1865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1868 {
1869 PyThreadState* __tstate = wxPyBeginAllowThreads();
1870 result = (int)(arg1)->GetStyle();
1871
1872 wxPyEndAllowThreads(__tstate);
1873 if (PyErr_Occurred()) SWIG_fail;
1874 }
1875 resultobj = SWIG_FromInt((int)result);
1876 return resultobj;
1877 fail:
1878 return NULL;
1879 }
1880
1881
1882 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1883 PyObject *resultobj;
1884 wxPen *arg1 = (wxPen *) 0 ;
1885 int result;
1886 PyObject * obj0 = 0 ;
1887 char *kwnames[] = {
1888 (char *) "self", NULL
1889 };
1890
1891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1894 {
1895 PyThreadState* __tstate = wxPyBeginAllowThreads();
1896 result = (int)(arg1)->GetWidth();
1897
1898 wxPyEndAllowThreads(__tstate);
1899 if (PyErr_Occurred()) SWIG_fail;
1900 }
1901 resultobj = SWIG_FromInt((int)result);
1902 return resultobj;
1903 fail:
1904 return NULL;
1905 }
1906
1907
1908 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1909 PyObject *resultobj;
1910 wxPen *arg1 = (wxPen *) 0 ;
1911 bool result;
1912 PyObject * obj0 = 0 ;
1913 char *kwnames[] = {
1914 (char *) "self", NULL
1915 };
1916
1917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1920 {
1921 PyThreadState* __tstate = wxPyBeginAllowThreads();
1922 result = (bool)(arg1)->Ok();
1923
1924 wxPyEndAllowThreads(__tstate);
1925 if (PyErr_Occurred()) SWIG_fail;
1926 }
1927 {
1928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1929 }
1930 return resultobj;
1931 fail:
1932 return NULL;
1933 }
1934
1935
1936 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1937 PyObject *resultobj;
1938 wxPen *arg1 = (wxPen *) 0 ;
1939 int arg2 ;
1940 PyObject * obj0 = 0 ;
1941 PyObject * obj1 = 0 ;
1942 char *kwnames[] = {
1943 (char *) "self",(char *) "cap_style", NULL
1944 };
1945
1946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1949 arg2 = (int) SWIG_AsInt(obj1);
1950 if (PyErr_Occurred()) SWIG_fail;
1951 {
1952 PyThreadState* __tstate = wxPyBeginAllowThreads();
1953 (arg1)->SetCap(arg2);
1954
1955 wxPyEndAllowThreads(__tstate);
1956 if (PyErr_Occurred()) SWIG_fail;
1957 }
1958 Py_INCREF(Py_None); resultobj = Py_None;
1959 return resultobj;
1960 fail:
1961 return NULL;
1962 }
1963
1964
1965 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1966 PyObject *resultobj;
1967 wxPen *arg1 = (wxPen *) 0 ;
1968 wxColour *arg2 = 0 ;
1969 wxColour temp2 ;
1970 PyObject * obj0 = 0 ;
1971 PyObject * obj1 = 0 ;
1972 char *kwnames[] = {
1973 (char *) "self",(char *) "colour", NULL
1974 };
1975
1976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1979 {
1980 arg2 = &temp2;
1981 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1982 }
1983 {
1984 PyThreadState* __tstate = wxPyBeginAllowThreads();
1985 (arg1)->SetColour(*arg2);
1986
1987 wxPyEndAllowThreads(__tstate);
1988 if (PyErr_Occurred()) SWIG_fail;
1989 }
1990 Py_INCREF(Py_None); resultobj = Py_None;
1991 return resultobj;
1992 fail:
1993 return NULL;
1994 }
1995
1996
1997 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1998 PyObject *resultobj;
1999 wxPen *arg1 = (wxPen *) 0 ;
2000 int arg2 ;
2001 PyObject * obj0 = 0 ;
2002 PyObject * obj1 = 0 ;
2003 char *kwnames[] = {
2004 (char *) "self",(char *) "join_style", NULL
2005 };
2006
2007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2010 arg2 = (int) SWIG_AsInt(obj1);
2011 if (PyErr_Occurred()) SWIG_fail;
2012 {
2013 PyThreadState* __tstate = wxPyBeginAllowThreads();
2014 (arg1)->SetJoin(arg2);
2015
2016 wxPyEndAllowThreads(__tstate);
2017 if (PyErr_Occurred()) SWIG_fail;
2018 }
2019 Py_INCREF(Py_None); resultobj = Py_None;
2020 return resultobj;
2021 fail:
2022 return NULL;
2023 }
2024
2025
2026 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2027 PyObject *resultobj;
2028 wxPen *arg1 = (wxPen *) 0 ;
2029 int arg2 ;
2030 PyObject * obj0 = 0 ;
2031 PyObject * obj1 = 0 ;
2032 char *kwnames[] = {
2033 (char *) "self",(char *) "style", NULL
2034 };
2035
2036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2039 arg2 = (int) SWIG_AsInt(obj1);
2040 if (PyErr_Occurred()) SWIG_fail;
2041 {
2042 PyThreadState* __tstate = wxPyBeginAllowThreads();
2043 (arg1)->SetStyle(arg2);
2044
2045 wxPyEndAllowThreads(__tstate);
2046 if (PyErr_Occurred()) SWIG_fail;
2047 }
2048 Py_INCREF(Py_None); resultobj = Py_None;
2049 return resultobj;
2050 fail:
2051 return NULL;
2052 }
2053
2054
2055 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2056 PyObject *resultobj;
2057 wxPen *arg1 = (wxPen *) 0 ;
2058 int arg2 ;
2059 PyObject * obj0 = 0 ;
2060 PyObject * obj1 = 0 ;
2061 char *kwnames[] = {
2062 (char *) "self",(char *) "width", NULL
2063 };
2064
2065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2068 arg2 = (int) SWIG_AsInt(obj1);
2069 if (PyErr_Occurred()) SWIG_fail;
2070 {
2071 PyThreadState* __tstate = wxPyBeginAllowThreads();
2072 (arg1)->SetWidth(arg2);
2073
2074 wxPyEndAllowThreads(__tstate);
2075 if (PyErr_Occurred()) SWIG_fail;
2076 }
2077 Py_INCREF(Py_None); resultobj = Py_None;
2078 return resultobj;
2079 fail:
2080 return NULL;
2081 }
2082
2083
2084 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2085 PyObject *resultobj;
2086 wxPen *arg1 = (wxPen *) 0 ;
2087 int arg2 ;
2088 wxDash *arg3 = (wxDash *) 0 ;
2089 PyObject * obj0 = 0 ;
2090 PyObject * obj1 = 0 ;
2091 char *kwnames[] = {
2092 (char *) "self",(char *) "dashes", NULL
2093 };
2094
2095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2098 {
2099 arg2 = PyList_Size(obj1);
2100 arg3 = (wxDash*)byte_LIST_helper(obj1);
2101 if (arg3 == NULL) SWIG_fail;
2102 }
2103 {
2104 PyThreadState* __tstate = wxPyBeginAllowThreads();
2105 (arg1)->SetDashes(arg2,arg3);
2106
2107 wxPyEndAllowThreads(__tstate);
2108 if (PyErr_Occurred()) SWIG_fail;
2109 }
2110 Py_INCREF(Py_None); resultobj = Py_None;
2111 {
2112 if (arg3) delete [] arg3;
2113 }
2114 return resultobj;
2115 fail:
2116 {
2117 if (arg3) delete [] arg3;
2118 }
2119 return NULL;
2120 }
2121
2122
2123 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2124 PyObject *resultobj;
2125 wxPen *arg1 = (wxPen *) 0 ;
2126 PyObject *result;
2127 PyObject * obj0 = 0 ;
2128 char *kwnames[] = {
2129 (char *) "self", NULL
2130 };
2131
2132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2135 {
2136 PyThreadState* __tstate = wxPyBeginAllowThreads();
2137 result = (PyObject *)wxPen_GetDashes(arg1);
2138
2139 wxPyEndAllowThreads(__tstate);
2140 if (PyErr_Occurred()) SWIG_fail;
2141 }
2142 resultobj = result;
2143 return resultobj;
2144 fail:
2145 return NULL;
2146 }
2147
2148
2149 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2150 PyObject *resultobj;
2151 wxPen *arg1 = (wxPen *) 0 ;
2152 wxPen *arg2 = (wxPen *) 0 ;
2153 bool result;
2154 PyObject * obj0 = 0 ;
2155 PyObject * obj1 = 0 ;
2156 char *kwnames[] = {
2157 (char *) "self",(char *) "other", NULL
2158 };
2159
2160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2163 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2165 {
2166 PyThreadState* __tstate = wxPyBeginAllowThreads();
2167 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2168
2169 wxPyEndAllowThreads(__tstate);
2170 if (PyErr_Occurred()) SWIG_fail;
2171 }
2172 {
2173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2174 }
2175 return resultobj;
2176 fail:
2177 return NULL;
2178 }
2179
2180
2181 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2182 PyObject *resultobj;
2183 wxPen *arg1 = (wxPen *) 0 ;
2184 wxPen *arg2 = (wxPen *) 0 ;
2185 bool result;
2186 PyObject * obj0 = 0 ;
2187 PyObject * obj1 = 0 ;
2188 char *kwnames[] = {
2189 (char *) "self",(char *) "other", NULL
2190 };
2191
2192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2195 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2197 {
2198 PyThreadState* __tstate = wxPyBeginAllowThreads();
2199 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2200
2201 wxPyEndAllowThreads(__tstate);
2202 if (PyErr_Occurred()) SWIG_fail;
2203 }
2204 {
2205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2206 }
2207 return resultobj;
2208 fail:
2209 return NULL;
2210 }
2211
2212
2213 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2214 PyObject *resultobj;
2215 wxPen *arg1 = (wxPen *) 0 ;
2216 int result;
2217 PyObject * obj0 = 0 ;
2218 char *kwnames[] = {
2219 (char *) "self", NULL
2220 };
2221
2222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2225 {
2226 PyThreadState* __tstate = wxPyBeginAllowThreads();
2227 result = (int)((wxPen const *)arg1)->GetDashCount();
2228
2229 wxPyEndAllowThreads(__tstate);
2230 if (PyErr_Occurred()) SWIG_fail;
2231 }
2232 resultobj = SWIG_FromInt((int)result);
2233 return resultobj;
2234 fail:
2235 return NULL;
2236 }
2237
2238
2239 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2240 PyObject *obj;
2241 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2242 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2243 Py_INCREF(obj);
2244 return Py_BuildValue((char *)"");
2245 }
2246 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2247 PyObject *resultobj;
2248 wxColour *arg1 = 0 ;
2249 int arg2 = (int) 1 ;
2250 int arg3 = (int) wxSOLID ;
2251 wxPyPen *result;
2252 wxColour temp1 ;
2253 PyObject * obj0 = 0 ;
2254 PyObject * obj1 = 0 ;
2255 PyObject * obj2 = 0 ;
2256 char *kwnames[] = {
2257 (char *) "colour",(char *) "width",(char *) "style", NULL
2258 };
2259
2260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2261 {
2262 arg1 = &temp1;
2263 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2264 }
2265 if (obj1) {
2266 arg2 = (int) SWIG_AsInt(obj1);
2267 if (PyErr_Occurred()) SWIG_fail;
2268 }
2269 if (obj2) {
2270 arg3 = (int) SWIG_AsInt(obj2);
2271 if (PyErr_Occurred()) SWIG_fail;
2272 }
2273 {
2274 PyThreadState* __tstate = wxPyBeginAllowThreads();
2275 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2276
2277 wxPyEndAllowThreads(__tstate);
2278 if (PyErr_Occurred()) SWIG_fail;
2279 }
2280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2281 return resultobj;
2282 fail:
2283 return NULL;
2284 }
2285
2286
2287 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2288 PyObject *resultobj;
2289 wxPyPen *arg1 = (wxPyPen *) 0 ;
2290 PyObject * obj0 = 0 ;
2291 char *kwnames[] = {
2292 (char *) "self", NULL
2293 };
2294
2295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2298 {
2299 PyThreadState* __tstate = wxPyBeginAllowThreads();
2300 delete arg1;
2301
2302 wxPyEndAllowThreads(__tstate);
2303 if (PyErr_Occurred()) SWIG_fail;
2304 }
2305 Py_INCREF(Py_None); resultobj = Py_None;
2306 return resultobj;
2307 fail:
2308 return NULL;
2309 }
2310
2311
2312 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2313 PyObject *resultobj;
2314 wxPyPen *arg1 = (wxPyPen *) 0 ;
2315 int arg2 ;
2316 wxDash *arg3 = (wxDash *) 0 ;
2317 PyObject * obj0 = 0 ;
2318 PyObject * obj1 = 0 ;
2319 char *kwnames[] = {
2320 (char *) "self",(char *) "dashes", NULL
2321 };
2322
2323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2326 {
2327 arg2 = PyList_Size(obj1);
2328 arg3 = (wxDash*)byte_LIST_helper(obj1);
2329 if (arg3 == NULL) SWIG_fail;
2330 }
2331 {
2332 PyThreadState* __tstate = wxPyBeginAllowThreads();
2333 (arg1)->SetDashes(arg2,arg3);
2334
2335 wxPyEndAllowThreads(__tstate);
2336 if (PyErr_Occurred()) SWIG_fail;
2337 }
2338 Py_INCREF(Py_None); resultobj = Py_None;
2339 {
2340 if (arg3) delete [] arg3;
2341 }
2342 return resultobj;
2343 fail:
2344 {
2345 if (arg3) delete [] arg3;
2346 }
2347 return NULL;
2348 }
2349
2350
2351 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2352 PyObject *obj;
2353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2354 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2355 Py_INCREF(obj);
2356 return Py_BuildValue((char *)"");
2357 }
2358 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2359 PyObject *resultobj;
2360 wxColour *arg1 = 0 ;
2361 int arg2 = (int) wxSOLID ;
2362 wxBrush *result;
2363 wxColour temp1 ;
2364 PyObject * obj0 = 0 ;
2365 PyObject * obj1 = 0 ;
2366 char *kwnames[] = {
2367 (char *) "colour",(char *) "style", NULL
2368 };
2369
2370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2371 {
2372 arg1 = &temp1;
2373 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2374 }
2375 if (obj1) {
2376 arg2 = (int) SWIG_AsInt(obj1);
2377 if (PyErr_Occurred()) SWIG_fail;
2378 }
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
2381 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2382
2383 wxPyEndAllowThreads(__tstate);
2384 if (PyErr_Occurred()) SWIG_fail;
2385 }
2386 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2387 return resultobj;
2388 fail:
2389 return NULL;
2390 }
2391
2392
2393 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2394 PyObject *resultobj;
2395 wxBrush *arg1 = (wxBrush *) 0 ;
2396 PyObject * obj0 = 0 ;
2397 char *kwnames[] = {
2398 (char *) "self", NULL
2399 };
2400
2401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 delete arg1;
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 Py_INCREF(Py_None); resultobj = Py_None;
2412 return resultobj;
2413 fail:
2414 return NULL;
2415 }
2416
2417
2418 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2419 PyObject *resultobj;
2420 wxBrush *arg1 = (wxBrush *) 0 ;
2421 wxColour *arg2 = 0 ;
2422 wxColour temp2 ;
2423 PyObject * obj0 = 0 ;
2424 PyObject * obj1 = 0 ;
2425 char *kwnames[] = {
2426 (char *) "self",(char *) "col", NULL
2427 };
2428
2429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2432 {
2433 arg2 = &temp2;
2434 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2435 }
2436 {
2437 PyThreadState* __tstate = wxPyBeginAllowThreads();
2438 (arg1)->SetColour((wxColour const &)*arg2);
2439
2440 wxPyEndAllowThreads(__tstate);
2441 if (PyErr_Occurred()) SWIG_fail;
2442 }
2443 Py_INCREF(Py_None); resultobj = Py_None;
2444 return resultobj;
2445 fail:
2446 return NULL;
2447 }
2448
2449
2450 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2451 PyObject *resultobj;
2452 wxBrush *arg1 = (wxBrush *) 0 ;
2453 int arg2 ;
2454 PyObject * obj0 = 0 ;
2455 PyObject * obj1 = 0 ;
2456 char *kwnames[] = {
2457 (char *) "self",(char *) "style", NULL
2458 };
2459
2460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2463 arg2 = (int) SWIG_AsInt(obj1);
2464 if (PyErr_Occurred()) SWIG_fail;
2465 {
2466 PyThreadState* __tstate = wxPyBeginAllowThreads();
2467 (arg1)->SetStyle(arg2);
2468
2469 wxPyEndAllowThreads(__tstate);
2470 if (PyErr_Occurred()) SWIG_fail;
2471 }
2472 Py_INCREF(Py_None); resultobj = Py_None;
2473 return resultobj;
2474 fail:
2475 return NULL;
2476 }
2477
2478
2479 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 wxBrush *arg1 = (wxBrush *) 0 ;
2482 wxBitmap *arg2 = 0 ;
2483 PyObject * obj0 = 0 ;
2484 PyObject * obj1 = 0 ;
2485 char *kwnames[] = {
2486 (char *) "self",(char *) "stipple", NULL
2487 };
2488
2489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2492 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2493 SWIG_POINTER_EXCEPTION | 0)) == -1)
2494 SWIG_fail;
2495 if (arg2 == NULL) {
2496 PyErr_SetString(PyExc_TypeError,"null reference");
2497 SWIG_fail;
2498 }
2499 {
2500 PyThreadState* __tstate = wxPyBeginAllowThreads();
2501 (arg1)->SetStipple((wxBitmap const &)*arg2);
2502
2503 wxPyEndAllowThreads(__tstate);
2504 if (PyErr_Occurred()) SWIG_fail;
2505 }
2506 Py_INCREF(Py_None); resultobj = Py_None;
2507 return resultobj;
2508 fail:
2509 return NULL;
2510 }
2511
2512
2513 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2514 PyObject *resultobj;
2515 wxBrush *arg1 = (wxBrush *) 0 ;
2516 wxColour result;
2517 PyObject * obj0 = 0 ;
2518 char *kwnames[] = {
2519 (char *) "self", NULL
2520 };
2521
2522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2525 {
2526 PyThreadState* __tstate = wxPyBeginAllowThreads();
2527 result = ((wxBrush const *)arg1)->GetColour();
2528
2529 wxPyEndAllowThreads(__tstate);
2530 if (PyErr_Occurred()) SWIG_fail;
2531 }
2532 {
2533 wxColour * resultptr;
2534 resultptr = new wxColour((wxColour &) result);
2535 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2536 }
2537 return resultobj;
2538 fail:
2539 return NULL;
2540 }
2541
2542
2543 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2544 PyObject *resultobj;
2545 wxBrush *arg1 = (wxBrush *) 0 ;
2546 int result;
2547 PyObject * obj0 = 0 ;
2548 char *kwnames[] = {
2549 (char *) "self", NULL
2550 };
2551
2552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2555 {
2556 PyThreadState* __tstate = wxPyBeginAllowThreads();
2557 result = (int)((wxBrush const *)arg1)->GetStyle();
2558
2559 wxPyEndAllowThreads(__tstate);
2560 if (PyErr_Occurred()) SWIG_fail;
2561 }
2562 resultobj = SWIG_FromInt((int)result);
2563 return resultobj;
2564 fail:
2565 return NULL;
2566 }
2567
2568
2569 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2570 PyObject *resultobj;
2571 wxBrush *arg1 = (wxBrush *) 0 ;
2572 wxBitmap *result;
2573 PyObject * obj0 = 0 ;
2574 char *kwnames[] = {
2575 (char *) "self", NULL
2576 };
2577
2578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2581 {
2582 PyThreadState* __tstate = wxPyBeginAllowThreads();
2583 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2584
2585 wxPyEndAllowThreads(__tstate);
2586 if (PyErr_Occurred()) SWIG_fail;
2587 }
2588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2589 return resultobj;
2590 fail:
2591 return NULL;
2592 }
2593
2594
2595 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2596 PyObject *resultobj;
2597 wxBrush *arg1 = (wxBrush *) 0 ;
2598 bool result;
2599 PyObject * obj0 = 0 ;
2600 char *kwnames[] = {
2601 (char *) "self", NULL
2602 };
2603
2604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2607 {
2608 PyThreadState* __tstate = wxPyBeginAllowThreads();
2609 result = (bool)(arg1)->Ok();
2610
2611 wxPyEndAllowThreads(__tstate);
2612 if (PyErr_Occurred()) SWIG_fail;
2613 }
2614 {
2615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2616 }
2617 return resultobj;
2618 fail:
2619 return NULL;
2620 }
2621
2622
2623 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2624 PyObject *obj;
2625 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2626 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2627 Py_INCREF(obj);
2628 return Py_BuildValue((char *)"");
2629 }
2630 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2631 PyObject *resultobj;
2632 wxString *arg1 = 0 ;
2633 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2634 wxBitmap *result;
2635 bool temp1 = False ;
2636 PyObject * obj0 = 0 ;
2637 PyObject * obj1 = 0 ;
2638 char *kwnames[] = {
2639 (char *) "name",(char *) "type", NULL
2640 };
2641
2642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2643 {
2644 arg1 = wxString_in_helper(obj0);
2645 if (arg1 == NULL) SWIG_fail;
2646 temp1 = True;
2647 }
2648 if (obj1) {
2649 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2650 if (PyErr_Occurred()) SWIG_fail;
2651 }
2652 {
2653 PyThreadState* __tstate = wxPyBeginAllowThreads();
2654 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2655
2656 wxPyEndAllowThreads(__tstate);
2657 if (PyErr_Occurred()) SWIG_fail;
2658 }
2659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2660 {
2661 if (temp1)
2662 delete arg1;
2663 }
2664 return resultobj;
2665 fail:
2666 {
2667 if (temp1)
2668 delete arg1;
2669 }
2670 return NULL;
2671 }
2672
2673
2674 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2675 PyObject *resultobj;
2676 wxBitmap *arg1 = (wxBitmap *) 0 ;
2677 PyObject * obj0 = 0 ;
2678 char *kwnames[] = {
2679 (char *) "self", NULL
2680 };
2681
2682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2685 {
2686 PyThreadState* __tstate = wxPyBeginAllowThreads();
2687 delete arg1;
2688
2689 wxPyEndAllowThreads(__tstate);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 }
2692 Py_INCREF(Py_None); resultobj = Py_None;
2693 return resultobj;
2694 fail:
2695 return NULL;
2696 }
2697
2698
2699 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2700 PyObject *resultobj;
2701 wxIcon *arg1 = 0 ;
2702 wxBitmap *result;
2703 PyObject * obj0 = 0 ;
2704 char *kwnames[] = {
2705 (char *) "icon", NULL
2706 };
2707
2708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2710 SWIG_POINTER_EXCEPTION | 0)) == -1)
2711 SWIG_fail;
2712 if (arg1 == NULL) {
2713 PyErr_SetString(PyExc_TypeError,"null reference");
2714 SWIG_fail;
2715 }
2716 {
2717 PyThreadState* __tstate = wxPyBeginAllowThreads();
2718 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2719
2720 wxPyEndAllowThreads(__tstate);
2721 if (PyErr_Occurred()) SWIG_fail;
2722 }
2723 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2724 return resultobj;
2725 fail:
2726 return NULL;
2727 }
2728
2729
2730 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2731 PyObject *resultobj;
2732 wxImage *arg1 = 0 ;
2733 int arg2 = (int) -1 ;
2734 wxBitmap *result;
2735 PyObject * obj0 = 0 ;
2736 PyObject * obj1 = 0 ;
2737 char *kwnames[] = {
2738 (char *) "image",(char *) "depth", NULL
2739 };
2740
2741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2743 SWIG_POINTER_EXCEPTION | 0)) == -1)
2744 SWIG_fail;
2745 if (arg1 == NULL) {
2746 PyErr_SetString(PyExc_TypeError,"null reference");
2747 SWIG_fail;
2748 }
2749 if (obj1) {
2750 arg2 = (int) SWIG_AsInt(obj1);
2751 if (PyErr_Occurred()) SWIG_fail;
2752 }
2753 {
2754 PyThreadState* __tstate = wxPyBeginAllowThreads();
2755 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2756
2757 wxPyEndAllowThreads(__tstate);
2758 if (PyErr_Occurred()) SWIG_fail;
2759 }
2760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2761 return resultobj;
2762 fail:
2763 return NULL;
2764 }
2765
2766
2767 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2768 PyObject *resultobj;
2769 PyObject *arg1 = (PyObject *) 0 ;
2770 wxBitmap *result;
2771 PyObject * obj0 = 0 ;
2772 char *kwnames[] = {
2773 (char *) "listOfStrings", NULL
2774 };
2775
2776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2777 arg1 = obj0;
2778 {
2779 PyThreadState* __tstate = wxPyBeginAllowThreads();
2780 result = (wxBitmap *)new_wxBitmap(arg1);
2781
2782 wxPyEndAllowThreads(__tstate);
2783 if (PyErr_Occurred()) SWIG_fail;
2784 }
2785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2786 return resultobj;
2787 fail:
2788 return NULL;
2789 }
2790
2791
2792 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2793 PyObject *resultobj;
2794 PyObject *arg1 = (PyObject *) 0 ;
2795 int arg2 ;
2796 int arg3 ;
2797 int arg4 = (int) 1 ;
2798 wxBitmap *result;
2799 PyObject * obj0 = 0 ;
2800 PyObject * obj1 = 0 ;
2801 PyObject * obj2 = 0 ;
2802 PyObject * obj3 = 0 ;
2803 char *kwnames[] = {
2804 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2805 };
2806
2807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2808 arg1 = obj0;
2809 arg2 = (int) SWIG_AsInt(obj1);
2810 if (PyErr_Occurred()) SWIG_fail;
2811 arg3 = (int) SWIG_AsInt(obj2);
2812 if (PyErr_Occurred()) SWIG_fail;
2813 if (obj3) {
2814 arg4 = (int) SWIG_AsInt(obj3);
2815 if (PyErr_Occurred()) SWIG_fail;
2816 }
2817 {
2818 PyThreadState* __tstate = wxPyBeginAllowThreads();
2819 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2820
2821 wxPyEndAllowThreads(__tstate);
2822 if (PyErr_Occurred()) SWIG_fail;
2823 }
2824 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2825 return resultobj;
2826 fail:
2827 return NULL;
2828 }
2829
2830
2831 static PyObject *_wrap_new_EmptyBitmap__SWIG_0(PyObject *self, PyObject *args) {
2832 PyObject *resultobj;
2833 int arg1 ;
2834 int arg2 ;
2835 int arg3 = (int) -1 ;
2836 wxBitmap *result;
2837 PyObject * obj0 = 0 ;
2838 PyObject * obj1 = 0 ;
2839 PyObject * obj2 = 0 ;
2840
2841 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_EmptyBitmap",&obj0,&obj1,&obj2)) goto fail;
2842 arg1 = (int) SWIG_AsInt(obj0);
2843 if (PyErr_Occurred()) SWIG_fail;
2844 arg2 = (int) SWIG_AsInt(obj1);
2845 if (PyErr_Occurred()) SWIG_fail;
2846 if (obj2) {
2847 arg3 = (int) SWIG_AsInt(obj2);
2848 if (PyErr_Occurred()) SWIG_fail;
2849 }
2850 {
2851 PyThreadState* __tstate = wxPyBeginAllowThreads();
2852 result = (wxBitmap *)new_wxBitmap__SWIG_0(arg1,arg2,arg3);
2853
2854 wxPyEndAllowThreads(__tstate);
2855 if (PyErr_Occurred()) SWIG_fail;
2856 }
2857 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2858 return resultobj;
2859 fail:
2860 return NULL;
2861 }
2862
2863
2864 static PyObject *_wrap_new_EmptyBitmap__SWIG_1(PyObject *self, PyObject *args) {
2865 PyObject *resultobj;
2866 wxSize *arg1 = 0 ;
2867 int arg2 = (int) -1 ;
2868 wxBitmap *result;
2869 wxSize temp1 ;
2870 PyObject * obj0 = 0 ;
2871 PyObject * obj1 = 0 ;
2872
2873 if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyBitmap",&obj0,&obj1)) goto fail;
2874 {
2875 arg1 = &temp1;
2876 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
2877 }
2878 if (obj1) {
2879 arg2 = (int) SWIG_AsInt(obj1);
2880 if (PyErr_Occurred()) SWIG_fail;
2881 }
2882 {
2883 PyThreadState* __tstate = wxPyBeginAllowThreads();
2884 result = (wxBitmap *)new_wxBitmap__SWIG_1((wxSize const &)*arg1,arg2);
2885
2886 wxPyEndAllowThreads(__tstate);
2887 if (PyErr_Occurred()) SWIG_fail;
2888 }
2889 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2890 return resultobj;
2891 fail:
2892 return NULL;
2893 }
2894
2895
2896 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args) {
2897 int argc;
2898 PyObject *argv[4];
2899 int ii;
2900
2901 argc = PyObject_Length(args);
2902 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
2903 argv[ii] = PyTuple_GetItem(args,ii);
2904 }
2905 if ((argc >= 1) && (argc <= 2)) {
2906 int _v;
2907 {
2908 _v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2);
2909 }
2910 if (_v) {
2911 if (argc <= 1) {
2912 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
2913 }
2914 _v = SWIG_CheckInt(argv[1]);
2915 if (_v) {
2916 return _wrap_new_EmptyBitmap__SWIG_1(self,args);
2917 }
2918 }
2919 }
2920 if ((argc >= 2) && (argc <= 3)) {
2921 int _v;
2922 _v = SWIG_CheckInt(argv[0]);
2923 if (_v) {
2924 _v = SWIG_CheckInt(argv[1]);
2925 if (_v) {
2926 if (argc <= 2) {
2927 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
2928 }
2929 _v = SWIG_CheckInt(argv[2]);
2930 if (_v) {
2931 return _wrap_new_EmptyBitmap__SWIG_0(self,args);
2932 }
2933 }
2934 }
2935 }
2936
2937 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyBitmap'");
2938 return NULL;
2939 }
2940
2941
2942 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2943 PyObject *resultobj;
2944 wxBitmap *arg1 = (wxBitmap *) 0 ;
2945 bool result;
2946 PyObject * obj0 = 0 ;
2947 char *kwnames[] = {
2948 (char *) "self", NULL
2949 };
2950
2951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2954 {
2955 PyThreadState* __tstate = wxPyBeginAllowThreads();
2956 result = (bool)(arg1)->Ok();
2957
2958 wxPyEndAllowThreads(__tstate);
2959 if (PyErr_Occurred()) SWIG_fail;
2960 }
2961 {
2962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2963 }
2964 return resultobj;
2965 fail:
2966 return NULL;
2967 }
2968
2969
2970 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2971 PyObject *resultobj;
2972 wxBitmap *arg1 = (wxBitmap *) 0 ;
2973 int result;
2974 PyObject * obj0 = 0 ;
2975 char *kwnames[] = {
2976 (char *) "self", NULL
2977 };
2978
2979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2982 {
2983 PyThreadState* __tstate = wxPyBeginAllowThreads();
2984 result = (int)(arg1)->GetWidth();
2985
2986 wxPyEndAllowThreads(__tstate);
2987 if (PyErr_Occurred()) SWIG_fail;
2988 }
2989 resultobj = SWIG_FromInt((int)result);
2990 return resultobj;
2991 fail:
2992 return NULL;
2993 }
2994
2995
2996 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2997 PyObject *resultobj;
2998 wxBitmap *arg1 = (wxBitmap *) 0 ;
2999 int result;
3000 PyObject * obj0 = 0 ;
3001 char *kwnames[] = {
3002 (char *) "self", NULL
3003 };
3004
3005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3008 {
3009 PyThreadState* __tstate = wxPyBeginAllowThreads();
3010 result = (int)(arg1)->GetHeight();
3011
3012 wxPyEndAllowThreads(__tstate);
3013 if (PyErr_Occurred()) SWIG_fail;
3014 }
3015 resultobj = SWIG_FromInt((int)result);
3016 return resultobj;
3017 fail:
3018 return NULL;
3019 }
3020
3021
3022 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3023 PyObject *resultobj;
3024 wxBitmap *arg1 = (wxBitmap *) 0 ;
3025 int result;
3026 PyObject * obj0 = 0 ;
3027 char *kwnames[] = {
3028 (char *) "self", NULL
3029 };
3030
3031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3034 {
3035 PyThreadState* __tstate = wxPyBeginAllowThreads();
3036 result = (int)(arg1)->GetDepth();
3037
3038 wxPyEndAllowThreads(__tstate);
3039 if (PyErr_Occurred()) SWIG_fail;
3040 }
3041 resultobj = SWIG_FromInt((int)result);
3042 return resultobj;
3043 fail:
3044 return NULL;
3045 }
3046
3047
3048 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3049 PyObject *resultobj;
3050 wxBitmap *arg1 = (wxBitmap *) 0 ;
3051 wxSize result;
3052 PyObject * obj0 = 0 ;
3053 char *kwnames[] = {
3054 (char *) "self", NULL
3055 };
3056
3057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3060 {
3061 PyThreadState* __tstate = wxPyBeginAllowThreads();
3062 result = wxBitmap_GetSize(arg1);
3063
3064 wxPyEndAllowThreads(__tstate);
3065 if (PyErr_Occurred()) SWIG_fail;
3066 }
3067 {
3068 wxSize * resultptr;
3069 resultptr = new wxSize((wxSize &) result);
3070 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3071 }
3072 return resultobj;
3073 fail:
3074 return NULL;
3075 }
3076
3077
3078 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3079 PyObject *resultobj;
3080 wxBitmap *arg1 = (wxBitmap *) 0 ;
3081 SwigValueWrapper< wxImage > result;
3082 PyObject * obj0 = 0 ;
3083 char *kwnames[] = {
3084 (char *) "self", NULL
3085 };
3086
3087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3090 {
3091 PyThreadState* __tstate = wxPyBeginAllowThreads();
3092 result = ((wxBitmap const *)arg1)->ConvertToImage();
3093
3094 wxPyEndAllowThreads(__tstate);
3095 if (PyErr_Occurred()) SWIG_fail;
3096 }
3097 {
3098 wxImage * resultptr;
3099 resultptr = new wxImage((wxImage &) result);
3100 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3101 }
3102 return resultobj;
3103 fail:
3104 return NULL;
3105 }
3106
3107
3108 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3109 PyObject *resultobj;
3110 wxBitmap *arg1 = (wxBitmap *) 0 ;
3111 wxMask *result;
3112 PyObject * obj0 = 0 ;
3113 char *kwnames[] = {
3114 (char *) "self", NULL
3115 };
3116
3117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3120 {
3121 PyThreadState* __tstate = wxPyBeginAllowThreads();
3122 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3123
3124 wxPyEndAllowThreads(__tstate);
3125 if (PyErr_Occurred()) SWIG_fail;
3126 }
3127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3128 return resultobj;
3129 fail:
3130 return NULL;
3131 }
3132
3133
3134 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3135 PyObject *resultobj;
3136 wxBitmap *arg1 = (wxBitmap *) 0 ;
3137 wxMask *arg2 = (wxMask *) 0 ;
3138 PyObject * obj0 = 0 ;
3139 PyObject * obj1 = 0 ;
3140 char *kwnames[] = {
3141 (char *) "self",(char *) "mask", NULL
3142 };
3143
3144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3147 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3149 {
3150 PyThreadState* __tstate = wxPyBeginAllowThreads();
3151 (arg1)->SetMask(arg2);
3152
3153 wxPyEndAllowThreads(__tstate);
3154 if (PyErr_Occurred()) SWIG_fail;
3155 }
3156 Py_INCREF(Py_None); resultobj = Py_None;
3157 return resultobj;
3158 fail:
3159 return NULL;
3160 }
3161
3162
3163 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3164 PyObject *resultobj;
3165 wxBitmap *arg1 = (wxBitmap *) 0 ;
3166 wxColour *arg2 = 0 ;
3167 wxColour temp2 ;
3168 PyObject * obj0 = 0 ;
3169 PyObject * obj1 = 0 ;
3170 char *kwnames[] = {
3171 (char *) "self",(char *) "colour", NULL
3172 };
3173
3174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3177 {
3178 arg2 = &temp2;
3179 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3180 }
3181 {
3182 PyThreadState* __tstate = wxPyBeginAllowThreads();
3183 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3184
3185 wxPyEndAllowThreads(__tstate);
3186 if (PyErr_Occurred()) SWIG_fail;
3187 }
3188 Py_INCREF(Py_None); resultobj = Py_None;
3189 return resultobj;
3190 fail:
3191 return NULL;
3192 }
3193
3194
3195 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3196 PyObject *resultobj;
3197 wxBitmap *arg1 = (wxBitmap *) 0 ;
3198 wxRect *arg2 = 0 ;
3199 SwigValueWrapper< wxBitmap > result;
3200 wxRect temp2 ;
3201 PyObject * obj0 = 0 ;
3202 PyObject * obj1 = 0 ;
3203 char *kwnames[] = {
3204 (char *) "self",(char *) "rect", NULL
3205 };
3206
3207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3210 {
3211 arg2 = &temp2;
3212 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3213 }
3214 {
3215 PyThreadState* __tstate = wxPyBeginAllowThreads();
3216 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3217
3218 wxPyEndAllowThreads(__tstate);
3219 if (PyErr_Occurred()) SWIG_fail;
3220 }
3221 {
3222 wxBitmap * resultptr;
3223 resultptr = new wxBitmap((wxBitmap &) result);
3224 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3225 }
3226 return resultobj;
3227 fail:
3228 return NULL;
3229 }
3230
3231
3232 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3233 PyObject *resultobj;
3234 wxBitmap *arg1 = (wxBitmap *) 0 ;
3235 wxString *arg2 = 0 ;
3236 int arg3 ;
3237 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3238 bool result;
3239 bool temp2 = False ;
3240 PyObject * obj0 = 0 ;
3241 PyObject * obj1 = 0 ;
3242 PyObject * obj2 = 0 ;
3243 PyObject * obj3 = 0 ;
3244 char *kwnames[] = {
3245 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3246 };
3247
3248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3251 {
3252 arg2 = wxString_in_helper(obj1);
3253 if (arg2 == NULL) SWIG_fail;
3254 temp2 = True;
3255 }
3256 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3257 if (PyErr_Occurred()) SWIG_fail;
3258 if (obj3) {
3259 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3261 }
3262 {
3263 PyThreadState* __tstate = wxPyBeginAllowThreads();
3264 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3265
3266 wxPyEndAllowThreads(__tstate);
3267 if (PyErr_Occurred()) SWIG_fail;
3268 }
3269 {
3270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3271 }
3272 {
3273 if (temp2)
3274 delete arg2;
3275 }
3276 return resultobj;
3277 fail:
3278 {
3279 if (temp2)
3280 delete arg2;
3281 }
3282 return NULL;
3283 }
3284
3285
3286 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3287 PyObject *resultobj;
3288 wxBitmap *arg1 = (wxBitmap *) 0 ;
3289 wxString *arg2 = 0 ;
3290 int arg3 ;
3291 bool result;
3292 bool temp2 = False ;
3293 PyObject * obj0 = 0 ;
3294 PyObject * obj1 = 0 ;
3295 PyObject * obj2 = 0 ;
3296 char *kwnames[] = {
3297 (char *) "self",(char *) "name",(char *) "type", NULL
3298 };
3299
3300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3303 {
3304 arg2 = wxString_in_helper(obj1);
3305 if (arg2 == NULL) SWIG_fail;
3306 temp2 = True;
3307 }
3308 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3309 if (PyErr_Occurred()) SWIG_fail;
3310 {
3311 PyThreadState* __tstate = wxPyBeginAllowThreads();
3312 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3313
3314 wxPyEndAllowThreads(__tstate);
3315 if (PyErr_Occurred()) SWIG_fail;
3316 }
3317 {
3318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3319 }
3320 {
3321 if (temp2)
3322 delete arg2;
3323 }
3324 return resultobj;
3325 fail:
3326 {
3327 if (temp2)
3328 delete arg2;
3329 }
3330 return NULL;
3331 }
3332
3333
3334 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3335 PyObject *resultobj;
3336 wxBitmap *arg1 = (wxBitmap *) 0 ;
3337 wxIcon *arg2 = 0 ;
3338 bool result;
3339 PyObject * obj0 = 0 ;
3340 PyObject * obj1 = 0 ;
3341 char *kwnames[] = {
3342 (char *) "self",(char *) "icon", NULL
3343 };
3344
3345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3349 SWIG_POINTER_EXCEPTION | 0)) == -1)
3350 SWIG_fail;
3351 if (arg2 == NULL) {
3352 PyErr_SetString(PyExc_TypeError,"null reference");
3353 SWIG_fail;
3354 }
3355 {
3356 PyThreadState* __tstate = wxPyBeginAllowThreads();
3357 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3358
3359 wxPyEndAllowThreads(__tstate);
3360 if (PyErr_Occurred()) SWIG_fail;
3361 }
3362 {
3363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3364 }
3365 return resultobj;
3366 fail:
3367 return NULL;
3368 }
3369
3370
3371 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3372 PyObject *resultobj;
3373 wxBitmap *arg1 = (wxBitmap *) 0 ;
3374 int arg2 ;
3375 PyObject * obj0 = 0 ;
3376 PyObject * obj1 = 0 ;
3377 char *kwnames[] = {
3378 (char *) "self",(char *) "height", NULL
3379 };
3380
3381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3384 arg2 = (int) SWIG_AsInt(obj1);
3385 if (PyErr_Occurred()) SWIG_fail;
3386 {
3387 PyThreadState* __tstate = wxPyBeginAllowThreads();
3388 (arg1)->SetHeight(arg2);
3389
3390 wxPyEndAllowThreads(__tstate);
3391 if (PyErr_Occurred()) SWIG_fail;
3392 }
3393 Py_INCREF(Py_None); resultobj = Py_None;
3394 return resultobj;
3395 fail:
3396 return NULL;
3397 }
3398
3399
3400 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3401 PyObject *resultobj;
3402 wxBitmap *arg1 = (wxBitmap *) 0 ;
3403 int arg2 ;
3404 PyObject * obj0 = 0 ;
3405 PyObject * obj1 = 0 ;
3406 char *kwnames[] = {
3407 (char *) "self",(char *) "width", NULL
3408 };
3409
3410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3413 arg2 = (int) SWIG_AsInt(obj1);
3414 if (PyErr_Occurred()) SWIG_fail;
3415 {
3416 PyThreadState* __tstate = wxPyBeginAllowThreads();
3417 (arg1)->SetWidth(arg2);
3418
3419 wxPyEndAllowThreads(__tstate);
3420 if (PyErr_Occurred()) SWIG_fail;
3421 }
3422 Py_INCREF(Py_None); resultobj = Py_None;
3423 return resultobj;
3424 fail:
3425 return NULL;
3426 }
3427
3428
3429 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3430 PyObject *resultobj;
3431 wxBitmap *arg1 = (wxBitmap *) 0 ;
3432 int arg2 ;
3433 PyObject * obj0 = 0 ;
3434 PyObject * obj1 = 0 ;
3435 char *kwnames[] = {
3436 (char *) "self",(char *) "depth", NULL
3437 };
3438
3439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3442 arg2 = (int) SWIG_AsInt(obj1);
3443 if (PyErr_Occurred()) SWIG_fail;
3444 {
3445 PyThreadState* __tstate = wxPyBeginAllowThreads();
3446 (arg1)->SetDepth(arg2);
3447
3448 wxPyEndAllowThreads(__tstate);
3449 if (PyErr_Occurred()) SWIG_fail;
3450 }
3451 Py_INCREF(Py_None); resultobj = Py_None;
3452 return resultobj;
3453 fail:
3454 return NULL;
3455 }
3456
3457
3458 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3459 PyObject *resultobj;
3460 wxBitmap *arg1 = (wxBitmap *) 0 ;
3461 wxSize *arg2 = 0 ;
3462 wxSize temp2 ;
3463 PyObject * obj0 = 0 ;
3464 PyObject * obj1 = 0 ;
3465 char *kwnames[] = {
3466 (char *) "self",(char *) "size", NULL
3467 };
3468
3469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3472 {
3473 arg2 = &temp2;
3474 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3475 }
3476 {
3477 PyThreadState* __tstate = wxPyBeginAllowThreads();
3478 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3479
3480 wxPyEndAllowThreads(__tstate);
3481 if (PyErr_Occurred()) SWIG_fail;
3482 }
3483 Py_INCREF(Py_None); resultobj = Py_None;
3484 return resultobj;
3485 fail:
3486 return NULL;
3487 }
3488
3489
3490 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3491 PyObject *resultobj;
3492 wxBitmap *arg1 = (wxBitmap *) 0 ;
3493 wxBitmap *arg2 = (wxBitmap *) 0 ;
3494 bool result;
3495 PyObject * obj0 = 0 ;
3496 PyObject * obj1 = 0 ;
3497 char *kwnames[] = {
3498 (char *) "self",(char *) "other", NULL
3499 };
3500
3501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3504 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3506 {
3507 PyThreadState* __tstate = wxPyBeginAllowThreads();
3508 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3509
3510 wxPyEndAllowThreads(__tstate);
3511 if (PyErr_Occurred()) SWIG_fail;
3512 }
3513 {
3514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3515 }
3516 return resultobj;
3517 fail:
3518 return NULL;
3519 }
3520
3521
3522 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3523 PyObject *resultobj;
3524 wxBitmap *arg1 = (wxBitmap *) 0 ;
3525 wxBitmap *arg2 = (wxBitmap *) 0 ;
3526 bool result;
3527 PyObject * obj0 = 0 ;
3528 PyObject * obj1 = 0 ;
3529 char *kwnames[] = {
3530 (char *) "self",(char *) "other", NULL
3531 };
3532
3533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3536 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3538 {
3539 PyThreadState* __tstate = wxPyBeginAllowThreads();
3540 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3541
3542 wxPyEndAllowThreads(__tstate);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 }
3545 {
3546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3547 }
3548 return resultobj;
3549 fail:
3550 return NULL;
3551 }
3552
3553
3554 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3555 PyObject *obj;
3556 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3557 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3558 Py_INCREF(obj);
3559 return Py_BuildValue((char *)"");
3560 }
3561 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3562 PyObject *resultobj;
3563 wxBitmap *arg1 = 0 ;
3564 wxColour const &arg2_defvalue = wxNullColour ;
3565 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3566 wxMask *result;
3567 wxColour temp2 ;
3568 PyObject * obj0 = 0 ;
3569 PyObject * obj1 = 0 ;
3570 char *kwnames[] = {
3571 (char *) "bitmap",(char *) "colour", NULL
3572 };
3573
3574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3576 SWIG_POINTER_EXCEPTION | 0)) == -1)
3577 SWIG_fail;
3578 if (arg1 == NULL) {
3579 PyErr_SetString(PyExc_TypeError,"null reference");
3580 SWIG_fail;
3581 }
3582 if (obj1) {
3583 {
3584 arg2 = &temp2;
3585 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3586 }
3587 }
3588 {
3589 PyThreadState* __tstate = wxPyBeginAllowThreads();
3590 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3591
3592 wxPyEndAllowThreads(__tstate);
3593 if (PyErr_Occurred()) SWIG_fail;
3594 }
3595 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3596 return resultobj;
3597 fail:
3598 return NULL;
3599 }
3600
3601
3602 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3603 PyObject *obj;
3604 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3605 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3606 Py_INCREF(obj);
3607 return Py_BuildValue((char *)"");
3608 }
3609 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3610 PyObject *resultobj;
3611 wxString *arg1 = 0 ;
3612 int arg2 ;
3613 int arg3 = (int) -1 ;
3614 int arg4 = (int) -1 ;
3615 wxIcon *result;
3616 bool temp1 = False ;
3617 PyObject * obj0 = 0 ;
3618 PyObject * obj1 = 0 ;
3619 PyObject * obj2 = 0 ;
3620 PyObject * obj3 = 0 ;
3621 char *kwnames[] = {
3622 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3623 };
3624
3625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3626 {
3627 arg1 = wxString_in_helper(obj0);
3628 if (arg1 == NULL) SWIG_fail;
3629 temp1 = True;
3630 }
3631 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3632 if (PyErr_Occurred()) SWIG_fail;
3633 if (obj2) {
3634 arg3 = (int) SWIG_AsInt(obj2);
3635 if (PyErr_Occurred()) SWIG_fail;
3636 }
3637 if (obj3) {
3638 arg4 = (int) SWIG_AsInt(obj3);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 {
3642 PyThreadState* __tstate = wxPyBeginAllowThreads();
3643 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3644
3645 wxPyEndAllowThreads(__tstate);
3646 if (PyErr_Occurred()) SWIG_fail;
3647 }
3648 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3649 {
3650 if (temp1)
3651 delete arg1;
3652 }
3653 return resultobj;
3654 fail:
3655 {
3656 if (temp1)
3657 delete arg1;
3658 }
3659 return NULL;
3660 }
3661
3662
3663 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3664 PyObject *resultobj;
3665 wxIcon *arg1 = (wxIcon *) 0 ;
3666 PyObject * obj0 = 0 ;
3667 char *kwnames[] = {
3668 (char *) "self", NULL
3669 };
3670
3671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3674 {
3675 PyThreadState* __tstate = wxPyBeginAllowThreads();
3676 delete arg1;
3677
3678 wxPyEndAllowThreads(__tstate);
3679 if (PyErr_Occurred()) SWIG_fail;
3680 }
3681 Py_INCREF(Py_None); resultobj = Py_None;
3682 return resultobj;
3683 fail:
3684 return NULL;
3685 }
3686
3687
3688 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3689 PyObject *resultobj;
3690 wxIcon *result;
3691 char *kwnames[] = {
3692 NULL
3693 };
3694
3695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3696 {
3697 PyThreadState* __tstate = wxPyBeginAllowThreads();
3698 result = (wxIcon *)new wxIcon();
3699
3700 wxPyEndAllowThreads(__tstate);
3701 if (PyErr_Occurred()) SWIG_fail;
3702 }
3703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3704 return resultobj;
3705 fail:
3706 return NULL;
3707 }
3708
3709
3710 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3711 PyObject *resultobj;
3712 wxIconLocation *arg1 = 0 ;
3713 wxIcon *result;
3714 PyObject * obj0 = 0 ;
3715 char *kwnames[] = {
3716 (char *) "loc", NULL
3717 };
3718
3719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3721 SWIG_POINTER_EXCEPTION | 0)) == -1)
3722 SWIG_fail;
3723 if (arg1 == NULL) {
3724 PyErr_SetString(PyExc_TypeError,"null reference");
3725 SWIG_fail;
3726 }
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3730
3731 wxPyEndAllowThreads(__tstate);
3732 if (PyErr_Occurred()) SWIG_fail;
3733 }
3734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3735 return resultobj;
3736 fail:
3737 return NULL;
3738 }
3739
3740
3741 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3742 PyObject *resultobj;
3743 wxBitmap *arg1 = 0 ;
3744 wxIcon *result;
3745 PyObject * obj0 = 0 ;
3746 char *kwnames[] = {
3747 (char *) "bmp", NULL
3748 };
3749
3750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3752 SWIG_POINTER_EXCEPTION | 0)) == -1)
3753 SWIG_fail;
3754 if (arg1 == NULL) {
3755 PyErr_SetString(PyExc_TypeError,"null reference");
3756 SWIG_fail;
3757 }
3758 {
3759 PyThreadState* __tstate = wxPyBeginAllowThreads();
3760 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3761
3762 wxPyEndAllowThreads(__tstate);
3763 if (PyErr_Occurred()) SWIG_fail;
3764 }
3765 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3766 return resultobj;
3767 fail:
3768 return NULL;
3769 }
3770
3771
3772 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3773 PyObject *resultobj;
3774 PyObject *arg1 = (PyObject *) 0 ;
3775 wxIcon *result;
3776 PyObject * obj0 = 0 ;
3777 char *kwnames[] = {
3778 (char *) "listOfStrings", NULL
3779 };
3780
3781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3782 arg1 = obj0;
3783 {
3784 PyThreadState* __tstate = wxPyBeginAllowThreads();
3785 result = (wxIcon *)new_wxIcon(arg1);
3786
3787 wxPyEndAllowThreads(__tstate);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 }
3790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3791 return resultobj;
3792 fail:
3793 return NULL;
3794 }
3795
3796
3797 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3798 PyObject *resultobj;
3799 wxIcon *arg1 = (wxIcon *) 0 ;
3800 wxString *arg2 = 0 ;
3801 int arg3 ;
3802 bool result;
3803 bool temp2 = False ;
3804 PyObject * obj0 = 0 ;
3805 PyObject * obj1 = 0 ;
3806 PyObject * obj2 = 0 ;
3807 char *kwnames[] = {
3808 (char *) "self",(char *) "name",(char *) "type", NULL
3809 };
3810
3811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3814 {
3815 arg2 = wxString_in_helper(obj1);
3816 if (arg2 == NULL) SWIG_fail;
3817 temp2 = True;
3818 }
3819 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3820 if (PyErr_Occurred()) SWIG_fail;
3821 {
3822 PyThreadState* __tstate = wxPyBeginAllowThreads();
3823 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3824
3825 wxPyEndAllowThreads(__tstate);
3826 if (PyErr_Occurred()) SWIG_fail;
3827 }
3828 {
3829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3830 }
3831 {
3832 if (temp2)
3833 delete arg2;
3834 }
3835 return resultobj;
3836 fail:
3837 {
3838 if (temp2)
3839 delete arg2;
3840 }
3841 return NULL;
3842 }
3843
3844
3845 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3846 PyObject *resultobj;
3847 wxIcon *arg1 = (wxIcon *) 0 ;
3848 bool result;
3849 PyObject * obj0 = 0 ;
3850 char *kwnames[] = {
3851 (char *) "self", NULL
3852 };
3853
3854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3857 {
3858 PyThreadState* __tstate = wxPyBeginAllowThreads();
3859 result = (bool)(arg1)->Ok();
3860
3861 wxPyEndAllowThreads(__tstate);
3862 if (PyErr_Occurred()) SWIG_fail;
3863 }
3864 {
3865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3866 }
3867 return resultobj;
3868 fail:
3869 return NULL;
3870 }
3871
3872
3873 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3874 PyObject *resultobj;
3875 wxIcon *arg1 = (wxIcon *) 0 ;
3876 int result;
3877 PyObject * obj0 = 0 ;
3878 char *kwnames[] = {
3879 (char *) "self", NULL
3880 };
3881
3882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3885 {
3886 PyThreadState* __tstate = wxPyBeginAllowThreads();
3887 result = (int)(arg1)->GetWidth();
3888
3889 wxPyEndAllowThreads(__tstate);
3890 if (PyErr_Occurred()) SWIG_fail;
3891 }
3892 resultobj = SWIG_FromInt((int)result);
3893 return resultobj;
3894 fail:
3895 return NULL;
3896 }
3897
3898
3899 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3900 PyObject *resultobj;
3901 wxIcon *arg1 = (wxIcon *) 0 ;
3902 int result;
3903 PyObject * obj0 = 0 ;
3904 char *kwnames[] = {
3905 (char *) "self", NULL
3906 };
3907
3908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3911 {
3912 PyThreadState* __tstate = wxPyBeginAllowThreads();
3913 result = (int)(arg1)->GetHeight();
3914
3915 wxPyEndAllowThreads(__tstate);
3916 if (PyErr_Occurred()) SWIG_fail;
3917 }
3918 resultobj = SWIG_FromInt((int)result);
3919 return resultobj;
3920 fail:
3921 return NULL;
3922 }
3923
3924
3925 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3926 PyObject *resultobj;
3927 wxIcon *arg1 = (wxIcon *) 0 ;
3928 int result;
3929 PyObject * obj0 = 0 ;
3930 char *kwnames[] = {
3931 (char *) "self", NULL
3932 };
3933
3934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3937 {
3938 PyThreadState* __tstate = wxPyBeginAllowThreads();
3939 result = (int)(arg1)->GetDepth();
3940
3941 wxPyEndAllowThreads(__tstate);
3942 if (PyErr_Occurred()) SWIG_fail;
3943 }
3944 resultobj = SWIG_FromInt((int)result);
3945 return resultobj;
3946 fail:
3947 return NULL;
3948 }
3949
3950
3951 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3952 PyObject *resultobj;
3953 wxIcon *arg1 = (wxIcon *) 0 ;
3954 int arg2 ;
3955 PyObject * obj0 = 0 ;
3956 PyObject * obj1 = 0 ;
3957 char *kwnames[] = {
3958 (char *) "self",(char *) "w", NULL
3959 };
3960
3961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3964 arg2 = (int) SWIG_AsInt(obj1);
3965 if (PyErr_Occurred()) SWIG_fail;
3966 {
3967 PyThreadState* __tstate = wxPyBeginAllowThreads();
3968 (arg1)->SetWidth(arg2);
3969
3970 wxPyEndAllowThreads(__tstate);
3971 if (PyErr_Occurred()) SWIG_fail;
3972 }
3973 Py_INCREF(Py_None); resultobj = Py_None;
3974 return resultobj;
3975 fail:
3976 return NULL;
3977 }
3978
3979
3980 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3981 PyObject *resultobj;
3982 wxIcon *arg1 = (wxIcon *) 0 ;
3983 int arg2 ;
3984 PyObject * obj0 = 0 ;
3985 PyObject * obj1 = 0 ;
3986 char *kwnames[] = {
3987 (char *) "self",(char *) "h", NULL
3988 };
3989
3990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3993 arg2 = (int) SWIG_AsInt(obj1);
3994 if (PyErr_Occurred()) SWIG_fail;
3995 {
3996 PyThreadState* __tstate = wxPyBeginAllowThreads();
3997 (arg1)->SetHeight(arg2);
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_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4010 PyObject *resultobj;
4011 wxIcon *arg1 = (wxIcon *) 0 ;
4012 int arg2 ;
4013 PyObject * obj0 = 0 ;
4014 PyObject * obj1 = 0 ;
4015 char *kwnames[] = {
4016 (char *) "self",(char *) "d", NULL
4017 };
4018
4019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4022 arg2 = (int) SWIG_AsInt(obj1);
4023 if (PyErr_Occurred()) SWIG_fail;
4024 {
4025 PyThreadState* __tstate = wxPyBeginAllowThreads();
4026 (arg1)->SetDepth(arg2);
4027
4028 wxPyEndAllowThreads(__tstate);
4029 if (PyErr_Occurred()) SWIG_fail;
4030 }
4031 Py_INCREF(Py_None); resultobj = Py_None;
4032 return resultobj;
4033 fail:
4034 return NULL;
4035 }
4036
4037
4038 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4039 PyObject *resultobj;
4040 wxIcon *arg1 = (wxIcon *) 0 ;
4041 wxBitmap *arg2 = 0 ;
4042 PyObject * obj0 = 0 ;
4043 PyObject * obj1 = 0 ;
4044 char *kwnames[] = {
4045 (char *) "self",(char *) "bmp", NULL
4046 };
4047
4048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4051 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4052 SWIG_POINTER_EXCEPTION | 0)) == -1)
4053 SWIG_fail;
4054 if (arg2 == NULL) {
4055 PyErr_SetString(PyExc_TypeError,"null reference");
4056 SWIG_fail;
4057 }
4058 {
4059 PyThreadState* __tstate = wxPyBeginAllowThreads();
4060 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4061
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 Py_INCREF(Py_None); resultobj = Py_None;
4066 return resultobj;
4067 fail:
4068 return NULL;
4069 }
4070
4071
4072 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4073 PyObject *obj;
4074 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4075 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4076 Py_INCREF(obj);
4077 return Py_BuildValue((char *)"");
4078 }
4079 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4080 PyObject *resultobj;
4081 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4082 int arg2 = (int) 0 ;
4083 wxIconLocation *result;
4084 bool temp1 = False ;
4085 PyObject * obj0 = 0 ;
4086 PyObject * obj1 = 0 ;
4087 char *kwnames[] = {
4088 (char *) "filename",(char *) "num", NULL
4089 };
4090
4091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4092 if (obj0) {
4093 {
4094 arg1 = wxString_in_helper(obj0);
4095 if (arg1 == NULL) SWIG_fail;
4096 temp1 = True;
4097 }
4098 }
4099 if (obj1) {
4100 arg2 = (int) SWIG_AsInt(obj1);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
4103 {
4104 PyThreadState* __tstate = wxPyBeginAllowThreads();
4105 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4106
4107 wxPyEndAllowThreads(__tstate);
4108 if (PyErr_Occurred()) SWIG_fail;
4109 }
4110 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4111 {
4112 if (temp1)
4113 delete arg1;
4114 }
4115 return resultobj;
4116 fail:
4117 {
4118 if (temp1)
4119 delete arg1;
4120 }
4121 return NULL;
4122 }
4123
4124
4125 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4126 PyObject *resultobj;
4127 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4128 PyObject * obj0 = 0 ;
4129 char *kwnames[] = {
4130 (char *) "self", NULL
4131 };
4132
4133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4136 {
4137 PyThreadState* __tstate = wxPyBeginAllowThreads();
4138 delete arg1;
4139
4140 wxPyEndAllowThreads(__tstate);
4141 if (PyErr_Occurred()) SWIG_fail;
4142 }
4143 Py_INCREF(Py_None); resultobj = Py_None;
4144 return resultobj;
4145 fail:
4146 return NULL;
4147 }
4148
4149
4150 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4151 PyObject *resultobj;
4152 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4153 bool result;
4154 PyObject * obj0 = 0 ;
4155 char *kwnames[] = {
4156 (char *) "self", NULL
4157 };
4158
4159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4162 {
4163 PyThreadState* __tstate = wxPyBeginAllowThreads();
4164 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4165
4166 wxPyEndAllowThreads(__tstate);
4167 if (PyErr_Occurred()) SWIG_fail;
4168 }
4169 {
4170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4171 }
4172 return resultobj;
4173 fail:
4174 return NULL;
4175 }
4176
4177
4178 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4179 PyObject *resultobj;
4180 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4181 wxString *arg2 = 0 ;
4182 bool temp2 = False ;
4183 PyObject * obj0 = 0 ;
4184 PyObject * obj1 = 0 ;
4185 char *kwnames[] = {
4186 (char *) "self",(char *) "filename", NULL
4187 };
4188
4189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4192 {
4193 arg2 = wxString_in_helper(obj1);
4194 if (arg2 == NULL) SWIG_fail;
4195 temp2 = True;
4196 }
4197 {
4198 PyThreadState* __tstate = wxPyBeginAllowThreads();
4199 (arg1)->SetFileName((wxString const &)*arg2);
4200
4201 wxPyEndAllowThreads(__tstate);
4202 if (PyErr_Occurred()) SWIG_fail;
4203 }
4204 Py_INCREF(Py_None); resultobj = Py_None;
4205 {
4206 if (temp2)
4207 delete arg2;
4208 }
4209 return resultobj;
4210 fail:
4211 {
4212 if (temp2)
4213 delete arg2;
4214 }
4215 return NULL;
4216 }
4217
4218
4219 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4220 PyObject *resultobj;
4221 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4222 wxString *result;
4223 PyObject * obj0 = 0 ;
4224 char *kwnames[] = {
4225 (char *) "self", NULL
4226 };
4227
4228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4231 {
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 {
4234 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4235 result = (wxString *) &_result_ref;
4236 }
4237
4238 wxPyEndAllowThreads(__tstate);
4239 if (PyErr_Occurred()) SWIG_fail;
4240 }
4241 {
4242 #if wxUSE_UNICODE
4243 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4244 #else
4245 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4246 #endif
4247 }
4248 return resultobj;
4249 fail:
4250 return NULL;
4251 }
4252
4253
4254 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4255 PyObject *resultobj;
4256 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4257 int arg2 ;
4258 PyObject * obj0 = 0 ;
4259 PyObject * obj1 = 0 ;
4260 char *kwnames[] = {
4261 (char *) "self",(char *) "num", NULL
4262 };
4263
4264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4267 arg2 = (int) SWIG_AsInt(obj1);
4268 if (PyErr_Occurred()) SWIG_fail;
4269 {
4270 PyThreadState* __tstate = wxPyBeginAllowThreads();
4271 wxIconLocation_SetIndex(arg1,arg2);
4272
4273 wxPyEndAllowThreads(__tstate);
4274 if (PyErr_Occurred()) SWIG_fail;
4275 }
4276 Py_INCREF(Py_None); resultobj = Py_None;
4277 return resultobj;
4278 fail:
4279 return NULL;
4280 }
4281
4282
4283 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4284 PyObject *resultobj;
4285 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4286 int result;
4287 PyObject * obj0 = 0 ;
4288 char *kwnames[] = {
4289 (char *) "self", NULL
4290 };
4291
4292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4295 {
4296 PyThreadState* __tstate = wxPyBeginAllowThreads();
4297 result = (int)wxIconLocation_GetIndex(arg1);
4298
4299 wxPyEndAllowThreads(__tstate);
4300 if (PyErr_Occurred()) SWIG_fail;
4301 }
4302 resultobj = SWIG_FromInt((int)result);
4303 return resultobj;
4304 fail:
4305 return NULL;
4306 }
4307
4308
4309 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4310 PyObject *obj;
4311 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4312 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4313 Py_INCREF(obj);
4314 return Py_BuildValue((char *)"");
4315 }
4316 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4317 PyObject *resultobj;
4318 wxIconBundle *result;
4319 char *kwnames[] = {
4320 NULL
4321 };
4322
4323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4324 {
4325 PyThreadState* __tstate = wxPyBeginAllowThreads();
4326 result = (wxIconBundle *)new wxIconBundle();
4327
4328 wxPyEndAllowThreads(__tstate);
4329 if (PyErr_Occurred()) SWIG_fail;
4330 }
4331 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4332 return resultobj;
4333 fail:
4334 return NULL;
4335 }
4336
4337
4338 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4339 PyObject *resultobj;
4340 wxString *arg1 = 0 ;
4341 long arg2 ;
4342 wxIconBundle *result;
4343 bool temp1 = False ;
4344 PyObject * obj0 = 0 ;
4345 PyObject * obj1 = 0 ;
4346 char *kwnames[] = {
4347 (char *) "file",(char *) "type", NULL
4348 };
4349
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4351 {
4352 arg1 = wxString_in_helper(obj0);
4353 if (arg1 == NULL) SWIG_fail;
4354 temp1 = True;
4355 }
4356 arg2 = (long) SWIG_AsLong(obj1);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 {
4359 PyThreadState* __tstate = wxPyBeginAllowThreads();
4360 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4361
4362 wxPyEndAllowThreads(__tstate);
4363 if (PyErr_Occurred()) SWIG_fail;
4364 }
4365 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4366 {
4367 if (temp1)
4368 delete arg1;
4369 }
4370 return resultobj;
4371 fail:
4372 {
4373 if (temp1)
4374 delete arg1;
4375 }
4376 return NULL;
4377 }
4378
4379
4380 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4381 PyObject *resultobj;
4382 wxIcon *arg1 = 0 ;
4383 wxIconBundle *result;
4384 PyObject * obj0 = 0 ;
4385 char *kwnames[] = {
4386 (char *) "icon", NULL
4387 };
4388
4389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4391 SWIG_POINTER_EXCEPTION | 0)) == -1)
4392 SWIG_fail;
4393 if (arg1 == NULL) {
4394 PyErr_SetString(PyExc_TypeError,"null reference");
4395 SWIG_fail;
4396 }
4397 {
4398 PyThreadState* __tstate = wxPyBeginAllowThreads();
4399 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4400
4401 wxPyEndAllowThreads(__tstate);
4402 if (PyErr_Occurred()) SWIG_fail;
4403 }
4404 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4405 return resultobj;
4406 fail:
4407 return NULL;
4408 }
4409
4410
4411 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4412 PyObject *resultobj;
4413 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4414 PyObject * obj0 = 0 ;
4415 char *kwnames[] = {
4416 (char *) "self", NULL
4417 };
4418
4419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4422 {
4423 PyThreadState* __tstate = wxPyBeginAllowThreads();
4424 delete arg1;
4425
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) SWIG_fail;
4428 }
4429 Py_INCREF(Py_None); resultobj = Py_None;
4430 return resultobj;
4431 fail:
4432 return NULL;
4433 }
4434
4435
4436 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4437 PyObject *resultobj;
4438 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4439 wxIcon *arg2 = 0 ;
4440 PyObject * obj0 = 0 ;
4441 PyObject * obj1 = 0 ;
4442 char *kwnames[] = {
4443 (char *) "self",(char *) "icon", NULL
4444 };
4445
4446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4449 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4450 SWIG_POINTER_EXCEPTION | 0)) == -1)
4451 SWIG_fail;
4452 if (arg2 == NULL) {
4453 PyErr_SetString(PyExc_TypeError,"null reference");
4454 SWIG_fail;
4455 }
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 (arg1)->AddIcon((wxIcon const &)*arg2);
4459
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) SWIG_fail;
4462 }
4463 Py_INCREF(Py_None); resultobj = Py_None;
4464 return resultobj;
4465 fail:
4466 return NULL;
4467 }
4468
4469
4470 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4471 PyObject *resultobj;
4472 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4473 wxString *arg2 = 0 ;
4474 long arg3 ;
4475 bool temp2 = False ;
4476 PyObject * obj0 = 0 ;
4477 PyObject * obj1 = 0 ;
4478 PyObject * obj2 = 0 ;
4479 char *kwnames[] = {
4480 (char *) "self",(char *) "file",(char *) "type", NULL
4481 };
4482
4483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4486 {
4487 arg2 = wxString_in_helper(obj1);
4488 if (arg2 == NULL) SWIG_fail;
4489 temp2 = True;
4490 }
4491 arg3 = (long) SWIG_AsLong(obj2);
4492 if (PyErr_Occurred()) SWIG_fail;
4493 {
4494 PyThreadState* __tstate = wxPyBeginAllowThreads();
4495 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4496
4497 wxPyEndAllowThreads(__tstate);
4498 if (PyErr_Occurred()) SWIG_fail;
4499 }
4500 Py_INCREF(Py_None); resultobj = Py_None;
4501 {
4502 if (temp2)
4503 delete arg2;
4504 }
4505 return resultobj;
4506 fail:
4507 {
4508 if (temp2)
4509 delete arg2;
4510 }
4511 return NULL;
4512 }
4513
4514
4515 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4516 PyObject *resultobj;
4517 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4518 wxSize *arg2 = 0 ;
4519 wxIcon *result;
4520 wxSize temp2 ;
4521 PyObject * obj0 = 0 ;
4522 PyObject * obj1 = 0 ;
4523 char *kwnames[] = {
4524 (char *) "self",(char *) "size", NULL
4525 };
4526
4527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4530 {
4531 arg2 = &temp2;
4532 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4533 }
4534 {
4535 PyThreadState* __tstate = wxPyBeginAllowThreads();
4536 {
4537 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4538 result = (wxIcon *) &_result_ref;
4539 }
4540
4541 wxPyEndAllowThreads(__tstate);
4542 if (PyErr_Occurred()) SWIG_fail;
4543 }
4544 {
4545 wxIcon* resultptr = new wxIcon(*result);
4546 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4547 }
4548 return resultobj;
4549 fail:
4550 return NULL;
4551 }
4552
4553
4554 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4555 PyObject *obj;
4556 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4557 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4558 Py_INCREF(obj);
4559 return Py_BuildValue((char *)"");
4560 }
4561 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4562 PyObject *resultobj;
4563 wxString *arg1 = (wxString *) 0 ;
4564 long arg2 ;
4565 int arg3 = (int) 0 ;
4566 int arg4 = (int) 0 ;
4567 wxCursor *result;
4568 bool temp1 = False ;
4569 PyObject * obj0 = 0 ;
4570 PyObject * obj1 = 0 ;
4571 PyObject * obj2 = 0 ;
4572 PyObject * obj3 = 0 ;
4573 char *kwnames[] = {
4574 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4575 };
4576
4577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4578 {
4579 arg1 = wxString_in_helper(obj0);
4580 if (arg1 == NULL) SWIG_fail;
4581 temp1 = True;
4582 }
4583 arg2 = (long) SWIG_AsLong(obj1);
4584 if (PyErr_Occurred()) SWIG_fail;
4585 if (obj2) {
4586 arg3 = (int) SWIG_AsInt(obj2);
4587 if (PyErr_Occurred()) SWIG_fail;
4588 }
4589 if (obj3) {
4590 arg4 = (int) SWIG_AsInt(obj3);
4591 if (PyErr_Occurred()) SWIG_fail;
4592 }
4593 {
4594 PyThreadState* __tstate = wxPyBeginAllowThreads();
4595 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4596
4597 wxPyEndAllowThreads(__tstate);
4598 if (PyErr_Occurred()) SWIG_fail;
4599 }
4600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4601 {
4602 if (temp1)
4603 delete arg1;
4604 }
4605 return resultobj;
4606 fail:
4607 {
4608 if (temp1)
4609 delete arg1;
4610 }
4611 return NULL;
4612 }
4613
4614
4615 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4616 PyObject *resultobj;
4617 wxCursor *arg1 = (wxCursor *) 0 ;
4618 PyObject * obj0 = 0 ;
4619 char *kwnames[] = {
4620 (char *) "self", NULL
4621 };
4622
4623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4626 {
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 delete arg1;
4629
4630 wxPyEndAllowThreads(__tstate);
4631 if (PyErr_Occurred()) SWIG_fail;
4632 }
4633 Py_INCREF(Py_None); resultobj = Py_None;
4634 return resultobj;
4635 fail:
4636 return NULL;
4637 }
4638
4639
4640 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4641 PyObject *resultobj;
4642 int arg1 ;
4643 wxCursor *result;
4644 PyObject * obj0 = 0 ;
4645 char *kwnames[] = {
4646 (char *) "id", NULL
4647 };
4648
4649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4650 arg1 = (int) SWIG_AsInt(obj0);
4651 if (PyErr_Occurred()) SWIG_fail;
4652 {
4653 PyThreadState* __tstate = wxPyBeginAllowThreads();
4654 result = (wxCursor *)new wxCursor(arg1);
4655
4656 wxPyEndAllowThreads(__tstate);
4657 if (PyErr_Occurred()) SWIG_fail;
4658 }
4659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4660 return resultobj;
4661 fail:
4662 return NULL;
4663 }
4664
4665
4666 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4667 PyObject *resultobj;
4668 wxImage *arg1 = 0 ;
4669 wxCursor *result;
4670 PyObject * obj0 = 0 ;
4671 char *kwnames[] = {
4672 (char *) "image", NULL
4673 };
4674
4675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4677 SWIG_POINTER_EXCEPTION | 0)) == -1)
4678 SWIG_fail;
4679 if (arg1 == NULL) {
4680 PyErr_SetString(PyExc_TypeError,"null reference");
4681 SWIG_fail;
4682 }
4683 {
4684 PyThreadState* __tstate = wxPyBeginAllowThreads();
4685 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4686
4687 wxPyEndAllowThreads(__tstate);
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
4690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4691 return resultobj;
4692 fail:
4693 return NULL;
4694 }
4695
4696
4697 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4698 PyObject *resultobj;
4699 wxCursor *arg1 = (wxCursor *) 0 ;
4700 bool result;
4701 PyObject * obj0 = 0 ;
4702 char *kwnames[] = {
4703 (char *) "self", NULL
4704 };
4705
4706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4709 {
4710 PyThreadState* __tstate = wxPyBeginAllowThreads();
4711 result = (bool)(arg1)->Ok();
4712
4713 wxPyEndAllowThreads(__tstate);
4714 if (PyErr_Occurred()) SWIG_fail;
4715 }
4716 {
4717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4718 }
4719 return resultobj;
4720 fail:
4721 return NULL;
4722 }
4723
4724
4725 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4726 PyObject *obj;
4727 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4728 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4729 Py_INCREF(obj);
4730 return Py_BuildValue((char *)"");
4731 }
4732 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4733 PyObject *resultobj;
4734 int arg1 = (int) 0 ;
4735 int arg2 = (int) 0 ;
4736 int arg3 = (int) 0 ;
4737 int arg4 = (int) 0 ;
4738 wxRegion *result;
4739 PyObject * obj0 = 0 ;
4740 PyObject * obj1 = 0 ;
4741 PyObject * obj2 = 0 ;
4742 PyObject * obj3 = 0 ;
4743 char *kwnames[] = {
4744 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4745 };
4746
4747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4748 if (obj0) {
4749 arg1 = (int) SWIG_AsInt(obj0);
4750 if (PyErr_Occurred()) SWIG_fail;
4751 }
4752 if (obj1) {
4753 arg2 = (int) SWIG_AsInt(obj1);
4754 if (PyErr_Occurred()) SWIG_fail;
4755 }
4756 if (obj2) {
4757 arg3 = (int) SWIG_AsInt(obj2);
4758 if (PyErr_Occurred()) SWIG_fail;
4759 }
4760 if (obj3) {
4761 arg4 = (int) SWIG_AsInt(obj3);
4762 if (PyErr_Occurred()) SWIG_fail;
4763 }
4764 {
4765 PyThreadState* __tstate = wxPyBeginAllowThreads();
4766 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4767
4768 wxPyEndAllowThreads(__tstate);
4769 if (PyErr_Occurred()) SWIG_fail;
4770 }
4771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4772 return resultobj;
4773 fail:
4774 return NULL;
4775 }
4776
4777
4778 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4779 PyObject *resultobj;
4780 wxBitmap *arg1 = 0 ;
4781 wxColour const &arg2_defvalue = wxNullColour ;
4782 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4783 int arg3 = (int) 0 ;
4784 wxRegion *result;
4785 wxColour temp2 ;
4786 PyObject * obj0 = 0 ;
4787 PyObject * obj1 = 0 ;
4788 PyObject * obj2 = 0 ;
4789 char *kwnames[] = {
4790 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4791 };
4792
4793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4795 SWIG_POINTER_EXCEPTION | 0)) == -1)
4796 SWIG_fail;
4797 if (arg1 == NULL) {
4798 PyErr_SetString(PyExc_TypeError,"null reference");
4799 SWIG_fail;
4800 }
4801 if (obj1) {
4802 {
4803 arg2 = &temp2;
4804 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4805 }
4806 }
4807 if (obj2) {
4808 arg3 = (int) SWIG_AsInt(obj2);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 {
4812 PyThreadState* __tstate = wxPyBeginAllowThreads();
4813 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4814
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) SWIG_fail;
4817 }
4818 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4819 return resultobj;
4820 fail:
4821 return NULL;
4822 }
4823
4824
4825 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4826 PyObject *resultobj;
4827 int arg1 ;
4828 wxPoint *arg2 = (wxPoint *) 0 ;
4829 int arg3 = (int) wxWINDING_RULE ;
4830 wxRegion *result;
4831 PyObject * obj0 = 0 ;
4832 PyObject * obj1 = 0 ;
4833 char *kwnames[] = {
4834 (char *) "points",(char *) "fillStyle", NULL
4835 };
4836
4837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4838 {
4839 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4840 if (arg2 == NULL) SWIG_fail;
4841 }
4842 if (obj1) {
4843 arg3 = (int) SWIG_AsInt(obj1);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4849
4850 wxPyEndAllowThreads(__tstate);
4851 if (PyErr_Occurred()) SWIG_fail;
4852 }
4853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4854 {
4855 if (arg2) delete [] arg2;
4856 }
4857 return resultobj;
4858 fail:
4859 {
4860 if (arg2) delete [] arg2;
4861 }
4862 return NULL;
4863 }
4864
4865
4866 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4867 PyObject *resultobj;
4868 wxRegion *arg1 = (wxRegion *) 0 ;
4869 PyObject * obj0 = 0 ;
4870 char *kwnames[] = {
4871 (char *) "self", NULL
4872 };
4873
4874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4877 {
4878 PyThreadState* __tstate = wxPyBeginAllowThreads();
4879 delete arg1;
4880
4881 wxPyEndAllowThreads(__tstate);
4882 if (PyErr_Occurred()) SWIG_fail;
4883 }
4884 Py_INCREF(Py_None); resultobj = Py_None;
4885 return resultobj;
4886 fail:
4887 return NULL;
4888 }
4889
4890
4891 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4892 PyObject *resultobj;
4893 wxRegion *arg1 = (wxRegion *) 0 ;
4894 PyObject * obj0 = 0 ;
4895 char *kwnames[] = {
4896 (char *) "self", NULL
4897 };
4898
4899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4902 {
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 (arg1)->Clear();
4905
4906 wxPyEndAllowThreads(__tstate);
4907 if (PyErr_Occurred()) SWIG_fail;
4908 }
4909 Py_INCREF(Py_None); resultobj = Py_None;
4910 return resultobj;
4911 fail:
4912 return NULL;
4913 }
4914
4915
4916 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4917 PyObject *resultobj;
4918 wxRegion *arg1 = (wxRegion *) 0 ;
4919 int arg2 ;
4920 int arg3 ;
4921 bool result;
4922 PyObject * obj0 = 0 ;
4923 PyObject * obj1 = 0 ;
4924 PyObject * obj2 = 0 ;
4925 char *kwnames[] = {
4926 (char *) "self",(char *) "x",(char *) "y", NULL
4927 };
4928
4929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
4930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4932 arg2 = (int) SWIG_AsInt(obj1);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 arg3 = (int) SWIG_AsInt(obj2);
4935 if (PyErr_Occurred()) SWIG_fail;
4936 {
4937 PyThreadState* __tstate = wxPyBeginAllowThreads();
4938 result = (bool)(arg1)->Offset(arg2,arg3);
4939
4940 wxPyEndAllowThreads(__tstate);
4941 if (PyErr_Occurred()) SWIG_fail;
4942 }
4943 {
4944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4945 }
4946 return resultobj;
4947 fail:
4948 return NULL;
4949 }
4950
4951
4952 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4953 PyObject *resultobj;
4954 wxRegion *arg1 = (wxRegion *) 0 ;
4955 int arg2 ;
4956 int arg3 ;
4957 int result;
4958 PyObject * obj0 = 0 ;
4959 PyObject * obj1 = 0 ;
4960 PyObject * obj2 = 0 ;
4961 char *kwnames[] = {
4962 (char *) "self",(char *) "x",(char *) "y", NULL
4963 };
4964
4965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4968 arg2 = (int) SWIG_AsInt(obj1);
4969 if (PyErr_Occurred()) SWIG_fail;
4970 arg3 = (int) SWIG_AsInt(obj2);
4971 if (PyErr_Occurred()) SWIG_fail;
4972 {
4973 PyThreadState* __tstate = wxPyBeginAllowThreads();
4974 result = (int)(arg1)->Contains(arg2,arg3);
4975
4976 wxPyEndAllowThreads(__tstate);
4977 if (PyErr_Occurred()) SWIG_fail;
4978 }
4979 resultobj = SWIG_FromInt((int)result);
4980 return resultobj;
4981 fail:
4982 return NULL;
4983 }
4984
4985
4986 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4987 PyObject *resultobj;
4988 wxRegion *arg1 = (wxRegion *) 0 ;
4989 wxPoint *arg2 = 0 ;
4990 int result;
4991 wxPoint temp2 ;
4992 PyObject * obj0 = 0 ;
4993 PyObject * obj1 = 0 ;
4994 char *kwnames[] = {
4995 (char *) "self",(char *) "pt", NULL
4996 };
4997
4998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5001 {
5002 arg2 = &temp2;
5003 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5004 }
5005 {
5006 PyThreadState* __tstate = wxPyBeginAllowThreads();
5007 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5008
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 resultobj = SWIG_FromInt((int)result);
5013 return resultobj;
5014 fail:
5015 return NULL;
5016 }
5017
5018
5019 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5020 PyObject *resultobj;
5021 wxRegion *arg1 = (wxRegion *) 0 ;
5022 wxRect *arg2 = 0 ;
5023 int result;
5024 wxRect temp2 ;
5025 PyObject * obj0 = 0 ;
5026 PyObject * obj1 = 0 ;
5027 char *kwnames[] = {
5028 (char *) "self",(char *) "rect", NULL
5029 };
5030
5031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5034 {
5035 arg2 = &temp2;
5036 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5037 }
5038 {
5039 PyThreadState* __tstate = wxPyBeginAllowThreads();
5040 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5041
5042 wxPyEndAllowThreads(__tstate);
5043 if (PyErr_Occurred()) SWIG_fail;
5044 }
5045 resultobj = SWIG_FromInt((int)result);
5046 return resultobj;
5047 fail:
5048 return NULL;
5049 }
5050
5051
5052 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5053 PyObject *resultobj;
5054 wxRegion *arg1 = (wxRegion *) 0 ;
5055 int arg2 ;
5056 int arg3 ;
5057 int arg4 ;
5058 int arg5 ;
5059 int result;
5060 PyObject * obj0 = 0 ;
5061 PyObject * obj1 = 0 ;
5062 PyObject * obj2 = 0 ;
5063 PyObject * obj3 = 0 ;
5064 PyObject * obj4 = 0 ;
5065 char *kwnames[] = {
5066 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5067 };
5068
5069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5072 arg2 = (int) SWIG_AsInt(obj1);
5073 if (PyErr_Occurred()) SWIG_fail;
5074 arg3 = (int) SWIG_AsInt(obj2);
5075 if (PyErr_Occurred()) SWIG_fail;
5076 arg4 = (int) SWIG_AsInt(obj3);
5077 if (PyErr_Occurred()) SWIG_fail;
5078 arg5 = (int) SWIG_AsInt(obj4);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 {
5081 PyThreadState* __tstate = wxPyBeginAllowThreads();
5082 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5083
5084 wxPyEndAllowThreads(__tstate);
5085 if (PyErr_Occurred()) SWIG_fail;
5086 }
5087 resultobj = SWIG_FromInt((int)result);
5088 return resultobj;
5089 fail:
5090 return NULL;
5091 }
5092
5093
5094 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5095 PyObject *resultobj;
5096 wxRegion *arg1 = (wxRegion *) 0 ;
5097 wxRect result;
5098 PyObject * obj0 = 0 ;
5099 char *kwnames[] = {
5100 (char *) "self", NULL
5101 };
5102
5103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5106 {
5107 PyThreadState* __tstate = wxPyBeginAllowThreads();
5108 result = (arg1)->GetBox();
5109
5110 wxPyEndAllowThreads(__tstate);
5111 if (PyErr_Occurred()) SWIG_fail;
5112 }
5113 {
5114 wxRect * resultptr;
5115 resultptr = new wxRect((wxRect &) result);
5116 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5117 }
5118 return resultobj;
5119 fail:
5120 return NULL;
5121 }
5122
5123
5124 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5125 PyObject *resultobj;
5126 wxRegion *arg1 = (wxRegion *) 0 ;
5127 int arg2 ;
5128 int arg3 ;
5129 int arg4 ;
5130 int arg5 ;
5131 bool result;
5132 PyObject * obj0 = 0 ;
5133 PyObject * obj1 = 0 ;
5134 PyObject * obj2 = 0 ;
5135 PyObject * obj3 = 0 ;
5136 PyObject * obj4 = 0 ;
5137 char *kwnames[] = {
5138 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5139 };
5140
5141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5144 arg2 = (int) SWIG_AsInt(obj1);
5145 if (PyErr_Occurred()) SWIG_fail;
5146 arg3 = (int) SWIG_AsInt(obj2);
5147 if (PyErr_Occurred()) SWIG_fail;
5148 arg4 = (int) SWIG_AsInt(obj3);
5149 if (PyErr_Occurred()) SWIG_fail;
5150 arg5 = (int) SWIG_AsInt(obj4);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5155
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 {
5160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5161 }
5162 return resultobj;
5163 fail:
5164 return NULL;
5165 }
5166
5167
5168 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5169 PyObject *resultobj;
5170 wxRegion *arg1 = (wxRegion *) 0 ;
5171 wxRect *arg2 = 0 ;
5172 bool result;
5173 wxRect temp2 ;
5174 PyObject * obj0 = 0 ;
5175 PyObject * obj1 = 0 ;
5176 char *kwnames[] = {
5177 (char *) "self",(char *) "rect", NULL
5178 };
5179
5180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5183 {
5184 arg2 = &temp2;
5185 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5186 }
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5190
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 {
5195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5196 }
5197 return resultobj;
5198 fail:
5199 return NULL;
5200 }
5201
5202
5203 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5204 PyObject *resultobj;
5205 wxRegion *arg1 = (wxRegion *) 0 ;
5206 wxRegion *arg2 = 0 ;
5207 bool result;
5208 PyObject * obj0 = 0 ;
5209 PyObject * obj1 = 0 ;
5210 char *kwnames[] = {
5211 (char *) "self",(char *) "region", NULL
5212 };
5213
5214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5217 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5218 SWIG_POINTER_EXCEPTION | 0)) == -1)
5219 SWIG_fail;
5220 if (arg2 == NULL) {
5221 PyErr_SetString(PyExc_TypeError,"null reference");
5222 SWIG_fail;
5223 }
5224 {
5225 PyThreadState* __tstate = wxPyBeginAllowThreads();
5226 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5227
5228 wxPyEndAllowThreads(__tstate);
5229 if (PyErr_Occurred()) SWIG_fail;
5230 }
5231 {
5232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5233 }
5234 return resultobj;
5235 fail:
5236 return NULL;
5237 }
5238
5239
5240 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5241 PyObject *resultobj;
5242 wxRegion *arg1 = (wxRegion *) 0 ;
5243 bool result;
5244 PyObject * obj0 = 0 ;
5245 char *kwnames[] = {
5246 (char *) "self", NULL
5247 };
5248
5249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5252 {
5253 PyThreadState* __tstate = wxPyBeginAllowThreads();
5254 result = (bool)(arg1)->IsEmpty();
5255
5256 wxPyEndAllowThreads(__tstate);
5257 if (PyErr_Occurred()) SWIG_fail;
5258 }
5259 {
5260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5261 }
5262 return resultobj;
5263 fail:
5264 return NULL;
5265 }
5266
5267
5268 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5269 PyObject *resultobj;
5270 wxRegion *arg1 = (wxRegion *) 0 ;
5271 int arg2 ;
5272 int arg3 ;
5273 int arg4 ;
5274 int arg5 ;
5275 bool result;
5276 PyObject * obj0 = 0 ;
5277 PyObject * obj1 = 0 ;
5278 PyObject * obj2 = 0 ;
5279 PyObject * obj3 = 0 ;
5280 PyObject * obj4 = 0 ;
5281 char *kwnames[] = {
5282 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5283 };
5284
5285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5288 arg2 = (int) SWIG_AsInt(obj1);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 arg3 = (int) SWIG_AsInt(obj2);
5291 if (PyErr_Occurred()) SWIG_fail;
5292 arg4 = (int) SWIG_AsInt(obj3);
5293 if (PyErr_Occurred()) SWIG_fail;
5294 arg5 = (int) SWIG_AsInt(obj4);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 {
5297 PyThreadState* __tstate = wxPyBeginAllowThreads();
5298 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5299
5300 wxPyEndAllowThreads(__tstate);
5301 if (PyErr_Occurred()) SWIG_fail;
5302 }
5303 {
5304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5305 }
5306 return resultobj;
5307 fail:
5308 return NULL;
5309 }
5310
5311
5312 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5313 PyObject *resultobj;
5314 wxRegion *arg1 = (wxRegion *) 0 ;
5315 wxRect *arg2 = 0 ;
5316 bool result;
5317 wxRect temp2 ;
5318 PyObject * obj0 = 0 ;
5319 PyObject * obj1 = 0 ;
5320 char *kwnames[] = {
5321 (char *) "self",(char *) "rect", NULL
5322 };
5323
5324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5327 {
5328 arg2 = &temp2;
5329 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5330 }
5331 {
5332 PyThreadState* __tstate = wxPyBeginAllowThreads();
5333 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5334
5335 wxPyEndAllowThreads(__tstate);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 }
5338 {
5339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5340 }
5341 return resultobj;
5342 fail:
5343 return NULL;
5344 }
5345
5346
5347 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5348 PyObject *resultobj;
5349 wxRegion *arg1 = (wxRegion *) 0 ;
5350 wxRegion *arg2 = 0 ;
5351 bool result;
5352 PyObject * obj0 = 0 ;
5353 PyObject * obj1 = 0 ;
5354 char *kwnames[] = {
5355 (char *) "self",(char *) "region", NULL
5356 };
5357
5358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5361 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5362 SWIG_POINTER_EXCEPTION | 0)) == -1)
5363 SWIG_fail;
5364 if (arg2 == NULL) {
5365 PyErr_SetString(PyExc_TypeError,"null reference");
5366 SWIG_fail;
5367 }
5368 {
5369 PyThreadState* __tstate = wxPyBeginAllowThreads();
5370 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5371
5372 wxPyEndAllowThreads(__tstate);
5373 if (PyErr_Occurred()) SWIG_fail;
5374 }
5375 {
5376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5377 }
5378 return resultobj;
5379 fail:
5380 return NULL;
5381 }
5382
5383
5384 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5385 PyObject *resultobj;
5386 wxRegion *arg1 = (wxRegion *) 0 ;
5387 int arg2 ;
5388 int arg3 ;
5389 int arg4 ;
5390 int arg5 ;
5391 bool result;
5392 PyObject * obj0 = 0 ;
5393 PyObject * obj1 = 0 ;
5394 PyObject * obj2 = 0 ;
5395 PyObject * obj3 = 0 ;
5396 PyObject * obj4 = 0 ;
5397 char *kwnames[] = {
5398 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5399 };
5400
5401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5404 arg2 = (int) SWIG_AsInt(obj1);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 arg3 = (int) SWIG_AsInt(obj2);
5407 if (PyErr_Occurred()) SWIG_fail;
5408 arg4 = (int) SWIG_AsInt(obj3);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 arg5 = (int) SWIG_AsInt(obj4);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 {
5413 PyThreadState* __tstate = wxPyBeginAllowThreads();
5414 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5415
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 {
5420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5421 }
5422 return resultobj;
5423 fail:
5424 return NULL;
5425 }
5426
5427
5428 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5429 PyObject *resultobj;
5430 wxRegion *arg1 = (wxRegion *) 0 ;
5431 wxRect *arg2 = 0 ;
5432 bool result;
5433 wxRect temp2 ;
5434 PyObject * obj0 = 0 ;
5435 PyObject * obj1 = 0 ;
5436 char *kwnames[] = {
5437 (char *) "self",(char *) "rect", NULL
5438 };
5439
5440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5443 {
5444 arg2 = &temp2;
5445 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5446 }
5447 {
5448 PyThreadState* __tstate = wxPyBeginAllowThreads();
5449 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5450
5451 wxPyEndAllowThreads(__tstate);
5452 if (PyErr_Occurred()) SWIG_fail;
5453 }
5454 {
5455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5456 }
5457 return resultobj;
5458 fail:
5459 return NULL;
5460 }
5461
5462
5463 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj;
5465 wxRegion *arg1 = (wxRegion *) 0 ;
5466 wxRegion *arg2 = 0 ;
5467 bool result;
5468 PyObject * obj0 = 0 ;
5469 PyObject * obj1 = 0 ;
5470 char *kwnames[] = {
5471 (char *) "self",(char *) "region", NULL
5472 };
5473
5474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5477 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5478 SWIG_POINTER_EXCEPTION | 0)) == -1)
5479 SWIG_fail;
5480 if (arg2 == NULL) {
5481 PyErr_SetString(PyExc_TypeError,"null reference");
5482 SWIG_fail;
5483 }
5484 {
5485 PyThreadState* __tstate = wxPyBeginAllowThreads();
5486 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5487
5488 wxPyEndAllowThreads(__tstate);
5489 if (PyErr_Occurred()) SWIG_fail;
5490 }
5491 {
5492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5493 }
5494 return resultobj;
5495 fail:
5496 return NULL;
5497 }
5498
5499
5500 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5501 PyObject *resultobj;
5502 wxRegion *arg1 = (wxRegion *) 0 ;
5503 int arg2 ;
5504 int arg3 ;
5505 int arg4 ;
5506 int arg5 ;
5507 bool result;
5508 PyObject * obj0 = 0 ;
5509 PyObject * obj1 = 0 ;
5510 PyObject * obj2 = 0 ;
5511 PyObject * obj3 = 0 ;
5512 PyObject * obj4 = 0 ;
5513 char *kwnames[] = {
5514 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5515 };
5516
5517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5520 arg2 = (int) SWIG_AsInt(obj1);
5521 if (PyErr_Occurred()) SWIG_fail;
5522 arg3 = (int) SWIG_AsInt(obj2);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 arg4 = (int) SWIG_AsInt(obj3);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 arg5 = (int) SWIG_AsInt(obj4);
5527 if (PyErr_Occurred()) SWIG_fail;
5528 {
5529 PyThreadState* __tstate = wxPyBeginAllowThreads();
5530 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5531
5532 wxPyEndAllowThreads(__tstate);
5533 if (PyErr_Occurred()) SWIG_fail;
5534 }
5535 {
5536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5537 }
5538 return resultobj;
5539 fail:
5540 return NULL;
5541 }
5542
5543
5544 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5545 PyObject *resultobj;
5546 wxRegion *arg1 = (wxRegion *) 0 ;
5547 wxRect *arg2 = 0 ;
5548 bool result;
5549 wxRect temp2 ;
5550 PyObject * obj0 = 0 ;
5551 PyObject * obj1 = 0 ;
5552 char *kwnames[] = {
5553 (char *) "self",(char *) "rect", NULL
5554 };
5555
5556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5559 {
5560 arg2 = &temp2;
5561 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5562 }
5563 {
5564 PyThreadState* __tstate = wxPyBeginAllowThreads();
5565 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5566
5567 wxPyEndAllowThreads(__tstate);
5568 if (PyErr_Occurred()) SWIG_fail;
5569 }
5570 {
5571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5572 }
5573 return resultobj;
5574 fail:
5575 return NULL;
5576 }
5577
5578
5579 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5580 PyObject *resultobj;
5581 wxRegion *arg1 = (wxRegion *) 0 ;
5582 wxRegion *arg2 = 0 ;
5583 bool result;
5584 PyObject * obj0 = 0 ;
5585 PyObject * obj1 = 0 ;
5586 char *kwnames[] = {
5587 (char *) "self",(char *) "region", NULL
5588 };
5589
5590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5593 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5594 SWIG_POINTER_EXCEPTION | 0)) == -1)
5595 SWIG_fail;
5596 if (arg2 == NULL) {
5597 PyErr_SetString(PyExc_TypeError,"null reference");
5598 SWIG_fail;
5599 }
5600 {
5601 PyThreadState* __tstate = wxPyBeginAllowThreads();
5602 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5603
5604 wxPyEndAllowThreads(__tstate);
5605 if (PyErr_Occurred()) SWIG_fail;
5606 }
5607 {
5608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5609 }
5610 return resultobj;
5611 fail:
5612 return NULL;
5613 }
5614
5615
5616 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5617 PyObject *resultobj;
5618 wxRegion *arg1 = (wxRegion *) 0 ;
5619 SwigValueWrapper< wxBitmap > result;
5620 PyObject * obj0 = 0 ;
5621 char *kwnames[] = {
5622 (char *) "self", NULL
5623 };
5624
5625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5628 {
5629 PyThreadState* __tstate = wxPyBeginAllowThreads();
5630 result = (arg1)->ConvertToBitmap();
5631
5632 wxPyEndAllowThreads(__tstate);
5633 if (PyErr_Occurred()) SWIG_fail;
5634 }
5635 {
5636 wxBitmap * resultptr;
5637 resultptr = new wxBitmap((wxBitmap &) result);
5638 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5639 }
5640 return resultobj;
5641 fail:
5642 return NULL;
5643 }
5644
5645
5646 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5647 PyObject *resultobj;
5648 wxRegion *arg1 = (wxRegion *) 0 ;
5649 wxBitmap *arg2 = 0 ;
5650 wxColour const &arg3_defvalue = wxNullColour ;
5651 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5652 int arg4 = (int) 0 ;
5653 bool result;
5654 wxColour temp3 ;
5655 PyObject * obj0 = 0 ;
5656 PyObject * obj1 = 0 ;
5657 PyObject * obj2 = 0 ;
5658 PyObject * obj3 = 0 ;
5659 char *kwnames[] = {
5660 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5661 };
5662
5663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5666 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5667 SWIG_POINTER_EXCEPTION | 0)) == -1)
5668 SWIG_fail;
5669 if (arg2 == NULL) {
5670 PyErr_SetString(PyExc_TypeError,"null reference");
5671 SWIG_fail;
5672 }
5673 if (obj2) {
5674 {
5675 arg3 = &temp3;
5676 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5677 }
5678 }
5679 if (obj3) {
5680 arg4 = (int) SWIG_AsInt(obj3);
5681 if (PyErr_Occurred()) SWIG_fail;
5682 }
5683 {
5684 PyThreadState* __tstate = wxPyBeginAllowThreads();
5685 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5686
5687 wxPyEndAllowThreads(__tstate);
5688 if (PyErr_Occurred()) SWIG_fail;
5689 }
5690 {
5691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5692 }
5693 return resultobj;
5694 fail:
5695 return NULL;
5696 }
5697
5698
5699 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5700 PyObject *obj;
5701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5702 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5703 Py_INCREF(obj);
5704 return Py_BuildValue((char *)"");
5705 }
5706 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5707 PyObject *resultobj;
5708 wxRegion *arg1 = 0 ;
5709 wxRegionIterator *result;
5710 PyObject * obj0 = 0 ;
5711 char *kwnames[] = {
5712 (char *) "region", NULL
5713 };
5714
5715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5717 SWIG_POINTER_EXCEPTION | 0)) == -1)
5718 SWIG_fail;
5719 if (arg1 == NULL) {
5720 PyErr_SetString(PyExc_TypeError,"null reference");
5721 SWIG_fail;
5722 }
5723 {
5724 PyThreadState* __tstate = wxPyBeginAllowThreads();
5725 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5726
5727 wxPyEndAllowThreads(__tstate);
5728 if (PyErr_Occurred()) SWIG_fail;
5729 }
5730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5731 return resultobj;
5732 fail:
5733 return NULL;
5734 }
5735
5736
5737 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5738 PyObject *resultobj;
5739 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5740 PyObject * obj0 = 0 ;
5741 char *kwnames[] = {
5742 (char *) "self", NULL
5743 };
5744
5745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5748 {
5749 PyThreadState* __tstate = wxPyBeginAllowThreads();
5750 delete arg1;
5751
5752 wxPyEndAllowThreads(__tstate);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 }
5755 Py_INCREF(Py_None); resultobj = Py_None;
5756 return resultobj;
5757 fail:
5758 return NULL;
5759 }
5760
5761
5762 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5763 PyObject *resultobj;
5764 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5765 int result;
5766 PyObject * obj0 = 0 ;
5767 char *kwnames[] = {
5768 (char *) "self", NULL
5769 };
5770
5771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 result = (int)(arg1)->GetX();
5777
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 resultobj = SWIG_FromInt((int)result);
5782 return resultobj;
5783 fail:
5784 return NULL;
5785 }
5786
5787
5788 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5789 PyObject *resultobj;
5790 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5791 int result;
5792 PyObject * obj0 = 0 ;
5793 char *kwnames[] = {
5794 (char *) "self", NULL
5795 };
5796
5797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5800 {
5801 PyThreadState* __tstate = wxPyBeginAllowThreads();
5802 result = (int)(arg1)->GetY();
5803
5804 wxPyEndAllowThreads(__tstate);
5805 if (PyErr_Occurred()) SWIG_fail;
5806 }
5807 resultobj = SWIG_FromInt((int)result);
5808 return resultobj;
5809 fail:
5810 return NULL;
5811 }
5812
5813
5814 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5815 PyObject *resultobj;
5816 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5817 int result;
5818 PyObject * obj0 = 0 ;
5819 char *kwnames[] = {
5820 (char *) "self", NULL
5821 };
5822
5823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5826 {
5827 PyThreadState* __tstate = wxPyBeginAllowThreads();
5828 result = (int)(arg1)->GetW();
5829
5830 wxPyEndAllowThreads(__tstate);
5831 if (PyErr_Occurred()) SWIG_fail;
5832 }
5833 resultobj = SWIG_FromInt((int)result);
5834 return resultobj;
5835 fail:
5836 return NULL;
5837 }
5838
5839
5840 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5841 PyObject *resultobj;
5842 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5843 int result;
5844 PyObject * obj0 = 0 ;
5845 char *kwnames[] = {
5846 (char *) "self", NULL
5847 };
5848
5849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5852 {
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 result = (int)(arg1)->GetWidth();
5855
5856 wxPyEndAllowThreads(__tstate);
5857 if (PyErr_Occurred()) SWIG_fail;
5858 }
5859 resultobj = SWIG_FromInt((int)result);
5860 return resultobj;
5861 fail:
5862 return NULL;
5863 }
5864
5865
5866 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5867 PyObject *resultobj;
5868 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5869 int result;
5870 PyObject * obj0 = 0 ;
5871 char *kwnames[] = {
5872 (char *) "self", NULL
5873 };
5874
5875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5878 {
5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
5880 result = (int)(arg1)->GetH();
5881
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 resultobj = SWIG_FromInt((int)result);
5886 return resultobj;
5887 fail:
5888 return NULL;
5889 }
5890
5891
5892 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5893 PyObject *resultobj;
5894 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5895 int result;
5896 PyObject * obj0 = 0 ;
5897 char *kwnames[] = {
5898 (char *) "self", NULL
5899 };
5900
5901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5904 {
5905 PyThreadState* __tstate = wxPyBeginAllowThreads();
5906 result = (int)(arg1)->GetHeight();
5907
5908 wxPyEndAllowThreads(__tstate);
5909 if (PyErr_Occurred()) SWIG_fail;
5910 }
5911 resultobj = SWIG_FromInt((int)result);
5912 return resultobj;
5913 fail:
5914 return NULL;
5915 }
5916
5917
5918 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5919 PyObject *resultobj;
5920 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5921 wxRect result;
5922 PyObject * obj0 = 0 ;
5923 char *kwnames[] = {
5924 (char *) "self", NULL
5925 };
5926
5927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 result = (arg1)->GetRect();
5933
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 {
5938 wxRect * resultptr;
5939 resultptr = new wxRect((wxRect &) result);
5940 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5941 }
5942 return resultobj;
5943 fail:
5944 return NULL;
5945 }
5946
5947
5948 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5949 PyObject *resultobj;
5950 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5951 bool result;
5952 PyObject * obj0 = 0 ;
5953 char *kwnames[] = {
5954 (char *) "self", NULL
5955 };
5956
5957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5960 {
5961 PyThreadState* __tstate = wxPyBeginAllowThreads();
5962 result = (bool)(arg1)->HaveRects();
5963
5964 wxPyEndAllowThreads(__tstate);
5965 if (PyErr_Occurred()) SWIG_fail;
5966 }
5967 {
5968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5969 }
5970 return resultobj;
5971 fail:
5972 return NULL;
5973 }
5974
5975
5976 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5977 PyObject *resultobj;
5978 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5979 PyObject * obj0 = 0 ;
5980 char *kwnames[] = {
5981 (char *) "self", NULL
5982 };
5983
5984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5987 {
5988 PyThreadState* __tstate = wxPyBeginAllowThreads();
5989 (arg1)->Reset();
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_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6002 PyObject *resultobj;
6003 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6004 PyObject * obj0 = 0 ;
6005 char *kwnames[] = {
6006 (char *) "self", NULL
6007 };
6008
6009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 wxRegionIterator_Next(arg1);
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_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6027 PyObject *resultobj;
6028 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6029 bool result;
6030 PyObject * obj0 = 0 ;
6031 char *kwnames[] = {
6032 (char *) "self", NULL
6033 };
6034
6035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6038 {
6039 PyThreadState* __tstate = wxPyBeginAllowThreads();
6040 result = (bool)wxRegionIterator___nonzero__(arg1);
6041
6042 wxPyEndAllowThreads(__tstate);
6043 if (PyErr_Occurred()) SWIG_fail;
6044 }
6045 {
6046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6047 }
6048 return resultobj;
6049 fail:
6050 return NULL;
6051 }
6052
6053
6054 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6055 PyObject *obj;
6056 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6057 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6058 Py_INCREF(obj);
6059 return Py_BuildValue((char *)"");
6060 }
6061 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6062 PyObject *resultobj;
6063 wxNativeFontInfo *result;
6064 char *kwnames[] = {
6065 NULL
6066 };
6067
6068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6069 {
6070 PyThreadState* __tstate = wxPyBeginAllowThreads();
6071 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6072
6073 wxPyEndAllowThreads(__tstate);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6077 return resultobj;
6078 fail:
6079 return NULL;
6080 }
6081
6082
6083 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6084 PyObject *resultobj;
6085 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6086 PyObject * obj0 = 0 ;
6087 char *kwnames[] = {
6088 (char *) "self", NULL
6089 };
6090
6091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 delete arg1;
6097
6098 wxPyEndAllowThreads(__tstate);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 }
6101 Py_INCREF(Py_None); resultobj = Py_None;
6102 return resultobj;
6103 fail:
6104 return NULL;
6105 }
6106
6107
6108 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6109 PyObject *resultobj;
6110 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6111 PyObject * obj0 = 0 ;
6112 char *kwnames[] = {
6113 (char *) "self", NULL
6114 };
6115
6116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6119 {
6120 PyThreadState* __tstate = wxPyBeginAllowThreads();
6121 (arg1)->Init();
6122
6123 wxPyEndAllowThreads(__tstate);
6124 if (PyErr_Occurred()) SWIG_fail;
6125 }
6126 Py_INCREF(Py_None); resultobj = Py_None;
6127 return resultobj;
6128 fail:
6129 return NULL;
6130 }
6131
6132
6133 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6134 PyObject *resultobj;
6135 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6136 wxFont *arg2 = 0 ;
6137 PyObject * obj0 = 0 ;
6138 PyObject * obj1 = 0 ;
6139 char *kwnames[] = {
6140 (char *) "self",(char *) "font", NULL
6141 };
6142
6143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6146 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6147 SWIG_POINTER_EXCEPTION | 0)) == -1)
6148 SWIG_fail;
6149 if (arg2 == NULL) {
6150 PyErr_SetString(PyExc_TypeError,"null reference");
6151 SWIG_fail;
6152 }
6153 {
6154 PyThreadState* __tstate = wxPyBeginAllowThreads();
6155 (arg1)->InitFromFont((wxFont const &)*arg2);
6156
6157 wxPyEndAllowThreads(__tstate);
6158 if (PyErr_Occurred()) SWIG_fail;
6159 }
6160 Py_INCREF(Py_None); resultobj = Py_None;
6161 return resultobj;
6162 fail:
6163 return NULL;
6164 }
6165
6166
6167 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6168 PyObject *resultobj;
6169 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6170 int result;
6171 PyObject * obj0 = 0 ;
6172 char *kwnames[] = {
6173 (char *) "self", NULL
6174 };
6175
6176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6179 {
6180 PyThreadState* __tstate = wxPyBeginAllowThreads();
6181 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6182
6183 wxPyEndAllowThreads(__tstate);
6184 if (PyErr_Occurred()) SWIG_fail;
6185 }
6186 resultobj = SWIG_FromInt((int)result);
6187 return resultobj;
6188 fail:
6189 return NULL;
6190 }
6191
6192
6193 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6194 PyObject *resultobj;
6195 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6196 int result;
6197 PyObject * obj0 = 0 ;
6198 char *kwnames[] = {
6199 (char *) "self", NULL
6200 };
6201
6202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6205 {
6206 PyThreadState* __tstate = wxPyBeginAllowThreads();
6207 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6208
6209 wxPyEndAllowThreads(__tstate);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 }
6212 resultobj = SWIG_FromInt((int)result);
6213 return resultobj;
6214 fail:
6215 return NULL;
6216 }
6217
6218
6219 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6220 PyObject *resultobj;
6221 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6222 int result;
6223 PyObject * obj0 = 0 ;
6224 char *kwnames[] = {
6225 (char *) "self", NULL
6226 };
6227
6228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6231 {
6232 PyThreadState* __tstate = wxPyBeginAllowThreads();
6233 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6234
6235 wxPyEndAllowThreads(__tstate);
6236 if (PyErr_Occurred()) SWIG_fail;
6237 }
6238 resultobj = SWIG_FromInt((int)result);
6239 return resultobj;
6240 fail:
6241 return NULL;
6242 }
6243
6244
6245 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6246 PyObject *resultobj;
6247 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6248 bool result;
6249 PyObject * obj0 = 0 ;
6250 char *kwnames[] = {
6251 (char *) "self", NULL
6252 };
6253
6254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6257 {
6258 PyThreadState* __tstate = wxPyBeginAllowThreads();
6259 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6260
6261 wxPyEndAllowThreads(__tstate);
6262 if (PyErr_Occurred()) SWIG_fail;
6263 }
6264 {
6265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6266 }
6267 return resultobj;
6268 fail:
6269 return NULL;
6270 }
6271
6272
6273 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj;
6275 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6276 wxString result;
6277 PyObject * obj0 = 0 ;
6278 char *kwnames[] = {
6279 (char *) "self", NULL
6280 };
6281
6282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6285 {
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6288
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 {
6293 #if wxUSE_UNICODE
6294 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6295 #else
6296 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6297 #endif
6298 }
6299 return resultobj;
6300 fail:
6301 return NULL;
6302 }
6303
6304
6305 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6306 PyObject *resultobj;
6307 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6308 int result;
6309 PyObject * obj0 = 0 ;
6310 char *kwnames[] = {
6311 (char *) "self", NULL
6312 };
6313
6314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6317 {
6318 PyThreadState* __tstate = wxPyBeginAllowThreads();
6319 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6320
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 resultobj = SWIG_FromInt((int)result);
6325 return resultobj;
6326 fail:
6327 return NULL;
6328 }
6329
6330
6331 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj;
6333 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6334 int result;
6335 PyObject * obj0 = 0 ;
6336 char *kwnames[] = {
6337 (char *) "self", NULL
6338 };
6339
6340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6343 {
6344 PyThreadState* __tstate = wxPyBeginAllowThreads();
6345 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6346
6347 wxPyEndAllowThreads(__tstate);
6348 if (PyErr_Occurred()) SWIG_fail;
6349 }
6350 resultobj = SWIG_FromInt((int)result);
6351 return resultobj;
6352 fail:
6353 return NULL;
6354 }
6355
6356
6357 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6358 PyObject *resultobj;
6359 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6360 int arg2 ;
6361 PyObject * obj0 = 0 ;
6362 PyObject * obj1 = 0 ;
6363 char *kwnames[] = {
6364 (char *) "self",(char *) "pointsize", NULL
6365 };
6366
6367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6370 arg2 = (int) SWIG_AsInt(obj1);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 {
6373 PyThreadState* __tstate = wxPyBeginAllowThreads();
6374 (arg1)->SetPointSize(arg2);
6375
6376 wxPyEndAllowThreads(__tstate);
6377 if (PyErr_Occurred()) SWIG_fail;
6378 }
6379 Py_INCREF(Py_None); resultobj = Py_None;
6380 return resultobj;
6381 fail:
6382 return NULL;
6383 }
6384
6385
6386 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6387 PyObject *resultobj;
6388 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6389 int arg2 ;
6390 PyObject * obj0 = 0 ;
6391 PyObject * obj1 = 0 ;
6392 char *kwnames[] = {
6393 (char *) "self",(char *) "style", NULL
6394 };
6395
6396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6399 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6400 if (PyErr_Occurred()) SWIG_fail;
6401 {
6402 PyThreadState* __tstate = wxPyBeginAllowThreads();
6403 (arg1)->SetStyle((wxFontStyle )arg2);
6404
6405 wxPyEndAllowThreads(__tstate);
6406 if (PyErr_Occurred()) SWIG_fail;
6407 }
6408 Py_INCREF(Py_None); resultobj = Py_None;
6409 return resultobj;
6410 fail:
6411 return NULL;
6412 }
6413
6414
6415 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6416 PyObject *resultobj;
6417 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6418 int arg2 ;
6419 PyObject * obj0 = 0 ;
6420 PyObject * obj1 = 0 ;
6421 char *kwnames[] = {
6422 (char *) "self",(char *) "weight", NULL
6423 };
6424
6425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6428 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6429 if (PyErr_Occurred()) SWIG_fail;
6430 {
6431 PyThreadState* __tstate = wxPyBeginAllowThreads();
6432 (arg1)->SetWeight((wxFontWeight )arg2);
6433
6434 wxPyEndAllowThreads(__tstate);
6435 if (PyErr_Occurred()) SWIG_fail;
6436 }
6437 Py_INCREF(Py_None); resultobj = Py_None;
6438 return resultobj;
6439 fail:
6440 return NULL;
6441 }
6442
6443
6444 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6445 PyObject *resultobj;
6446 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6447 bool arg2 ;
6448 PyObject * obj0 = 0 ;
6449 PyObject * obj1 = 0 ;
6450 char *kwnames[] = {
6451 (char *) "self",(char *) "underlined", NULL
6452 };
6453
6454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6457 arg2 = (bool) SWIG_AsBool(obj1);
6458 if (PyErr_Occurred()) SWIG_fail;
6459 {
6460 PyThreadState* __tstate = wxPyBeginAllowThreads();
6461 (arg1)->SetUnderlined(arg2);
6462
6463 wxPyEndAllowThreads(__tstate);
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
6466 Py_INCREF(Py_None); resultobj = Py_None;
6467 return resultobj;
6468 fail:
6469 return NULL;
6470 }
6471
6472
6473 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6474 PyObject *resultobj;
6475 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6476 wxString arg2 ;
6477 PyObject * obj0 = 0 ;
6478 PyObject * obj1 = 0 ;
6479 char *kwnames[] = {
6480 (char *) "self",(char *) "facename", NULL
6481 };
6482
6483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6486 {
6487 wxString* sptr = wxString_in_helper(obj1);
6488 if (sptr == NULL) SWIG_fail;
6489 arg2 = *sptr;
6490 delete sptr;
6491 }
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
6494 (arg1)->SetFaceName(arg2);
6495
6496 wxPyEndAllowThreads(__tstate);
6497 if (PyErr_Occurred()) SWIG_fail;
6498 }
6499 Py_INCREF(Py_None); resultobj = Py_None;
6500 return resultobj;
6501 fail:
6502 return NULL;
6503 }
6504
6505
6506 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6507 PyObject *resultobj;
6508 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6509 int arg2 ;
6510 PyObject * obj0 = 0 ;
6511 PyObject * obj1 = 0 ;
6512 char *kwnames[] = {
6513 (char *) "self",(char *) "family", NULL
6514 };
6515
6516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6519 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6520 if (PyErr_Occurred()) SWIG_fail;
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 (arg1)->SetFamily((wxFontFamily )arg2);
6524
6525 wxPyEndAllowThreads(__tstate);
6526 if (PyErr_Occurred()) SWIG_fail;
6527 }
6528 Py_INCREF(Py_None); resultobj = Py_None;
6529 return resultobj;
6530 fail:
6531 return NULL;
6532 }
6533
6534
6535 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6536 PyObject *resultobj;
6537 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6538 int arg2 ;
6539 PyObject * obj0 = 0 ;
6540 PyObject * obj1 = 0 ;
6541 char *kwnames[] = {
6542 (char *) "self",(char *) "encoding", NULL
6543 };
6544
6545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6548 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 {
6551 PyThreadState* __tstate = wxPyBeginAllowThreads();
6552 (arg1)->SetEncoding((wxFontEncoding )arg2);
6553
6554 wxPyEndAllowThreads(__tstate);
6555 if (PyErr_Occurred()) SWIG_fail;
6556 }
6557 Py_INCREF(Py_None); resultobj = Py_None;
6558 return resultobj;
6559 fail:
6560 return NULL;
6561 }
6562
6563
6564 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6565 PyObject *resultobj;
6566 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6567 wxString *arg2 = 0 ;
6568 bool result;
6569 bool temp2 = False ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 char *kwnames[] = {
6573 (char *) "self",(char *) "s", NULL
6574 };
6575
6576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6579 {
6580 arg2 = wxString_in_helper(obj1);
6581 if (arg2 == NULL) SWIG_fail;
6582 temp2 = True;
6583 }
6584 {
6585 PyThreadState* __tstate = wxPyBeginAllowThreads();
6586 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6587
6588 wxPyEndAllowThreads(__tstate);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 {
6592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6593 }
6594 {
6595 if (temp2)
6596 delete arg2;
6597 }
6598 return resultobj;
6599 fail:
6600 {
6601 if (temp2)
6602 delete arg2;
6603 }
6604 return NULL;
6605 }
6606
6607
6608 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6609 PyObject *resultobj;
6610 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6611 wxString result;
6612 PyObject * obj0 = 0 ;
6613 char *kwnames[] = {
6614 (char *) "self", NULL
6615 };
6616
6617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6620 {
6621 PyThreadState* __tstate = wxPyBeginAllowThreads();
6622 result = ((wxNativeFontInfo const *)arg1)->ToString();
6623
6624 wxPyEndAllowThreads(__tstate);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 {
6628 #if wxUSE_UNICODE
6629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6630 #else
6631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6632 #endif
6633 }
6634 return resultobj;
6635 fail:
6636 return NULL;
6637 }
6638
6639
6640 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6641 PyObject *resultobj;
6642 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6643 wxString result;
6644 PyObject * obj0 = 0 ;
6645 char *kwnames[] = {
6646 (char *) "self", NULL
6647 };
6648
6649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6652 {
6653 PyThreadState* __tstate = wxPyBeginAllowThreads();
6654 result = wxNativeFontInfo___str__(arg1);
6655
6656 wxPyEndAllowThreads(__tstate);
6657 if (PyErr_Occurred()) SWIG_fail;
6658 }
6659 {
6660 #if wxUSE_UNICODE
6661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6662 #else
6663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6664 #endif
6665 }
6666 return resultobj;
6667 fail:
6668 return NULL;
6669 }
6670
6671
6672 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6673 PyObject *resultobj;
6674 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6675 wxString *arg2 = 0 ;
6676 bool result;
6677 bool temp2 = False ;
6678 PyObject * obj0 = 0 ;
6679 PyObject * obj1 = 0 ;
6680 char *kwnames[] = {
6681 (char *) "self",(char *) "s", NULL
6682 };
6683
6684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6687 {
6688 arg2 = wxString_in_helper(obj1);
6689 if (arg2 == NULL) SWIG_fail;
6690 temp2 = True;
6691 }
6692 {
6693 PyThreadState* __tstate = wxPyBeginAllowThreads();
6694 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6695
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 {
6700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6701 }
6702 {
6703 if (temp2)
6704 delete arg2;
6705 }
6706 return resultobj;
6707 fail:
6708 {
6709 if (temp2)
6710 delete arg2;
6711 }
6712 return NULL;
6713 }
6714
6715
6716 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6717 PyObject *resultobj;
6718 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6719 wxString result;
6720 PyObject * obj0 = 0 ;
6721 char *kwnames[] = {
6722 (char *) "self", NULL
6723 };
6724
6725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6728 {
6729 PyThreadState* __tstate = wxPyBeginAllowThreads();
6730 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6731
6732 wxPyEndAllowThreads(__tstate);
6733 if (PyErr_Occurred()) SWIG_fail;
6734 }
6735 {
6736 #if wxUSE_UNICODE
6737 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6738 #else
6739 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6740 #endif
6741 }
6742 return resultobj;
6743 fail:
6744 return NULL;
6745 }
6746
6747
6748 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6749 PyObject *obj;
6750 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6751 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6752 Py_INCREF(obj);
6753 return Py_BuildValue((char *)"");
6754 }
6755 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6756 PyObject *resultobj;
6757 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6758 wxString *arg2 = (wxString *) 0 ;
6759 bool temp2 = False ;
6760 PyObject * obj0 = 0 ;
6761 PyObject * obj1 = 0 ;
6762 char *kwnames[] = {
6763 (char *) "self",(char *) "facename", NULL
6764 };
6765
6766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6769 {
6770 arg2 = wxString_in_helper(obj1);
6771 if (arg2 == NULL) SWIG_fail;
6772 temp2 = True;
6773 }
6774 if (arg1) (arg1)->facename = *arg2;
6775
6776 Py_INCREF(Py_None); resultobj = Py_None;
6777 {
6778 if (temp2)
6779 delete arg2;
6780 }
6781 return resultobj;
6782 fail:
6783 {
6784 if (temp2)
6785 delete arg2;
6786 }
6787 return NULL;
6788 }
6789
6790
6791 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6792 PyObject *resultobj;
6793 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6794 wxString *result;
6795 PyObject * obj0 = 0 ;
6796 char *kwnames[] = {
6797 (char *) "self", NULL
6798 };
6799
6800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6803 result = (wxString *)& ((arg1)->facename);
6804
6805 {
6806 #if wxUSE_UNICODE
6807 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6808 #else
6809 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6810 #endif
6811 }
6812 return resultobj;
6813 fail:
6814 return NULL;
6815 }
6816
6817
6818 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6819 PyObject *resultobj;
6820 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6821 int arg2 ;
6822 PyObject * obj0 = 0 ;
6823 PyObject * obj1 = 0 ;
6824 char *kwnames[] = {
6825 (char *) "self",(char *) "encoding", NULL
6826 };
6827
6828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6831 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6832 if (PyErr_Occurred()) SWIG_fail;
6833 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6834
6835 Py_INCREF(Py_None); resultobj = Py_None;
6836 return resultobj;
6837 fail:
6838 return NULL;
6839 }
6840
6841
6842 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6843 PyObject *resultobj;
6844 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6845 int result;
6846 PyObject * obj0 = 0 ;
6847 char *kwnames[] = {
6848 (char *) "self", NULL
6849 };
6850
6851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6854 result = (int) ((arg1)->encoding);
6855
6856 resultobj = SWIG_FromInt((int)result);
6857 return resultobj;
6858 fail:
6859 return NULL;
6860 }
6861
6862
6863 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6864 PyObject *resultobj;
6865 wxNativeEncodingInfo *result;
6866 char *kwnames[] = {
6867 NULL
6868 };
6869
6870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6871 {
6872 PyThreadState* __tstate = wxPyBeginAllowThreads();
6873 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6874
6875 wxPyEndAllowThreads(__tstate);
6876 if (PyErr_Occurred()) SWIG_fail;
6877 }
6878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6879 return resultobj;
6880 fail:
6881 return NULL;
6882 }
6883
6884
6885 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6886 PyObject *resultobj;
6887 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6888 PyObject * obj0 = 0 ;
6889 char *kwnames[] = {
6890 (char *) "self", NULL
6891 };
6892
6893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6896 {
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 delete arg1;
6899
6900 wxPyEndAllowThreads(__tstate);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 Py_INCREF(Py_None); resultobj = Py_None;
6904 return resultobj;
6905 fail:
6906 return NULL;
6907 }
6908
6909
6910 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6911 PyObject *resultobj;
6912 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6913 wxString *arg2 = 0 ;
6914 bool result;
6915 bool temp2 = False ;
6916 PyObject * obj0 = 0 ;
6917 PyObject * obj1 = 0 ;
6918 char *kwnames[] = {
6919 (char *) "self",(char *) "s", NULL
6920 };
6921
6922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6925 {
6926 arg2 = wxString_in_helper(obj1);
6927 if (arg2 == NULL) SWIG_fail;
6928 temp2 = True;
6929 }
6930 {
6931 PyThreadState* __tstate = wxPyBeginAllowThreads();
6932 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6933
6934 wxPyEndAllowThreads(__tstate);
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 {
6938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6939 }
6940 {
6941 if (temp2)
6942 delete arg2;
6943 }
6944 return resultobj;
6945 fail:
6946 {
6947 if (temp2)
6948 delete arg2;
6949 }
6950 return NULL;
6951 }
6952
6953
6954 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6955 PyObject *resultobj;
6956 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6957 wxString result;
6958 PyObject * obj0 = 0 ;
6959 char *kwnames[] = {
6960 (char *) "self", NULL
6961 };
6962
6963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6966 {
6967 PyThreadState* __tstate = wxPyBeginAllowThreads();
6968 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6969
6970 wxPyEndAllowThreads(__tstate);
6971 if (PyErr_Occurred()) SWIG_fail;
6972 }
6973 {
6974 #if wxUSE_UNICODE
6975 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6976 #else
6977 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6978 #endif
6979 }
6980 return resultobj;
6981 fail:
6982 return NULL;
6983 }
6984
6985
6986 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6987 PyObject *obj;
6988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6989 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6990 Py_INCREF(obj);
6991 return Py_BuildValue((char *)"");
6992 }
6993 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6994 PyObject *resultobj;
6995 int arg1 ;
6996 wxNativeEncodingInfo *result;
6997 PyObject * obj0 = 0 ;
6998 char *kwnames[] = {
6999 (char *) "encoding", NULL
7000 };
7001
7002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7003 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7004 if (PyErr_Occurred()) SWIG_fail;
7005 {
7006 PyThreadState* __tstate = wxPyBeginAllowThreads();
7007 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7008
7009 wxPyEndAllowThreads(__tstate);
7010 if (PyErr_Occurred()) SWIG_fail;
7011 }
7012 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7013 return resultobj;
7014 fail:
7015 return NULL;
7016 }
7017
7018
7019 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7020 PyObject *resultobj;
7021 wxNativeEncodingInfo *arg1 = 0 ;
7022 bool result;
7023 PyObject * obj0 = 0 ;
7024 char *kwnames[] = {
7025 (char *) "info", NULL
7026 };
7027
7028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7030 SWIG_POINTER_EXCEPTION | 0)) == -1)
7031 SWIG_fail;
7032 if (arg1 == NULL) {
7033 PyErr_SetString(PyExc_TypeError,"null reference");
7034 SWIG_fail;
7035 }
7036 {
7037 PyThreadState* __tstate = wxPyBeginAllowThreads();
7038 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7039
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 {
7044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7045 }
7046 return resultobj;
7047 fail:
7048 return NULL;
7049 }
7050
7051
7052 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7053 PyObject *resultobj;
7054 wxFontMapper *result;
7055 char *kwnames[] = {
7056 NULL
7057 };
7058
7059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7060 {
7061 PyThreadState* __tstate = wxPyBeginAllowThreads();
7062 result = (wxFontMapper *)new wxFontMapper();
7063
7064 wxPyEndAllowThreads(__tstate);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7068 return resultobj;
7069 fail:
7070 return NULL;
7071 }
7072
7073
7074 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7075 PyObject *resultobj;
7076 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7077 PyObject * obj0 = 0 ;
7078 char *kwnames[] = {
7079 (char *) "self", NULL
7080 };
7081
7082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 delete arg1;
7088
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 Py_INCREF(Py_None); resultobj = Py_None;
7093 return resultobj;
7094 fail:
7095 return NULL;
7096 }
7097
7098
7099 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7100 PyObject *resultobj;
7101 wxFontMapper *result;
7102 char *kwnames[] = {
7103 NULL
7104 };
7105
7106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7107 {
7108 PyThreadState* __tstate = wxPyBeginAllowThreads();
7109 result = (wxFontMapper *)wxFontMapper::Get();
7110
7111 wxPyEndAllowThreads(__tstate);
7112 if (PyErr_Occurred()) SWIG_fail;
7113 }
7114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7115 return resultobj;
7116 fail:
7117 return NULL;
7118 }
7119
7120
7121 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7122 PyObject *resultobj;
7123 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7124 wxFontMapper *result;
7125 PyObject * obj0 = 0 ;
7126 char *kwnames[] = {
7127 (char *) "mapper", NULL
7128 };
7129
7130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7133 {
7134 PyThreadState* __tstate = wxPyBeginAllowThreads();
7135 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7136
7137 wxPyEndAllowThreads(__tstate);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7141 return resultobj;
7142 fail:
7143 return NULL;
7144 }
7145
7146
7147 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7148 PyObject *resultobj;
7149 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7150 wxString *arg2 = 0 ;
7151 bool arg3 = (bool) True ;
7152 int result;
7153 bool temp2 = False ;
7154 PyObject * obj0 = 0 ;
7155 PyObject * obj1 = 0 ;
7156 PyObject * obj2 = 0 ;
7157 char *kwnames[] = {
7158 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7159 };
7160
7161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7164 {
7165 arg2 = wxString_in_helper(obj1);
7166 if (arg2 == NULL) SWIG_fail;
7167 temp2 = True;
7168 }
7169 if (obj2) {
7170 arg3 = (bool) SWIG_AsBool(obj2);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 {
7174 PyThreadState* __tstate = wxPyBeginAllowThreads();
7175 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7176
7177 wxPyEndAllowThreads(__tstate);
7178 if (PyErr_Occurred()) SWIG_fail;
7179 }
7180 resultobj = SWIG_FromInt((int)result);
7181 {
7182 if (temp2)
7183 delete arg2;
7184 }
7185 return resultobj;
7186 fail:
7187 {
7188 if (temp2)
7189 delete arg2;
7190 }
7191 return NULL;
7192 }
7193
7194
7195 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7196 PyObject *resultobj;
7197 size_t result;
7198 char *kwnames[] = {
7199 NULL
7200 };
7201
7202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7203 {
7204 PyThreadState* __tstate = wxPyBeginAllowThreads();
7205 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7206
7207 wxPyEndAllowThreads(__tstate);
7208 if (PyErr_Occurred()) SWIG_fail;
7209 }
7210 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7211 return resultobj;
7212 fail:
7213 return NULL;
7214 }
7215
7216
7217 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7218 PyObject *resultobj;
7219 size_t arg1 ;
7220 int result;
7221 PyObject * obj0 = 0 ;
7222 char *kwnames[] = {
7223 (char *) "n", NULL
7224 };
7225
7226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7227 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7228 if (PyErr_Occurred()) SWIG_fail;
7229 {
7230 PyThreadState* __tstate = wxPyBeginAllowThreads();
7231 result = (int)wxFontMapper::GetEncoding(arg1);
7232
7233 wxPyEndAllowThreads(__tstate);
7234 if (PyErr_Occurred()) SWIG_fail;
7235 }
7236 resultobj = SWIG_FromInt((int)result);
7237 return resultobj;
7238 fail:
7239 return NULL;
7240 }
7241
7242
7243 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7244 PyObject *resultobj;
7245 int arg1 ;
7246 wxString result;
7247 PyObject * obj0 = 0 ;
7248 char *kwnames[] = {
7249 (char *) "encoding", NULL
7250 };
7251
7252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7253 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7254 if (PyErr_Occurred()) SWIG_fail;
7255 {
7256 PyThreadState* __tstate = wxPyBeginAllowThreads();
7257 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7258
7259 wxPyEndAllowThreads(__tstate);
7260 if (PyErr_Occurred()) SWIG_fail;
7261 }
7262 {
7263 #if wxUSE_UNICODE
7264 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7265 #else
7266 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7267 #endif
7268 }
7269 return resultobj;
7270 fail:
7271 return NULL;
7272 }
7273
7274
7275 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7276 PyObject *resultobj;
7277 int arg1 ;
7278 wxString result;
7279 PyObject * obj0 = 0 ;
7280 char *kwnames[] = {
7281 (char *) "encoding", NULL
7282 };
7283
7284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7285 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7286 if (PyErr_Occurred()) SWIG_fail;
7287 {
7288 PyThreadState* __tstate = wxPyBeginAllowThreads();
7289 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7290
7291 wxPyEndAllowThreads(__tstate);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 {
7295 #if wxUSE_UNICODE
7296 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7297 #else
7298 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7299 #endif
7300 }
7301 return resultobj;
7302 fail:
7303 return NULL;
7304 }
7305
7306
7307 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7308 PyObject *resultobj;
7309 wxString *arg1 = 0 ;
7310 int result;
7311 bool temp1 = False ;
7312 PyObject * obj0 = 0 ;
7313 char *kwnames[] = {
7314 (char *) "name", NULL
7315 };
7316
7317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7318 {
7319 arg1 = wxString_in_helper(obj0);
7320 if (arg1 == NULL) SWIG_fail;
7321 temp1 = True;
7322 }
7323 {
7324 PyThreadState* __tstate = wxPyBeginAllowThreads();
7325 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7326
7327 wxPyEndAllowThreads(__tstate);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 resultobj = SWIG_FromInt((int)result);
7331 {
7332 if (temp1)
7333 delete arg1;
7334 }
7335 return resultobj;
7336 fail:
7337 {
7338 if (temp1)
7339 delete arg1;
7340 }
7341 return NULL;
7342 }
7343
7344
7345 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7346 PyObject *resultobj;
7347 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7348 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7349 PyObject * obj0 = 0 ;
7350 PyObject * obj1 = 0 ;
7351 char *kwnames[] = {
7352 (char *) "self",(char *) "config", NULL
7353 };
7354
7355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7358 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7360 {
7361 PyThreadState* __tstate = wxPyBeginAllowThreads();
7362 (arg1)->SetConfig(arg2);
7363
7364 wxPyEndAllowThreads(__tstate);
7365 if (PyErr_Occurred()) SWIG_fail;
7366 }
7367 Py_INCREF(Py_None); resultobj = Py_None;
7368 return resultobj;
7369 fail:
7370 return NULL;
7371 }
7372
7373
7374 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7375 PyObject *resultobj;
7376 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7377 wxString *arg2 = 0 ;
7378 bool temp2 = False ;
7379 PyObject * obj0 = 0 ;
7380 PyObject * obj1 = 0 ;
7381 char *kwnames[] = {
7382 (char *) "self",(char *) "prefix", NULL
7383 };
7384
7385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7388 {
7389 arg2 = wxString_in_helper(obj1);
7390 if (arg2 == NULL) SWIG_fail;
7391 temp2 = True;
7392 }
7393 {
7394 PyThreadState* __tstate = wxPyBeginAllowThreads();
7395 (arg1)->SetConfigPath((wxString const &)*arg2);
7396
7397 wxPyEndAllowThreads(__tstate);
7398 if (PyErr_Occurred()) SWIG_fail;
7399 }
7400 Py_INCREF(Py_None); resultobj = Py_None;
7401 {
7402 if (temp2)
7403 delete arg2;
7404 }
7405 return resultobj;
7406 fail:
7407 {
7408 if (temp2)
7409 delete arg2;
7410 }
7411 return NULL;
7412 }
7413
7414
7415 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7416 PyObject *resultobj;
7417 wxString result;
7418 char *kwnames[] = {
7419 NULL
7420 };
7421
7422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7423 {
7424 PyThreadState* __tstate = wxPyBeginAllowThreads();
7425 result = wxFontMapper::GetDefaultConfigPath();
7426
7427 wxPyEndAllowThreads(__tstate);
7428 if (PyErr_Occurred()) SWIG_fail;
7429 }
7430 {
7431 #if wxUSE_UNICODE
7432 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7433 #else
7434 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7435 #endif
7436 }
7437 return resultobj;
7438 fail:
7439 return NULL;
7440 }
7441
7442
7443 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7444 PyObject *resultobj;
7445 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7446 int arg2 ;
7447 wxString const &arg3_defvalue = wxPyEmptyString ;
7448 wxString *arg3 = (wxString *) &arg3_defvalue ;
7449 bool arg4 = (bool) True ;
7450 PyObject *result;
7451 bool temp3 = False ;
7452 PyObject * obj0 = 0 ;
7453 PyObject * obj1 = 0 ;
7454 PyObject * obj2 = 0 ;
7455 PyObject * obj3 = 0 ;
7456 char *kwnames[] = {
7457 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7458 };
7459
7460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7463 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 if (obj2) {
7466 {
7467 arg3 = wxString_in_helper(obj2);
7468 if (arg3 == NULL) SWIG_fail;
7469 temp3 = True;
7470 }
7471 }
7472 if (obj3) {
7473 arg4 = (bool) SWIG_AsBool(obj3);
7474 if (PyErr_Occurred()) SWIG_fail;
7475 }
7476 {
7477 PyThreadState* __tstate = wxPyBeginAllowThreads();
7478 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7479
7480 wxPyEndAllowThreads(__tstate);
7481 if (PyErr_Occurred()) SWIG_fail;
7482 }
7483 resultobj = result;
7484 {
7485 if (temp3)
7486 delete arg3;
7487 }
7488 return resultobj;
7489 fail:
7490 {
7491 if (temp3)
7492 delete arg3;
7493 }
7494 return NULL;
7495 }
7496
7497
7498 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7499 PyObject *resultobj;
7500 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7501 int arg2 ;
7502 wxString const &arg3_defvalue = wxPyEmptyString ;
7503 wxString *arg3 = (wxString *) &arg3_defvalue ;
7504 bool result;
7505 bool temp3 = False ;
7506 PyObject * obj0 = 0 ;
7507 PyObject * obj1 = 0 ;
7508 PyObject * obj2 = 0 ;
7509 char *kwnames[] = {
7510 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7511 };
7512
7513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7516 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7517 if (PyErr_Occurred()) SWIG_fail;
7518 if (obj2) {
7519 {
7520 arg3 = wxString_in_helper(obj2);
7521 if (arg3 == NULL) SWIG_fail;
7522 temp3 = True;
7523 }
7524 }
7525 {
7526 PyThreadState* __tstate = wxPyBeginAllowThreads();
7527 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7528
7529 wxPyEndAllowThreads(__tstate);
7530 if (PyErr_Occurred()) SWIG_fail;
7531 }
7532 {
7533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7534 }
7535 {
7536 if (temp3)
7537 delete arg3;
7538 }
7539 return resultobj;
7540 fail:
7541 {
7542 if (temp3)
7543 delete arg3;
7544 }
7545 return NULL;
7546 }
7547
7548
7549 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7550 PyObject *resultobj;
7551 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7552 wxWindow *arg2 = (wxWindow *) 0 ;
7553 PyObject * obj0 = 0 ;
7554 PyObject * obj1 = 0 ;
7555 char *kwnames[] = {
7556 (char *) "self",(char *) "parent", NULL
7557 };
7558
7559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7562 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7564 {
7565 PyThreadState* __tstate = wxPyBeginAllowThreads();
7566 (arg1)->SetDialogParent(arg2);
7567
7568 wxPyEndAllowThreads(__tstate);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 Py_INCREF(Py_None); resultobj = Py_None;
7572 return resultobj;
7573 fail:
7574 return NULL;
7575 }
7576
7577
7578 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7579 PyObject *resultobj;
7580 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7581 wxString *arg2 = 0 ;
7582 bool temp2 = False ;
7583 PyObject * obj0 = 0 ;
7584 PyObject * obj1 = 0 ;
7585 char *kwnames[] = {
7586 (char *) "self",(char *) "title", NULL
7587 };
7588
7589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7592 {
7593 arg2 = wxString_in_helper(obj1);
7594 if (arg2 == NULL) SWIG_fail;
7595 temp2 = True;
7596 }
7597 {
7598 PyThreadState* __tstate = wxPyBeginAllowThreads();
7599 (arg1)->SetDialogTitle((wxString const &)*arg2);
7600
7601 wxPyEndAllowThreads(__tstate);
7602 if (PyErr_Occurred()) SWIG_fail;
7603 }
7604 Py_INCREF(Py_None); resultobj = Py_None;
7605 {
7606 if (temp2)
7607 delete arg2;
7608 }
7609 return resultobj;
7610 fail:
7611 {
7612 if (temp2)
7613 delete arg2;
7614 }
7615 return NULL;
7616 }
7617
7618
7619 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7620 PyObject *obj;
7621 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7622 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7623 Py_INCREF(obj);
7624 return Py_BuildValue((char *)"");
7625 }
7626 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7627 PyObject *resultobj;
7628 int arg1 ;
7629 int arg2 ;
7630 int arg3 ;
7631 int arg4 ;
7632 bool arg5 = (bool) False ;
7633 wxString const &arg6_defvalue = wxPyEmptyString ;
7634 wxString *arg6 = (wxString *) &arg6_defvalue ;
7635 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7636 wxFont *result;
7637 bool temp6 = False ;
7638 PyObject * obj0 = 0 ;
7639 PyObject * obj1 = 0 ;
7640 PyObject * obj2 = 0 ;
7641 PyObject * obj3 = 0 ;
7642 PyObject * obj4 = 0 ;
7643 PyObject * obj5 = 0 ;
7644 PyObject * obj6 = 0 ;
7645 char *kwnames[] = {
7646 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7647 };
7648
7649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7650 arg1 = (int) SWIG_AsInt(obj0);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 arg2 = (int) SWIG_AsInt(obj1);
7653 if (PyErr_Occurred()) SWIG_fail;
7654 arg3 = (int) SWIG_AsInt(obj2);
7655 if (PyErr_Occurred()) SWIG_fail;
7656 arg4 = (int) SWIG_AsInt(obj3);
7657 if (PyErr_Occurred()) SWIG_fail;
7658 if (obj4) {
7659 arg5 = (bool) SWIG_AsBool(obj4);
7660 if (PyErr_Occurred()) SWIG_fail;
7661 }
7662 if (obj5) {
7663 {
7664 arg6 = wxString_in_helper(obj5);
7665 if (arg6 == NULL) SWIG_fail;
7666 temp6 = True;
7667 }
7668 }
7669 if (obj6) {
7670 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7671 if (PyErr_Occurred()) SWIG_fail;
7672 }
7673 {
7674 PyThreadState* __tstate = wxPyBeginAllowThreads();
7675 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7676
7677 wxPyEndAllowThreads(__tstate);
7678 if (PyErr_Occurred()) SWIG_fail;
7679 }
7680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7681 {
7682 if (temp6)
7683 delete arg6;
7684 }
7685 return resultobj;
7686 fail:
7687 {
7688 if (temp6)
7689 delete arg6;
7690 }
7691 return NULL;
7692 }
7693
7694
7695 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7696 PyObject *resultobj;
7697 wxFont *arg1 = (wxFont *) 0 ;
7698 PyObject * obj0 = 0 ;
7699 char *kwnames[] = {
7700 (char *) "self", NULL
7701 };
7702
7703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7706 {
7707 PyThreadState* __tstate = wxPyBeginAllowThreads();
7708 delete arg1;
7709
7710 wxPyEndAllowThreads(__tstate);
7711 if (PyErr_Occurred()) SWIG_fail;
7712 }
7713 Py_INCREF(Py_None); resultobj = Py_None;
7714 return resultobj;
7715 fail:
7716 return NULL;
7717 }
7718
7719
7720 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7721 PyObject *resultobj;
7722 wxNativeFontInfo *arg1 = 0 ;
7723 wxFont *result;
7724 PyObject * obj0 = 0 ;
7725 char *kwnames[] = {
7726 (char *) "info", NULL
7727 };
7728
7729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7731 SWIG_POINTER_EXCEPTION | 0)) == -1)
7732 SWIG_fail;
7733 if (arg1 == NULL) {
7734 PyErr_SetString(PyExc_TypeError,"null reference");
7735 SWIG_fail;
7736 }
7737 {
7738 PyThreadState* __tstate = wxPyBeginAllowThreads();
7739 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7740
7741 wxPyEndAllowThreads(__tstate);
7742 if (PyErr_Occurred()) SWIG_fail;
7743 }
7744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7745 return resultobj;
7746 fail:
7747 return NULL;
7748 }
7749
7750
7751 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7752 PyObject *resultobj;
7753 wxString *arg1 = 0 ;
7754 wxFont *result;
7755 bool temp1 = False ;
7756 PyObject * obj0 = 0 ;
7757 char *kwnames[] = {
7758 (char *) "info", NULL
7759 };
7760
7761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7762 {
7763 arg1 = wxString_in_helper(obj0);
7764 if (arg1 == NULL) SWIG_fail;
7765 temp1 = True;
7766 }
7767 {
7768 PyThreadState* __tstate = wxPyBeginAllowThreads();
7769 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7770
7771 wxPyEndAllowThreads(__tstate);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7775 {
7776 if (temp1)
7777 delete arg1;
7778 }
7779 return resultobj;
7780 fail:
7781 {
7782 if (temp1)
7783 delete arg1;
7784 }
7785 return NULL;
7786 }
7787
7788
7789 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7790 PyObject *resultobj;
7791 int arg1 ;
7792 int arg2 ;
7793 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7794 wxString const &arg4_defvalue = wxPyEmptyString ;
7795 wxString *arg4 = (wxString *) &arg4_defvalue ;
7796 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7797 wxFont *result;
7798 bool temp4 = False ;
7799 PyObject * obj0 = 0 ;
7800 PyObject * obj1 = 0 ;
7801 PyObject * obj2 = 0 ;
7802 PyObject * obj3 = 0 ;
7803 PyObject * obj4 = 0 ;
7804 char *kwnames[] = {
7805 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7806 };
7807
7808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7809 arg1 = (int) SWIG_AsInt(obj0);
7810 if (PyErr_Occurred()) SWIG_fail;
7811 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 if (obj2) {
7814 arg3 = (int) SWIG_AsInt(obj2);
7815 if (PyErr_Occurred()) SWIG_fail;
7816 }
7817 if (obj3) {
7818 {
7819 arg4 = wxString_in_helper(obj3);
7820 if (arg4 == NULL) SWIG_fail;
7821 temp4 = True;
7822 }
7823 }
7824 if (obj4) {
7825 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7826 if (PyErr_Occurred()) SWIG_fail;
7827 }
7828 {
7829 PyThreadState* __tstate = wxPyBeginAllowThreads();
7830 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7831
7832 wxPyEndAllowThreads(__tstate);
7833 if (PyErr_Occurred()) SWIG_fail;
7834 }
7835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7836 {
7837 if (temp4)
7838 delete arg4;
7839 }
7840 return resultobj;
7841 fail:
7842 {
7843 if (temp4)
7844 delete arg4;
7845 }
7846 return NULL;
7847 }
7848
7849
7850 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7851 PyObject *resultobj;
7852 wxFont *arg1 = (wxFont *) 0 ;
7853 bool result;
7854 PyObject * obj0 = 0 ;
7855 char *kwnames[] = {
7856 (char *) "self", NULL
7857 };
7858
7859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7862 {
7863 PyThreadState* __tstate = wxPyBeginAllowThreads();
7864 result = (bool)((wxFont const *)arg1)->Ok();
7865
7866 wxPyEndAllowThreads(__tstate);
7867 if (PyErr_Occurred()) SWIG_fail;
7868 }
7869 {
7870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7871 }
7872 return resultobj;
7873 fail:
7874 return NULL;
7875 }
7876
7877
7878 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7879 PyObject *resultobj;
7880 wxFont *arg1 = (wxFont *) 0 ;
7881 wxFont *arg2 = (wxFont *) 0 ;
7882 bool result;
7883 PyObject * obj0 = 0 ;
7884 PyObject * obj1 = 0 ;
7885 char *kwnames[] = {
7886 (char *) "self",(char *) "other", NULL
7887 };
7888
7889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7892 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7894 {
7895 PyThreadState* __tstate = wxPyBeginAllowThreads();
7896 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7897
7898 wxPyEndAllowThreads(__tstate);
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 {
7902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7903 }
7904 return resultobj;
7905 fail:
7906 return NULL;
7907 }
7908
7909
7910 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7911 PyObject *resultobj;
7912 wxFont *arg1 = (wxFont *) 0 ;
7913 wxFont *arg2 = (wxFont *) 0 ;
7914 bool result;
7915 PyObject * obj0 = 0 ;
7916 PyObject * obj1 = 0 ;
7917 char *kwnames[] = {
7918 (char *) "self",(char *) "other", NULL
7919 };
7920
7921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7924 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7926 {
7927 PyThreadState* __tstate = wxPyBeginAllowThreads();
7928 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7929
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 {
7934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7935 }
7936 return resultobj;
7937 fail:
7938 return NULL;
7939 }
7940
7941
7942 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7943 PyObject *resultobj;
7944 wxFont *arg1 = (wxFont *) 0 ;
7945 int result;
7946 PyObject * obj0 = 0 ;
7947 char *kwnames[] = {
7948 (char *) "self", NULL
7949 };
7950
7951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7954 {
7955 PyThreadState* __tstate = wxPyBeginAllowThreads();
7956 result = (int)((wxFont const *)arg1)->GetPointSize();
7957
7958 wxPyEndAllowThreads(__tstate);
7959 if (PyErr_Occurred()) SWIG_fail;
7960 }
7961 resultobj = SWIG_FromInt((int)result);
7962 return resultobj;
7963 fail:
7964 return NULL;
7965 }
7966
7967
7968 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7969 PyObject *resultobj;
7970 wxFont *arg1 = (wxFont *) 0 ;
7971 int result;
7972 PyObject * obj0 = 0 ;
7973 char *kwnames[] = {
7974 (char *) "self", NULL
7975 };
7976
7977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7980 {
7981 PyThreadState* __tstate = wxPyBeginAllowThreads();
7982 result = (int)((wxFont const *)arg1)->GetFamily();
7983
7984 wxPyEndAllowThreads(__tstate);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 resultobj = SWIG_FromInt((int)result);
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj;
7996 wxFont *arg1 = (wxFont *) 0 ;
7997 int result;
7998 PyObject * obj0 = 0 ;
7999 char *kwnames[] = {
8000 (char *) "self", NULL
8001 };
8002
8003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8006 {
8007 PyThreadState* __tstate = wxPyBeginAllowThreads();
8008 result = (int)((wxFont const *)arg1)->GetStyle();
8009
8010 wxPyEndAllowThreads(__tstate);
8011 if (PyErr_Occurred()) SWIG_fail;
8012 }
8013 resultobj = SWIG_FromInt((int)result);
8014 return resultobj;
8015 fail:
8016 return NULL;
8017 }
8018
8019
8020 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8021 PyObject *resultobj;
8022 wxFont *arg1 = (wxFont *) 0 ;
8023 int result;
8024 PyObject * obj0 = 0 ;
8025 char *kwnames[] = {
8026 (char *) "self", NULL
8027 };
8028
8029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 result = (int)((wxFont const *)arg1)->GetWeight();
8035
8036 wxPyEndAllowThreads(__tstate);
8037 if (PyErr_Occurred()) SWIG_fail;
8038 }
8039 resultobj = SWIG_FromInt((int)result);
8040 return resultobj;
8041 fail:
8042 return NULL;
8043 }
8044
8045
8046 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8047 PyObject *resultobj;
8048 wxFont *arg1 = (wxFont *) 0 ;
8049 bool result;
8050 PyObject * obj0 = 0 ;
8051 char *kwnames[] = {
8052 (char *) "self", NULL
8053 };
8054
8055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8058 {
8059 PyThreadState* __tstate = wxPyBeginAllowThreads();
8060 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8061
8062 wxPyEndAllowThreads(__tstate);
8063 if (PyErr_Occurred()) SWIG_fail;
8064 }
8065 {
8066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8067 }
8068 return resultobj;
8069 fail:
8070 return NULL;
8071 }
8072
8073
8074 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8075 PyObject *resultobj;
8076 wxFont *arg1 = (wxFont *) 0 ;
8077 wxString result;
8078 PyObject * obj0 = 0 ;
8079 char *kwnames[] = {
8080 (char *) "self", NULL
8081 };
8082
8083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8086 {
8087 PyThreadState* __tstate = wxPyBeginAllowThreads();
8088 result = ((wxFont const *)arg1)->GetFaceName();
8089
8090 wxPyEndAllowThreads(__tstate);
8091 if (PyErr_Occurred()) SWIG_fail;
8092 }
8093 {
8094 #if wxUSE_UNICODE
8095 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8096 #else
8097 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8098 #endif
8099 }
8100 return resultobj;
8101 fail:
8102 return NULL;
8103 }
8104
8105
8106 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8107 PyObject *resultobj;
8108 wxFont *arg1 = (wxFont *) 0 ;
8109 int result;
8110 PyObject * obj0 = 0 ;
8111 char *kwnames[] = {
8112 (char *) "self", NULL
8113 };
8114
8115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8118 {
8119 PyThreadState* __tstate = wxPyBeginAllowThreads();
8120 result = (int)((wxFont const *)arg1)->GetEncoding();
8121
8122 wxPyEndAllowThreads(__tstate);
8123 if (PyErr_Occurred()) SWIG_fail;
8124 }
8125 resultobj = SWIG_FromInt((int)result);
8126 return resultobj;
8127 fail:
8128 return NULL;
8129 }
8130
8131
8132 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8133 PyObject *resultobj;
8134 wxFont *arg1 = (wxFont *) 0 ;
8135 wxNativeFontInfo *result;
8136 PyObject * obj0 = 0 ;
8137 char *kwnames[] = {
8138 (char *) "self", NULL
8139 };
8140
8141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8144 {
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8147
8148 wxPyEndAllowThreads(__tstate);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8152 return resultobj;
8153 fail:
8154 return NULL;
8155 }
8156
8157
8158 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8159 PyObject *resultobj;
8160 wxFont *arg1 = (wxFont *) 0 ;
8161 bool result;
8162 PyObject * obj0 = 0 ;
8163 char *kwnames[] = {
8164 (char *) "self", NULL
8165 };
8166
8167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8170 {
8171 PyThreadState* __tstate = wxPyBeginAllowThreads();
8172 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8173
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 {
8178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8179 }
8180 return resultobj;
8181 fail:
8182 return NULL;
8183 }
8184
8185
8186 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8187 PyObject *resultobj;
8188 wxFont *arg1 = (wxFont *) 0 ;
8189 wxString result;
8190 PyObject * obj0 = 0 ;
8191 char *kwnames[] = {
8192 (char *) "self", NULL
8193 };
8194
8195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8198 {
8199 PyThreadState* __tstate = wxPyBeginAllowThreads();
8200 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8201
8202 wxPyEndAllowThreads(__tstate);
8203 if (PyErr_Occurred()) SWIG_fail;
8204 }
8205 {
8206 #if wxUSE_UNICODE
8207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8208 #else
8209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8210 #endif
8211 }
8212 return resultobj;
8213 fail:
8214 return NULL;
8215 }
8216
8217
8218 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8219 PyObject *resultobj;
8220 wxFont *arg1 = (wxFont *) 0 ;
8221 wxString result;
8222 PyObject * obj0 = 0 ;
8223 char *kwnames[] = {
8224 (char *) "self", NULL
8225 };
8226
8227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8230 {
8231 PyThreadState* __tstate = wxPyBeginAllowThreads();
8232 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8233
8234 wxPyEndAllowThreads(__tstate);
8235 if (PyErr_Occurred()) SWIG_fail;
8236 }
8237 {
8238 #if wxUSE_UNICODE
8239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8240 #else
8241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8242 #endif
8243 }
8244 return resultobj;
8245 fail:
8246 return NULL;
8247 }
8248
8249
8250 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8251 PyObject *resultobj;
8252 wxFont *arg1 = (wxFont *) 0 ;
8253 int arg2 ;
8254 PyObject * obj0 = 0 ;
8255 PyObject * obj1 = 0 ;
8256 char *kwnames[] = {
8257 (char *) "self",(char *) "pointSize", NULL
8258 };
8259
8260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8263 arg2 = (int) SWIG_AsInt(obj1);
8264 if (PyErr_Occurred()) SWIG_fail;
8265 {
8266 PyThreadState* __tstate = wxPyBeginAllowThreads();
8267 (arg1)->SetPointSize(arg2);
8268
8269 wxPyEndAllowThreads(__tstate);
8270 if (PyErr_Occurred()) SWIG_fail;
8271 }
8272 Py_INCREF(Py_None); resultobj = Py_None;
8273 return resultobj;
8274 fail:
8275 return NULL;
8276 }
8277
8278
8279 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8280 PyObject *resultobj;
8281 wxFont *arg1 = (wxFont *) 0 ;
8282 int arg2 ;
8283 PyObject * obj0 = 0 ;
8284 PyObject * obj1 = 0 ;
8285 char *kwnames[] = {
8286 (char *) "self",(char *) "family", NULL
8287 };
8288
8289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8292 arg2 = (int) SWIG_AsInt(obj1);
8293 if (PyErr_Occurred()) SWIG_fail;
8294 {
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 (arg1)->SetFamily(arg2);
8297
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 Py_INCREF(Py_None); resultobj = Py_None;
8302 return resultobj;
8303 fail:
8304 return NULL;
8305 }
8306
8307
8308 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8309 PyObject *resultobj;
8310 wxFont *arg1 = (wxFont *) 0 ;
8311 int arg2 ;
8312 PyObject * obj0 = 0 ;
8313 PyObject * obj1 = 0 ;
8314 char *kwnames[] = {
8315 (char *) "self",(char *) "style", NULL
8316 };
8317
8318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8321 arg2 = (int) SWIG_AsInt(obj1);
8322 if (PyErr_Occurred()) SWIG_fail;
8323 {
8324 PyThreadState* __tstate = wxPyBeginAllowThreads();
8325 (arg1)->SetStyle(arg2);
8326
8327 wxPyEndAllowThreads(__tstate);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 Py_INCREF(Py_None); resultobj = Py_None;
8331 return resultobj;
8332 fail:
8333 return NULL;
8334 }
8335
8336
8337 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8338 PyObject *resultobj;
8339 wxFont *arg1 = (wxFont *) 0 ;
8340 int arg2 ;
8341 PyObject * obj0 = 0 ;
8342 PyObject * obj1 = 0 ;
8343 char *kwnames[] = {
8344 (char *) "self",(char *) "weight", NULL
8345 };
8346
8347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8350 arg2 = (int) SWIG_AsInt(obj1);
8351 if (PyErr_Occurred()) SWIG_fail;
8352 {
8353 PyThreadState* __tstate = wxPyBeginAllowThreads();
8354 (arg1)->SetWeight(arg2);
8355
8356 wxPyEndAllowThreads(__tstate);
8357 if (PyErr_Occurred()) SWIG_fail;
8358 }
8359 Py_INCREF(Py_None); resultobj = Py_None;
8360 return resultobj;
8361 fail:
8362 return NULL;
8363 }
8364
8365
8366 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8367 PyObject *resultobj;
8368 wxFont *arg1 = (wxFont *) 0 ;
8369 wxString *arg2 = 0 ;
8370 bool temp2 = False ;
8371 PyObject * obj0 = 0 ;
8372 PyObject * obj1 = 0 ;
8373 char *kwnames[] = {
8374 (char *) "self",(char *) "faceName", NULL
8375 };
8376
8377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8380 {
8381 arg2 = wxString_in_helper(obj1);
8382 if (arg2 == NULL) SWIG_fail;
8383 temp2 = True;
8384 }
8385 {
8386 PyThreadState* __tstate = wxPyBeginAllowThreads();
8387 (arg1)->SetFaceName((wxString const &)*arg2);
8388
8389 wxPyEndAllowThreads(__tstate);
8390 if (PyErr_Occurred()) SWIG_fail;
8391 }
8392 Py_INCREF(Py_None); resultobj = Py_None;
8393 {
8394 if (temp2)
8395 delete arg2;
8396 }
8397 return resultobj;
8398 fail:
8399 {
8400 if (temp2)
8401 delete arg2;
8402 }
8403 return NULL;
8404 }
8405
8406
8407 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8408 PyObject *resultobj;
8409 wxFont *arg1 = (wxFont *) 0 ;
8410 bool arg2 ;
8411 PyObject * obj0 = 0 ;
8412 PyObject * obj1 = 0 ;
8413 char *kwnames[] = {
8414 (char *) "self",(char *) "underlined", NULL
8415 };
8416
8417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8420 arg2 = (bool) SWIG_AsBool(obj1);
8421 if (PyErr_Occurred()) SWIG_fail;
8422 {
8423 PyThreadState* __tstate = wxPyBeginAllowThreads();
8424 (arg1)->SetUnderlined(arg2);
8425
8426 wxPyEndAllowThreads(__tstate);
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 Py_INCREF(Py_None); resultobj = Py_None;
8430 return resultobj;
8431 fail:
8432 return NULL;
8433 }
8434
8435
8436 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8437 PyObject *resultobj;
8438 wxFont *arg1 = (wxFont *) 0 ;
8439 int arg2 ;
8440 PyObject * obj0 = 0 ;
8441 PyObject * obj1 = 0 ;
8442 char *kwnames[] = {
8443 (char *) "self",(char *) "encoding", NULL
8444 };
8445
8446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8449 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8450 if (PyErr_Occurred()) SWIG_fail;
8451 {
8452 PyThreadState* __tstate = wxPyBeginAllowThreads();
8453 (arg1)->SetEncoding((wxFontEncoding )arg2);
8454
8455 wxPyEndAllowThreads(__tstate);
8456 if (PyErr_Occurred()) SWIG_fail;
8457 }
8458 Py_INCREF(Py_None); resultobj = Py_None;
8459 return resultobj;
8460 fail:
8461 return NULL;
8462 }
8463
8464
8465 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8466 PyObject *resultobj;
8467 wxFont *arg1 = (wxFont *) 0 ;
8468 wxNativeFontInfo *arg2 = 0 ;
8469 PyObject * obj0 = 0 ;
8470 PyObject * obj1 = 0 ;
8471 char *kwnames[] = {
8472 (char *) "self",(char *) "info", NULL
8473 };
8474
8475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8478 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8479 SWIG_POINTER_EXCEPTION | 0)) == -1)
8480 SWIG_fail;
8481 if (arg2 == NULL) {
8482 PyErr_SetString(PyExc_TypeError,"null reference");
8483 SWIG_fail;
8484 }
8485 {
8486 PyThreadState* __tstate = wxPyBeginAllowThreads();
8487 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8488
8489 wxPyEndAllowThreads(__tstate);
8490 if (PyErr_Occurred()) SWIG_fail;
8491 }
8492 Py_INCREF(Py_None); resultobj = Py_None;
8493 return resultobj;
8494 fail:
8495 return NULL;
8496 }
8497
8498
8499 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8500 PyObject *resultobj;
8501 wxFont *arg1 = (wxFont *) 0 ;
8502 wxString *arg2 = 0 ;
8503 bool temp2 = False ;
8504 PyObject * obj0 = 0 ;
8505 PyObject * obj1 = 0 ;
8506 char *kwnames[] = {
8507 (char *) "self",(char *) "info", NULL
8508 };
8509
8510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8513 {
8514 arg2 = wxString_in_helper(obj1);
8515 if (arg2 == NULL) SWIG_fail;
8516 temp2 = True;
8517 }
8518 {
8519 PyThreadState* __tstate = wxPyBeginAllowThreads();
8520 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8521
8522 wxPyEndAllowThreads(__tstate);
8523 if (PyErr_Occurred()) SWIG_fail;
8524 }
8525 Py_INCREF(Py_None); resultobj = Py_None;
8526 {
8527 if (temp2)
8528 delete arg2;
8529 }
8530 return resultobj;
8531 fail:
8532 {
8533 if (temp2)
8534 delete arg2;
8535 }
8536 return NULL;
8537 }
8538
8539
8540 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8541 PyObject *resultobj;
8542 wxFont *arg1 = (wxFont *) 0 ;
8543 wxString *arg2 = 0 ;
8544 bool temp2 = False ;
8545 PyObject * obj0 = 0 ;
8546 PyObject * obj1 = 0 ;
8547 char *kwnames[] = {
8548 (char *) "self",(char *) "info", NULL
8549 };
8550
8551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8554 {
8555 arg2 = wxString_in_helper(obj1);
8556 if (arg2 == NULL) SWIG_fail;
8557 temp2 = True;
8558 }
8559 {
8560 PyThreadState* __tstate = wxPyBeginAllowThreads();
8561 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8562
8563 wxPyEndAllowThreads(__tstate);
8564 if (PyErr_Occurred()) SWIG_fail;
8565 }
8566 Py_INCREF(Py_None); resultobj = Py_None;
8567 {
8568 if (temp2)
8569 delete arg2;
8570 }
8571 return resultobj;
8572 fail:
8573 {
8574 if (temp2)
8575 delete arg2;
8576 }
8577 return NULL;
8578 }
8579
8580
8581 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8582 PyObject *resultobj;
8583 wxFont *arg1 = (wxFont *) 0 ;
8584 wxString result;
8585 PyObject * obj0 = 0 ;
8586 char *kwnames[] = {
8587 (char *) "self", NULL
8588 };
8589
8590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8593 {
8594 PyThreadState* __tstate = wxPyBeginAllowThreads();
8595 result = ((wxFont const *)arg1)->GetFamilyString();
8596
8597 wxPyEndAllowThreads(__tstate);
8598 if (PyErr_Occurred()) SWIG_fail;
8599 }
8600 {
8601 #if wxUSE_UNICODE
8602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8603 #else
8604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8605 #endif
8606 }
8607 return resultobj;
8608 fail:
8609 return NULL;
8610 }
8611
8612
8613 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8614 PyObject *resultobj;
8615 wxFont *arg1 = (wxFont *) 0 ;
8616 wxString result;
8617 PyObject * obj0 = 0 ;
8618 char *kwnames[] = {
8619 (char *) "self", NULL
8620 };
8621
8622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8625 {
8626 PyThreadState* __tstate = wxPyBeginAllowThreads();
8627 result = ((wxFont const *)arg1)->GetStyleString();
8628
8629 wxPyEndAllowThreads(__tstate);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 {
8633 #if wxUSE_UNICODE
8634 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8635 #else
8636 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8637 #endif
8638 }
8639 return resultobj;
8640 fail:
8641 return NULL;
8642 }
8643
8644
8645 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8646 PyObject *resultobj;
8647 wxFont *arg1 = (wxFont *) 0 ;
8648 wxString result;
8649 PyObject * obj0 = 0 ;
8650 char *kwnames[] = {
8651 (char *) "self", NULL
8652 };
8653
8654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8657 {
8658 PyThreadState* __tstate = wxPyBeginAllowThreads();
8659 result = ((wxFont const *)arg1)->GetWeightString();
8660
8661 wxPyEndAllowThreads(__tstate);
8662 if (PyErr_Occurred()) SWIG_fail;
8663 }
8664 {
8665 #if wxUSE_UNICODE
8666 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8667 #else
8668 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8669 #endif
8670 }
8671 return resultobj;
8672 fail:
8673 return NULL;
8674 }
8675
8676
8677 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8678 PyObject *resultobj;
8679 wxFont *arg1 = (wxFont *) 0 ;
8680 bool arg2 = (bool) True ;
8681 PyObject * obj0 = 0 ;
8682 PyObject * obj1 = 0 ;
8683 char *kwnames[] = {
8684 (char *) "self",(char *) "no", NULL
8685 };
8686
8687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8690 if (obj1) {
8691 arg2 = (bool) SWIG_AsBool(obj1);
8692 if (PyErr_Occurred()) SWIG_fail;
8693 }
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 (arg1)->SetNoAntiAliasing(arg2);
8697
8698 wxPyEndAllowThreads(__tstate);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 Py_INCREF(Py_None); resultobj = Py_None;
8702 return resultobj;
8703 fail:
8704 return NULL;
8705 }
8706
8707
8708 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8709 PyObject *resultobj;
8710 wxFont *arg1 = (wxFont *) 0 ;
8711 bool result;
8712 PyObject * obj0 = 0 ;
8713 char *kwnames[] = {
8714 (char *) "self", NULL
8715 };
8716
8717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8720 {
8721 PyThreadState* __tstate = wxPyBeginAllowThreads();
8722 result = (bool)(arg1)->GetNoAntiAliasing();
8723
8724 wxPyEndAllowThreads(__tstate);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 {
8728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8729 }
8730 return resultobj;
8731 fail:
8732 return NULL;
8733 }
8734
8735
8736 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8737 PyObject *resultobj;
8738 int result;
8739 char *kwnames[] = {
8740 NULL
8741 };
8742
8743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8744 {
8745 PyThreadState* __tstate = wxPyBeginAllowThreads();
8746 result = (int)wxFont::GetDefaultEncoding();
8747
8748 wxPyEndAllowThreads(__tstate);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 resultobj = SWIG_FromInt((int)result);
8752 return resultobj;
8753 fail:
8754 return NULL;
8755 }
8756
8757
8758 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8759 PyObject *resultobj;
8760 int arg1 ;
8761 PyObject * obj0 = 0 ;
8762 char *kwnames[] = {
8763 (char *) "encoding", NULL
8764 };
8765
8766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8767 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8768 if (PyErr_Occurred()) SWIG_fail;
8769 {
8770 PyThreadState* __tstate = wxPyBeginAllowThreads();
8771 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8772
8773 wxPyEndAllowThreads(__tstate);
8774 if (PyErr_Occurred()) SWIG_fail;
8775 }
8776 Py_INCREF(Py_None); resultobj = Py_None;
8777 return resultobj;
8778 fail:
8779 return NULL;
8780 }
8781
8782
8783 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8784 PyObject *obj;
8785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8786 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8787 Py_INCREF(obj);
8788 return Py_BuildValue((char *)"");
8789 }
8790 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8791 PyObject *resultobj;
8792 wxPyFontEnumerator *result;
8793 char *kwnames[] = {
8794 NULL
8795 };
8796
8797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8798 {
8799 PyThreadState* __tstate = wxPyBeginAllowThreads();
8800 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8801
8802 wxPyEndAllowThreads(__tstate);
8803 if (PyErr_Occurred()) SWIG_fail;
8804 }
8805 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8806 return resultobj;
8807 fail:
8808 return NULL;
8809 }
8810
8811
8812 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8813 PyObject *resultobj;
8814 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8815 PyObject * obj0 = 0 ;
8816 char *kwnames[] = {
8817 (char *) "self", NULL
8818 };
8819
8820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8823 {
8824 PyThreadState* __tstate = wxPyBeginAllowThreads();
8825 delete arg1;
8826
8827 wxPyEndAllowThreads(__tstate);
8828 if (PyErr_Occurred()) SWIG_fail;
8829 }
8830 Py_INCREF(Py_None); resultobj = Py_None;
8831 return resultobj;
8832 fail:
8833 return NULL;
8834 }
8835
8836
8837 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8838 PyObject *resultobj;
8839 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8840 PyObject *arg2 = (PyObject *) 0 ;
8841 PyObject *arg3 = (PyObject *) 0 ;
8842 bool arg4 ;
8843 PyObject * obj0 = 0 ;
8844 PyObject * obj1 = 0 ;
8845 PyObject * obj2 = 0 ;
8846 PyObject * obj3 = 0 ;
8847 char *kwnames[] = {
8848 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8849 };
8850
8851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8854 arg2 = obj1;
8855 arg3 = obj2;
8856 arg4 = (bool) SWIG_AsBool(obj3);
8857 if (PyErr_Occurred()) SWIG_fail;
8858 {
8859 PyThreadState* __tstate = wxPyBeginAllowThreads();
8860 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8861
8862 wxPyEndAllowThreads(__tstate);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 }
8865 Py_INCREF(Py_None); resultobj = Py_None;
8866 return resultobj;
8867 fail:
8868 return NULL;
8869 }
8870
8871
8872 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8873 PyObject *resultobj;
8874 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8875 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8876 bool arg3 = (bool) False ;
8877 bool result;
8878 PyObject * obj0 = 0 ;
8879 PyObject * obj1 = 0 ;
8880 PyObject * obj2 = 0 ;
8881 char *kwnames[] = {
8882 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8883 };
8884
8885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8888 if (obj1) {
8889 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
8892 if (obj2) {
8893 arg3 = (bool) SWIG_AsBool(obj2);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 {
8897 PyThreadState* __tstate = wxPyBeginAllowThreads();
8898 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8899
8900 wxPyEndAllowThreads(__tstate);
8901 if (PyErr_Occurred()) SWIG_fail;
8902 }
8903 {
8904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8905 }
8906 return resultobj;
8907 fail:
8908 return NULL;
8909 }
8910
8911
8912 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8913 PyObject *resultobj;
8914 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8915 wxString const &arg2_defvalue = wxPyEmptyString ;
8916 wxString *arg2 = (wxString *) &arg2_defvalue ;
8917 bool result;
8918 bool temp2 = False ;
8919 PyObject * obj0 = 0 ;
8920 PyObject * obj1 = 0 ;
8921 char *kwnames[] = {
8922 (char *) "self",(char *) "facename", NULL
8923 };
8924
8925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8928 if (obj1) {
8929 {
8930 arg2 = wxString_in_helper(obj1);
8931 if (arg2 == NULL) SWIG_fail;
8932 temp2 = True;
8933 }
8934 }
8935 {
8936 PyThreadState* __tstate = wxPyBeginAllowThreads();
8937 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8938
8939 wxPyEndAllowThreads(__tstate);
8940 if (PyErr_Occurred()) SWIG_fail;
8941 }
8942 {
8943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8944 }
8945 {
8946 if (temp2)
8947 delete arg2;
8948 }
8949 return resultobj;
8950 fail:
8951 {
8952 if (temp2)
8953 delete arg2;
8954 }
8955 return NULL;
8956 }
8957
8958
8959 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8960 PyObject *resultobj;
8961 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8962 PyObject *result;
8963 PyObject * obj0 = 0 ;
8964 char *kwnames[] = {
8965 (char *) "self", NULL
8966 };
8967
8968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8971 {
8972 PyThreadState* __tstate = wxPyBeginAllowThreads();
8973 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8974
8975 wxPyEndAllowThreads(__tstate);
8976 if (PyErr_Occurred()) SWIG_fail;
8977 }
8978 resultobj = result;
8979 return resultobj;
8980 fail:
8981 return NULL;
8982 }
8983
8984
8985 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8986 PyObject *resultobj;
8987 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8988 PyObject *result;
8989 PyObject * obj0 = 0 ;
8990 char *kwnames[] = {
8991 (char *) "self", NULL
8992 };
8993
8994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8997 {
8998 PyThreadState* __tstate = wxPyBeginAllowThreads();
8999 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9000
9001 wxPyEndAllowThreads(__tstate);
9002 if (PyErr_Occurred()) SWIG_fail;
9003 }
9004 resultobj = result;
9005 return resultobj;
9006 fail:
9007 return NULL;
9008 }
9009
9010
9011 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9012 PyObject *obj;
9013 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9014 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9015 Py_INCREF(obj);
9016 return Py_BuildValue((char *)"");
9017 }
9018 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9019 PyObject *resultobj;
9020 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9021 int arg2 ;
9022 PyObject * obj0 = 0 ;
9023 PyObject * obj1 = 0 ;
9024 char *kwnames[] = {
9025 (char *) "self",(char *) "Language", NULL
9026 };
9027
9028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9031 arg2 = (int) SWIG_AsInt(obj1);
9032 if (PyErr_Occurred()) SWIG_fail;
9033 if (arg1) (arg1)->Language = arg2;
9034
9035 Py_INCREF(Py_None); resultobj = Py_None;
9036 return resultobj;
9037 fail:
9038 return NULL;
9039 }
9040
9041
9042 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9043 PyObject *resultobj;
9044 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9045 int result;
9046 PyObject * obj0 = 0 ;
9047 char *kwnames[] = {
9048 (char *) "self", NULL
9049 };
9050
9051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9054 result = (int) ((arg1)->Language);
9055
9056 resultobj = SWIG_FromInt((int)result);
9057 return resultobj;
9058 fail:
9059 return NULL;
9060 }
9061
9062
9063 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9064 PyObject *resultobj;
9065 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9066 wxString *arg2 = (wxString *) 0 ;
9067 bool temp2 = False ;
9068 PyObject * obj0 = 0 ;
9069 PyObject * obj1 = 0 ;
9070 char *kwnames[] = {
9071 (char *) "self",(char *) "CanonicalName", NULL
9072 };
9073
9074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9077 {
9078 arg2 = wxString_in_helper(obj1);
9079 if (arg2 == NULL) SWIG_fail;
9080 temp2 = True;
9081 }
9082 if (arg1) (arg1)->CanonicalName = *arg2;
9083
9084 Py_INCREF(Py_None); resultobj = Py_None;
9085 {
9086 if (temp2)
9087 delete arg2;
9088 }
9089 return resultobj;
9090 fail:
9091 {
9092 if (temp2)
9093 delete arg2;
9094 }
9095 return NULL;
9096 }
9097
9098
9099 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9100 PyObject *resultobj;
9101 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9102 wxString *result;
9103 PyObject * obj0 = 0 ;
9104 char *kwnames[] = {
9105 (char *) "self", NULL
9106 };
9107
9108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9111 result = (wxString *)& ((arg1)->CanonicalName);
9112
9113 {
9114 #if wxUSE_UNICODE
9115 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9116 #else
9117 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9118 #endif
9119 }
9120 return resultobj;
9121 fail:
9122 return NULL;
9123 }
9124
9125
9126 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9127 PyObject *resultobj;
9128 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9129 wxString *arg2 = (wxString *) 0 ;
9130 bool temp2 = False ;
9131 PyObject * obj0 = 0 ;
9132 PyObject * obj1 = 0 ;
9133 char *kwnames[] = {
9134 (char *) "self",(char *) "Description", NULL
9135 };
9136
9137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9140 {
9141 arg2 = wxString_in_helper(obj1);
9142 if (arg2 == NULL) SWIG_fail;
9143 temp2 = True;
9144 }
9145 if (arg1) (arg1)->Description = *arg2;
9146
9147 Py_INCREF(Py_None); resultobj = Py_None;
9148 {
9149 if (temp2)
9150 delete arg2;
9151 }
9152 return resultobj;
9153 fail:
9154 {
9155 if (temp2)
9156 delete arg2;
9157 }
9158 return NULL;
9159 }
9160
9161
9162 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9163 PyObject *resultobj;
9164 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9165 wxString *result;
9166 PyObject * obj0 = 0 ;
9167 char *kwnames[] = {
9168 (char *) "self", NULL
9169 };
9170
9171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9174 result = (wxString *)& ((arg1)->Description);
9175
9176 {
9177 #if wxUSE_UNICODE
9178 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9179 #else
9180 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9181 #endif
9182 }
9183 return resultobj;
9184 fail:
9185 return NULL;
9186 }
9187
9188
9189 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9190 PyObject *obj;
9191 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9192 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9193 Py_INCREF(obj);
9194 return Py_BuildValue((char *)"");
9195 }
9196 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9197 PyObject *resultobj;
9198 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9199 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9200 wxLocale *result;
9201 PyObject * obj0 = 0 ;
9202 PyObject * obj1 = 0 ;
9203 char *kwnames[] = {
9204 (char *) "language",(char *) "flags", NULL
9205 };
9206
9207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9208 if (obj0) {
9209 arg1 = (int) SWIG_AsInt(obj0);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 if (obj1) {
9213 arg2 = (int) SWIG_AsInt(obj1);
9214 if (PyErr_Occurred()) SWIG_fail;
9215 }
9216 {
9217 PyThreadState* __tstate = wxPyBeginAllowThreads();
9218 result = (wxLocale *)new wxLocale(arg1,arg2);
9219
9220 wxPyEndAllowThreads(__tstate);
9221 if (PyErr_Occurred()) SWIG_fail;
9222 }
9223 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9224 return resultobj;
9225 fail:
9226 return NULL;
9227 }
9228
9229
9230 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9231 PyObject *resultobj;
9232 wxLocale *arg1 = (wxLocale *) 0 ;
9233 PyObject * obj0 = 0 ;
9234 char *kwnames[] = {
9235 (char *) "self", NULL
9236 };
9237
9238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9241 {
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 delete arg1;
9244
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 Py_INCREF(Py_None); resultobj = Py_None;
9249 return resultobj;
9250 fail:
9251 return NULL;
9252 }
9253
9254
9255 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9256 PyObject *resultobj;
9257 wxLocale *arg1 = (wxLocale *) 0 ;
9258 wxString *arg2 = 0 ;
9259 wxString const &arg3_defvalue = wxPyEmptyString ;
9260 wxString *arg3 = (wxString *) &arg3_defvalue ;
9261 wxString const &arg4_defvalue = wxPyEmptyString ;
9262 wxString *arg4 = (wxString *) &arg4_defvalue ;
9263 bool arg5 = (bool) True ;
9264 bool arg6 = (bool) False ;
9265 bool result;
9266 bool temp2 = False ;
9267 bool temp3 = False ;
9268 bool temp4 = False ;
9269 PyObject * obj0 = 0 ;
9270 PyObject * obj1 = 0 ;
9271 PyObject * obj2 = 0 ;
9272 PyObject * obj3 = 0 ;
9273 PyObject * obj4 = 0 ;
9274 PyObject * obj5 = 0 ;
9275 char *kwnames[] = {
9276 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9277 };
9278
9279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9282 {
9283 arg2 = wxString_in_helper(obj1);
9284 if (arg2 == NULL) SWIG_fail;
9285 temp2 = True;
9286 }
9287 if (obj2) {
9288 {
9289 arg3 = wxString_in_helper(obj2);
9290 if (arg3 == NULL) SWIG_fail;
9291 temp3 = True;
9292 }
9293 }
9294 if (obj3) {
9295 {
9296 arg4 = wxString_in_helper(obj3);
9297 if (arg4 == NULL) SWIG_fail;
9298 temp4 = True;
9299 }
9300 }
9301 if (obj4) {
9302 arg5 = (bool) SWIG_AsBool(obj4);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 if (obj5) {
9306 arg6 = (bool) SWIG_AsBool(obj5);
9307 if (PyErr_Occurred()) SWIG_fail;
9308 }
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9312
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 {
9317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9318 }
9319 {
9320 if (temp2)
9321 delete arg2;
9322 }
9323 {
9324 if (temp3)
9325 delete arg3;
9326 }
9327 {
9328 if (temp4)
9329 delete arg4;
9330 }
9331 return resultobj;
9332 fail:
9333 {
9334 if (temp2)
9335 delete arg2;
9336 }
9337 {
9338 if (temp3)
9339 delete arg3;
9340 }
9341 {
9342 if (temp4)
9343 delete arg4;
9344 }
9345 return NULL;
9346 }
9347
9348
9349 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9350 PyObject *resultobj;
9351 wxLocale *arg1 = (wxLocale *) 0 ;
9352 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9353 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9354 bool result;
9355 PyObject * obj0 = 0 ;
9356 PyObject * obj1 = 0 ;
9357 PyObject * obj2 = 0 ;
9358 char *kwnames[] = {
9359 (char *) "self",(char *) "language",(char *) "flags", NULL
9360 };
9361
9362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9365 if (obj1) {
9366 arg2 = (int) SWIG_AsInt(obj1);
9367 if (PyErr_Occurred()) SWIG_fail;
9368 }
9369 if (obj2) {
9370 arg3 = (int) SWIG_AsInt(obj2);
9371 if (PyErr_Occurred()) SWIG_fail;
9372 }
9373 {
9374 PyThreadState* __tstate = wxPyBeginAllowThreads();
9375 result = (bool)(arg1)->Init(arg2,arg3);
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_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9390 PyObject *resultobj;
9391 int result;
9392 char *kwnames[] = {
9393 NULL
9394 };
9395
9396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = (int)wxLocale::GetSystemLanguage();
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 resultobj = SWIG_FromInt((int)result);
9405 return resultobj;
9406 fail:
9407 return NULL;
9408 }
9409
9410
9411 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9412 PyObject *resultobj;
9413 int result;
9414 char *kwnames[] = {
9415 NULL
9416 };
9417
9418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9419 {
9420 PyThreadState* __tstate = wxPyBeginAllowThreads();
9421 result = (int)wxLocale::GetSystemEncoding();
9422
9423 wxPyEndAllowThreads(__tstate);
9424 if (PyErr_Occurred()) SWIG_fail;
9425 }
9426 resultobj = SWIG_FromInt((int)result);
9427 return resultobj;
9428 fail:
9429 return NULL;
9430 }
9431
9432
9433 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9434 PyObject *resultobj;
9435 wxString result;
9436 char *kwnames[] = {
9437 NULL
9438 };
9439
9440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9441 {
9442 PyThreadState* __tstate = wxPyBeginAllowThreads();
9443 result = wxLocale::GetSystemEncodingName();
9444
9445 wxPyEndAllowThreads(__tstate);
9446 if (PyErr_Occurred()) SWIG_fail;
9447 }
9448 {
9449 #if wxUSE_UNICODE
9450 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9451 #else
9452 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9453 #endif
9454 }
9455 return resultobj;
9456 fail:
9457 return NULL;
9458 }
9459
9460
9461 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9462 PyObject *resultobj;
9463 wxLocale *arg1 = (wxLocale *) 0 ;
9464 bool result;
9465 PyObject * obj0 = 0 ;
9466 char *kwnames[] = {
9467 (char *) "self", NULL
9468 };
9469
9470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 result = (bool)((wxLocale const *)arg1)->IsOk();
9476
9477 wxPyEndAllowThreads(__tstate);
9478 if (PyErr_Occurred()) SWIG_fail;
9479 }
9480 {
9481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9482 }
9483 return resultobj;
9484 fail:
9485 return NULL;
9486 }
9487
9488
9489 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9490 PyObject *resultobj;
9491 wxLocale *arg1 = (wxLocale *) 0 ;
9492 wxString result;
9493 PyObject * obj0 = 0 ;
9494 char *kwnames[] = {
9495 (char *) "self", NULL
9496 };
9497
9498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 result = ((wxLocale const *)arg1)->GetLocale();
9504
9505 wxPyEndAllowThreads(__tstate);
9506 if (PyErr_Occurred()) SWIG_fail;
9507 }
9508 {
9509 #if wxUSE_UNICODE
9510 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9511 #else
9512 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9513 #endif
9514 }
9515 return resultobj;
9516 fail:
9517 return NULL;
9518 }
9519
9520
9521 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9522 PyObject *resultobj;
9523 wxLocale *arg1 = (wxLocale *) 0 ;
9524 int result;
9525 PyObject * obj0 = 0 ;
9526 char *kwnames[] = {
9527 (char *) "self", NULL
9528 };
9529
9530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9533 {
9534 PyThreadState* __tstate = wxPyBeginAllowThreads();
9535 result = (int)((wxLocale const *)arg1)->GetLanguage();
9536
9537 wxPyEndAllowThreads(__tstate);
9538 if (PyErr_Occurred()) SWIG_fail;
9539 }
9540 resultobj = SWIG_FromInt((int)result);
9541 return resultobj;
9542 fail:
9543 return NULL;
9544 }
9545
9546
9547 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9548 PyObject *resultobj;
9549 wxLocale *arg1 = (wxLocale *) 0 ;
9550 wxString result;
9551 PyObject * obj0 = 0 ;
9552 char *kwnames[] = {
9553 (char *) "self", NULL
9554 };
9555
9556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9559 {
9560 PyThreadState* __tstate = wxPyBeginAllowThreads();
9561 result = ((wxLocale const *)arg1)->GetSysName();
9562
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 {
9567 #if wxUSE_UNICODE
9568 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9569 #else
9570 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9571 #endif
9572 }
9573 return resultobj;
9574 fail:
9575 return NULL;
9576 }
9577
9578
9579 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9580 PyObject *resultobj;
9581 wxLocale *arg1 = (wxLocale *) 0 ;
9582 wxString result;
9583 PyObject * obj0 = 0 ;
9584 char *kwnames[] = {
9585 (char *) "self", NULL
9586 };
9587
9588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9591 {
9592 PyThreadState* __tstate = wxPyBeginAllowThreads();
9593 result = ((wxLocale const *)arg1)->GetCanonicalName();
9594
9595 wxPyEndAllowThreads(__tstate);
9596 if (PyErr_Occurred()) SWIG_fail;
9597 }
9598 {
9599 #if wxUSE_UNICODE
9600 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9601 #else
9602 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9603 #endif
9604 }
9605 return resultobj;
9606 fail:
9607 return NULL;
9608 }
9609
9610
9611 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9612 PyObject *resultobj;
9613 wxString *arg1 = 0 ;
9614 bool temp1 = False ;
9615 PyObject * obj0 = 0 ;
9616 char *kwnames[] = {
9617 (char *) "prefix", NULL
9618 };
9619
9620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9621 {
9622 arg1 = wxString_in_helper(obj0);
9623 if (arg1 == NULL) SWIG_fail;
9624 temp1 = True;
9625 }
9626 {
9627 PyThreadState* __tstate = wxPyBeginAllowThreads();
9628 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9629
9630 wxPyEndAllowThreads(__tstate);
9631 if (PyErr_Occurred()) SWIG_fail;
9632 }
9633 Py_INCREF(Py_None); resultobj = Py_None;
9634 {
9635 if (temp1)
9636 delete arg1;
9637 }
9638 return resultobj;
9639 fail:
9640 {
9641 if (temp1)
9642 delete arg1;
9643 }
9644 return NULL;
9645 }
9646
9647
9648 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9649 PyObject *resultobj;
9650 wxLocale *arg1 = (wxLocale *) 0 ;
9651 wxString *arg2 = 0 ;
9652 bool result;
9653 bool temp2 = False ;
9654 PyObject * obj0 = 0 ;
9655 PyObject * obj1 = 0 ;
9656 char *kwnames[] = {
9657 (char *) "self",(char *) "szDomain", NULL
9658 };
9659
9660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9663 {
9664 arg2 = wxString_in_helper(obj1);
9665 if (arg2 == NULL) SWIG_fail;
9666 temp2 = True;
9667 }
9668 {
9669 PyThreadState* __tstate = wxPyBeginAllowThreads();
9670 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9671
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
9675 {
9676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9677 }
9678 {
9679 if (temp2)
9680 delete arg2;
9681 }
9682 return resultobj;
9683 fail:
9684 {
9685 if (temp2)
9686 delete arg2;
9687 }
9688 return NULL;
9689 }
9690
9691
9692 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9693 PyObject *resultobj;
9694 wxLocale *arg1 = (wxLocale *) 0 ;
9695 wxString *arg2 = 0 ;
9696 bool result;
9697 bool temp2 = False ;
9698 PyObject * obj0 = 0 ;
9699 PyObject * obj1 = 0 ;
9700 char *kwnames[] = {
9701 (char *) "self",(char *) "szDomain", NULL
9702 };
9703
9704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9707 {
9708 arg2 = wxString_in_helper(obj1);
9709 if (arg2 == NULL) SWIG_fail;
9710 temp2 = True;
9711 }
9712 {
9713 PyThreadState* __tstate = wxPyBeginAllowThreads();
9714 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9715
9716 wxPyEndAllowThreads(__tstate);
9717 if (PyErr_Occurred()) SWIG_fail;
9718 }
9719 {
9720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9721 }
9722 {
9723 if (temp2)
9724 delete arg2;
9725 }
9726 return resultobj;
9727 fail:
9728 {
9729 if (temp2)
9730 delete arg2;
9731 }
9732 return NULL;
9733 }
9734
9735
9736 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9737 PyObject *resultobj;
9738 int arg1 ;
9739 wxLanguageInfo *result;
9740 PyObject * obj0 = 0 ;
9741 char *kwnames[] = {
9742 (char *) "lang", NULL
9743 };
9744
9745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9746 arg1 = (int) SWIG_AsInt(obj0);
9747 if (PyErr_Occurred()) SWIG_fail;
9748 {
9749 PyThreadState* __tstate = wxPyBeginAllowThreads();
9750 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9751
9752 wxPyEndAllowThreads(__tstate);
9753 if (PyErr_Occurred()) SWIG_fail;
9754 }
9755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9756 return resultobj;
9757 fail:
9758 return NULL;
9759 }
9760
9761
9762 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9763 PyObject *resultobj;
9764 int arg1 ;
9765 wxString result;
9766 PyObject * obj0 = 0 ;
9767 char *kwnames[] = {
9768 (char *) "lang", NULL
9769 };
9770
9771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9772 arg1 = (int) SWIG_AsInt(obj0);
9773 if (PyErr_Occurred()) SWIG_fail;
9774 {
9775 PyThreadState* __tstate = wxPyBeginAllowThreads();
9776 result = wxLocale::GetLanguageName(arg1);
9777
9778 wxPyEndAllowThreads(__tstate);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 }
9781 {
9782 #if wxUSE_UNICODE
9783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9784 #else
9785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9786 #endif
9787 }
9788 return resultobj;
9789 fail:
9790 return NULL;
9791 }
9792
9793
9794 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9795 PyObject *resultobj;
9796 wxString *arg1 = 0 ;
9797 wxLanguageInfo *result;
9798 bool temp1 = False ;
9799 PyObject * obj0 = 0 ;
9800 char *kwnames[] = {
9801 (char *) "locale", NULL
9802 };
9803
9804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9805 {
9806 arg1 = wxString_in_helper(obj0);
9807 if (arg1 == NULL) SWIG_fail;
9808 temp1 = True;
9809 }
9810 {
9811 PyThreadState* __tstate = wxPyBeginAllowThreads();
9812 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9813
9814 wxPyEndAllowThreads(__tstate);
9815 if (PyErr_Occurred()) SWIG_fail;
9816 }
9817 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9818 {
9819 if (temp1)
9820 delete arg1;
9821 }
9822 return resultobj;
9823 fail:
9824 {
9825 if (temp1)
9826 delete arg1;
9827 }
9828 return NULL;
9829 }
9830
9831
9832 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9833 PyObject *resultobj;
9834 wxLanguageInfo *arg1 = 0 ;
9835 PyObject * obj0 = 0 ;
9836 char *kwnames[] = {
9837 (char *) "info", NULL
9838 };
9839
9840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9842 SWIG_POINTER_EXCEPTION | 0)) == -1)
9843 SWIG_fail;
9844 if (arg1 == NULL) {
9845 PyErr_SetString(PyExc_TypeError,"null reference");
9846 SWIG_fail;
9847 }
9848 {
9849 PyThreadState* __tstate = wxPyBeginAllowThreads();
9850 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9851
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 Py_INCREF(Py_None); resultobj = Py_None;
9856 return resultobj;
9857 fail:
9858 return NULL;
9859 }
9860
9861
9862 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9863 PyObject *resultobj;
9864 wxLocale *arg1 = (wxLocale *) 0 ;
9865 wxString *arg2 = 0 ;
9866 wxString const &arg3_defvalue = wxPyEmptyString ;
9867 wxString *arg3 = (wxString *) &arg3_defvalue ;
9868 wxString result;
9869 bool temp2 = False ;
9870 bool temp3 = False ;
9871 PyObject * obj0 = 0 ;
9872 PyObject * obj1 = 0 ;
9873 PyObject * obj2 = 0 ;
9874 char *kwnames[] = {
9875 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9876 };
9877
9878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9881 {
9882 arg2 = wxString_in_helper(obj1);
9883 if (arg2 == NULL) SWIG_fail;
9884 temp2 = True;
9885 }
9886 if (obj2) {
9887 {
9888 arg3 = wxString_in_helper(obj2);
9889 if (arg3 == NULL) SWIG_fail;
9890 temp3 = True;
9891 }
9892 }
9893 {
9894 PyThreadState* __tstate = wxPyBeginAllowThreads();
9895 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9896
9897 wxPyEndAllowThreads(__tstate);
9898 if (PyErr_Occurred()) SWIG_fail;
9899 }
9900 {
9901 #if wxUSE_UNICODE
9902 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9903 #else
9904 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9905 #endif
9906 }
9907 {
9908 if (temp2)
9909 delete arg2;
9910 }
9911 {
9912 if (temp3)
9913 delete arg3;
9914 }
9915 return resultobj;
9916 fail:
9917 {
9918 if (temp2)
9919 delete arg2;
9920 }
9921 {
9922 if (temp3)
9923 delete arg3;
9924 }
9925 return NULL;
9926 }
9927
9928
9929 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9930 PyObject *resultobj;
9931 wxLocale *arg1 = (wxLocale *) 0 ;
9932 wxString *result;
9933 PyObject * obj0 = 0 ;
9934 char *kwnames[] = {
9935 (char *) "self", NULL
9936 };
9937
9938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9941 {
9942 PyThreadState* __tstate = wxPyBeginAllowThreads();
9943 {
9944 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9945 result = (wxString *) &_result_ref;
9946 }
9947
9948 wxPyEndAllowThreads(__tstate);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 }
9951 {
9952 #if wxUSE_UNICODE
9953 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9954 #else
9955 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9956 #endif
9957 }
9958 return resultobj;
9959 fail:
9960 return NULL;
9961 }
9962
9963
9964 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9965 PyObject *obj;
9966 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9967 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9968 Py_INCREF(obj);
9969 return Py_BuildValue((char *)"");
9970 }
9971 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9972 PyObject *resultobj;
9973 wxLocale *result;
9974 char *kwnames[] = {
9975 NULL
9976 };
9977
9978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9979 {
9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9981 result = (wxLocale *)wxGetLocale();
9982
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9987 return resultobj;
9988 fail:
9989 return NULL;
9990 }
9991
9992
9993 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9994 PyObject *resultobj;
9995 wxString *arg1 = 0 ;
9996 wxString result;
9997 bool temp1 = False ;
9998 PyObject * obj0 = 0 ;
9999
10000 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10001 {
10002 arg1 = wxString_in_helper(obj0);
10003 if (arg1 == NULL) SWIG_fail;
10004 temp1 = True;
10005 }
10006 {
10007 PyThreadState* __tstate = wxPyBeginAllowThreads();
10008 result = wxGetTranslation((wxString const &)*arg1);
10009
10010 wxPyEndAllowThreads(__tstate);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 {
10014 #if wxUSE_UNICODE
10015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10016 #else
10017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10018 #endif
10019 }
10020 {
10021 if (temp1)
10022 delete arg1;
10023 }
10024 return resultobj;
10025 fail:
10026 {
10027 if (temp1)
10028 delete arg1;
10029 }
10030 return NULL;
10031 }
10032
10033
10034 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10035 PyObject *resultobj;
10036 wxString *arg1 = 0 ;
10037 wxString *arg2 = 0 ;
10038 size_t arg3 ;
10039 wxString result;
10040 bool temp1 = False ;
10041 bool temp2 = False ;
10042 PyObject * obj0 = 0 ;
10043 PyObject * obj1 = 0 ;
10044 PyObject * obj2 = 0 ;
10045
10046 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10047 {
10048 arg1 = wxString_in_helper(obj0);
10049 if (arg1 == NULL) SWIG_fail;
10050 temp1 = True;
10051 }
10052 {
10053 arg2 = wxString_in_helper(obj1);
10054 if (arg2 == NULL) SWIG_fail;
10055 temp2 = True;
10056 }
10057 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 {
10060 PyThreadState* __tstate = wxPyBeginAllowThreads();
10061 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10062
10063 wxPyEndAllowThreads(__tstate);
10064 if (PyErr_Occurred()) SWIG_fail;
10065 }
10066 {
10067 #if wxUSE_UNICODE
10068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10069 #else
10070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10071 #endif
10072 }
10073 {
10074 if (temp1)
10075 delete arg1;
10076 }
10077 {
10078 if (temp2)
10079 delete arg2;
10080 }
10081 return resultobj;
10082 fail:
10083 {
10084 if (temp1)
10085 delete arg1;
10086 }
10087 {
10088 if (temp2)
10089 delete arg2;
10090 }
10091 return NULL;
10092 }
10093
10094
10095 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10096 int argc;
10097 PyObject *argv[4];
10098 int ii;
10099
10100 argc = PyObject_Length(args);
10101 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10102 argv[ii] = PyTuple_GetItem(args,ii);
10103 }
10104 if (argc == 1) {
10105 int _v;
10106 {
10107 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10108 }
10109 if (_v) {
10110 return _wrap_GetTranslation__SWIG_0(self,args);
10111 }
10112 }
10113 if (argc == 3) {
10114 int _v;
10115 {
10116 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10117 }
10118 if (_v) {
10119 {
10120 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10121 }
10122 if (_v) {
10123 _v = SWIG_CheckUnsignedLong(argv[2]);
10124 if (_v) {
10125 return _wrap_GetTranslation__SWIG_1(self,args);
10126 }
10127 }
10128 }
10129 }
10130
10131 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10132 return NULL;
10133 }
10134
10135
10136 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10137 PyObject *resultobj;
10138 wxEncodingConverter *result;
10139 char *kwnames[] = {
10140 NULL
10141 };
10142
10143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10144 {
10145 PyThreadState* __tstate = wxPyBeginAllowThreads();
10146 result = (wxEncodingConverter *)new wxEncodingConverter();
10147
10148 wxPyEndAllowThreads(__tstate);
10149 if (PyErr_Occurred()) SWIG_fail;
10150 }
10151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10152 return resultobj;
10153 fail:
10154 return NULL;
10155 }
10156
10157
10158 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10159 PyObject *resultobj;
10160 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10161 PyObject * obj0 = 0 ;
10162 char *kwnames[] = {
10163 (char *) "self", NULL
10164 };
10165
10166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 delete arg1;
10172
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 Py_INCREF(Py_None); resultobj = Py_None;
10177 return resultobj;
10178 fail:
10179 return NULL;
10180 }
10181
10182
10183 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10184 PyObject *resultobj;
10185 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10186 int arg2 ;
10187 int arg3 ;
10188 int arg4 = (int) wxCONVERT_STRICT ;
10189 bool result;
10190 PyObject * obj0 = 0 ;
10191 PyObject * obj1 = 0 ;
10192 PyObject * obj2 = 0 ;
10193 PyObject * obj3 = 0 ;
10194 char *kwnames[] = {
10195 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10196 };
10197
10198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10201 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10202 if (PyErr_Occurred()) SWIG_fail;
10203 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 if (obj3) {
10206 arg4 = (int) SWIG_AsInt(obj3);
10207 if (PyErr_Occurred()) SWIG_fail;
10208 }
10209 {
10210 PyThreadState* __tstate = wxPyBeginAllowThreads();
10211 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10212
10213 wxPyEndAllowThreads(__tstate);
10214 if (PyErr_Occurred()) SWIG_fail;
10215 }
10216 {
10217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10218 }
10219 return resultobj;
10220 fail:
10221 return NULL;
10222 }
10223
10224
10225 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10226 PyObject *resultobj;
10227 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10228 wxString *arg2 = 0 ;
10229 wxString result;
10230 bool temp2 = False ;
10231 PyObject * obj0 = 0 ;
10232 PyObject * obj1 = 0 ;
10233 char *kwnames[] = {
10234 (char *) "self",(char *) "input", NULL
10235 };
10236
10237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10240 {
10241 arg2 = wxString_in_helper(obj1);
10242 if (arg2 == NULL) SWIG_fail;
10243 temp2 = True;
10244 }
10245 {
10246 PyThreadState* __tstate = wxPyBeginAllowThreads();
10247 result = (arg1)->Convert((wxString const &)*arg2);
10248
10249 wxPyEndAllowThreads(__tstate);
10250 if (PyErr_Occurred()) SWIG_fail;
10251 }
10252 {
10253 #if wxUSE_UNICODE
10254 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10255 #else
10256 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10257 #endif
10258 }
10259 {
10260 if (temp2)
10261 delete arg2;
10262 }
10263 return resultobj;
10264 fail:
10265 {
10266 if (temp2)
10267 delete arg2;
10268 }
10269 return NULL;
10270 }
10271
10272
10273 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10274 PyObject *resultobj;
10275 int arg1 ;
10276 int arg2 = (int) wxPLATFORM_CURRENT ;
10277 wxFontEncodingArray result;
10278 PyObject * obj0 = 0 ;
10279 PyObject * obj1 = 0 ;
10280 char *kwnames[] = {
10281 (char *) "enc",(char *) "platform", NULL
10282 };
10283
10284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10285 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10286 if (PyErr_Occurred()) SWIG_fail;
10287 if (obj1) {
10288 arg2 = (int) SWIG_AsInt(obj1);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
10293 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10294
10295 wxPyEndAllowThreads(__tstate);
10296 if (PyErr_Occurred()) SWIG_fail;
10297 }
10298 {
10299 resultobj = PyList_New(0);
10300 for (size_t i=0; i < (&result)->GetCount(); i++) {
10301 PyObject* number = PyInt_FromLong((&result)->Item(i));
10302 PyList_Append(resultobj, number);
10303 Py_DECREF(number);
10304 }
10305 }
10306 return resultobj;
10307 fail:
10308 return NULL;
10309 }
10310
10311
10312 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10313 PyObject *resultobj;
10314 int arg1 ;
10315 wxFontEncodingArray result;
10316 PyObject * obj0 = 0 ;
10317 char *kwnames[] = {
10318 (char *) "enc", NULL
10319 };
10320
10321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10322 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10323 if (PyErr_Occurred()) SWIG_fail;
10324 {
10325 PyThreadState* __tstate = wxPyBeginAllowThreads();
10326 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10327
10328 wxPyEndAllowThreads(__tstate);
10329 if (PyErr_Occurred()) SWIG_fail;
10330 }
10331 {
10332 resultobj = PyList_New(0);
10333 for (size_t i=0; i < (&result)->GetCount(); i++) {
10334 PyObject* number = PyInt_FromLong((&result)->Item(i));
10335 PyList_Append(resultobj, number);
10336 Py_DECREF(number);
10337 }
10338 }
10339 return resultobj;
10340 fail:
10341 return NULL;
10342 }
10343
10344
10345 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10346 PyObject *resultobj;
10347 int arg1 ;
10348 int arg2 ;
10349 bool result;
10350 PyObject * obj0 = 0 ;
10351 PyObject * obj1 = 0 ;
10352 char *kwnames[] = {
10353 (char *) "encIn",(char *) "encOut", NULL
10354 };
10355
10356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10357 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10358 if (PyErr_Occurred()) SWIG_fail;
10359 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10360 if (PyErr_Occurred()) SWIG_fail;
10361 {
10362 PyThreadState* __tstate = wxPyBeginAllowThreads();
10363 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10364
10365 wxPyEndAllowThreads(__tstate);
10366 if (PyErr_Occurred()) SWIG_fail;
10367 }
10368 {
10369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10370 }
10371 return resultobj;
10372 fail:
10373 return NULL;
10374 }
10375
10376
10377 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10378 PyObject *obj;
10379 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10380 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10381 Py_INCREF(obj);
10382 return Py_BuildValue((char *)"");
10383 }
10384 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10385 PyObject *resultobj;
10386 wxDC *arg1 = (wxDC *) 0 ;
10387 PyObject * obj0 = 0 ;
10388 char *kwnames[] = {
10389 (char *) "self", NULL
10390 };
10391
10392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10395 {
10396 PyThreadState* __tstate = wxPyBeginAllowThreads();
10397 delete arg1;
10398
10399 wxPyEndAllowThreads(__tstate);
10400 if (PyErr_Occurred()) SWIG_fail;
10401 }
10402 Py_INCREF(Py_None); resultobj = Py_None;
10403 return resultobj;
10404 fail:
10405 return NULL;
10406 }
10407
10408
10409 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10410 PyObject *resultobj;
10411 wxDC *arg1 = (wxDC *) 0 ;
10412 PyObject * obj0 = 0 ;
10413 char *kwnames[] = {
10414 (char *) "self", NULL
10415 };
10416
10417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10420 {
10421 PyThreadState* __tstate = wxPyBeginAllowThreads();
10422 (arg1)->BeginDrawing();
10423
10424 wxPyEndAllowThreads(__tstate);
10425 if (PyErr_Occurred()) SWIG_fail;
10426 }
10427 Py_INCREF(Py_None); resultobj = Py_None;
10428 return resultobj;
10429 fail:
10430 return NULL;
10431 }
10432
10433
10434 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10435 PyObject *resultobj;
10436 wxDC *arg1 = (wxDC *) 0 ;
10437 PyObject * obj0 = 0 ;
10438 char *kwnames[] = {
10439 (char *) "self", NULL
10440 };
10441
10442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10445 {
10446 PyThreadState* __tstate = wxPyBeginAllowThreads();
10447 (arg1)->EndDrawing();
10448
10449 wxPyEndAllowThreads(__tstate);
10450 if (PyErr_Occurred()) SWIG_fail;
10451 }
10452 Py_INCREF(Py_None); resultobj = Py_None;
10453 return resultobj;
10454 fail:
10455 return NULL;
10456 }
10457
10458
10459 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10460 PyObject *resultobj;
10461 wxDC *arg1 = (wxDC *) 0 ;
10462 int arg2 ;
10463 int arg3 ;
10464 wxColour *arg4 = 0 ;
10465 int arg5 = (int) wxFLOOD_SURFACE ;
10466 bool result;
10467 wxColour temp4 ;
10468 PyObject * obj0 = 0 ;
10469 PyObject * obj1 = 0 ;
10470 PyObject * obj2 = 0 ;
10471 PyObject * obj3 = 0 ;
10472 PyObject * obj4 = 0 ;
10473 char *kwnames[] = {
10474 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10475 };
10476
10477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10480 arg2 = (int) SWIG_AsInt(obj1);
10481 if (PyErr_Occurred()) SWIG_fail;
10482 arg3 = (int) SWIG_AsInt(obj2);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 {
10485 arg4 = &temp4;
10486 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10487 }
10488 if (obj4) {
10489 arg5 = (int) SWIG_AsInt(obj4);
10490 if (PyErr_Occurred()) SWIG_fail;
10491 }
10492 {
10493 PyThreadState* __tstate = wxPyBeginAllowThreads();
10494 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10495
10496 wxPyEndAllowThreads(__tstate);
10497 if (PyErr_Occurred()) SWIG_fail;
10498 }
10499 {
10500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10501 }
10502 return resultobj;
10503 fail:
10504 return NULL;
10505 }
10506
10507
10508 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10509 PyObject *resultobj;
10510 wxDC *arg1 = (wxDC *) 0 ;
10511 wxPoint *arg2 = 0 ;
10512 wxColour *arg3 = 0 ;
10513 int arg4 = (int) wxFLOOD_SURFACE ;
10514 bool result;
10515 wxPoint temp2 ;
10516 wxColour temp3 ;
10517 PyObject * obj0 = 0 ;
10518 PyObject * obj1 = 0 ;
10519 PyObject * obj2 = 0 ;
10520 PyObject * obj3 = 0 ;
10521 char *kwnames[] = {
10522 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10523 };
10524
10525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10528 {
10529 arg2 = &temp2;
10530 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10531 }
10532 {
10533 arg3 = &temp3;
10534 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10535 }
10536 if (obj3) {
10537 arg4 = (int) SWIG_AsInt(obj3);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 }
10540 {
10541 PyThreadState* __tstate = wxPyBeginAllowThreads();
10542 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10543
10544 wxPyEndAllowThreads(__tstate);
10545 if (PyErr_Occurred()) SWIG_fail;
10546 }
10547 {
10548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10549 }
10550 return resultobj;
10551 fail:
10552 return NULL;
10553 }
10554
10555
10556 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10557 PyObject *resultobj;
10558 wxDC *arg1 = (wxDC *) 0 ;
10559 int arg2 ;
10560 int arg3 ;
10561 wxColour result;
10562 PyObject * obj0 = 0 ;
10563 PyObject * obj1 = 0 ;
10564 PyObject * obj2 = 0 ;
10565 char *kwnames[] = {
10566 (char *) "self",(char *) "x",(char *) "y", NULL
10567 };
10568
10569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10572 arg2 = (int) SWIG_AsInt(obj1);
10573 if (PyErr_Occurred()) SWIG_fail;
10574 arg3 = (int) SWIG_AsInt(obj2);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 {
10577 PyThreadState* __tstate = wxPyBeginAllowThreads();
10578 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10579
10580 wxPyEndAllowThreads(__tstate);
10581 if (PyErr_Occurred()) SWIG_fail;
10582 }
10583 {
10584 wxColour * resultptr;
10585 resultptr = new wxColour((wxColour &) result);
10586 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10587 }
10588 return resultobj;
10589 fail:
10590 return NULL;
10591 }
10592
10593
10594 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10595 PyObject *resultobj;
10596 wxDC *arg1 = (wxDC *) 0 ;
10597 wxPoint *arg2 = 0 ;
10598 wxColour result;
10599 wxPoint temp2 ;
10600 PyObject * obj0 = 0 ;
10601 PyObject * obj1 = 0 ;
10602 char *kwnames[] = {
10603 (char *) "self",(char *) "pt", NULL
10604 };
10605
10606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10609 {
10610 arg2 = &temp2;
10611 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10612 }
10613 {
10614 PyThreadState* __tstate = wxPyBeginAllowThreads();
10615 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10616
10617 wxPyEndAllowThreads(__tstate);
10618 if (PyErr_Occurred()) SWIG_fail;
10619 }
10620 {
10621 wxColour * resultptr;
10622 resultptr = new wxColour((wxColour &) result);
10623 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10624 }
10625 return resultobj;
10626 fail:
10627 return NULL;
10628 }
10629
10630
10631 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10632 PyObject *resultobj;
10633 wxDC *arg1 = (wxDC *) 0 ;
10634 int arg2 ;
10635 int arg3 ;
10636 int arg4 ;
10637 int arg5 ;
10638 PyObject * obj0 = 0 ;
10639 PyObject * obj1 = 0 ;
10640 PyObject * obj2 = 0 ;
10641 PyObject * obj3 = 0 ;
10642 PyObject * obj4 = 0 ;
10643 char *kwnames[] = {
10644 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10645 };
10646
10647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10650 arg2 = (int) SWIG_AsInt(obj1);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 arg3 = (int) SWIG_AsInt(obj2);
10653 if (PyErr_Occurred()) SWIG_fail;
10654 arg4 = (int) SWIG_AsInt(obj3);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 arg5 = (int) SWIG_AsInt(obj4);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10661
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 Py_INCREF(Py_None); resultobj = Py_None;
10666 return resultobj;
10667 fail:
10668 return NULL;
10669 }
10670
10671
10672 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10673 PyObject *resultobj;
10674 wxDC *arg1 = (wxDC *) 0 ;
10675 wxPoint *arg2 = 0 ;
10676 wxPoint *arg3 = 0 ;
10677 wxPoint temp2 ;
10678 wxPoint temp3 ;
10679 PyObject * obj0 = 0 ;
10680 PyObject * obj1 = 0 ;
10681 PyObject * obj2 = 0 ;
10682 char *kwnames[] = {
10683 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10684 };
10685
10686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10689 {
10690 arg2 = &temp2;
10691 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10692 }
10693 {
10694 arg3 = &temp3;
10695 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10696 }
10697 {
10698 PyThreadState* __tstate = wxPyBeginAllowThreads();
10699 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10700
10701 wxPyEndAllowThreads(__tstate);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 }
10704 Py_INCREF(Py_None); resultobj = Py_None;
10705 return resultobj;
10706 fail:
10707 return NULL;
10708 }
10709
10710
10711 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10712 PyObject *resultobj;
10713 wxDC *arg1 = (wxDC *) 0 ;
10714 int arg2 ;
10715 int arg3 ;
10716 PyObject * obj0 = 0 ;
10717 PyObject * obj1 = 0 ;
10718 PyObject * obj2 = 0 ;
10719 char *kwnames[] = {
10720 (char *) "self",(char *) "x",(char *) "y", NULL
10721 };
10722
10723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10726 arg2 = (int) SWIG_AsInt(obj1);
10727 if (PyErr_Occurred()) SWIG_fail;
10728 arg3 = (int) SWIG_AsInt(obj2);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 {
10731 PyThreadState* __tstate = wxPyBeginAllowThreads();
10732 (arg1)->CrossHair(arg2,arg3);
10733
10734 wxPyEndAllowThreads(__tstate);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 }
10737 Py_INCREF(Py_None); resultobj = Py_None;
10738 return resultobj;
10739 fail:
10740 return NULL;
10741 }
10742
10743
10744 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10745 PyObject *resultobj;
10746 wxDC *arg1 = (wxDC *) 0 ;
10747 wxPoint *arg2 = 0 ;
10748 wxPoint temp2 ;
10749 PyObject * obj0 = 0 ;
10750 PyObject * obj1 = 0 ;
10751 char *kwnames[] = {
10752 (char *) "self",(char *) "pt", NULL
10753 };
10754
10755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10758 {
10759 arg2 = &temp2;
10760 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10761 }
10762 {
10763 PyThreadState* __tstate = wxPyBeginAllowThreads();
10764 (arg1)->CrossHair((wxPoint const &)*arg2);
10765
10766 wxPyEndAllowThreads(__tstate);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 }
10769 Py_INCREF(Py_None); resultobj = Py_None;
10770 return resultobj;
10771 fail:
10772 return NULL;
10773 }
10774
10775
10776 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10777 PyObject *resultobj;
10778 wxDC *arg1 = (wxDC *) 0 ;
10779 int arg2 ;
10780 int arg3 ;
10781 int arg4 ;
10782 int arg5 ;
10783 int arg6 ;
10784 int arg7 ;
10785 PyObject * obj0 = 0 ;
10786 PyObject * obj1 = 0 ;
10787 PyObject * obj2 = 0 ;
10788 PyObject * obj3 = 0 ;
10789 PyObject * obj4 = 0 ;
10790 PyObject * obj5 = 0 ;
10791 PyObject * obj6 = 0 ;
10792 char *kwnames[] = {
10793 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10794 };
10795
10796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10799 arg2 = (int) SWIG_AsInt(obj1);
10800 if (PyErr_Occurred()) SWIG_fail;
10801 arg3 = (int) SWIG_AsInt(obj2);
10802 if (PyErr_Occurred()) SWIG_fail;
10803 arg4 = (int) SWIG_AsInt(obj3);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 arg5 = (int) SWIG_AsInt(obj4);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 arg6 = (int) SWIG_AsInt(obj5);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 arg7 = (int) SWIG_AsInt(obj6);
10810 if (PyErr_Occurred()) SWIG_fail;
10811 {
10812 PyThreadState* __tstate = wxPyBeginAllowThreads();
10813 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10814
10815 wxPyEndAllowThreads(__tstate);
10816 if (PyErr_Occurred()) SWIG_fail;
10817 }
10818 Py_INCREF(Py_None); resultobj = Py_None;
10819 return resultobj;
10820 fail:
10821 return NULL;
10822 }
10823
10824
10825 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10826 PyObject *resultobj;
10827 wxDC *arg1 = (wxDC *) 0 ;
10828 wxPoint *arg2 = 0 ;
10829 wxPoint *arg3 = 0 ;
10830 wxPoint *arg4 = 0 ;
10831 wxPoint temp2 ;
10832 wxPoint temp3 ;
10833 wxPoint temp4 ;
10834 PyObject * obj0 = 0 ;
10835 PyObject * obj1 = 0 ;
10836 PyObject * obj2 = 0 ;
10837 PyObject * obj3 = 0 ;
10838 char *kwnames[] = {
10839 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10840 };
10841
10842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10845 {
10846 arg2 = &temp2;
10847 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10848 }
10849 {
10850 arg3 = &temp3;
10851 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10852 }
10853 {
10854 arg4 = &temp4;
10855 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10856 }
10857 {
10858 PyThreadState* __tstate = wxPyBeginAllowThreads();
10859 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10860
10861 wxPyEndAllowThreads(__tstate);
10862 if (PyErr_Occurred()) SWIG_fail;
10863 }
10864 Py_INCREF(Py_None); resultobj = Py_None;
10865 return resultobj;
10866 fail:
10867 return NULL;
10868 }
10869
10870
10871 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10872 PyObject *resultobj;
10873 wxDC *arg1 = (wxDC *) 0 ;
10874 int arg2 ;
10875 int arg3 ;
10876 int arg4 ;
10877 int arg5 ;
10878 PyObject * obj0 = 0 ;
10879 PyObject * obj1 = 0 ;
10880 PyObject * obj2 = 0 ;
10881 PyObject * obj3 = 0 ;
10882 PyObject * obj4 = 0 ;
10883 char *kwnames[] = {
10884 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10885 };
10886
10887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10890 arg2 = (int) SWIG_AsInt(obj1);
10891 if (PyErr_Occurred()) SWIG_fail;
10892 arg3 = (int) SWIG_AsInt(obj2);
10893 if (PyErr_Occurred()) SWIG_fail;
10894 arg4 = (int) SWIG_AsInt(obj3);
10895 if (PyErr_Occurred()) SWIG_fail;
10896 arg5 = (int) SWIG_AsInt(obj4);
10897 if (PyErr_Occurred()) SWIG_fail;
10898 {
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10901
10902 wxPyEndAllowThreads(__tstate);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 }
10905 Py_INCREF(Py_None); resultobj = Py_None;
10906 return resultobj;
10907 fail:
10908 return NULL;
10909 }
10910
10911
10912 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10913 PyObject *resultobj;
10914 wxDC *arg1 = (wxDC *) 0 ;
10915 wxRect *arg2 = 0 ;
10916 wxRect temp2 ;
10917 PyObject * obj0 = 0 ;
10918 PyObject * obj1 = 0 ;
10919 char *kwnames[] = {
10920 (char *) "self",(char *) "rect", NULL
10921 };
10922
10923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10926 {
10927 arg2 = &temp2;
10928 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10929 }
10930 {
10931 PyThreadState* __tstate = wxPyBeginAllowThreads();
10932 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10933
10934 wxPyEndAllowThreads(__tstate);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
10937 Py_INCREF(Py_None); resultobj = Py_None;
10938 return resultobj;
10939 fail:
10940 return NULL;
10941 }
10942
10943
10944 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10945 PyObject *resultobj;
10946 wxDC *arg1 = (wxDC *) 0 ;
10947 int arg2 ;
10948 int arg3 ;
10949 int arg4 ;
10950 int arg5 ;
10951 double arg6 ;
10952 double arg7 ;
10953 PyObject * obj0 = 0 ;
10954 PyObject * obj1 = 0 ;
10955 PyObject * obj2 = 0 ;
10956 PyObject * obj3 = 0 ;
10957 PyObject * obj4 = 0 ;
10958 PyObject * obj5 = 0 ;
10959 PyObject * obj6 = 0 ;
10960 char *kwnames[] = {
10961 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10962 };
10963
10964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10967 arg2 = (int) SWIG_AsInt(obj1);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 arg3 = (int) SWIG_AsInt(obj2);
10970 if (PyErr_Occurred()) SWIG_fail;
10971 arg4 = (int) SWIG_AsInt(obj3);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 arg5 = (int) SWIG_AsInt(obj4);
10974 if (PyErr_Occurred()) SWIG_fail;
10975 arg6 = (double) SWIG_AsDouble(obj5);
10976 if (PyErr_Occurred()) SWIG_fail;
10977 arg7 = (double) SWIG_AsDouble(obj6);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 {
10980 PyThreadState* __tstate = wxPyBeginAllowThreads();
10981 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10982
10983 wxPyEndAllowThreads(__tstate);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 }
10986 Py_INCREF(Py_None); resultobj = Py_None;
10987 return resultobj;
10988 fail:
10989 return NULL;
10990 }
10991
10992
10993 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10994 PyObject *resultobj;
10995 wxDC *arg1 = (wxDC *) 0 ;
10996 wxPoint *arg2 = 0 ;
10997 wxSize *arg3 = 0 ;
10998 double arg4 ;
10999 double arg5 ;
11000 wxPoint temp2 ;
11001 wxSize temp3 ;
11002 PyObject * obj0 = 0 ;
11003 PyObject * obj1 = 0 ;
11004 PyObject * obj2 = 0 ;
11005 PyObject * obj3 = 0 ;
11006 PyObject * obj4 = 0 ;
11007 char *kwnames[] = {
11008 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11009 };
11010
11011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11014 {
11015 arg2 = &temp2;
11016 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11017 }
11018 {
11019 arg3 = &temp3;
11020 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11021 }
11022 arg4 = (double) SWIG_AsDouble(obj3);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 arg5 = (double) SWIG_AsDouble(obj4);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 {
11027 PyThreadState* __tstate = wxPyBeginAllowThreads();
11028 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11029
11030 wxPyEndAllowThreads(__tstate);
11031 if (PyErr_Occurred()) SWIG_fail;
11032 }
11033 Py_INCREF(Py_None); resultobj = Py_None;
11034 return resultobj;
11035 fail:
11036 return NULL;
11037 }
11038
11039
11040 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11041 PyObject *resultobj;
11042 wxDC *arg1 = (wxDC *) 0 ;
11043 int arg2 ;
11044 int arg3 ;
11045 PyObject * obj0 = 0 ;
11046 PyObject * obj1 = 0 ;
11047 PyObject * obj2 = 0 ;
11048 char *kwnames[] = {
11049 (char *) "self",(char *) "x",(char *) "y", NULL
11050 };
11051
11052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11055 arg2 = (int) SWIG_AsInt(obj1);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 arg3 = (int) SWIG_AsInt(obj2);
11058 if (PyErr_Occurred()) SWIG_fail;
11059 {
11060 PyThreadState* __tstate = wxPyBeginAllowThreads();
11061 (arg1)->DrawPoint(arg2,arg3);
11062
11063 wxPyEndAllowThreads(__tstate);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 }
11066 Py_INCREF(Py_None); resultobj = Py_None;
11067 return resultobj;
11068 fail:
11069 return NULL;
11070 }
11071
11072
11073 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11074 PyObject *resultobj;
11075 wxDC *arg1 = (wxDC *) 0 ;
11076 wxPoint *arg2 = 0 ;
11077 wxPoint temp2 ;
11078 PyObject * obj0 = 0 ;
11079 PyObject * obj1 = 0 ;
11080 char *kwnames[] = {
11081 (char *) "self",(char *) "pt", NULL
11082 };
11083
11084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
11085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11087 {
11088 arg2 = &temp2;
11089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11090 }
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 (arg1)->DrawPoint((wxPoint const &)*arg2);
11094
11095 wxPyEndAllowThreads(__tstate);
11096 if (PyErr_Occurred()) SWIG_fail;
11097 }
11098 Py_INCREF(Py_None); resultobj = Py_None;
11099 return resultobj;
11100 fail:
11101 return NULL;
11102 }
11103
11104
11105 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11106 PyObject *resultobj;
11107 wxDC *arg1 = (wxDC *) 0 ;
11108 int arg2 ;
11109 int arg3 ;
11110 int arg4 ;
11111 int arg5 ;
11112 PyObject * obj0 = 0 ;
11113 PyObject * obj1 = 0 ;
11114 PyObject * obj2 = 0 ;
11115 PyObject * obj3 = 0 ;
11116 PyObject * obj4 = 0 ;
11117 char *kwnames[] = {
11118 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11119 };
11120
11121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11124 arg2 = (int) SWIG_AsInt(obj1);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 arg3 = (int) SWIG_AsInt(obj2);
11127 if (PyErr_Occurred()) SWIG_fail;
11128 arg4 = (int) SWIG_AsInt(obj3);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 arg5 = (int) SWIG_AsInt(obj4);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 {
11133 PyThreadState* __tstate = wxPyBeginAllowThreads();
11134 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11135
11136 wxPyEndAllowThreads(__tstate);
11137 if (PyErr_Occurred()) SWIG_fail;
11138 }
11139 Py_INCREF(Py_None); resultobj = Py_None;
11140 return resultobj;
11141 fail:
11142 return NULL;
11143 }
11144
11145
11146 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11147 PyObject *resultobj;
11148 wxDC *arg1 = (wxDC *) 0 ;
11149 wxPoint *arg2 = 0 ;
11150 wxSize *arg3 = 0 ;
11151 wxPoint temp2 ;
11152 wxSize temp3 ;
11153 PyObject * obj0 = 0 ;
11154 PyObject * obj1 = 0 ;
11155 PyObject * obj2 = 0 ;
11156 char *kwnames[] = {
11157 (char *) "self",(char *) "pt",(char *) "sz", NULL
11158 };
11159
11160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11163 {
11164 arg2 = &temp2;
11165 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11166 }
11167 {
11168 arg3 = &temp3;
11169 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11170 }
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11174
11175 wxPyEndAllowThreads(__tstate);
11176 if (PyErr_Occurred()) SWIG_fail;
11177 }
11178 Py_INCREF(Py_None); resultobj = Py_None;
11179 return resultobj;
11180 fail:
11181 return NULL;
11182 }
11183
11184
11185 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11186 PyObject *resultobj;
11187 wxDC *arg1 = (wxDC *) 0 ;
11188 wxRect *arg2 = 0 ;
11189 wxRect temp2 ;
11190 PyObject * obj0 = 0 ;
11191 PyObject * obj1 = 0 ;
11192 char *kwnames[] = {
11193 (char *) "self",(char *) "rect", NULL
11194 };
11195
11196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11199 {
11200 arg2 = &temp2;
11201 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11202 }
11203 {
11204 PyThreadState* __tstate = wxPyBeginAllowThreads();
11205 (arg1)->DrawRectangle((wxRect const &)*arg2);
11206
11207 wxPyEndAllowThreads(__tstate);
11208 if (PyErr_Occurred()) SWIG_fail;
11209 }
11210 Py_INCREF(Py_None); resultobj = Py_None;
11211 return resultobj;
11212 fail:
11213 return NULL;
11214 }
11215
11216
11217 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11218 PyObject *resultobj;
11219 wxDC *arg1 = (wxDC *) 0 ;
11220 int arg2 ;
11221 int arg3 ;
11222 int arg4 ;
11223 int arg5 ;
11224 double arg6 ;
11225 PyObject * obj0 = 0 ;
11226 PyObject * obj1 = 0 ;
11227 PyObject * obj2 = 0 ;
11228 PyObject * obj3 = 0 ;
11229 PyObject * obj4 = 0 ;
11230 PyObject * obj5 = 0 ;
11231 char *kwnames[] = {
11232 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11233 };
11234
11235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11238 arg2 = (int) SWIG_AsInt(obj1);
11239 if (PyErr_Occurred()) SWIG_fail;
11240 arg3 = (int) SWIG_AsInt(obj2);
11241 if (PyErr_Occurred()) SWIG_fail;
11242 arg4 = (int) SWIG_AsInt(obj3);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 arg5 = (int) SWIG_AsInt(obj4);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 arg6 = (double) SWIG_AsDouble(obj5);
11247 if (PyErr_Occurred()) SWIG_fail;
11248 {
11249 PyThreadState* __tstate = wxPyBeginAllowThreads();
11250 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11251
11252 wxPyEndAllowThreads(__tstate);
11253 if (PyErr_Occurred()) SWIG_fail;
11254 }
11255 Py_INCREF(Py_None); resultobj = Py_None;
11256 return resultobj;
11257 fail:
11258 return NULL;
11259 }
11260
11261
11262 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11263 PyObject *resultobj;
11264 wxDC *arg1 = (wxDC *) 0 ;
11265 wxPoint *arg2 = 0 ;
11266 wxSize *arg3 = 0 ;
11267 double arg4 ;
11268 wxPoint temp2 ;
11269 wxSize temp3 ;
11270 PyObject * obj0 = 0 ;
11271 PyObject * obj1 = 0 ;
11272 PyObject * obj2 = 0 ;
11273 PyObject * obj3 = 0 ;
11274 char *kwnames[] = {
11275 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11276 };
11277
11278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11281 {
11282 arg2 = &temp2;
11283 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11284 }
11285 {
11286 arg3 = &temp3;
11287 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11288 }
11289 arg4 = (double) SWIG_AsDouble(obj3);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 {
11292 PyThreadState* __tstate = wxPyBeginAllowThreads();
11293 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11294
11295 wxPyEndAllowThreads(__tstate);
11296 if (PyErr_Occurred()) SWIG_fail;
11297 }
11298 Py_INCREF(Py_None); resultobj = Py_None;
11299 return resultobj;
11300 fail:
11301 return NULL;
11302 }
11303
11304
11305 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11306 PyObject *resultobj;
11307 wxDC *arg1 = (wxDC *) 0 ;
11308 wxRect *arg2 = 0 ;
11309 double arg3 ;
11310 wxRect temp2 ;
11311 PyObject * obj0 = 0 ;
11312 PyObject * obj1 = 0 ;
11313 PyObject * obj2 = 0 ;
11314 char *kwnames[] = {
11315 (char *) "self",(char *) "r",(char *) "radius", NULL
11316 };
11317
11318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11321 {
11322 arg2 = &temp2;
11323 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11324 }
11325 arg3 = (double) SWIG_AsDouble(obj2);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 {
11328 PyThreadState* __tstate = wxPyBeginAllowThreads();
11329 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11330
11331 wxPyEndAllowThreads(__tstate);
11332 if (PyErr_Occurred()) SWIG_fail;
11333 }
11334 Py_INCREF(Py_None); resultobj = Py_None;
11335 return resultobj;
11336 fail:
11337 return NULL;
11338 }
11339
11340
11341 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11342 PyObject *resultobj;
11343 wxDC *arg1 = (wxDC *) 0 ;
11344 int arg2 ;
11345 int arg3 ;
11346 int arg4 ;
11347 PyObject * obj0 = 0 ;
11348 PyObject * obj1 = 0 ;
11349 PyObject * obj2 = 0 ;
11350 PyObject * obj3 = 0 ;
11351 char *kwnames[] = {
11352 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11353 };
11354
11355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11358 arg2 = (int) SWIG_AsInt(obj1);
11359 if (PyErr_Occurred()) SWIG_fail;
11360 arg3 = (int) SWIG_AsInt(obj2);
11361 if (PyErr_Occurred()) SWIG_fail;
11362 arg4 = (int) SWIG_AsInt(obj3);
11363 if (PyErr_Occurred()) SWIG_fail;
11364 {
11365 PyThreadState* __tstate = wxPyBeginAllowThreads();
11366 (arg1)->DrawCircle(arg2,arg3,arg4);
11367
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 Py_INCREF(Py_None); resultobj = Py_None;
11372 return resultobj;
11373 fail:
11374 return NULL;
11375 }
11376
11377
11378 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11379 PyObject *resultobj;
11380 wxDC *arg1 = (wxDC *) 0 ;
11381 wxPoint *arg2 = 0 ;
11382 int arg3 ;
11383 wxPoint temp2 ;
11384 PyObject * obj0 = 0 ;
11385 PyObject * obj1 = 0 ;
11386 PyObject * obj2 = 0 ;
11387 char *kwnames[] = {
11388 (char *) "self",(char *) "pt",(char *) "radius", NULL
11389 };
11390
11391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11394 {
11395 arg2 = &temp2;
11396 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11397 }
11398 arg3 = (int) SWIG_AsInt(obj2);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 {
11401 PyThreadState* __tstate = wxPyBeginAllowThreads();
11402 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11403
11404 wxPyEndAllowThreads(__tstate);
11405 if (PyErr_Occurred()) SWIG_fail;
11406 }
11407 Py_INCREF(Py_None); resultobj = Py_None;
11408 return resultobj;
11409 fail:
11410 return NULL;
11411 }
11412
11413
11414 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11415 PyObject *resultobj;
11416 wxDC *arg1 = (wxDC *) 0 ;
11417 int arg2 ;
11418 int arg3 ;
11419 int arg4 ;
11420 int arg5 ;
11421 PyObject * obj0 = 0 ;
11422 PyObject * obj1 = 0 ;
11423 PyObject * obj2 = 0 ;
11424 PyObject * obj3 = 0 ;
11425 PyObject * obj4 = 0 ;
11426 char *kwnames[] = {
11427 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11428 };
11429
11430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11433 arg2 = (int) SWIG_AsInt(obj1);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 arg3 = (int) SWIG_AsInt(obj2);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 arg4 = (int) SWIG_AsInt(obj3);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 arg5 = (int) SWIG_AsInt(obj4);
11440 if (PyErr_Occurred()) SWIG_fail;
11441 {
11442 PyThreadState* __tstate = wxPyBeginAllowThreads();
11443 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11444
11445 wxPyEndAllowThreads(__tstate);
11446 if (PyErr_Occurred()) SWIG_fail;
11447 }
11448 Py_INCREF(Py_None); resultobj = Py_None;
11449 return resultobj;
11450 fail:
11451 return NULL;
11452 }
11453
11454
11455 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11456 PyObject *resultobj;
11457 wxDC *arg1 = (wxDC *) 0 ;
11458 wxPoint *arg2 = 0 ;
11459 wxSize *arg3 = 0 ;
11460 wxPoint temp2 ;
11461 wxSize temp3 ;
11462 PyObject * obj0 = 0 ;
11463 PyObject * obj1 = 0 ;
11464 PyObject * obj2 = 0 ;
11465 char *kwnames[] = {
11466 (char *) "self",(char *) "pt",(char *) "sz", NULL
11467 };
11468
11469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11472 {
11473 arg2 = &temp2;
11474 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11475 }
11476 {
11477 arg3 = &temp3;
11478 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11479 }
11480 {
11481 PyThreadState* __tstate = wxPyBeginAllowThreads();
11482 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11483
11484 wxPyEndAllowThreads(__tstate);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 Py_INCREF(Py_None); resultobj = Py_None;
11488 return resultobj;
11489 fail:
11490 return NULL;
11491 }
11492
11493
11494 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11495 PyObject *resultobj;
11496 wxDC *arg1 = (wxDC *) 0 ;
11497 wxRect *arg2 = 0 ;
11498 wxRect temp2 ;
11499 PyObject * obj0 = 0 ;
11500 PyObject * obj1 = 0 ;
11501 char *kwnames[] = {
11502 (char *) "self",(char *) "rect", NULL
11503 };
11504
11505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11508 {
11509 arg2 = &temp2;
11510 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11511 }
11512 {
11513 PyThreadState* __tstate = wxPyBeginAllowThreads();
11514 (arg1)->DrawEllipse((wxRect const &)*arg2);
11515
11516 wxPyEndAllowThreads(__tstate);
11517 if (PyErr_Occurred()) SWIG_fail;
11518 }
11519 Py_INCREF(Py_None); resultobj = Py_None;
11520 return resultobj;
11521 fail:
11522 return NULL;
11523 }
11524
11525
11526 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11527 PyObject *resultobj;
11528 wxDC *arg1 = (wxDC *) 0 ;
11529 wxIcon *arg2 = 0 ;
11530 int arg3 ;
11531 int arg4 ;
11532 PyObject * obj0 = 0 ;
11533 PyObject * obj1 = 0 ;
11534 PyObject * obj2 = 0 ;
11535 PyObject * obj3 = 0 ;
11536 char *kwnames[] = {
11537 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11538 };
11539
11540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11543 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11544 SWIG_POINTER_EXCEPTION | 0)) == -1)
11545 SWIG_fail;
11546 if (arg2 == NULL) {
11547 PyErr_SetString(PyExc_TypeError,"null reference");
11548 SWIG_fail;
11549 }
11550 arg3 = (int) SWIG_AsInt(obj2);
11551 if (PyErr_Occurred()) SWIG_fail;
11552 arg4 = (int) SWIG_AsInt(obj3);
11553 if (PyErr_Occurred()) SWIG_fail;
11554 {
11555 PyThreadState* __tstate = wxPyBeginAllowThreads();
11556 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11557
11558 wxPyEndAllowThreads(__tstate);
11559 if (PyErr_Occurred()) SWIG_fail;
11560 }
11561 Py_INCREF(Py_None); resultobj = Py_None;
11562 return resultobj;
11563 fail:
11564 return NULL;
11565 }
11566
11567
11568 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11569 PyObject *resultobj;
11570 wxDC *arg1 = (wxDC *) 0 ;
11571 wxIcon *arg2 = 0 ;
11572 wxPoint *arg3 = 0 ;
11573 wxPoint temp3 ;
11574 PyObject * obj0 = 0 ;
11575 PyObject * obj1 = 0 ;
11576 PyObject * obj2 = 0 ;
11577 char *kwnames[] = {
11578 (char *) "self",(char *) "icon",(char *) "pt", NULL
11579 };
11580
11581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11584 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11585 SWIG_POINTER_EXCEPTION | 0)) == -1)
11586 SWIG_fail;
11587 if (arg2 == NULL) {
11588 PyErr_SetString(PyExc_TypeError,"null reference");
11589 SWIG_fail;
11590 }
11591 {
11592 arg3 = &temp3;
11593 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11594 }
11595 {
11596 PyThreadState* __tstate = wxPyBeginAllowThreads();
11597 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11598
11599 wxPyEndAllowThreads(__tstate);
11600 if (PyErr_Occurred()) SWIG_fail;
11601 }
11602 Py_INCREF(Py_None); resultobj = Py_None;
11603 return resultobj;
11604 fail:
11605 return NULL;
11606 }
11607
11608
11609 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11610 PyObject *resultobj;
11611 wxDC *arg1 = (wxDC *) 0 ;
11612 wxBitmap *arg2 = 0 ;
11613 int arg3 ;
11614 int arg4 ;
11615 bool arg5 = (bool) False ;
11616 PyObject * obj0 = 0 ;
11617 PyObject * obj1 = 0 ;
11618 PyObject * obj2 = 0 ;
11619 PyObject * obj3 = 0 ;
11620 PyObject * obj4 = 0 ;
11621 char *kwnames[] = {
11622 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11623 };
11624
11625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11628 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11629 SWIG_POINTER_EXCEPTION | 0)) == -1)
11630 SWIG_fail;
11631 if (arg2 == NULL) {
11632 PyErr_SetString(PyExc_TypeError,"null reference");
11633 SWIG_fail;
11634 }
11635 arg3 = (int) SWIG_AsInt(obj2);
11636 if (PyErr_Occurred()) SWIG_fail;
11637 arg4 = (int) SWIG_AsInt(obj3);
11638 if (PyErr_Occurred()) SWIG_fail;
11639 if (obj4) {
11640 arg5 = (bool) SWIG_AsBool(obj4);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
11643 {
11644 PyThreadState* __tstate = wxPyBeginAllowThreads();
11645 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11646
11647 wxPyEndAllowThreads(__tstate);
11648 if (PyErr_Occurred()) SWIG_fail;
11649 }
11650 Py_INCREF(Py_None); resultobj = Py_None;
11651 return resultobj;
11652 fail:
11653 return NULL;
11654 }
11655
11656
11657 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11658 PyObject *resultobj;
11659 wxDC *arg1 = (wxDC *) 0 ;
11660 wxBitmap *arg2 = 0 ;
11661 wxPoint *arg3 = 0 ;
11662 bool arg4 = (bool) False ;
11663 wxPoint temp3 ;
11664 PyObject * obj0 = 0 ;
11665 PyObject * obj1 = 0 ;
11666 PyObject * obj2 = 0 ;
11667 PyObject * obj3 = 0 ;
11668 char *kwnames[] = {
11669 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11670 };
11671
11672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11675 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11676 SWIG_POINTER_EXCEPTION | 0)) == -1)
11677 SWIG_fail;
11678 if (arg2 == NULL) {
11679 PyErr_SetString(PyExc_TypeError,"null reference");
11680 SWIG_fail;
11681 }
11682 {
11683 arg3 = &temp3;
11684 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11685 }
11686 if (obj3) {
11687 arg4 = (bool) SWIG_AsBool(obj3);
11688 if (PyErr_Occurred()) SWIG_fail;
11689 }
11690 {
11691 PyThreadState* __tstate = wxPyBeginAllowThreads();
11692 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11693
11694 wxPyEndAllowThreads(__tstate);
11695 if (PyErr_Occurred()) SWIG_fail;
11696 }
11697 Py_INCREF(Py_None); resultobj = Py_None;
11698 return resultobj;
11699 fail:
11700 return NULL;
11701 }
11702
11703
11704 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11705 PyObject *resultobj;
11706 wxDC *arg1 = (wxDC *) 0 ;
11707 wxString *arg2 = 0 ;
11708 int arg3 ;
11709 int arg4 ;
11710 bool temp2 = False ;
11711 PyObject * obj0 = 0 ;
11712 PyObject * obj1 = 0 ;
11713 PyObject * obj2 = 0 ;
11714 PyObject * obj3 = 0 ;
11715 char *kwnames[] = {
11716 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11717 };
11718
11719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11722 {
11723 arg2 = wxString_in_helper(obj1);
11724 if (arg2 == NULL) SWIG_fail;
11725 temp2 = True;
11726 }
11727 arg3 = (int) SWIG_AsInt(obj2);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 arg4 = (int) SWIG_AsInt(obj3);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 {
11732 PyThreadState* __tstate = wxPyBeginAllowThreads();
11733 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11734
11735 wxPyEndAllowThreads(__tstate);
11736 if (PyErr_Occurred()) SWIG_fail;
11737 }
11738 Py_INCREF(Py_None); resultobj = Py_None;
11739 {
11740 if (temp2)
11741 delete arg2;
11742 }
11743 return resultobj;
11744 fail:
11745 {
11746 if (temp2)
11747 delete arg2;
11748 }
11749 return NULL;
11750 }
11751
11752
11753 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11754 PyObject *resultobj;
11755 wxDC *arg1 = (wxDC *) 0 ;
11756 wxString *arg2 = 0 ;
11757 wxPoint *arg3 = 0 ;
11758 bool temp2 = False ;
11759 wxPoint temp3 ;
11760 PyObject * obj0 = 0 ;
11761 PyObject * obj1 = 0 ;
11762 PyObject * obj2 = 0 ;
11763 char *kwnames[] = {
11764 (char *) "self",(char *) "text",(char *) "pt", NULL
11765 };
11766
11767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11770 {
11771 arg2 = wxString_in_helper(obj1);
11772 if (arg2 == NULL) SWIG_fail;
11773 temp2 = True;
11774 }
11775 {
11776 arg3 = &temp3;
11777 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11778 }
11779 {
11780 PyThreadState* __tstate = wxPyBeginAllowThreads();
11781 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11782
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 Py_INCREF(Py_None); resultobj = Py_None;
11787 {
11788 if (temp2)
11789 delete arg2;
11790 }
11791 return resultobj;
11792 fail:
11793 {
11794 if (temp2)
11795 delete arg2;
11796 }
11797 return NULL;
11798 }
11799
11800
11801 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11802 PyObject *resultobj;
11803 wxDC *arg1 = (wxDC *) 0 ;
11804 wxString *arg2 = 0 ;
11805 int arg3 ;
11806 int arg4 ;
11807 double arg5 ;
11808 bool temp2 = False ;
11809 PyObject * obj0 = 0 ;
11810 PyObject * obj1 = 0 ;
11811 PyObject * obj2 = 0 ;
11812 PyObject * obj3 = 0 ;
11813 PyObject * obj4 = 0 ;
11814 char *kwnames[] = {
11815 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11816 };
11817
11818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11821 {
11822 arg2 = wxString_in_helper(obj1);
11823 if (arg2 == NULL) SWIG_fail;
11824 temp2 = True;
11825 }
11826 arg3 = (int) SWIG_AsInt(obj2);
11827 if (PyErr_Occurred()) SWIG_fail;
11828 arg4 = (int) SWIG_AsInt(obj3);
11829 if (PyErr_Occurred()) SWIG_fail;
11830 arg5 = (double) SWIG_AsDouble(obj4);
11831 if (PyErr_Occurred()) SWIG_fail;
11832 {
11833 PyThreadState* __tstate = wxPyBeginAllowThreads();
11834 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11835
11836 wxPyEndAllowThreads(__tstate);
11837 if (PyErr_Occurred()) SWIG_fail;
11838 }
11839 Py_INCREF(Py_None); resultobj = Py_None;
11840 {
11841 if (temp2)
11842 delete arg2;
11843 }
11844 return resultobj;
11845 fail:
11846 {
11847 if (temp2)
11848 delete arg2;
11849 }
11850 return NULL;
11851 }
11852
11853
11854 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11855 PyObject *resultobj;
11856 wxDC *arg1 = (wxDC *) 0 ;
11857 wxString *arg2 = 0 ;
11858 wxPoint *arg3 = 0 ;
11859 double arg4 ;
11860 bool temp2 = False ;
11861 wxPoint temp3 ;
11862 PyObject * obj0 = 0 ;
11863 PyObject * obj1 = 0 ;
11864 PyObject * obj2 = 0 ;
11865 PyObject * obj3 = 0 ;
11866 char *kwnames[] = {
11867 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11868 };
11869
11870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11873 {
11874 arg2 = wxString_in_helper(obj1);
11875 if (arg2 == NULL) SWIG_fail;
11876 temp2 = True;
11877 }
11878 {
11879 arg3 = &temp3;
11880 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11881 }
11882 arg4 = (double) SWIG_AsDouble(obj3);
11883 if (PyErr_Occurred()) SWIG_fail;
11884 {
11885 PyThreadState* __tstate = wxPyBeginAllowThreads();
11886 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11887
11888 wxPyEndAllowThreads(__tstate);
11889 if (PyErr_Occurred()) SWIG_fail;
11890 }
11891 Py_INCREF(Py_None); resultobj = Py_None;
11892 {
11893 if (temp2)
11894 delete arg2;
11895 }
11896 return resultobj;
11897 fail:
11898 {
11899 if (temp2)
11900 delete arg2;
11901 }
11902 return NULL;
11903 }
11904
11905
11906 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11907 PyObject *resultobj;
11908 wxDC *arg1 = (wxDC *) 0 ;
11909 int arg2 ;
11910 int arg3 ;
11911 int arg4 ;
11912 int arg5 ;
11913 wxDC *arg6 = (wxDC *) 0 ;
11914 int arg7 ;
11915 int arg8 ;
11916 int arg9 = (int) wxCOPY ;
11917 bool arg10 = (bool) False ;
11918 int arg11 = (int) -1 ;
11919 int arg12 = (int) -1 ;
11920 bool result;
11921 PyObject * obj0 = 0 ;
11922 PyObject * obj1 = 0 ;
11923 PyObject * obj2 = 0 ;
11924 PyObject * obj3 = 0 ;
11925 PyObject * obj4 = 0 ;
11926 PyObject * obj5 = 0 ;
11927 PyObject * obj6 = 0 ;
11928 PyObject * obj7 = 0 ;
11929 PyObject * obj8 = 0 ;
11930 PyObject * obj9 = 0 ;
11931 PyObject * obj10 = 0 ;
11932 PyObject * obj11 = 0 ;
11933 char *kwnames[] = {
11934 (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
11935 };
11936
11937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
11938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11940 arg2 = (int) SWIG_AsInt(obj1);
11941 if (PyErr_Occurred()) SWIG_fail;
11942 arg3 = (int) SWIG_AsInt(obj2);
11943 if (PyErr_Occurred()) SWIG_fail;
11944 arg4 = (int) SWIG_AsInt(obj3);
11945 if (PyErr_Occurred()) SWIG_fail;
11946 arg5 = (int) SWIG_AsInt(obj4);
11947 if (PyErr_Occurred()) SWIG_fail;
11948 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11950 arg7 = (int) SWIG_AsInt(obj6);
11951 if (PyErr_Occurred()) SWIG_fail;
11952 arg8 = (int) SWIG_AsInt(obj7);
11953 if (PyErr_Occurred()) SWIG_fail;
11954 if (obj8) {
11955 arg9 = (int) SWIG_AsInt(obj8);
11956 if (PyErr_Occurred()) SWIG_fail;
11957 }
11958 if (obj9) {
11959 arg10 = (bool) SWIG_AsBool(obj9);
11960 if (PyErr_Occurred()) SWIG_fail;
11961 }
11962 if (obj10) {
11963 arg11 = (int) SWIG_AsInt(obj10);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 if (obj11) {
11967 arg12 = (int) SWIG_AsInt(obj11);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
11970 {
11971 PyThreadState* __tstate = wxPyBeginAllowThreads();
11972 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11973
11974 wxPyEndAllowThreads(__tstate);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 {
11978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11979 }
11980 return resultobj;
11981 fail:
11982 return NULL;
11983 }
11984
11985
11986 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11987 PyObject *resultobj;
11988 wxDC *arg1 = (wxDC *) 0 ;
11989 wxPoint *arg2 = 0 ;
11990 wxSize *arg3 = 0 ;
11991 wxDC *arg4 = (wxDC *) 0 ;
11992 wxPoint *arg5 = 0 ;
11993 int arg6 = (int) wxCOPY ;
11994 bool arg7 = (bool) False ;
11995 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11996 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11997 bool result;
11998 wxPoint temp2 ;
11999 wxSize temp3 ;
12000 wxPoint temp5 ;
12001 wxPoint temp8 ;
12002 PyObject * obj0 = 0 ;
12003 PyObject * obj1 = 0 ;
12004 PyObject * obj2 = 0 ;
12005 PyObject * obj3 = 0 ;
12006 PyObject * obj4 = 0 ;
12007 PyObject * obj5 = 0 ;
12008 PyObject * obj6 = 0 ;
12009 PyObject * obj7 = 0 ;
12010 char *kwnames[] = {
12011 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12012 };
12013
12014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12017 {
12018 arg2 = &temp2;
12019 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12020 }
12021 {
12022 arg3 = &temp3;
12023 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12024 }
12025 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12027 {
12028 arg5 = &temp5;
12029 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12030 }
12031 if (obj5) {
12032 arg6 = (int) SWIG_AsInt(obj5);
12033 if (PyErr_Occurred()) SWIG_fail;
12034 }
12035 if (obj6) {
12036 arg7 = (bool) SWIG_AsBool(obj6);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 }
12039 if (obj7) {
12040 {
12041 arg8 = &temp8;
12042 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12043 }
12044 }
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12048
12049 wxPyEndAllowThreads(__tstate);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 {
12053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12054 }
12055 return resultobj;
12056 fail:
12057 return NULL;
12058 }
12059
12060
12061 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12062 PyObject *resultobj;
12063 wxDC *arg1 = (wxDC *) 0 ;
12064 int arg2 ;
12065 wxPoint *arg3 = (wxPoint *) 0 ;
12066 int arg4 = (int) 0 ;
12067 int arg5 = (int) 0 ;
12068 PyObject * obj0 = 0 ;
12069 PyObject * obj1 = 0 ;
12070 PyObject * obj2 = 0 ;
12071 PyObject * obj3 = 0 ;
12072 char *kwnames[] = {
12073 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12074 };
12075
12076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12079 {
12080 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12081 if (arg3 == NULL) SWIG_fail;
12082 }
12083 if (obj2) {
12084 arg4 = (int) SWIG_AsInt(obj2);
12085 if (PyErr_Occurred()) SWIG_fail;
12086 }
12087 if (obj3) {
12088 arg5 = (int) SWIG_AsInt(obj3);
12089 if (PyErr_Occurred()) SWIG_fail;
12090 }
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12094
12095 wxPyEndAllowThreads(__tstate);
12096 if (PyErr_Occurred()) SWIG_fail;
12097 }
12098 Py_INCREF(Py_None); resultobj = Py_None;
12099 {
12100 if (arg3) delete [] arg3;
12101 }
12102 return resultobj;
12103 fail:
12104 {
12105 if (arg3) delete [] arg3;
12106 }
12107 return NULL;
12108 }
12109
12110
12111 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12112 PyObject *resultobj;
12113 wxDC *arg1 = (wxDC *) 0 ;
12114 int arg2 ;
12115 wxPoint *arg3 = (wxPoint *) 0 ;
12116 int arg4 = (int) 0 ;
12117 int arg5 = (int) 0 ;
12118 int arg6 = (int) wxODDEVEN_RULE ;
12119 PyObject * obj0 = 0 ;
12120 PyObject * obj1 = 0 ;
12121 PyObject * obj2 = 0 ;
12122 PyObject * obj3 = 0 ;
12123 PyObject * obj4 = 0 ;
12124 char *kwnames[] = {
12125 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12126 };
12127
12128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12131 {
12132 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12133 if (arg3 == NULL) SWIG_fail;
12134 }
12135 if (obj2) {
12136 arg4 = (int) SWIG_AsInt(obj2);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 if (obj3) {
12140 arg5 = (int) SWIG_AsInt(obj3);
12141 if (PyErr_Occurred()) SWIG_fail;
12142 }
12143 if (obj4) {
12144 arg6 = (int) SWIG_AsInt(obj4);
12145 if (PyErr_Occurred()) SWIG_fail;
12146 }
12147 {
12148 PyThreadState* __tstate = wxPyBeginAllowThreads();
12149 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12150
12151 wxPyEndAllowThreads(__tstate);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 }
12154 Py_INCREF(Py_None); resultobj = Py_None;
12155 {
12156 if (arg3) delete [] arg3;
12157 }
12158 return resultobj;
12159 fail:
12160 {
12161 if (arg3) delete [] arg3;
12162 }
12163 return NULL;
12164 }
12165
12166
12167 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12168 PyObject *resultobj;
12169 wxDC *arg1 = (wxDC *) 0 ;
12170 wxString *arg2 = 0 ;
12171 wxRect *arg3 = 0 ;
12172 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12173 int arg5 = (int) -1 ;
12174 bool temp2 = False ;
12175 wxRect temp3 ;
12176 PyObject * obj0 = 0 ;
12177 PyObject * obj1 = 0 ;
12178 PyObject * obj2 = 0 ;
12179 PyObject * obj3 = 0 ;
12180 PyObject * obj4 = 0 ;
12181 char *kwnames[] = {
12182 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12183 };
12184
12185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12188 {
12189 arg2 = wxString_in_helper(obj1);
12190 if (arg2 == NULL) SWIG_fail;
12191 temp2 = True;
12192 }
12193 {
12194 arg3 = &temp3;
12195 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12196 }
12197 if (obj3) {
12198 arg4 = (int) SWIG_AsInt(obj3);
12199 if (PyErr_Occurred()) SWIG_fail;
12200 }
12201 if (obj4) {
12202 arg5 = (int) SWIG_AsInt(obj4);
12203 if (PyErr_Occurred()) SWIG_fail;
12204 }
12205 {
12206 PyThreadState* __tstate = wxPyBeginAllowThreads();
12207 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12208
12209 wxPyEndAllowThreads(__tstate);
12210 if (PyErr_Occurred()) SWIG_fail;
12211 }
12212 Py_INCREF(Py_None); resultobj = Py_None;
12213 {
12214 if (temp2)
12215 delete arg2;
12216 }
12217 return resultobj;
12218 fail:
12219 {
12220 if (temp2)
12221 delete arg2;
12222 }
12223 return NULL;
12224 }
12225
12226
12227 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12228 PyObject *resultobj;
12229 wxDC *arg1 = (wxDC *) 0 ;
12230 wxString *arg2 = 0 ;
12231 wxBitmap *arg3 = 0 ;
12232 wxRect *arg4 = 0 ;
12233 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12234 int arg6 = (int) -1 ;
12235 wxRect result;
12236 bool temp2 = False ;
12237 wxRect temp4 ;
12238 PyObject * obj0 = 0 ;
12239 PyObject * obj1 = 0 ;
12240 PyObject * obj2 = 0 ;
12241 PyObject * obj3 = 0 ;
12242 PyObject * obj4 = 0 ;
12243 PyObject * obj5 = 0 ;
12244 char *kwnames[] = {
12245 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12246 };
12247
12248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12251 {
12252 arg2 = wxString_in_helper(obj1);
12253 if (arg2 == NULL) SWIG_fail;
12254 temp2 = True;
12255 }
12256 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12257 SWIG_POINTER_EXCEPTION | 0)) == -1)
12258 SWIG_fail;
12259 if (arg3 == NULL) {
12260 PyErr_SetString(PyExc_TypeError,"null reference");
12261 SWIG_fail;
12262 }
12263 {
12264 arg4 = &temp4;
12265 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12266 }
12267 if (obj4) {
12268 arg5 = (int) SWIG_AsInt(obj4);
12269 if (PyErr_Occurred()) SWIG_fail;
12270 }
12271 if (obj5) {
12272 arg6 = (int) SWIG_AsInt(obj5);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 }
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12278
12279 wxPyEndAllowThreads(__tstate);
12280 if (PyErr_Occurred()) SWIG_fail;
12281 }
12282 {
12283 wxRect * resultptr;
12284 resultptr = new wxRect((wxRect &) result);
12285 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12286 }
12287 {
12288 if (temp2)
12289 delete arg2;
12290 }
12291 return resultobj;
12292 fail:
12293 {
12294 if (temp2)
12295 delete arg2;
12296 }
12297 return NULL;
12298 }
12299
12300
12301 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12302 PyObject *resultobj;
12303 wxDC *arg1 = (wxDC *) 0 ;
12304 int arg2 ;
12305 wxPoint *arg3 = (wxPoint *) 0 ;
12306 PyObject * obj0 = 0 ;
12307 PyObject * obj1 = 0 ;
12308 char *kwnames[] = {
12309 (char *) "self",(char *) "points", NULL
12310 };
12311
12312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12315 {
12316 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12317 if (arg3 == NULL) SWIG_fail;
12318 }
12319 {
12320 PyThreadState* __tstate = wxPyBeginAllowThreads();
12321 (arg1)->DrawSpline(arg2,arg3);
12322
12323 wxPyEndAllowThreads(__tstate);
12324 if (PyErr_Occurred()) SWIG_fail;
12325 }
12326 Py_INCREF(Py_None); resultobj = Py_None;
12327 {
12328 if (arg3) delete [] arg3;
12329 }
12330 return resultobj;
12331 fail:
12332 {
12333 if (arg3) delete [] arg3;
12334 }
12335 return NULL;
12336 }
12337
12338
12339 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12340 PyObject *resultobj;
12341 wxDC *arg1 = (wxDC *) 0 ;
12342 PyObject * obj0 = 0 ;
12343 char *kwnames[] = {
12344 (char *) "self", NULL
12345 };
12346
12347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 (arg1)->Clear();
12353
12354 wxPyEndAllowThreads(__tstate);
12355 if (PyErr_Occurred()) SWIG_fail;
12356 }
12357 Py_INCREF(Py_None); resultobj = Py_None;
12358 return resultobj;
12359 fail:
12360 return NULL;
12361 }
12362
12363
12364 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12365 PyObject *resultobj;
12366 wxDC *arg1 = (wxDC *) 0 ;
12367 wxString *arg2 = 0 ;
12368 bool result;
12369 bool temp2 = False ;
12370 PyObject * obj0 = 0 ;
12371 PyObject * obj1 = 0 ;
12372 char *kwnames[] = {
12373 (char *) "self",(char *) "message", NULL
12374 };
12375
12376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12379 {
12380 arg2 = wxString_in_helper(obj1);
12381 if (arg2 == NULL) SWIG_fail;
12382 temp2 = True;
12383 }
12384 {
12385 PyThreadState* __tstate = wxPyBeginAllowThreads();
12386 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12387
12388 wxPyEndAllowThreads(__tstate);
12389 if (PyErr_Occurred()) SWIG_fail;
12390 }
12391 {
12392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12393 }
12394 {
12395 if (temp2)
12396 delete arg2;
12397 }
12398 return resultobj;
12399 fail:
12400 {
12401 if (temp2)
12402 delete arg2;
12403 }
12404 return NULL;
12405 }
12406
12407
12408 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12409 PyObject *resultobj;
12410 wxDC *arg1 = (wxDC *) 0 ;
12411 PyObject * obj0 = 0 ;
12412 char *kwnames[] = {
12413 (char *) "self", NULL
12414 };
12415
12416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12419 {
12420 PyThreadState* __tstate = wxPyBeginAllowThreads();
12421 (arg1)->EndDoc();
12422
12423 wxPyEndAllowThreads(__tstate);
12424 if (PyErr_Occurred()) SWIG_fail;
12425 }
12426 Py_INCREF(Py_None); resultobj = Py_None;
12427 return resultobj;
12428 fail:
12429 return NULL;
12430 }
12431
12432
12433 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12434 PyObject *resultobj;
12435 wxDC *arg1 = (wxDC *) 0 ;
12436 PyObject * obj0 = 0 ;
12437 char *kwnames[] = {
12438 (char *) "self", NULL
12439 };
12440
12441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12444 {
12445 PyThreadState* __tstate = wxPyBeginAllowThreads();
12446 (arg1)->StartPage();
12447
12448 wxPyEndAllowThreads(__tstate);
12449 if (PyErr_Occurred()) SWIG_fail;
12450 }
12451 Py_INCREF(Py_None); resultobj = Py_None;
12452 return resultobj;
12453 fail:
12454 return NULL;
12455 }
12456
12457
12458 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12459 PyObject *resultobj;
12460 wxDC *arg1 = (wxDC *) 0 ;
12461 PyObject * obj0 = 0 ;
12462 char *kwnames[] = {
12463 (char *) "self", NULL
12464 };
12465
12466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12469 {
12470 PyThreadState* __tstate = wxPyBeginAllowThreads();
12471 (arg1)->EndPage();
12472
12473 wxPyEndAllowThreads(__tstate);
12474 if (PyErr_Occurred()) SWIG_fail;
12475 }
12476 Py_INCREF(Py_None); resultobj = Py_None;
12477 return resultobj;
12478 fail:
12479 return NULL;
12480 }
12481
12482
12483 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12484 PyObject *resultobj;
12485 wxDC *arg1 = (wxDC *) 0 ;
12486 wxFont *arg2 = 0 ;
12487 PyObject * obj0 = 0 ;
12488 PyObject * obj1 = 0 ;
12489 char *kwnames[] = {
12490 (char *) "self",(char *) "font", NULL
12491 };
12492
12493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12496 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12497 SWIG_POINTER_EXCEPTION | 0)) == -1)
12498 SWIG_fail;
12499 if (arg2 == NULL) {
12500 PyErr_SetString(PyExc_TypeError,"null reference");
12501 SWIG_fail;
12502 }
12503 {
12504 PyThreadState* __tstate = wxPyBeginAllowThreads();
12505 (arg1)->SetFont((wxFont const &)*arg2);
12506
12507 wxPyEndAllowThreads(__tstate);
12508 if (PyErr_Occurred()) SWIG_fail;
12509 }
12510 Py_INCREF(Py_None); resultobj = Py_None;
12511 return resultobj;
12512 fail:
12513 return NULL;
12514 }
12515
12516
12517 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12518 PyObject *resultobj;
12519 wxDC *arg1 = (wxDC *) 0 ;
12520 wxPen *arg2 = 0 ;
12521 PyObject * obj0 = 0 ;
12522 PyObject * obj1 = 0 ;
12523 char *kwnames[] = {
12524 (char *) "self",(char *) "pen", NULL
12525 };
12526
12527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12531 SWIG_POINTER_EXCEPTION | 0)) == -1)
12532 SWIG_fail;
12533 if (arg2 == NULL) {
12534 PyErr_SetString(PyExc_TypeError,"null reference");
12535 SWIG_fail;
12536 }
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 (arg1)->SetPen((wxPen const &)*arg2);
12540
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 Py_INCREF(Py_None); resultobj = Py_None;
12545 return resultobj;
12546 fail:
12547 return NULL;
12548 }
12549
12550
12551 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12552 PyObject *resultobj;
12553 wxDC *arg1 = (wxDC *) 0 ;
12554 wxBrush *arg2 = 0 ;
12555 PyObject * obj0 = 0 ;
12556 PyObject * obj1 = 0 ;
12557 char *kwnames[] = {
12558 (char *) "self",(char *) "brush", NULL
12559 };
12560
12561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12565 SWIG_POINTER_EXCEPTION | 0)) == -1)
12566 SWIG_fail;
12567 if (arg2 == NULL) {
12568 PyErr_SetString(PyExc_TypeError,"null reference");
12569 SWIG_fail;
12570 }
12571 {
12572 PyThreadState* __tstate = wxPyBeginAllowThreads();
12573 (arg1)->SetBrush((wxBrush const &)*arg2);
12574
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 Py_INCREF(Py_None); resultobj = Py_None;
12579 return resultobj;
12580 fail:
12581 return NULL;
12582 }
12583
12584
12585 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12586 PyObject *resultobj;
12587 wxDC *arg1 = (wxDC *) 0 ;
12588 wxBrush *arg2 = 0 ;
12589 PyObject * obj0 = 0 ;
12590 PyObject * obj1 = 0 ;
12591 char *kwnames[] = {
12592 (char *) "self",(char *) "brush", NULL
12593 };
12594
12595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12598 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12599 SWIG_POINTER_EXCEPTION | 0)) == -1)
12600 SWIG_fail;
12601 if (arg2 == NULL) {
12602 PyErr_SetString(PyExc_TypeError,"null reference");
12603 SWIG_fail;
12604 }
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 (arg1)->SetBackground((wxBrush const &)*arg2);
12608
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 Py_INCREF(Py_None); resultobj = Py_None;
12613 return resultobj;
12614 fail:
12615 return NULL;
12616 }
12617
12618
12619 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12620 PyObject *resultobj;
12621 wxDC *arg1 = (wxDC *) 0 ;
12622 int arg2 ;
12623 PyObject * obj0 = 0 ;
12624 PyObject * obj1 = 0 ;
12625 char *kwnames[] = {
12626 (char *) "self",(char *) "mode", NULL
12627 };
12628
12629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12632 arg2 = (int) SWIG_AsInt(obj1);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 {
12635 PyThreadState* __tstate = wxPyBeginAllowThreads();
12636 (arg1)->SetBackgroundMode(arg2);
12637
12638 wxPyEndAllowThreads(__tstate);
12639 if (PyErr_Occurred()) SWIG_fail;
12640 }
12641 Py_INCREF(Py_None); resultobj = Py_None;
12642 return resultobj;
12643 fail:
12644 return NULL;
12645 }
12646
12647
12648 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12649 PyObject *resultobj;
12650 wxDC *arg1 = (wxDC *) 0 ;
12651 wxPalette *arg2 = 0 ;
12652 PyObject * obj0 = 0 ;
12653 PyObject * obj1 = 0 ;
12654 char *kwnames[] = {
12655 (char *) "self",(char *) "palette", NULL
12656 };
12657
12658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12661 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12662 SWIG_POINTER_EXCEPTION | 0)) == -1)
12663 SWIG_fail;
12664 if (arg2 == NULL) {
12665 PyErr_SetString(PyExc_TypeError,"null reference");
12666 SWIG_fail;
12667 }
12668 {
12669 PyThreadState* __tstate = wxPyBeginAllowThreads();
12670 (arg1)->SetPalette((wxPalette const &)*arg2);
12671
12672 wxPyEndAllowThreads(__tstate);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 Py_INCREF(Py_None); resultobj = Py_None;
12676 return resultobj;
12677 fail:
12678 return NULL;
12679 }
12680
12681
12682 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12683 PyObject *resultobj;
12684 wxDC *arg1 = (wxDC *) 0 ;
12685 int arg2 ;
12686 int arg3 ;
12687 int arg4 ;
12688 int arg5 ;
12689 PyObject * obj0 = 0 ;
12690 PyObject * obj1 = 0 ;
12691 PyObject * obj2 = 0 ;
12692 PyObject * obj3 = 0 ;
12693 PyObject * obj4 = 0 ;
12694 char *kwnames[] = {
12695 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12696 };
12697
12698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12701 arg2 = (int) SWIG_AsInt(obj1);
12702 if (PyErr_Occurred()) SWIG_fail;
12703 arg3 = (int) SWIG_AsInt(obj2);
12704 if (PyErr_Occurred()) SWIG_fail;
12705 arg4 = (int) SWIG_AsInt(obj3);
12706 if (PyErr_Occurred()) SWIG_fail;
12707 arg5 = (int) SWIG_AsInt(obj4);
12708 if (PyErr_Occurred()) SWIG_fail;
12709 {
12710 PyThreadState* __tstate = wxPyBeginAllowThreads();
12711 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12712
12713 wxPyEndAllowThreads(__tstate);
12714 if (PyErr_Occurred()) SWIG_fail;
12715 }
12716 Py_INCREF(Py_None); resultobj = Py_None;
12717 return resultobj;
12718 fail:
12719 return NULL;
12720 }
12721
12722
12723 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12724 PyObject *resultobj;
12725 wxDC *arg1 = (wxDC *) 0 ;
12726 wxPoint *arg2 = 0 ;
12727 wxSize *arg3 = 0 ;
12728 wxPoint temp2 ;
12729 wxSize temp3 ;
12730 PyObject * obj0 = 0 ;
12731 PyObject * obj1 = 0 ;
12732 PyObject * obj2 = 0 ;
12733 char *kwnames[] = {
12734 (char *) "self",(char *) "pt",(char *) "sz", NULL
12735 };
12736
12737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12740 {
12741 arg2 = &temp2;
12742 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12743 }
12744 {
12745 arg3 = &temp3;
12746 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12747 }
12748 {
12749 PyThreadState* __tstate = wxPyBeginAllowThreads();
12750 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12751
12752 wxPyEndAllowThreads(__tstate);
12753 if (PyErr_Occurred()) SWIG_fail;
12754 }
12755 Py_INCREF(Py_None); resultobj = Py_None;
12756 return resultobj;
12757 fail:
12758 return NULL;
12759 }
12760
12761
12762 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12763 PyObject *resultobj;
12764 wxDC *arg1 = (wxDC *) 0 ;
12765 wxRect *arg2 = 0 ;
12766 wxRect temp2 ;
12767 PyObject * obj0 = 0 ;
12768 PyObject * obj1 = 0 ;
12769 char *kwnames[] = {
12770 (char *) "self",(char *) "rect", NULL
12771 };
12772
12773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12776 {
12777 arg2 = &temp2;
12778 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12779 }
12780 {
12781 PyThreadState* __tstate = wxPyBeginAllowThreads();
12782 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12783
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 Py_INCREF(Py_None); resultobj = Py_None;
12788 return resultobj;
12789 fail:
12790 return NULL;
12791 }
12792
12793
12794 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12795 PyObject *resultobj;
12796 wxDC *arg1 = (wxDC *) 0 ;
12797 wxRegion *arg2 = 0 ;
12798 PyObject * obj0 = 0 ;
12799 PyObject * obj1 = 0 ;
12800 char *kwnames[] = {
12801 (char *) "self",(char *) "region", NULL
12802 };
12803
12804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12807 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12808 SWIG_POINTER_EXCEPTION | 0)) == -1)
12809 SWIG_fail;
12810 if (arg2 == NULL) {
12811 PyErr_SetString(PyExc_TypeError,"null reference");
12812 SWIG_fail;
12813 }
12814 {
12815 PyThreadState* __tstate = wxPyBeginAllowThreads();
12816 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12817
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 Py_INCREF(Py_None); resultobj = Py_None;
12822 return resultobj;
12823 fail:
12824 return NULL;
12825 }
12826
12827
12828 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12829 PyObject *resultobj;
12830 wxDC *arg1 = (wxDC *) 0 ;
12831 PyObject * obj0 = 0 ;
12832 char *kwnames[] = {
12833 (char *) "self", NULL
12834 };
12835
12836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 (arg1)->DestroyClippingRegion();
12842
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 Py_INCREF(Py_None); resultobj = Py_None;
12847 return resultobj;
12848 fail:
12849 return NULL;
12850 }
12851
12852
12853 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12854 PyObject *resultobj;
12855 wxDC *arg1 = (wxDC *) 0 ;
12856 int *arg2 = (int *) 0 ;
12857 int *arg3 = (int *) 0 ;
12858 int *arg4 = (int *) 0 ;
12859 int *arg5 = (int *) 0 ;
12860 int temp2 ;
12861 int temp3 ;
12862 int temp4 ;
12863 int temp5 ;
12864 PyObject * obj0 = 0 ;
12865 char *kwnames[] = {
12866 (char *) "self", NULL
12867 };
12868
12869 arg2 = &temp2;
12870 arg3 = &temp3;
12871 arg4 = &temp4;
12872 arg5 = &temp5;
12873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12879
12880 wxPyEndAllowThreads(__tstate);
12881 if (PyErr_Occurred()) SWIG_fail;
12882 }
12883 Py_INCREF(Py_None); resultobj = Py_None;
12884 {
12885 PyObject *o = PyInt_FromLong((long) (*arg2));
12886 resultobj = t_output_helper(resultobj,o);
12887 }
12888 {
12889 PyObject *o = PyInt_FromLong((long) (*arg3));
12890 resultobj = t_output_helper(resultobj,o);
12891 }
12892 {
12893 PyObject *o = PyInt_FromLong((long) (*arg4));
12894 resultobj = t_output_helper(resultobj,o);
12895 }
12896 {
12897 PyObject *o = PyInt_FromLong((long) (*arg5));
12898 resultobj = t_output_helper(resultobj,o);
12899 }
12900 return resultobj;
12901 fail:
12902 return NULL;
12903 }
12904
12905
12906 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12907 PyObject *resultobj;
12908 wxDC *arg1 = (wxDC *) 0 ;
12909 wxRect result;
12910 PyObject * obj0 = 0 ;
12911 char *kwnames[] = {
12912 (char *) "self", NULL
12913 };
12914
12915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12918 {
12919 PyThreadState* __tstate = wxPyBeginAllowThreads();
12920 result = wxDC_GetClippingRect(arg1);
12921
12922 wxPyEndAllowThreads(__tstate);
12923 if (PyErr_Occurred()) SWIG_fail;
12924 }
12925 {
12926 wxRect * resultptr;
12927 resultptr = new wxRect((wxRect &) result);
12928 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12929 }
12930 return resultobj;
12931 fail:
12932 return NULL;
12933 }
12934
12935
12936 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12937 PyObject *resultobj;
12938 wxDC *arg1 = (wxDC *) 0 ;
12939 int result;
12940 PyObject * obj0 = 0 ;
12941 char *kwnames[] = {
12942 (char *) "self", NULL
12943 };
12944
12945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12948 {
12949 PyThreadState* __tstate = wxPyBeginAllowThreads();
12950 result = (int)((wxDC const *)arg1)->GetCharHeight();
12951
12952 wxPyEndAllowThreads(__tstate);
12953 if (PyErr_Occurred()) SWIG_fail;
12954 }
12955 resultobj = SWIG_FromInt((int)result);
12956 return resultobj;
12957 fail:
12958 return NULL;
12959 }
12960
12961
12962 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12963 PyObject *resultobj;
12964 wxDC *arg1 = (wxDC *) 0 ;
12965 int result;
12966 PyObject * obj0 = 0 ;
12967 char *kwnames[] = {
12968 (char *) "self", NULL
12969 };
12970
12971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12974 {
12975 PyThreadState* __tstate = wxPyBeginAllowThreads();
12976 result = (int)((wxDC const *)arg1)->GetCharWidth();
12977
12978 wxPyEndAllowThreads(__tstate);
12979 if (PyErr_Occurred()) SWIG_fail;
12980 }
12981 resultobj = SWIG_FromInt((int)result);
12982 return resultobj;
12983 fail:
12984 return NULL;
12985 }
12986
12987
12988 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12989 PyObject *resultobj;
12990 wxDC *arg1 = (wxDC *) 0 ;
12991 wxString *arg2 = 0 ;
12992 int *arg3 = (int *) 0 ;
12993 int *arg4 = (int *) 0 ;
12994 bool temp2 = False ;
12995 int temp3 ;
12996 int temp4 ;
12997 PyObject * obj0 = 0 ;
12998 PyObject * obj1 = 0 ;
12999 char *kwnames[] = {
13000 (char *) "self",(char *) "string", NULL
13001 };
13002
13003 arg3 = &temp3;
13004 arg4 = &temp4;
13005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13008 {
13009 arg2 = wxString_in_helper(obj1);
13010 if (arg2 == NULL) SWIG_fail;
13011 temp2 = True;
13012 }
13013 {
13014 PyThreadState* __tstate = wxPyBeginAllowThreads();
13015 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13016
13017 wxPyEndAllowThreads(__tstate);
13018 if (PyErr_Occurred()) SWIG_fail;
13019 }
13020 Py_INCREF(Py_None); resultobj = Py_None;
13021 {
13022 PyObject *o = PyInt_FromLong((long) (*arg3));
13023 resultobj = t_output_helper(resultobj,o);
13024 }
13025 {
13026 PyObject *o = PyInt_FromLong((long) (*arg4));
13027 resultobj = t_output_helper(resultobj,o);
13028 }
13029 {
13030 if (temp2)
13031 delete arg2;
13032 }
13033 return resultobj;
13034 fail:
13035 {
13036 if (temp2)
13037 delete arg2;
13038 }
13039 return NULL;
13040 }
13041
13042
13043 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13044 PyObject *resultobj;
13045 wxDC *arg1 = (wxDC *) 0 ;
13046 wxString *arg2 = 0 ;
13047 int *arg3 = (int *) 0 ;
13048 int *arg4 = (int *) 0 ;
13049 int *arg5 = (int *) 0 ;
13050 int *arg6 = (int *) 0 ;
13051 wxFont *arg7 = (wxFont *) NULL ;
13052 bool temp2 = False ;
13053 int temp3 ;
13054 int temp4 ;
13055 int temp5 ;
13056 int temp6 ;
13057 PyObject * obj0 = 0 ;
13058 PyObject * obj1 = 0 ;
13059 PyObject * obj2 = 0 ;
13060 char *kwnames[] = {
13061 (char *) "self",(char *) "string",(char *) "font", NULL
13062 };
13063
13064 arg3 = &temp3;
13065 arg4 = &temp4;
13066 arg5 = &temp5;
13067 arg6 = &temp6;
13068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13071 {
13072 arg2 = wxString_in_helper(obj1);
13073 if (arg2 == NULL) SWIG_fail;
13074 temp2 = True;
13075 }
13076 if (obj2) {
13077 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13079 }
13080 {
13081 PyThreadState* __tstate = wxPyBeginAllowThreads();
13082 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13083
13084 wxPyEndAllowThreads(__tstate);
13085 if (PyErr_Occurred()) SWIG_fail;
13086 }
13087 Py_INCREF(Py_None); resultobj = Py_None;
13088 {
13089 PyObject *o = PyInt_FromLong((long) (*arg3));
13090 resultobj = t_output_helper(resultobj,o);
13091 }
13092 {
13093 PyObject *o = PyInt_FromLong((long) (*arg4));
13094 resultobj = t_output_helper(resultobj,o);
13095 }
13096 {
13097 PyObject *o = PyInt_FromLong((long) (*arg5));
13098 resultobj = t_output_helper(resultobj,o);
13099 }
13100 {
13101 PyObject *o = PyInt_FromLong((long) (*arg6));
13102 resultobj = t_output_helper(resultobj,o);
13103 }
13104 {
13105 if (temp2)
13106 delete arg2;
13107 }
13108 return resultobj;
13109 fail:
13110 {
13111 if (temp2)
13112 delete arg2;
13113 }
13114 return NULL;
13115 }
13116
13117
13118 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13119 PyObject *resultobj;
13120 wxDC *arg1 = (wxDC *) 0 ;
13121 wxString *arg2 = 0 ;
13122 int *arg3 = (int *) 0 ;
13123 int *arg4 = (int *) 0 ;
13124 int *arg5 = (int *) 0 ;
13125 wxFont *arg6 = (wxFont *) NULL ;
13126 bool temp2 = False ;
13127 int temp3 ;
13128 int temp4 ;
13129 int temp5 ;
13130 PyObject * obj0 = 0 ;
13131 PyObject * obj1 = 0 ;
13132 PyObject * obj2 = 0 ;
13133 char *kwnames[] = {
13134 (char *) "self",(char *) "text",(char *) "font", NULL
13135 };
13136
13137 arg3 = &temp3;
13138 arg4 = &temp4;
13139 arg5 = &temp5;
13140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13143 {
13144 arg2 = wxString_in_helper(obj1);
13145 if (arg2 == NULL) SWIG_fail;
13146 temp2 = True;
13147 }
13148 if (obj2) {
13149 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13151 }
13152 {
13153 PyThreadState* __tstate = wxPyBeginAllowThreads();
13154 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13155
13156 wxPyEndAllowThreads(__tstate);
13157 if (PyErr_Occurred()) SWIG_fail;
13158 }
13159 Py_INCREF(Py_None); resultobj = Py_None;
13160 {
13161 PyObject *o = PyInt_FromLong((long) (*arg3));
13162 resultobj = t_output_helper(resultobj,o);
13163 }
13164 {
13165 PyObject *o = PyInt_FromLong((long) (*arg4));
13166 resultobj = t_output_helper(resultobj,o);
13167 }
13168 {
13169 PyObject *o = PyInt_FromLong((long) (*arg5));
13170 resultobj = t_output_helper(resultobj,o);
13171 }
13172 {
13173 if (temp2)
13174 delete arg2;
13175 }
13176 return resultobj;
13177 fail:
13178 {
13179 if (temp2)
13180 delete arg2;
13181 }
13182 return NULL;
13183 }
13184
13185
13186 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13187 PyObject *resultobj;
13188 wxDC *arg1 = (wxDC *) 0 ;
13189 wxString *arg2 = 0 ;
13190 wxArrayInt result;
13191 bool temp2 = False ;
13192 PyObject * obj0 = 0 ;
13193 PyObject * obj1 = 0 ;
13194 char *kwnames[] = {
13195 (char *) "self",(char *) "text", NULL
13196 };
13197
13198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13201 {
13202 arg2 = wxString_in_helper(obj1);
13203 if (arg2 == NULL) SWIG_fail;
13204 temp2 = True;
13205 }
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13209
13210 wxPyEndAllowThreads(__tstate);
13211 if (PyErr_Occurred()) SWIG_fail;
13212 }
13213 {
13214 resultobj = PyList_New(0);
13215 size_t idx;
13216 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13217 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13218 PyList_Append(resultobj, val);
13219 Py_DECREF(val);
13220 }
13221 }
13222 {
13223 if (temp2)
13224 delete arg2;
13225 }
13226 return resultobj;
13227 fail:
13228 {
13229 if (temp2)
13230 delete arg2;
13231 }
13232 return NULL;
13233 }
13234
13235
13236 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13237 PyObject *resultobj;
13238 wxDC *arg1 = (wxDC *) 0 ;
13239 wxSize result;
13240 PyObject * obj0 = 0 ;
13241 char *kwnames[] = {
13242 (char *) "self", NULL
13243 };
13244
13245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13248 {
13249 PyThreadState* __tstate = wxPyBeginAllowThreads();
13250 result = (arg1)->GetSize();
13251
13252 wxPyEndAllowThreads(__tstate);
13253 if (PyErr_Occurred()) SWIG_fail;
13254 }
13255 {
13256 wxSize * resultptr;
13257 resultptr = new wxSize((wxSize &) result);
13258 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13259 }
13260 return resultobj;
13261 fail:
13262 return NULL;
13263 }
13264
13265
13266 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13267 PyObject *resultobj;
13268 wxDC *arg1 = (wxDC *) 0 ;
13269 int *arg2 = (int *) 0 ;
13270 int *arg3 = (int *) 0 ;
13271 int temp2 ;
13272 int temp3 ;
13273 PyObject * obj0 = 0 ;
13274 char *kwnames[] = {
13275 (char *) "self", NULL
13276 };
13277
13278 arg2 = &temp2;
13279 arg3 = &temp3;
13280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13283 {
13284 PyThreadState* __tstate = wxPyBeginAllowThreads();
13285 (arg1)->GetSize(arg2,arg3);
13286
13287 wxPyEndAllowThreads(__tstate);
13288 if (PyErr_Occurred()) SWIG_fail;
13289 }
13290 Py_INCREF(Py_None); resultobj = Py_None;
13291 {
13292 PyObject *o = PyInt_FromLong((long) (*arg2));
13293 resultobj = t_output_helper(resultobj,o);
13294 }
13295 {
13296 PyObject *o = PyInt_FromLong((long) (*arg3));
13297 resultobj = t_output_helper(resultobj,o);
13298 }
13299 return resultobj;
13300 fail:
13301 return NULL;
13302 }
13303
13304
13305 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13306 PyObject *resultobj;
13307 wxDC *arg1 = (wxDC *) 0 ;
13308 wxSize result;
13309 PyObject * obj0 = 0 ;
13310 char *kwnames[] = {
13311 (char *) "self", NULL
13312 };
13313
13314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13317 {
13318 PyThreadState* __tstate = wxPyBeginAllowThreads();
13319 result = ((wxDC const *)arg1)->GetSizeMM();
13320
13321 wxPyEndAllowThreads(__tstate);
13322 if (PyErr_Occurred()) SWIG_fail;
13323 }
13324 {
13325 wxSize * resultptr;
13326 resultptr = new wxSize((wxSize &) result);
13327 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13328 }
13329 return resultobj;
13330 fail:
13331 return NULL;
13332 }
13333
13334
13335 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13336 PyObject *resultobj;
13337 wxDC *arg1 = (wxDC *) 0 ;
13338 int *arg2 = (int *) 0 ;
13339 int *arg3 = (int *) 0 ;
13340 int temp2 ;
13341 int temp3 ;
13342 PyObject * obj0 = 0 ;
13343 char *kwnames[] = {
13344 (char *) "self", NULL
13345 };
13346
13347 arg2 = &temp2;
13348 arg3 = &temp3;
13349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13352 {
13353 PyThreadState* __tstate = wxPyBeginAllowThreads();
13354 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13355
13356 wxPyEndAllowThreads(__tstate);
13357 if (PyErr_Occurred()) SWIG_fail;
13358 }
13359 Py_INCREF(Py_None); resultobj = Py_None;
13360 {
13361 PyObject *o = PyInt_FromLong((long) (*arg2));
13362 resultobj = t_output_helper(resultobj,o);
13363 }
13364 {
13365 PyObject *o = PyInt_FromLong((long) (*arg3));
13366 resultobj = t_output_helper(resultobj,o);
13367 }
13368 return resultobj;
13369 fail:
13370 return NULL;
13371 }
13372
13373
13374 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13375 PyObject *resultobj;
13376 wxDC *arg1 = (wxDC *) 0 ;
13377 int arg2 ;
13378 int result;
13379 PyObject * obj0 = 0 ;
13380 PyObject * obj1 = 0 ;
13381 char *kwnames[] = {
13382 (char *) "self",(char *) "x", NULL
13383 };
13384
13385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13388 arg2 = (int) SWIG_AsInt(obj1);
13389 if (PyErr_Occurred()) SWIG_fail;
13390 {
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13393
13394 wxPyEndAllowThreads(__tstate);
13395 if (PyErr_Occurred()) SWIG_fail;
13396 }
13397 resultobj = SWIG_FromInt((int)result);
13398 return resultobj;
13399 fail:
13400 return NULL;
13401 }
13402
13403
13404 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13405 PyObject *resultobj;
13406 wxDC *arg1 = (wxDC *) 0 ;
13407 int arg2 ;
13408 int result;
13409 PyObject * obj0 = 0 ;
13410 PyObject * obj1 = 0 ;
13411 char *kwnames[] = {
13412 (char *) "self",(char *) "y", NULL
13413 };
13414
13415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13418 arg2 = (int) SWIG_AsInt(obj1);
13419 if (PyErr_Occurred()) SWIG_fail;
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13423
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 resultobj = SWIG_FromInt((int)result);
13428 return resultobj;
13429 fail:
13430 return NULL;
13431 }
13432
13433
13434 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13435 PyObject *resultobj;
13436 wxDC *arg1 = (wxDC *) 0 ;
13437 int arg2 ;
13438 int result;
13439 PyObject * obj0 = 0 ;
13440 PyObject * obj1 = 0 ;
13441 char *kwnames[] = {
13442 (char *) "self",(char *) "x", NULL
13443 };
13444
13445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13448 arg2 = (int) SWIG_AsInt(obj1);
13449 if (PyErr_Occurred()) SWIG_fail;
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13453
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 resultobj = SWIG_FromInt((int)result);
13458 return resultobj;
13459 fail:
13460 return NULL;
13461 }
13462
13463
13464 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13465 PyObject *resultobj;
13466 wxDC *arg1 = (wxDC *) 0 ;
13467 int arg2 ;
13468 int result;
13469 PyObject * obj0 = 0 ;
13470 PyObject * obj1 = 0 ;
13471 char *kwnames[] = {
13472 (char *) "self",(char *) "y", NULL
13473 };
13474
13475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13478 arg2 = (int) SWIG_AsInt(obj1);
13479 if (PyErr_Occurred()) SWIG_fail;
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13483
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 resultobj = SWIG_FromInt((int)result);
13488 return resultobj;
13489 fail:
13490 return NULL;
13491 }
13492
13493
13494 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13495 PyObject *resultobj;
13496 wxDC *arg1 = (wxDC *) 0 ;
13497 int arg2 ;
13498 int result;
13499 PyObject * obj0 = 0 ;
13500 PyObject * obj1 = 0 ;
13501 char *kwnames[] = {
13502 (char *) "self",(char *) "x", NULL
13503 };
13504
13505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13508 arg2 = (int) SWIG_AsInt(obj1);
13509 if (PyErr_Occurred()) SWIG_fail;
13510 {
13511 PyThreadState* __tstate = wxPyBeginAllowThreads();
13512 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13513
13514 wxPyEndAllowThreads(__tstate);
13515 if (PyErr_Occurred()) SWIG_fail;
13516 }
13517 resultobj = SWIG_FromInt((int)result);
13518 return resultobj;
13519 fail:
13520 return NULL;
13521 }
13522
13523
13524 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13525 PyObject *resultobj;
13526 wxDC *arg1 = (wxDC *) 0 ;
13527 int arg2 ;
13528 int result;
13529 PyObject * obj0 = 0 ;
13530 PyObject * obj1 = 0 ;
13531 char *kwnames[] = {
13532 (char *) "self",(char *) "y", NULL
13533 };
13534
13535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13538 arg2 = (int) SWIG_AsInt(obj1);
13539 if (PyErr_Occurred()) SWIG_fail;
13540 {
13541 PyThreadState* __tstate = wxPyBeginAllowThreads();
13542 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13543
13544 wxPyEndAllowThreads(__tstate);
13545 if (PyErr_Occurred()) SWIG_fail;
13546 }
13547 resultobj = SWIG_FromInt((int)result);
13548 return resultobj;
13549 fail:
13550 return NULL;
13551 }
13552
13553
13554 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13555 PyObject *resultobj;
13556 wxDC *arg1 = (wxDC *) 0 ;
13557 int arg2 ;
13558 int result;
13559 PyObject * obj0 = 0 ;
13560 PyObject * obj1 = 0 ;
13561 char *kwnames[] = {
13562 (char *) "self",(char *) "x", NULL
13563 };
13564
13565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13568 arg2 = (int) SWIG_AsInt(obj1);
13569 if (PyErr_Occurred()) SWIG_fail;
13570 {
13571 PyThreadState* __tstate = wxPyBeginAllowThreads();
13572 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13573
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 resultobj = SWIG_FromInt((int)result);
13578 return resultobj;
13579 fail:
13580 return NULL;
13581 }
13582
13583
13584 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13585 PyObject *resultobj;
13586 wxDC *arg1 = (wxDC *) 0 ;
13587 int arg2 ;
13588 int result;
13589 PyObject * obj0 = 0 ;
13590 PyObject * obj1 = 0 ;
13591 char *kwnames[] = {
13592 (char *) "self",(char *) "y", NULL
13593 };
13594
13595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13598 arg2 = (int) SWIG_AsInt(obj1);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 {
13601 PyThreadState* __tstate = wxPyBeginAllowThreads();
13602 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13603
13604 wxPyEndAllowThreads(__tstate);
13605 if (PyErr_Occurred()) SWIG_fail;
13606 }
13607 resultobj = SWIG_FromInt((int)result);
13608 return resultobj;
13609 fail:
13610 return NULL;
13611 }
13612
13613
13614 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13615 PyObject *resultobj;
13616 wxDC *arg1 = (wxDC *) 0 ;
13617 bool result;
13618 PyObject * obj0 = 0 ;
13619 char *kwnames[] = {
13620 (char *) "self", NULL
13621 };
13622
13623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13626 {
13627 PyThreadState* __tstate = wxPyBeginAllowThreads();
13628 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13629
13630 wxPyEndAllowThreads(__tstate);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 {
13634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13635 }
13636 return resultobj;
13637 fail:
13638 return NULL;
13639 }
13640
13641
13642 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13643 PyObject *resultobj;
13644 wxDC *arg1 = (wxDC *) 0 ;
13645 bool result;
13646 PyObject * obj0 = 0 ;
13647 char *kwnames[] = {
13648 (char *) "self", NULL
13649 };
13650
13651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13654 {
13655 PyThreadState* __tstate = wxPyBeginAllowThreads();
13656 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13657
13658 wxPyEndAllowThreads(__tstate);
13659 if (PyErr_Occurred()) SWIG_fail;
13660 }
13661 {
13662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13663 }
13664 return resultobj;
13665 fail:
13666 return NULL;
13667 }
13668
13669
13670 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13671 PyObject *resultobj;
13672 wxDC *arg1 = (wxDC *) 0 ;
13673 int result;
13674 PyObject * obj0 = 0 ;
13675 char *kwnames[] = {
13676 (char *) "self", NULL
13677 };
13678
13679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13682 {
13683 PyThreadState* __tstate = wxPyBeginAllowThreads();
13684 result = (int)((wxDC const *)arg1)->GetDepth();
13685
13686 wxPyEndAllowThreads(__tstate);
13687 if (PyErr_Occurred()) SWIG_fail;
13688 }
13689 resultobj = SWIG_FromInt((int)result);
13690 return resultobj;
13691 fail:
13692 return NULL;
13693 }
13694
13695
13696 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13697 PyObject *resultobj;
13698 wxDC *arg1 = (wxDC *) 0 ;
13699 wxSize result;
13700 PyObject * obj0 = 0 ;
13701 char *kwnames[] = {
13702 (char *) "self", NULL
13703 };
13704
13705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 result = ((wxDC const *)arg1)->GetPPI();
13711
13712 wxPyEndAllowThreads(__tstate);
13713 if (PyErr_Occurred()) SWIG_fail;
13714 }
13715 {
13716 wxSize * resultptr;
13717 resultptr = new wxSize((wxSize &) result);
13718 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13719 }
13720 return resultobj;
13721 fail:
13722 return NULL;
13723 }
13724
13725
13726 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13727 PyObject *resultobj;
13728 wxDC *arg1 = (wxDC *) 0 ;
13729 bool result;
13730 PyObject * obj0 = 0 ;
13731 char *kwnames[] = {
13732 (char *) "self", NULL
13733 };
13734
13735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13738 {
13739 PyThreadState* __tstate = wxPyBeginAllowThreads();
13740 result = (bool)((wxDC const *)arg1)->Ok();
13741
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 {
13746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13747 }
13748 return resultobj;
13749 fail:
13750 return NULL;
13751 }
13752
13753
13754 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13755 PyObject *resultobj;
13756 wxDC *arg1 = (wxDC *) 0 ;
13757 int result;
13758 PyObject * obj0 = 0 ;
13759 char *kwnames[] = {
13760 (char *) "self", NULL
13761 };
13762
13763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13766 {
13767 PyThreadState* __tstate = wxPyBeginAllowThreads();
13768 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13769
13770 wxPyEndAllowThreads(__tstate);
13771 if (PyErr_Occurred()) SWIG_fail;
13772 }
13773 resultobj = SWIG_FromInt((int)result);
13774 return resultobj;
13775 fail:
13776 return NULL;
13777 }
13778
13779
13780 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13781 PyObject *resultobj;
13782 wxDC *arg1 = (wxDC *) 0 ;
13783 wxBrush *result;
13784 PyObject * obj0 = 0 ;
13785 char *kwnames[] = {
13786 (char *) "self", NULL
13787 };
13788
13789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13792 {
13793 PyThreadState* __tstate = wxPyBeginAllowThreads();
13794 {
13795 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13796 result = (wxBrush *) &_result_ref;
13797 }
13798
13799 wxPyEndAllowThreads(__tstate);
13800 if (PyErr_Occurred()) SWIG_fail;
13801 }
13802 {
13803 wxBrush* resultptr = new wxBrush(*result);
13804 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13805 }
13806 return resultobj;
13807 fail:
13808 return NULL;
13809 }
13810
13811
13812 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13813 PyObject *resultobj;
13814 wxDC *arg1 = (wxDC *) 0 ;
13815 wxBrush *result;
13816 PyObject * obj0 = 0 ;
13817 char *kwnames[] = {
13818 (char *) "self", NULL
13819 };
13820
13821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13824 {
13825 PyThreadState* __tstate = wxPyBeginAllowThreads();
13826 {
13827 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13828 result = (wxBrush *) &_result_ref;
13829 }
13830
13831 wxPyEndAllowThreads(__tstate);
13832 if (PyErr_Occurred()) SWIG_fail;
13833 }
13834 {
13835 wxBrush* resultptr = new wxBrush(*result);
13836 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13837 }
13838 return resultobj;
13839 fail:
13840 return NULL;
13841 }
13842
13843
13844 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13845 PyObject *resultobj;
13846 wxDC *arg1 = (wxDC *) 0 ;
13847 wxFont *result;
13848 PyObject * obj0 = 0 ;
13849 char *kwnames[] = {
13850 (char *) "self", NULL
13851 };
13852
13853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13856 {
13857 PyThreadState* __tstate = wxPyBeginAllowThreads();
13858 {
13859 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13860 result = (wxFont *) &_result_ref;
13861 }
13862
13863 wxPyEndAllowThreads(__tstate);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 }
13866 {
13867 wxFont* resultptr = new wxFont(*result);
13868 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13869 }
13870 return resultobj;
13871 fail:
13872 return NULL;
13873 }
13874
13875
13876 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13877 PyObject *resultobj;
13878 wxDC *arg1 = (wxDC *) 0 ;
13879 wxPen *result;
13880 PyObject * obj0 = 0 ;
13881 char *kwnames[] = {
13882 (char *) "self", NULL
13883 };
13884
13885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13888 {
13889 PyThreadState* __tstate = wxPyBeginAllowThreads();
13890 {
13891 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13892 result = (wxPen *) &_result_ref;
13893 }
13894
13895 wxPyEndAllowThreads(__tstate);
13896 if (PyErr_Occurred()) SWIG_fail;
13897 }
13898 {
13899 wxPen* resultptr = new wxPen(*result);
13900 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13901 }
13902 return resultobj;
13903 fail:
13904 return NULL;
13905 }
13906
13907
13908 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13909 PyObject *resultobj;
13910 wxDC *arg1 = (wxDC *) 0 ;
13911 wxColour *result;
13912 PyObject * obj0 = 0 ;
13913 char *kwnames[] = {
13914 (char *) "self", NULL
13915 };
13916
13917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13920 {
13921 PyThreadState* __tstate = wxPyBeginAllowThreads();
13922 {
13923 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13924 result = (wxColour *) &_result_ref;
13925 }
13926
13927 wxPyEndAllowThreads(__tstate);
13928 if (PyErr_Occurred()) SWIG_fail;
13929 }
13930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13931 return resultobj;
13932 fail:
13933 return NULL;
13934 }
13935
13936
13937 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13938 PyObject *resultobj;
13939 wxDC *arg1 = (wxDC *) 0 ;
13940 wxColour *result;
13941 PyObject * obj0 = 0 ;
13942 char *kwnames[] = {
13943 (char *) "self", NULL
13944 };
13945
13946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13949 {
13950 PyThreadState* __tstate = wxPyBeginAllowThreads();
13951 {
13952 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13953 result = (wxColour *) &_result_ref;
13954 }
13955
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13960 return resultobj;
13961 fail:
13962 return NULL;
13963 }
13964
13965
13966 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13967 PyObject *resultobj;
13968 wxDC *arg1 = (wxDC *) 0 ;
13969 wxColour *arg2 = 0 ;
13970 wxColour temp2 ;
13971 PyObject * obj0 = 0 ;
13972 PyObject * obj1 = 0 ;
13973 char *kwnames[] = {
13974 (char *) "self",(char *) "colour", NULL
13975 };
13976
13977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13980 {
13981 arg2 = &temp2;
13982 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13983 }
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 (arg1)->SetTextForeground((wxColour const &)*arg2);
13987
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 Py_INCREF(Py_None); resultobj = Py_None;
13992 return resultobj;
13993 fail:
13994 return NULL;
13995 }
13996
13997
13998 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13999 PyObject *resultobj;
14000 wxDC *arg1 = (wxDC *) 0 ;
14001 wxColour *arg2 = 0 ;
14002 wxColour temp2 ;
14003 PyObject * obj0 = 0 ;
14004 PyObject * obj1 = 0 ;
14005 char *kwnames[] = {
14006 (char *) "self",(char *) "colour", NULL
14007 };
14008
14009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14012 {
14013 arg2 = &temp2;
14014 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14015 }
14016 {
14017 PyThreadState* __tstate = wxPyBeginAllowThreads();
14018 (arg1)->SetTextBackground((wxColour const &)*arg2);
14019
14020 wxPyEndAllowThreads(__tstate);
14021 if (PyErr_Occurred()) SWIG_fail;
14022 }
14023 Py_INCREF(Py_None); resultobj = Py_None;
14024 return resultobj;
14025 fail:
14026 return NULL;
14027 }
14028
14029
14030 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14031 PyObject *resultobj;
14032 wxDC *arg1 = (wxDC *) 0 ;
14033 int result;
14034 PyObject * obj0 = 0 ;
14035 char *kwnames[] = {
14036 (char *) "self", NULL
14037 };
14038
14039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14042 {
14043 PyThreadState* __tstate = wxPyBeginAllowThreads();
14044 result = (int)((wxDC const *)arg1)->GetMapMode();
14045
14046 wxPyEndAllowThreads(__tstate);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 resultobj = SWIG_FromInt((int)result);
14050 return resultobj;
14051 fail:
14052 return NULL;
14053 }
14054
14055
14056 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14057 PyObject *resultobj;
14058 wxDC *arg1 = (wxDC *) 0 ;
14059 int arg2 ;
14060 PyObject * obj0 = 0 ;
14061 PyObject * obj1 = 0 ;
14062 char *kwnames[] = {
14063 (char *) "self",(char *) "mode", NULL
14064 };
14065
14066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14069 arg2 = (int) SWIG_AsInt(obj1);
14070 if (PyErr_Occurred()) SWIG_fail;
14071 {
14072 PyThreadState* __tstate = wxPyBeginAllowThreads();
14073 (arg1)->SetMapMode(arg2);
14074
14075 wxPyEndAllowThreads(__tstate);
14076 if (PyErr_Occurred()) SWIG_fail;
14077 }
14078 Py_INCREF(Py_None); resultobj = Py_None;
14079 return resultobj;
14080 fail:
14081 return NULL;
14082 }
14083
14084
14085 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14086 PyObject *resultobj;
14087 wxDC *arg1 = (wxDC *) 0 ;
14088 double *arg2 = (double *) 0 ;
14089 double *arg3 = (double *) 0 ;
14090 double temp2 ;
14091 double temp3 ;
14092 PyObject * obj0 = 0 ;
14093 char *kwnames[] = {
14094 (char *) "self", NULL
14095 };
14096
14097 arg2 = &temp2;
14098 arg3 = &temp3;
14099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14102 {
14103 PyThreadState* __tstate = wxPyBeginAllowThreads();
14104 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14105
14106 wxPyEndAllowThreads(__tstate);
14107 if (PyErr_Occurred()) SWIG_fail;
14108 }
14109 Py_INCREF(Py_None); resultobj = Py_None;
14110 {
14111 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14112 resultobj = t_output_helper(resultobj,o);
14113 }
14114 {
14115 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14116 resultobj = t_output_helper(resultobj,o);
14117 }
14118 return resultobj;
14119 fail:
14120 return NULL;
14121 }
14122
14123
14124 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14125 PyObject *resultobj;
14126 wxDC *arg1 = (wxDC *) 0 ;
14127 double arg2 ;
14128 double arg3 ;
14129 PyObject * obj0 = 0 ;
14130 PyObject * obj1 = 0 ;
14131 PyObject * obj2 = 0 ;
14132 char *kwnames[] = {
14133 (char *) "self",(char *) "x",(char *) "y", NULL
14134 };
14135
14136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14139 arg2 = (double) SWIG_AsDouble(obj1);
14140 if (PyErr_Occurred()) SWIG_fail;
14141 arg3 = (double) SWIG_AsDouble(obj2);
14142 if (PyErr_Occurred()) SWIG_fail;
14143 {
14144 PyThreadState* __tstate = wxPyBeginAllowThreads();
14145 (arg1)->SetUserScale(arg2,arg3);
14146
14147 wxPyEndAllowThreads(__tstate);
14148 if (PyErr_Occurred()) SWIG_fail;
14149 }
14150 Py_INCREF(Py_None); resultobj = Py_None;
14151 return resultobj;
14152 fail:
14153 return NULL;
14154 }
14155
14156
14157 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14158 PyObject *resultobj;
14159 wxDC *arg1 = (wxDC *) 0 ;
14160 double *arg2 = (double *) 0 ;
14161 double *arg3 = (double *) 0 ;
14162 double temp2 ;
14163 double temp3 ;
14164 PyObject * obj0 = 0 ;
14165 char *kwnames[] = {
14166 (char *) "self", NULL
14167 };
14168
14169 arg2 = &temp2;
14170 arg3 = &temp3;
14171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14174 {
14175 PyThreadState* __tstate = wxPyBeginAllowThreads();
14176 (arg1)->GetLogicalScale(arg2,arg3);
14177
14178 wxPyEndAllowThreads(__tstate);
14179 if (PyErr_Occurred()) SWIG_fail;
14180 }
14181 Py_INCREF(Py_None); resultobj = Py_None;
14182 {
14183 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14184 resultobj = t_output_helper(resultobj,o);
14185 }
14186 {
14187 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14188 resultobj = t_output_helper(resultobj,o);
14189 }
14190 return resultobj;
14191 fail:
14192 return NULL;
14193 }
14194
14195
14196 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14197 PyObject *resultobj;
14198 wxDC *arg1 = (wxDC *) 0 ;
14199 double arg2 ;
14200 double arg3 ;
14201 PyObject * obj0 = 0 ;
14202 PyObject * obj1 = 0 ;
14203 PyObject * obj2 = 0 ;
14204 char *kwnames[] = {
14205 (char *) "self",(char *) "x",(char *) "y", NULL
14206 };
14207
14208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14211 arg2 = (double) SWIG_AsDouble(obj1);
14212 if (PyErr_Occurred()) SWIG_fail;
14213 arg3 = (double) SWIG_AsDouble(obj2);
14214 if (PyErr_Occurred()) SWIG_fail;
14215 {
14216 PyThreadState* __tstate = wxPyBeginAllowThreads();
14217 (arg1)->SetLogicalScale(arg2,arg3);
14218
14219 wxPyEndAllowThreads(__tstate);
14220 if (PyErr_Occurred()) SWIG_fail;
14221 }
14222 Py_INCREF(Py_None); resultobj = Py_None;
14223 return resultobj;
14224 fail:
14225 return NULL;
14226 }
14227
14228
14229 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14230 PyObject *resultobj;
14231 wxDC *arg1 = (wxDC *) 0 ;
14232 wxPoint result;
14233 PyObject * obj0 = 0 ;
14234 char *kwnames[] = {
14235 (char *) "self", NULL
14236 };
14237
14238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14241 {
14242 PyThreadState* __tstate = wxPyBeginAllowThreads();
14243 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14244
14245 wxPyEndAllowThreads(__tstate);
14246 if (PyErr_Occurred()) SWIG_fail;
14247 }
14248 {
14249 wxPoint * resultptr;
14250 resultptr = new wxPoint((wxPoint &) result);
14251 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14252 }
14253 return resultobj;
14254 fail:
14255 return NULL;
14256 }
14257
14258
14259 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14260 PyObject *resultobj;
14261 wxDC *arg1 = (wxDC *) 0 ;
14262 int *arg2 = (int *) 0 ;
14263 int *arg3 = (int *) 0 ;
14264 int temp2 ;
14265 int temp3 ;
14266 PyObject * obj0 = 0 ;
14267 char *kwnames[] = {
14268 (char *) "self", NULL
14269 };
14270
14271 arg2 = &temp2;
14272 arg3 = &temp3;
14273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14276 {
14277 PyThreadState* __tstate = wxPyBeginAllowThreads();
14278 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14279
14280 wxPyEndAllowThreads(__tstate);
14281 if (PyErr_Occurred()) SWIG_fail;
14282 }
14283 Py_INCREF(Py_None); resultobj = Py_None;
14284 {
14285 PyObject *o = PyInt_FromLong((long) (*arg2));
14286 resultobj = t_output_helper(resultobj,o);
14287 }
14288 {
14289 PyObject *o = PyInt_FromLong((long) (*arg3));
14290 resultobj = t_output_helper(resultobj,o);
14291 }
14292 return resultobj;
14293 fail:
14294 return NULL;
14295 }
14296
14297
14298 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14299 PyObject *resultobj;
14300 wxDC *arg1 = (wxDC *) 0 ;
14301 int arg2 ;
14302 int arg3 ;
14303 PyObject * obj0 = 0 ;
14304 PyObject * obj1 = 0 ;
14305 PyObject * obj2 = 0 ;
14306 char *kwnames[] = {
14307 (char *) "self",(char *) "x",(char *) "y", NULL
14308 };
14309
14310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14313 arg2 = (int) SWIG_AsInt(obj1);
14314 if (PyErr_Occurred()) SWIG_fail;
14315 arg3 = (int) SWIG_AsInt(obj2);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 {
14318 PyThreadState* __tstate = wxPyBeginAllowThreads();
14319 (arg1)->SetLogicalOrigin(arg2,arg3);
14320
14321 wxPyEndAllowThreads(__tstate);
14322 if (PyErr_Occurred()) SWIG_fail;
14323 }
14324 Py_INCREF(Py_None); resultobj = Py_None;
14325 return resultobj;
14326 fail:
14327 return NULL;
14328 }
14329
14330
14331 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14332 PyObject *resultobj;
14333 wxDC *arg1 = (wxDC *) 0 ;
14334 wxPoint result;
14335 PyObject * obj0 = 0 ;
14336 char *kwnames[] = {
14337 (char *) "self", NULL
14338 };
14339
14340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14343 {
14344 PyThreadState* __tstate = wxPyBeginAllowThreads();
14345 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14346
14347 wxPyEndAllowThreads(__tstate);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 {
14351 wxPoint * resultptr;
14352 resultptr = new wxPoint((wxPoint &) result);
14353 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14354 }
14355 return resultobj;
14356 fail:
14357 return NULL;
14358 }
14359
14360
14361 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14362 PyObject *resultobj;
14363 wxDC *arg1 = (wxDC *) 0 ;
14364 int *arg2 = (int *) 0 ;
14365 int *arg3 = (int *) 0 ;
14366 int temp2 ;
14367 int temp3 ;
14368 PyObject * obj0 = 0 ;
14369 char *kwnames[] = {
14370 (char *) "self", NULL
14371 };
14372
14373 arg2 = &temp2;
14374 arg3 = &temp3;
14375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14378 {
14379 PyThreadState* __tstate = wxPyBeginAllowThreads();
14380 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14381
14382 wxPyEndAllowThreads(__tstate);
14383 if (PyErr_Occurred()) SWIG_fail;
14384 }
14385 Py_INCREF(Py_None); resultobj = Py_None;
14386 {
14387 PyObject *o = PyInt_FromLong((long) (*arg2));
14388 resultobj = t_output_helper(resultobj,o);
14389 }
14390 {
14391 PyObject *o = PyInt_FromLong((long) (*arg3));
14392 resultobj = t_output_helper(resultobj,o);
14393 }
14394 return resultobj;
14395 fail:
14396 return NULL;
14397 }
14398
14399
14400 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14401 PyObject *resultobj;
14402 wxDC *arg1 = (wxDC *) 0 ;
14403 int arg2 ;
14404 int arg3 ;
14405 PyObject * obj0 = 0 ;
14406 PyObject * obj1 = 0 ;
14407 PyObject * obj2 = 0 ;
14408 char *kwnames[] = {
14409 (char *) "self",(char *) "x",(char *) "y", NULL
14410 };
14411
14412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14415 arg2 = (int) SWIG_AsInt(obj1);
14416 if (PyErr_Occurred()) SWIG_fail;
14417 arg3 = (int) SWIG_AsInt(obj2);
14418 if (PyErr_Occurred()) SWIG_fail;
14419 {
14420 PyThreadState* __tstate = wxPyBeginAllowThreads();
14421 (arg1)->SetDeviceOrigin(arg2,arg3);
14422
14423 wxPyEndAllowThreads(__tstate);
14424 if (PyErr_Occurred()) SWIG_fail;
14425 }
14426 Py_INCREF(Py_None); resultobj = Py_None;
14427 return resultobj;
14428 fail:
14429 return NULL;
14430 }
14431
14432
14433 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14434 PyObject *resultobj;
14435 wxDC *arg1 = (wxDC *) 0 ;
14436 bool arg2 ;
14437 bool arg3 ;
14438 PyObject * obj0 = 0 ;
14439 PyObject * obj1 = 0 ;
14440 PyObject * obj2 = 0 ;
14441 char *kwnames[] = {
14442 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14443 };
14444
14445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14448 arg2 = (bool) SWIG_AsBool(obj1);
14449 if (PyErr_Occurred()) SWIG_fail;
14450 arg3 = (bool) SWIG_AsBool(obj2);
14451 if (PyErr_Occurred()) SWIG_fail;
14452 {
14453 PyThreadState* __tstate = wxPyBeginAllowThreads();
14454 (arg1)->SetAxisOrientation(arg2,arg3);
14455
14456 wxPyEndAllowThreads(__tstate);
14457 if (PyErr_Occurred()) SWIG_fail;
14458 }
14459 Py_INCREF(Py_None); resultobj = Py_None;
14460 return resultobj;
14461 fail:
14462 return NULL;
14463 }
14464
14465
14466 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14467 PyObject *resultobj;
14468 wxDC *arg1 = (wxDC *) 0 ;
14469 int result;
14470 PyObject * obj0 = 0 ;
14471 char *kwnames[] = {
14472 (char *) "self", NULL
14473 };
14474
14475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14478 {
14479 PyThreadState* __tstate = wxPyBeginAllowThreads();
14480 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14481
14482 wxPyEndAllowThreads(__tstate);
14483 if (PyErr_Occurred()) SWIG_fail;
14484 }
14485 resultobj = SWIG_FromInt((int)result);
14486 return resultobj;
14487 fail:
14488 return NULL;
14489 }
14490
14491
14492 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14493 PyObject *resultobj;
14494 wxDC *arg1 = (wxDC *) 0 ;
14495 int arg2 ;
14496 PyObject * obj0 = 0 ;
14497 PyObject * obj1 = 0 ;
14498 char *kwnames[] = {
14499 (char *) "self",(char *) "function", NULL
14500 };
14501
14502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14505 arg2 = (int) SWIG_AsInt(obj1);
14506 if (PyErr_Occurred()) SWIG_fail;
14507 {
14508 PyThreadState* __tstate = wxPyBeginAllowThreads();
14509 (arg1)->SetLogicalFunction(arg2);
14510
14511 wxPyEndAllowThreads(__tstate);
14512 if (PyErr_Occurred()) SWIG_fail;
14513 }
14514 Py_INCREF(Py_None); resultobj = Py_None;
14515 return resultobj;
14516 fail:
14517 return NULL;
14518 }
14519
14520
14521 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14522 PyObject *resultobj;
14523 wxDC *arg1 = (wxDC *) 0 ;
14524 bool arg2 ;
14525 PyObject * obj0 = 0 ;
14526 PyObject * obj1 = 0 ;
14527 char *kwnames[] = {
14528 (char *) "self",(char *) "opt", NULL
14529 };
14530
14531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14534 arg2 = (bool) SWIG_AsBool(obj1);
14535 if (PyErr_Occurred()) SWIG_fail;
14536 {
14537 PyThreadState* __tstate = wxPyBeginAllowThreads();
14538 (arg1)->SetOptimization(arg2);
14539
14540 wxPyEndAllowThreads(__tstate);
14541 if (PyErr_Occurred()) SWIG_fail;
14542 }
14543 Py_INCREF(Py_None); resultobj = Py_None;
14544 return resultobj;
14545 fail:
14546 return NULL;
14547 }
14548
14549
14550 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14551 PyObject *resultobj;
14552 wxDC *arg1 = (wxDC *) 0 ;
14553 bool result;
14554 PyObject * obj0 = 0 ;
14555 char *kwnames[] = {
14556 (char *) "self", NULL
14557 };
14558
14559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14562 {
14563 PyThreadState* __tstate = wxPyBeginAllowThreads();
14564 result = (bool)(arg1)->GetOptimization();
14565
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 {
14570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14571 }
14572 return resultobj;
14573 fail:
14574 return NULL;
14575 }
14576
14577
14578 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14579 PyObject *resultobj;
14580 wxDC *arg1 = (wxDC *) 0 ;
14581 int arg2 ;
14582 int arg3 ;
14583 PyObject * obj0 = 0 ;
14584 PyObject * obj1 = 0 ;
14585 PyObject * obj2 = 0 ;
14586 char *kwnames[] = {
14587 (char *) "self",(char *) "x",(char *) "y", NULL
14588 };
14589
14590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14593 arg2 = (int) SWIG_AsInt(obj1);
14594 if (PyErr_Occurred()) SWIG_fail;
14595 arg3 = (int) SWIG_AsInt(obj2);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 {
14598 PyThreadState* __tstate = wxPyBeginAllowThreads();
14599 (arg1)->CalcBoundingBox(arg2,arg3);
14600
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
14604 Py_INCREF(Py_None); resultobj = Py_None;
14605 return resultobj;
14606 fail:
14607 return NULL;
14608 }
14609
14610
14611 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14612 PyObject *resultobj;
14613 wxDC *arg1 = (wxDC *) 0 ;
14614 PyObject * obj0 = 0 ;
14615 char *kwnames[] = {
14616 (char *) "self", NULL
14617 };
14618
14619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14622 {
14623 PyThreadState* __tstate = wxPyBeginAllowThreads();
14624 (arg1)->ResetBoundingBox();
14625
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 Py_INCREF(Py_None); resultobj = Py_None;
14630 return resultobj;
14631 fail:
14632 return NULL;
14633 }
14634
14635
14636 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14637 PyObject *resultobj;
14638 wxDC *arg1 = (wxDC *) 0 ;
14639 int result;
14640 PyObject * obj0 = 0 ;
14641 char *kwnames[] = {
14642 (char *) "self", NULL
14643 };
14644
14645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14648 {
14649 PyThreadState* __tstate = wxPyBeginAllowThreads();
14650 result = (int)((wxDC const *)arg1)->MinX();
14651
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
14655 resultobj = SWIG_FromInt((int)result);
14656 return resultobj;
14657 fail:
14658 return NULL;
14659 }
14660
14661
14662 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14663 PyObject *resultobj;
14664 wxDC *arg1 = (wxDC *) 0 ;
14665 int result;
14666 PyObject * obj0 = 0 ;
14667 char *kwnames[] = {
14668 (char *) "self", NULL
14669 };
14670
14671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14674 {
14675 PyThreadState* __tstate = wxPyBeginAllowThreads();
14676 result = (int)((wxDC const *)arg1)->MaxX();
14677
14678 wxPyEndAllowThreads(__tstate);
14679 if (PyErr_Occurred()) SWIG_fail;
14680 }
14681 resultobj = SWIG_FromInt((int)result);
14682 return resultobj;
14683 fail:
14684 return NULL;
14685 }
14686
14687
14688 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14689 PyObject *resultobj;
14690 wxDC *arg1 = (wxDC *) 0 ;
14691 int result;
14692 PyObject * obj0 = 0 ;
14693 char *kwnames[] = {
14694 (char *) "self", NULL
14695 };
14696
14697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
14702 result = (int)((wxDC const *)arg1)->MinY();
14703
14704 wxPyEndAllowThreads(__tstate);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 }
14707 resultobj = SWIG_FromInt((int)result);
14708 return resultobj;
14709 fail:
14710 return NULL;
14711 }
14712
14713
14714 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14715 PyObject *resultobj;
14716 wxDC *arg1 = (wxDC *) 0 ;
14717 int result;
14718 PyObject * obj0 = 0 ;
14719 char *kwnames[] = {
14720 (char *) "self", NULL
14721 };
14722
14723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14726 {
14727 PyThreadState* __tstate = wxPyBeginAllowThreads();
14728 result = (int)((wxDC const *)arg1)->MaxY();
14729
14730 wxPyEndAllowThreads(__tstate);
14731 if (PyErr_Occurred()) SWIG_fail;
14732 }
14733 resultobj = SWIG_FromInt((int)result);
14734 return resultobj;
14735 fail:
14736 return NULL;
14737 }
14738
14739
14740 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14741 PyObject *resultobj;
14742 wxDC *arg1 = (wxDC *) 0 ;
14743 int *arg2 = (int *) 0 ;
14744 int *arg3 = (int *) 0 ;
14745 int *arg4 = (int *) 0 ;
14746 int *arg5 = (int *) 0 ;
14747 int temp2 ;
14748 int temp3 ;
14749 int temp4 ;
14750 int temp5 ;
14751 PyObject * obj0 = 0 ;
14752 char *kwnames[] = {
14753 (char *) "self", NULL
14754 };
14755
14756 arg2 = &temp2;
14757 arg3 = &temp3;
14758 arg4 = &temp4;
14759 arg5 = &temp5;
14760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14763 {
14764 PyThreadState* __tstate = wxPyBeginAllowThreads();
14765 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14766
14767 wxPyEndAllowThreads(__tstate);
14768 if (PyErr_Occurred()) SWIG_fail;
14769 }
14770 Py_INCREF(Py_None); resultobj = Py_None;
14771 {
14772 PyObject *o = PyInt_FromLong((long) (*arg2));
14773 resultobj = t_output_helper(resultobj,o);
14774 }
14775 {
14776 PyObject *o = PyInt_FromLong((long) (*arg3));
14777 resultobj = t_output_helper(resultobj,o);
14778 }
14779 {
14780 PyObject *o = PyInt_FromLong((long) (*arg4));
14781 resultobj = t_output_helper(resultobj,o);
14782 }
14783 {
14784 PyObject *o = PyInt_FromLong((long) (*arg5));
14785 resultobj = t_output_helper(resultobj,o);
14786 }
14787 return resultobj;
14788 fail:
14789 return NULL;
14790 }
14791
14792
14793 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14794 PyObject *resultobj;
14795 wxDC *arg1 = (wxDC *) 0 ;
14796 PyObject *arg2 = (PyObject *) 0 ;
14797 PyObject *arg3 = (PyObject *) 0 ;
14798 PyObject *arg4 = (PyObject *) 0 ;
14799 PyObject *result;
14800 PyObject * obj0 = 0 ;
14801 PyObject * obj1 = 0 ;
14802 PyObject * obj2 = 0 ;
14803 PyObject * obj3 = 0 ;
14804 char *kwnames[] = {
14805 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14806 };
14807
14808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14811 arg2 = obj1;
14812 arg3 = obj2;
14813 arg4 = obj3;
14814 {
14815 PyThreadState* __tstate = wxPyBeginAllowThreads();
14816 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14817
14818 wxPyEndAllowThreads(__tstate);
14819 if (PyErr_Occurred()) SWIG_fail;
14820 }
14821 resultobj = result;
14822 return resultobj;
14823 fail:
14824 return NULL;
14825 }
14826
14827
14828 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14829 PyObject *resultobj;
14830 wxDC *arg1 = (wxDC *) 0 ;
14831 PyObject *arg2 = (PyObject *) 0 ;
14832 PyObject *arg3 = (PyObject *) 0 ;
14833 PyObject *arg4 = (PyObject *) 0 ;
14834 PyObject *result;
14835 PyObject * obj0 = 0 ;
14836 PyObject * obj1 = 0 ;
14837 PyObject * obj2 = 0 ;
14838 PyObject * obj3 = 0 ;
14839 char *kwnames[] = {
14840 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14841 };
14842
14843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14846 arg2 = obj1;
14847 arg3 = obj2;
14848 arg4 = obj3;
14849 {
14850 PyThreadState* __tstate = wxPyBeginAllowThreads();
14851 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14852
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 resultobj = result;
14857 return resultobj;
14858 fail:
14859 return NULL;
14860 }
14861
14862
14863 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14864 PyObject *resultobj;
14865 wxDC *arg1 = (wxDC *) 0 ;
14866 PyObject *arg2 = (PyObject *) 0 ;
14867 PyObject *arg3 = (PyObject *) 0 ;
14868 PyObject *arg4 = (PyObject *) 0 ;
14869 PyObject *result;
14870 PyObject * obj0 = 0 ;
14871 PyObject * obj1 = 0 ;
14872 PyObject * obj2 = 0 ;
14873 PyObject * obj3 = 0 ;
14874 char *kwnames[] = {
14875 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14876 };
14877
14878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14881 arg2 = obj1;
14882 arg3 = obj2;
14883 arg4 = obj3;
14884 {
14885 PyThreadState* __tstate = wxPyBeginAllowThreads();
14886 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14887
14888 wxPyEndAllowThreads(__tstate);
14889 if (PyErr_Occurred()) SWIG_fail;
14890 }
14891 resultobj = result;
14892 return resultobj;
14893 fail:
14894 return NULL;
14895 }
14896
14897
14898 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14899 PyObject *resultobj;
14900 wxDC *arg1 = (wxDC *) 0 ;
14901 PyObject *arg2 = (PyObject *) 0 ;
14902 PyObject *arg3 = (PyObject *) 0 ;
14903 PyObject *arg4 = (PyObject *) 0 ;
14904 PyObject *result;
14905 PyObject * obj0 = 0 ;
14906 PyObject * obj1 = 0 ;
14907 PyObject * obj2 = 0 ;
14908 PyObject * obj3 = 0 ;
14909 char *kwnames[] = {
14910 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14911 };
14912
14913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14916 arg2 = obj1;
14917 arg3 = obj2;
14918 arg4 = obj3;
14919 {
14920 PyThreadState* __tstate = wxPyBeginAllowThreads();
14921 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14922
14923 wxPyEndAllowThreads(__tstate);
14924 if (PyErr_Occurred()) SWIG_fail;
14925 }
14926 resultobj = result;
14927 return resultobj;
14928 fail:
14929 return NULL;
14930 }
14931
14932
14933 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14934 PyObject *resultobj;
14935 wxDC *arg1 = (wxDC *) 0 ;
14936 PyObject *arg2 = (PyObject *) 0 ;
14937 PyObject *arg3 = (PyObject *) 0 ;
14938 PyObject *arg4 = (PyObject *) 0 ;
14939 PyObject *result;
14940 PyObject * obj0 = 0 ;
14941 PyObject * obj1 = 0 ;
14942 PyObject * obj2 = 0 ;
14943 PyObject * obj3 = 0 ;
14944 char *kwnames[] = {
14945 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14946 };
14947
14948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14951 arg2 = obj1;
14952 arg3 = obj2;
14953 arg4 = obj3;
14954 {
14955 PyThreadState* __tstate = wxPyBeginAllowThreads();
14956 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14957
14958 wxPyEndAllowThreads(__tstate);
14959 if (PyErr_Occurred()) SWIG_fail;
14960 }
14961 resultobj = result;
14962 return resultobj;
14963 fail:
14964 return NULL;
14965 }
14966
14967
14968 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14969 PyObject *resultobj;
14970 wxDC *arg1 = (wxDC *) 0 ;
14971 PyObject *arg2 = (PyObject *) 0 ;
14972 PyObject *arg3 = (PyObject *) 0 ;
14973 PyObject *arg4 = (PyObject *) 0 ;
14974 PyObject *arg5 = (PyObject *) 0 ;
14975 PyObject *result;
14976 PyObject * obj0 = 0 ;
14977 PyObject * obj1 = 0 ;
14978 PyObject * obj2 = 0 ;
14979 PyObject * obj3 = 0 ;
14980 PyObject * obj4 = 0 ;
14981 char *kwnames[] = {
14982 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14983 };
14984
14985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14988 arg2 = obj1;
14989 arg3 = obj2;
14990 arg4 = obj3;
14991 arg5 = obj4;
14992 {
14993 PyThreadState* __tstate = wxPyBeginAllowThreads();
14994 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14995
14996 wxPyEndAllowThreads(__tstate);
14997 if (PyErr_Occurred()) SWIG_fail;
14998 }
14999 resultobj = result;
15000 return resultobj;
15001 fail:
15002 return NULL;
15003 }
15004
15005
15006 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15007 PyObject *obj;
15008 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15009 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15010 Py_INCREF(obj);
15011 return Py_BuildValue((char *)"");
15012 }
15013 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15014 PyObject *resultobj;
15015 wxMemoryDC *result;
15016 char *kwnames[] = {
15017 NULL
15018 };
15019
15020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15021 {
15022 PyThreadState* __tstate = wxPyBeginAllowThreads();
15023 result = (wxMemoryDC *)new wxMemoryDC();
15024
15025 wxPyEndAllowThreads(__tstate);
15026 if (PyErr_Occurred()) SWIG_fail;
15027 }
15028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15029 return resultobj;
15030 fail:
15031 return NULL;
15032 }
15033
15034
15035 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15036 PyObject *resultobj;
15037 wxDC *arg1 = (wxDC *) 0 ;
15038 wxMemoryDC *result;
15039 PyObject * obj0 = 0 ;
15040 char *kwnames[] = {
15041 (char *) "oldDC", NULL
15042 };
15043
15044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15047 {
15048 PyThreadState* __tstate = wxPyBeginAllowThreads();
15049 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15050
15051 wxPyEndAllowThreads(__tstate);
15052 if (PyErr_Occurred()) SWIG_fail;
15053 }
15054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15055 return resultobj;
15056 fail:
15057 return NULL;
15058 }
15059
15060
15061 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15062 PyObject *resultobj;
15063 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15064 wxBitmap *arg2 = 0 ;
15065 PyObject * obj0 = 0 ;
15066 PyObject * obj1 = 0 ;
15067 char *kwnames[] = {
15068 (char *) "self",(char *) "bitmap", NULL
15069 };
15070
15071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15074 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15075 SWIG_POINTER_EXCEPTION | 0)) == -1)
15076 SWIG_fail;
15077 if (arg2 == NULL) {
15078 PyErr_SetString(PyExc_TypeError,"null reference");
15079 SWIG_fail;
15080 }
15081 {
15082 PyThreadState* __tstate = wxPyBeginAllowThreads();
15083 (arg1)->SelectObject((wxBitmap const &)*arg2);
15084
15085 wxPyEndAllowThreads(__tstate);
15086 if (PyErr_Occurred()) SWIG_fail;
15087 }
15088 Py_INCREF(Py_None); resultobj = Py_None;
15089 return resultobj;
15090 fail:
15091 return NULL;
15092 }
15093
15094
15095 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15096 PyObject *obj;
15097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15098 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15099 Py_INCREF(obj);
15100 return Py_BuildValue((char *)"");
15101 }
15102 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15103 PyObject *resultobj;
15104 wxDC *arg1 = (wxDC *) 0 ;
15105 wxBitmap *arg2 = 0 ;
15106 wxBufferedDC *result;
15107 PyObject * obj0 = 0 ;
15108 PyObject * obj1 = 0 ;
15109
15110 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15113 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15114 SWIG_POINTER_EXCEPTION | 0)) == -1)
15115 SWIG_fail;
15116 if (arg2 == NULL) {
15117 PyErr_SetString(PyExc_TypeError,"null reference");
15118 SWIG_fail;
15119 }
15120 {
15121 PyThreadState* __tstate = wxPyBeginAllowThreads();
15122 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15123
15124 wxPyEndAllowThreads(__tstate);
15125 if (PyErr_Occurred()) SWIG_fail;
15126 }
15127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15128 return resultobj;
15129 fail:
15130 return NULL;
15131 }
15132
15133
15134 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15135 PyObject *resultobj;
15136 wxDC *arg1 = (wxDC *) 0 ;
15137 wxSize *arg2 = 0 ;
15138 wxBufferedDC *result;
15139 wxSize temp2 ;
15140 PyObject * obj0 = 0 ;
15141 PyObject * obj1 = 0 ;
15142
15143 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15146 {
15147 arg2 = &temp2;
15148 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15149 }
15150 {
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 PyThreadState* __tstate = wxPyBeginAllowThreads();
15243 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15244
15245 wxPyEndAllowThreads(__tstate);
15246 if (PyErr_Occurred()) SWIG_fail;
15247 }
15248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15249 return resultobj;
15250 fail:
15251 return NULL;
15252 }
15253
15254
15255 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15256 PyObject *resultobj;
15257 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15258 PyObject * obj0 = 0 ;
15259 char *kwnames[] = {
15260 (char *) "self", NULL
15261 };
15262
15263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15266 {
15267 PyThreadState* __tstate = wxPyBeginAllowThreads();
15268 delete arg1;
15269
15270 wxPyEndAllowThreads(__tstate);
15271 if (PyErr_Occurred()) SWIG_fail;
15272 }
15273 Py_INCREF(Py_None); resultobj = Py_None;
15274 return resultobj;
15275 fail:
15276 return NULL;
15277 }
15278
15279
15280 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15281 PyObject *resultobj;
15282 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15283 PyObject * obj0 = 0 ;
15284 char *kwnames[] = {
15285 (char *) "self", NULL
15286 };
15287
15288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15291 {
15292 PyThreadState* __tstate = wxPyBeginAllowThreads();
15293 (arg1)->UnMask();
15294
15295 wxPyEndAllowThreads(__tstate);
15296 if (PyErr_Occurred()) SWIG_fail;
15297 }
15298 Py_INCREF(Py_None); resultobj = Py_None;
15299 return resultobj;
15300 fail:
15301 return NULL;
15302 }
15303
15304
15305 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15306 PyObject *obj;
15307 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15308 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15309 Py_INCREF(obj);
15310 return Py_BuildValue((char *)"");
15311 }
15312 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15313 PyObject *resultobj;
15314 wxWindow *arg1 = (wxWindow *) 0 ;
15315 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15316 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15317 wxBufferedPaintDC *result;
15318 PyObject * obj0 = 0 ;
15319 PyObject * obj1 = 0 ;
15320 char *kwnames[] = {
15321 (char *) "window",(char *) "buffer", NULL
15322 };
15323
15324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15327 if (obj1) {
15328 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15329 SWIG_POINTER_EXCEPTION | 0)) == -1)
15330 SWIG_fail;
15331 if (arg2 == NULL) {
15332 PyErr_SetString(PyExc_TypeError,"null reference");
15333 SWIG_fail;
15334 }
15335 }
15336 {
15337 PyThreadState* __tstate = wxPyBeginAllowThreads();
15338 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15339
15340 wxPyEndAllowThreads(__tstate);
15341 if (PyErr_Occurred()) SWIG_fail;
15342 }
15343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15344 return resultobj;
15345 fail:
15346 return NULL;
15347 }
15348
15349
15350 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15351 PyObject *obj;
15352 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15353 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15354 Py_INCREF(obj);
15355 return Py_BuildValue((char *)"");
15356 }
15357 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15358 PyObject *resultobj;
15359 wxScreenDC *result;
15360 char *kwnames[] = {
15361 NULL
15362 };
15363
15364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15365 {
15366 PyThreadState* __tstate = wxPyBeginAllowThreads();
15367 result = (wxScreenDC *)new wxScreenDC();
15368
15369 wxPyEndAllowThreads(__tstate);
15370 if (PyErr_Occurred()) SWIG_fail;
15371 }
15372 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15373 return resultobj;
15374 fail:
15375 return NULL;
15376 }
15377
15378
15379 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15380 PyObject *resultobj;
15381 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15382 wxWindow *arg2 = (wxWindow *) 0 ;
15383 bool result;
15384 PyObject * obj0 = 0 ;
15385 PyObject * obj1 = 0 ;
15386 char *kwnames[] = {
15387 (char *) "self",(char *) "window", NULL
15388 };
15389
15390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15393 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15395 {
15396 PyThreadState* __tstate = wxPyBeginAllowThreads();
15397 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15398
15399 wxPyEndAllowThreads(__tstate);
15400 if (PyErr_Occurred()) SWIG_fail;
15401 }
15402 {
15403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15404 }
15405 return resultobj;
15406 fail:
15407 return NULL;
15408 }
15409
15410
15411 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15412 PyObject *resultobj;
15413 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15414 wxRect *arg2 = (wxRect *) NULL ;
15415 bool result;
15416 PyObject * obj0 = 0 ;
15417 PyObject * obj1 = 0 ;
15418 char *kwnames[] = {
15419 (char *) "self",(char *) "rect", NULL
15420 };
15421
15422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15425 if (obj1) {
15426 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15428 }
15429 {
15430 PyThreadState* __tstate = wxPyBeginAllowThreads();
15431 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15432
15433 wxPyEndAllowThreads(__tstate);
15434 if (PyErr_Occurred()) SWIG_fail;
15435 }
15436 {
15437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15438 }
15439 return resultobj;
15440 fail:
15441 return NULL;
15442 }
15443
15444
15445 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15446 PyObject *resultobj;
15447 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15448 bool result;
15449 PyObject * obj0 = 0 ;
15450 char *kwnames[] = {
15451 (char *) "self", NULL
15452 };
15453
15454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15457 {
15458 PyThreadState* __tstate = wxPyBeginAllowThreads();
15459 result = (bool)(arg1)->EndDrawingOnTop();
15460
15461 wxPyEndAllowThreads(__tstate);
15462 if (PyErr_Occurred()) SWIG_fail;
15463 }
15464 {
15465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15466 }
15467 return resultobj;
15468 fail:
15469 return NULL;
15470 }
15471
15472
15473 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15474 PyObject *obj;
15475 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15476 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15477 Py_INCREF(obj);
15478 return Py_BuildValue((char *)"");
15479 }
15480 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15481 PyObject *resultobj;
15482 wxWindow *arg1 = (wxWindow *) 0 ;
15483 wxClientDC *result;
15484 PyObject * obj0 = 0 ;
15485 char *kwnames[] = {
15486 (char *) "win", NULL
15487 };
15488
15489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15492 {
15493 PyThreadState* __tstate = wxPyBeginAllowThreads();
15494 result = (wxClientDC *)new wxClientDC(arg1);
15495
15496 wxPyEndAllowThreads(__tstate);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 }
15499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15500 return resultobj;
15501 fail:
15502 return NULL;
15503 }
15504
15505
15506 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15507 PyObject *obj;
15508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15509 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15510 Py_INCREF(obj);
15511 return Py_BuildValue((char *)"");
15512 }
15513 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15514 PyObject *resultobj;
15515 wxWindow *arg1 = (wxWindow *) 0 ;
15516 wxPaintDC *result;
15517 PyObject * obj0 = 0 ;
15518 char *kwnames[] = {
15519 (char *) "win", NULL
15520 };
15521
15522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15525 {
15526 PyThreadState* __tstate = wxPyBeginAllowThreads();
15527 result = (wxPaintDC *)new wxPaintDC(arg1);
15528
15529 wxPyEndAllowThreads(__tstate);
15530 if (PyErr_Occurred()) SWIG_fail;
15531 }
15532 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15533 return resultobj;
15534 fail:
15535 return NULL;
15536 }
15537
15538
15539 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15540 PyObject *obj;
15541 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15542 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15543 Py_INCREF(obj);
15544 return Py_BuildValue((char *)"");
15545 }
15546 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15547 PyObject *resultobj;
15548 wxWindow *arg1 = (wxWindow *) 0 ;
15549 wxWindowDC *result;
15550 PyObject * obj0 = 0 ;
15551 char *kwnames[] = {
15552 (char *) "win", NULL
15553 };
15554
15555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15558 {
15559 PyThreadState* __tstate = wxPyBeginAllowThreads();
15560 result = (wxWindowDC *)new wxWindowDC(arg1);
15561
15562 wxPyEndAllowThreads(__tstate);
15563 if (PyErr_Occurred()) SWIG_fail;
15564 }
15565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15566 return resultobj;
15567 fail:
15568 return NULL;
15569 }
15570
15571
15572 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15573 PyObject *obj;
15574 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15575 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15576 Py_INCREF(obj);
15577 return Py_BuildValue((char *)"");
15578 }
15579 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15580 PyObject *resultobj;
15581 wxDC *arg1 = 0 ;
15582 bool arg2 ;
15583 wxMirrorDC *result;
15584 PyObject * obj0 = 0 ;
15585 PyObject * obj1 = 0 ;
15586 char *kwnames[] = {
15587 (char *) "dc",(char *) "mirror", NULL
15588 };
15589
15590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15592 SWIG_POINTER_EXCEPTION | 0)) == -1)
15593 SWIG_fail;
15594 if (arg1 == NULL) {
15595 PyErr_SetString(PyExc_TypeError,"null reference");
15596 SWIG_fail;
15597 }
15598 arg2 = (bool) SWIG_AsBool(obj1);
15599 if (PyErr_Occurred()) SWIG_fail;
15600 {
15601 PyThreadState* __tstate = wxPyBeginAllowThreads();
15602 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15603
15604 wxPyEndAllowThreads(__tstate);
15605 if (PyErr_Occurred()) SWIG_fail;
15606 }
15607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15608 return resultobj;
15609 fail:
15610 return NULL;
15611 }
15612
15613
15614 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15615 PyObject *obj;
15616 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15617 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15618 Py_INCREF(obj);
15619 return Py_BuildValue((char *)"");
15620 }
15621 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15622 PyObject *resultobj;
15623 wxPrintData *arg1 = 0 ;
15624 wxPostScriptDC *result;
15625 PyObject * obj0 = 0 ;
15626 char *kwnames[] = {
15627 (char *) "printData", NULL
15628 };
15629
15630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15632 SWIG_POINTER_EXCEPTION | 0)) == -1)
15633 SWIG_fail;
15634 if (arg1 == NULL) {
15635 PyErr_SetString(PyExc_TypeError,"null reference");
15636 SWIG_fail;
15637 }
15638 {
15639 PyThreadState* __tstate = wxPyBeginAllowThreads();
15640 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15641
15642 wxPyEndAllowThreads(__tstate);
15643 if (PyErr_Occurred()) SWIG_fail;
15644 }
15645 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15646 return resultobj;
15647 fail:
15648 return NULL;
15649 }
15650
15651
15652 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15653 PyObject *resultobj;
15654 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15655 wxPrintData *result;
15656 PyObject * obj0 = 0 ;
15657 char *kwnames[] = {
15658 (char *) "self", NULL
15659 };
15660
15661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15664 {
15665 PyThreadState* __tstate = wxPyBeginAllowThreads();
15666 {
15667 wxPrintData &_result_ref = (arg1)->GetPrintData();
15668 result = (wxPrintData *) &_result_ref;
15669 }
15670
15671 wxPyEndAllowThreads(__tstate);
15672 if (PyErr_Occurred()) SWIG_fail;
15673 }
15674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15675 return resultobj;
15676 fail:
15677 return NULL;
15678 }
15679
15680
15681 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15682 PyObject *resultobj;
15683 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15684 wxPrintData *arg2 = 0 ;
15685 PyObject * obj0 = 0 ;
15686 PyObject * obj1 = 0 ;
15687 char *kwnames[] = {
15688 (char *) "self",(char *) "data", NULL
15689 };
15690
15691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15694 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15695 SWIG_POINTER_EXCEPTION | 0)) == -1)
15696 SWIG_fail;
15697 if (arg2 == NULL) {
15698 PyErr_SetString(PyExc_TypeError,"null reference");
15699 SWIG_fail;
15700 }
15701 {
15702 PyThreadState* __tstate = wxPyBeginAllowThreads();
15703 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15704
15705 wxPyEndAllowThreads(__tstate);
15706 if (PyErr_Occurred()) SWIG_fail;
15707 }
15708 Py_INCREF(Py_None); resultobj = Py_None;
15709 return resultobj;
15710 fail:
15711 return NULL;
15712 }
15713
15714
15715 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15716 PyObject *resultobj;
15717 int arg1 ;
15718 PyObject * obj0 = 0 ;
15719 char *kwnames[] = {
15720 (char *) "ppi", NULL
15721 };
15722
15723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15724 arg1 = (int) SWIG_AsInt(obj0);
15725 if (PyErr_Occurred()) SWIG_fail;
15726 {
15727 PyThreadState* __tstate = wxPyBeginAllowThreads();
15728 wxPostScriptDC::SetResolution(arg1);
15729
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
15733 Py_INCREF(Py_None); resultobj = Py_None;
15734 return resultobj;
15735 fail:
15736 return NULL;
15737 }
15738
15739
15740 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15741 PyObject *resultobj;
15742 int result;
15743 char *kwnames[] = {
15744 NULL
15745 };
15746
15747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 result = (int)wxPostScriptDC::GetResolution();
15751
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 resultobj = SWIG_FromInt((int)result);
15756 return resultobj;
15757 fail:
15758 return NULL;
15759 }
15760
15761
15762 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15763 PyObject *obj;
15764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15765 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15766 Py_INCREF(obj);
15767 return Py_BuildValue((char *)"");
15768 }
15769 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15770 PyObject *resultobj;
15771 wxString const &arg1_defvalue = wxPyEmptyString ;
15772 wxString *arg1 = (wxString *) &arg1_defvalue ;
15773 wxMetaFile *result;
15774 bool temp1 = False ;
15775 PyObject * obj0 = 0 ;
15776 char *kwnames[] = {
15777 (char *) "filename", NULL
15778 };
15779
15780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15781 if (obj0) {
15782 {
15783 arg1 = wxString_in_helper(obj0);
15784 if (arg1 == NULL) SWIG_fail;
15785 temp1 = True;
15786 }
15787 }
15788 {
15789 PyThreadState* __tstate = wxPyBeginAllowThreads();
15790 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15791
15792 wxPyEndAllowThreads(__tstate);
15793 if (PyErr_Occurred()) SWIG_fail;
15794 }
15795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15796 {
15797 if (temp1)
15798 delete arg1;
15799 }
15800 return resultobj;
15801 fail:
15802 {
15803 if (temp1)
15804 delete arg1;
15805 }
15806 return NULL;
15807 }
15808
15809
15810 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15811 PyObject *obj;
15812 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15813 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15814 Py_INCREF(obj);
15815 return Py_BuildValue((char *)"");
15816 }
15817 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15818 PyObject *resultobj;
15819 wxString const &arg1_defvalue = wxPyEmptyString ;
15820 wxString *arg1 = (wxString *) &arg1_defvalue ;
15821 int arg2 = (int) 0 ;
15822 int arg3 = (int) 0 ;
15823 wxString const &arg4_defvalue = wxPyEmptyString ;
15824 wxString *arg4 = (wxString *) &arg4_defvalue ;
15825 wxMetaFileDC *result;
15826 bool temp1 = False ;
15827 bool temp4 = False ;
15828 PyObject * obj0 = 0 ;
15829 PyObject * obj1 = 0 ;
15830 PyObject * obj2 = 0 ;
15831 PyObject * obj3 = 0 ;
15832 char *kwnames[] = {
15833 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15834 };
15835
15836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15837 if (obj0) {
15838 {
15839 arg1 = wxString_in_helper(obj0);
15840 if (arg1 == NULL) SWIG_fail;
15841 temp1 = True;
15842 }
15843 }
15844 if (obj1) {
15845 arg2 = (int) SWIG_AsInt(obj1);
15846 if (PyErr_Occurred()) SWIG_fail;
15847 }
15848 if (obj2) {
15849 arg3 = (int) SWIG_AsInt(obj2);
15850 if (PyErr_Occurred()) SWIG_fail;
15851 }
15852 if (obj3) {
15853 {
15854 arg4 = wxString_in_helper(obj3);
15855 if (arg4 == NULL) SWIG_fail;
15856 temp4 = True;
15857 }
15858 }
15859 {
15860 PyThreadState* __tstate = wxPyBeginAllowThreads();
15861 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15862
15863 wxPyEndAllowThreads(__tstate);
15864 if (PyErr_Occurred()) SWIG_fail;
15865 }
15866 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15867 {
15868 if (temp1)
15869 delete arg1;
15870 }
15871 {
15872 if (temp4)
15873 delete arg4;
15874 }
15875 return resultobj;
15876 fail:
15877 {
15878 if (temp1)
15879 delete arg1;
15880 }
15881 {
15882 if (temp4)
15883 delete arg4;
15884 }
15885 return NULL;
15886 }
15887
15888
15889 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15890 PyObject *obj;
15891 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15892 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15893 Py_INCREF(obj);
15894 return Py_BuildValue((char *)"");
15895 }
15896 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15897 PyObject *resultobj;
15898 wxPrintData *arg1 = 0 ;
15899 wxPrinterDC *result;
15900 PyObject * obj0 = 0 ;
15901 char *kwnames[] = {
15902 (char *) "printData", NULL
15903 };
15904
15905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15907 SWIG_POINTER_EXCEPTION | 0)) == -1)
15908 SWIG_fail;
15909 if (arg1 == NULL) {
15910 PyErr_SetString(PyExc_TypeError,"null reference");
15911 SWIG_fail;
15912 }
15913 {
15914 PyThreadState* __tstate = wxPyBeginAllowThreads();
15915 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15916
15917 wxPyEndAllowThreads(__tstate);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 }
15920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
15921 return resultobj;
15922 fail:
15923 return NULL;
15924 }
15925
15926
15927 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15928 PyObject *obj;
15929 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15930 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15931 Py_INCREF(obj);
15932 return Py_BuildValue((char *)"");
15933 }
15934 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15935 PyObject *resultobj;
15936 int arg1 ;
15937 int arg2 ;
15938 int arg3 = (int) True ;
15939 int arg4 = (int) 1 ;
15940 wxImageList *result;
15941 PyObject * obj0 = 0 ;
15942 PyObject * obj1 = 0 ;
15943 PyObject * obj2 = 0 ;
15944 PyObject * obj3 = 0 ;
15945 char *kwnames[] = {
15946 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15947 };
15948
15949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15950 arg1 = (int) SWIG_AsInt(obj0);
15951 if (PyErr_Occurred()) SWIG_fail;
15952 arg2 = (int) SWIG_AsInt(obj1);
15953 if (PyErr_Occurred()) SWIG_fail;
15954 if (obj2) {
15955 arg3 = (int) SWIG_AsInt(obj2);
15956 if (PyErr_Occurred()) SWIG_fail;
15957 }
15958 if (obj3) {
15959 arg4 = (int) SWIG_AsInt(obj3);
15960 if (PyErr_Occurred()) SWIG_fail;
15961 }
15962 {
15963 PyThreadState* __tstate = wxPyBeginAllowThreads();
15964 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15965
15966 wxPyEndAllowThreads(__tstate);
15967 if (PyErr_Occurred()) SWIG_fail;
15968 }
15969 {
15970 resultobj = wxPyMake_wxObject(result);
15971 }
15972 return resultobj;
15973 fail:
15974 return NULL;
15975 }
15976
15977
15978 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15979 PyObject *resultobj;
15980 wxImageList *arg1 = (wxImageList *) 0 ;
15981 PyObject * obj0 = 0 ;
15982 char *kwnames[] = {
15983 (char *) "self", NULL
15984 };
15985
15986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15989 {
15990 PyThreadState* __tstate = wxPyBeginAllowThreads();
15991 delete arg1;
15992
15993 wxPyEndAllowThreads(__tstate);
15994 if (PyErr_Occurred()) SWIG_fail;
15995 }
15996 Py_INCREF(Py_None); resultobj = Py_None;
15997 return resultobj;
15998 fail:
15999 return NULL;
16000 }
16001
16002
16003 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16004 PyObject *resultobj;
16005 wxImageList *arg1 = (wxImageList *) 0 ;
16006 wxBitmap *arg2 = 0 ;
16007 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16008 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16009 int result;
16010 PyObject * obj0 = 0 ;
16011 PyObject * obj1 = 0 ;
16012 PyObject * obj2 = 0 ;
16013 char *kwnames[] = {
16014 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16015 };
16016
16017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16020 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16021 SWIG_POINTER_EXCEPTION | 0)) == -1)
16022 SWIG_fail;
16023 if (arg2 == NULL) {
16024 PyErr_SetString(PyExc_TypeError,"null reference");
16025 SWIG_fail;
16026 }
16027 if (obj2) {
16028 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16029 SWIG_POINTER_EXCEPTION | 0)) == -1)
16030 SWIG_fail;
16031 if (arg3 == NULL) {
16032 PyErr_SetString(PyExc_TypeError,"null reference");
16033 SWIG_fail;
16034 }
16035 }
16036 {
16037 PyThreadState* __tstate = wxPyBeginAllowThreads();
16038 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16039
16040 wxPyEndAllowThreads(__tstate);
16041 if (PyErr_Occurred()) SWIG_fail;
16042 }
16043 resultobj = SWIG_FromInt((int)result);
16044 return resultobj;
16045 fail:
16046 return NULL;
16047 }
16048
16049
16050 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16051 PyObject *resultobj;
16052 wxImageList *arg1 = (wxImageList *) 0 ;
16053 wxBitmap *arg2 = 0 ;
16054 wxColour *arg3 = 0 ;
16055 int result;
16056 wxColour temp3 ;
16057 PyObject * obj0 = 0 ;
16058 PyObject * obj1 = 0 ;
16059 PyObject * obj2 = 0 ;
16060 char *kwnames[] = {
16061 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16062 };
16063
16064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16067 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16068 SWIG_POINTER_EXCEPTION | 0)) == -1)
16069 SWIG_fail;
16070 if (arg2 == NULL) {
16071 PyErr_SetString(PyExc_TypeError,"null reference");
16072 SWIG_fail;
16073 }
16074 {
16075 arg3 = &temp3;
16076 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16077 }
16078 {
16079 PyThreadState* __tstate = wxPyBeginAllowThreads();
16080 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16081
16082 wxPyEndAllowThreads(__tstate);
16083 if (PyErr_Occurred()) SWIG_fail;
16084 }
16085 resultobj = SWIG_FromInt((int)result);
16086 return resultobj;
16087 fail:
16088 return NULL;
16089 }
16090
16091
16092 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16093 PyObject *resultobj;
16094 wxImageList *arg1 = (wxImageList *) 0 ;
16095 wxIcon *arg2 = 0 ;
16096 int result;
16097 PyObject * obj0 = 0 ;
16098 PyObject * obj1 = 0 ;
16099 char *kwnames[] = {
16100 (char *) "self",(char *) "icon", NULL
16101 };
16102
16103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16106 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16107 SWIG_POINTER_EXCEPTION | 0)) == -1)
16108 SWIG_fail;
16109 if (arg2 == NULL) {
16110 PyErr_SetString(PyExc_TypeError,"null reference");
16111 SWIG_fail;
16112 }
16113 {
16114 PyThreadState* __tstate = wxPyBeginAllowThreads();
16115 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16116
16117 wxPyEndAllowThreads(__tstate);
16118 if (PyErr_Occurred()) SWIG_fail;
16119 }
16120 resultobj = SWIG_FromInt((int)result);
16121 return resultobj;
16122 fail:
16123 return NULL;
16124 }
16125
16126
16127 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16128 PyObject *resultobj;
16129 wxImageList *arg1 = (wxImageList *) 0 ;
16130 int arg2 ;
16131 wxBitmap *arg3 = 0 ;
16132 bool result;
16133 PyObject * obj0 = 0 ;
16134 PyObject * obj1 = 0 ;
16135 PyObject * obj2 = 0 ;
16136 char *kwnames[] = {
16137 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16138 };
16139
16140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16143 arg2 = (int) SWIG_AsInt(obj1);
16144 if (PyErr_Occurred()) SWIG_fail;
16145 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16146 SWIG_POINTER_EXCEPTION | 0)) == -1)
16147 SWIG_fail;
16148 if (arg3 == NULL) {
16149 PyErr_SetString(PyExc_TypeError,"null reference");
16150 SWIG_fail;
16151 }
16152 {
16153 PyThreadState* __tstate = wxPyBeginAllowThreads();
16154 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16155
16156 wxPyEndAllowThreads(__tstate);
16157 if (PyErr_Occurred()) SWIG_fail;
16158 }
16159 {
16160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16161 }
16162 return resultobj;
16163 fail:
16164 return NULL;
16165 }
16166
16167
16168 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16169 PyObject *resultobj;
16170 wxImageList *arg1 = (wxImageList *) 0 ;
16171 int arg2 ;
16172 wxDC *arg3 = 0 ;
16173 int arg4 ;
16174 int arg5 ;
16175 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16176 bool arg7 = (bool) (bool)False ;
16177 bool result;
16178 PyObject * obj0 = 0 ;
16179 PyObject * obj1 = 0 ;
16180 PyObject * obj2 = 0 ;
16181 PyObject * obj3 = 0 ;
16182 PyObject * obj4 = 0 ;
16183 PyObject * obj5 = 0 ;
16184 PyObject * obj6 = 0 ;
16185 char *kwnames[] = {
16186 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16187 };
16188
16189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16192 arg2 = (int) SWIG_AsInt(obj1);
16193 if (PyErr_Occurred()) SWIG_fail;
16194 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16195 SWIG_POINTER_EXCEPTION | 0)) == -1)
16196 SWIG_fail;
16197 if (arg3 == NULL) {
16198 PyErr_SetString(PyExc_TypeError,"null reference");
16199 SWIG_fail;
16200 }
16201 arg4 = (int) SWIG_AsInt(obj3);
16202 if (PyErr_Occurred()) SWIG_fail;
16203 arg5 = (int) SWIG_AsInt(obj4);
16204 if (PyErr_Occurred()) SWIG_fail;
16205 if (obj5) {
16206 arg6 = (int) SWIG_AsInt(obj5);
16207 if (PyErr_Occurred()) SWIG_fail;
16208 }
16209 if (obj6) {
16210 arg7 = (bool const) SWIG_AsBool(obj6);
16211 if (PyErr_Occurred()) SWIG_fail;
16212 }
16213 {
16214 PyThreadState* __tstate = wxPyBeginAllowThreads();
16215 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16216
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 {
16221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16222 }
16223 return resultobj;
16224 fail:
16225 return NULL;
16226 }
16227
16228
16229 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16230 PyObject *resultobj;
16231 wxImageList *arg1 = (wxImageList *) 0 ;
16232 int result;
16233 PyObject * obj0 = 0 ;
16234 char *kwnames[] = {
16235 (char *) "self", NULL
16236 };
16237
16238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16241 {
16242 PyThreadState* __tstate = wxPyBeginAllowThreads();
16243 result = (int)(arg1)->GetImageCount();
16244
16245 wxPyEndAllowThreads(__tstate);
16246 if (PyErr_Occurred()) SWIG_fail;
16247 }
16248 resultobj = SWIG_FromInt((int)result);
16249 return resultobj;
16250 fail:
16251 return NULL;
16252 }
16253
16254
16255 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16256 PyObject *resultobj;
16257 wxImageList *arg1 = (wxImageList *) 0 ;
16258 int arg2 ;
16259 bool result;
16260 PyObject * obj0 = 0 ;
16261 PyObject * obj1 = 0 ;
16262 char *kwnames[] = {
16263 (char *) "self",(char *) "index", NULL
16264 };
16265
16266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16269 arg2 = (int) SWIG_AsInt(obj1);
16270 if (PyErr_Occurred()) SWIG_fail;
16271 {
16272 PyThreadState* __tstate = wxPyBeginAllowThreads();
16273 result = (bool)(arg1)->Remove(arg2);
16274
16275 wxPyEndAllowThreads(__tstate);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 {
16279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16280 }
16281 return resultobj;
16282 fail:
16283 return NULL;
16284 }
16285
16286
16287 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16288 PyObject *resultobj;
16289 wxImageList *arg1 = (wxImageList *) 0 ;
16290 bool result;
16291 PyObject * obj0 = 0 ;
16292 char *kwnames[] = {
16293 (char *) "self", NULL
16294 };
16295
16296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16299 {
16300 PyThreadState* __tstate = wxPyBeginAllowThreads();
16301 result = (bool)(arg1)->RemoveAll();
16302
16303 wxPyEndAllowThreads(__tstate);
16304 if (PyErr_Occurred()) SWIG_fail;
16305 }
16306 {
16307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16308 }
16309 return resultobj;
16310 fail:
16311 return NULL;
16312 }
16313
16314
16315 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16316 PyObject *resultobj;
16317 wxImageList *arg1 = (wxImageList *) 0 ;
16318 int arg2 ;
16319 int *arg3 = 0 ;
16320 int *arg4 = 0 ;
16321 int temp3 ;
16322 int temp4 ;
16323 PyObject * obj0 = 0 ;
16324 PyObject * obj1 = 0 ;
16325 char *kwnames[] = {
16326 (char *) "self",(char *) "index", NULL
16327 };
16328
16329 arg3 = &temp3;
16330 arg4 = &temp4;
16331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16334 arg2 = (int) SWIG_AsInt(obj1);
16335 if (PyErr_Occurred()) SWIG_fail;
16336 {
16337 PyThreadState* __tstate = wxPyBeginAllowThreads();
16338 (arg1)->GetSize(arg2,*arg3,*arg4);
16339
16340 wxPyEndAllowThreads(__tstate);
16341 if (PyErr_Occurred()) SWIG_fail;
16342 }
16343 Py_INCREF(Py_None); resultobj = Py_None;
16344 {
16345 PyObject *o = PyInt_FromLong((long) (*arg3));
16346 resultobj = t_output_helper(resultobj,o);
16347 }
16348 {
16349 PyObject *o = PyInt_FromLong((long) (*arg4));
16350 resultobj = t_output_helper(resultobj,o);
16351 }
16352 return resultobj;
16353 fail:
16354 return NULL;
16355 }
16356
16357
16358 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16359 PyObject *obj;
16360 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16361 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16362 Py_INCREF(obj);
16363 return Py_BuildValue((char *)"");
16364 }
16365 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16366 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16367 return 1;
16368 }
16369
16370
16371 static PyObject *_wrap_NORMAL_FONT_get() {
16372 PyObject *pyobj;
16373
16374 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16375 return pyobj;
16376 }
16377
16378
16379 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16380 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16381 return 1;
16382 }
16383
16384
16385 static PyObject *_wrap_SMALL_FONT_get() {
16386 PyObject *pyobj;
16387
16388 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16389 return pyobj;
16390 }
16391
16392
16393 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16394 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16395 return 1;
16396 }
16397
16398
16399 static PyObject *_wrap_ITALIC_FONT_get() {
16400 PyObject *pyobj;
16401
16402 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16403 return pyobj;
16404 }
16405
16406
16407 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16408 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16409 return 1;
16410 }
16411
16412
16413 static PyObject *_wrap_SWISS_FONT_get() {
16414 PyObject *pyobj;
16415
16416 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16417 return pyobj;
16418 }
16419
16420
16421 static int _wrap_RED_PEN_set(PyObject *_val) {
16422 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16423 return 1;
16424 }
16425
16426
16427 static PyObject *_wrap_RED_PEN_get() {
16428 PyObject *pyobj;
16429
16430 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16431 return pyobj;
16432 }
16433
16434
16435 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16436 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16437 return 1;
16438 }
16439
16440
16441 static PyObject *_wrap_CYAN_PEN_get() {
16442 PyObject *pyobj;
16443
16444 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16445 return pyobj;
16446 }
16447
16448
16449 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16450 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16451 return 1;
16452 }
16453
16454
16455 static PyObject *_wrap_GREEN_PEN_get() {
16456 PyObject *pyobj;
16457
16458 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16459 return pyobj;
16460 }
16461
16462
16463 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16464 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16465 return 1;
16466 }
16467
16468
16469 static PyObject *_wrap_BLACK_PEN_get() {
16470 PyObject *pyobj;
16471
16472 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16473 return pyobj;
16474 }
16475
16476
16477 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16478 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16479 return 1;
16480 }
16481
16482
16483 static PyObject *_wrap_WHITE_PEN_get() {
16484 PyObject *pyobj;
16485
16486 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16487 return pyobj;
16488 }
16489
16490
16491 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16492 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16493 return 1;
16494 }
16495
16496
16497 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16498 PyObject *pyobj;
16499
16500 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16501 return pyobj;
16502 }
16503
16504
16505 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16506 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16507 return 1;
16508 }
16509
16510
16511 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16512 PyObject *pyobj;
16513
16514 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16515 return pyobj;
16516 }
16517
16518
16519 static int _wrap_GREY_PEN_set(PyObject *_val) {
16520 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16521 return 1;
16522 }
16523
16524
16525 static PyObject *_wrap_GREY_PEN_get() {
16526 PyObject *pyobj;
16527
16528 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16529 return pyobj;
16530 }
16531
16532
16533 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16534 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16535 return 1;
16536 }
16537
16538
16539 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16540 PyObject *pyobj;
16541
16542 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16543 return pyobj;
16544 }
16545
16546
16547 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16548 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16549 return 1;
16550 }
16551
16552
16553 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16554 PyObject *pyobj;
16555
16556 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16557 return pyobj;
16558 }
16559
16560
16561 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16562 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16563 return 1;
16564 }
16565
16566
16567 static PyObject *_wrap_BLUE_BRUSH_get() {
16568 PyObject *pyobj;
16569
16570 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16571 return pyobj;
16572 }
16573
16574
16575 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16576 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16577 return 1;
16578 }
16579
16580
16581 static PyObject *_wrap_GREEN_BRUSH_get() {
16582 PyObject *pyobj;
16583
16584 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16585 return pyobj;
16586 }
16587
16588
16589 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16590 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16591 return 1;
16592 }
16593
16594
16595 static PyObject *_wrap_WHITE_BRUSH_get() {
16596 PyObject *pyobj;
16597
16598 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16599 return pyobj;
16600 }
16601
16602
16603 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16604 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16605 return 1;
16606 }
16607
16608
16609 static PyObject *_wrap_BLACK_BRUSH_get() {
16610 PyObject *pyobj;
16611
16612 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16613 return pyobj;
16614 }
16615
16616
16617 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16618 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16619 return 1;
16620 }
16621
16622
16623 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16624 PyObject *pyobj;
16625
16626 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16627 return pyobj;
16628 }
16629
16630
16631 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16632 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16633 return 1;
16634 }
16635
16636
16637 static PyObject *_wrap_CYAN_BRUSH_get() {
16638 PyObject *pyobj;
16639
16640 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16641 return pyobj;
16642 }
16643
16644
16645 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16646 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16647 return 1;
16648 }
16649
16650
16651 static PyObject *_wrap_RED_BRUSH_get() {
16652 PyObject *pyobj;
16653
16654 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16655 return pyobj;
16656 }
16657
16658
16659 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16660 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16661 return 1;
16662 }
16663
16664
16665 static PyObject *_wrap_GREY_BRUSH_get() {
16666 PyObject *pyobj;
16667
16668 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16669 return pyobj;
16670 }
16671
16672
16673 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16674 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16675 return 1;
16676 }
16677
16678
16679 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16680 PyObject *pyobj;
16681
16682 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16683 return pyobj;
16684 }
16685
16686
16687 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16688 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16689 return 1;
16690 }
16691
16692
16693 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16694 PyObject *pyobj;
16695
16696 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16697 return pyobj;
16698 }
16699
16700
16701 static int _wrap_BLACK_set(PyObject *_val) {
16702 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16703 return 1;
16704 }
16705
16706
16707 static PyObject *_wrap_BLACK_get() {
16708 PyObject *pyobj;
16709
16710 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16711 return pyobj;
16712 }
16713
16714
16715 static int _wrap_WHITE_set(PyObject *_val) {
16716 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16717 return 1;
16718 }
16719
16720
16721 static PyObject *_wrap_WHITE_get() {
16722 PyObject *pyobj;
16723
16724 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16725 return pyobj;
16726 }
16727
16728
16729 static int _wrap_RED_set(PyObject *_val) {
16730 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16731 return 1;
16732 }
16733
16734
16735 static PyObject *_wrap_RED_get() {
16736 PyObject *pyobj;
16737
16738 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16739 return pyobj;
16740 }
16741
16742
16743 static int _wrap_BLUE_set(PyObject *_val) {
16744 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16745 return 1;
16746 }
16747
16748
16749 static PyObject *_wrap_BLUE_get() {
16750 PyObject *pyobj;
16751
16752 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16753 return pyobj;
16754 }
16755
16756
16757 static int _wrap_GREEN_set(PyObject *_val) {
16758 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16759 return 1;
16760 }
16761
16762
16763 static PyObject *_wrap_GREEN_get() {
16764 PyObject *pyobj;
16765
16766 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16767 return pyobj;
16768 }
16769
16770
16771 static int _wrap_CYAN_set(PyObject *_val) {
16772 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16773 return 1;
16774 }
16775
16776
16777 static PyObject *_wrap_CYAN_get() {
16778 PyObject *pyobj;
16779
16780 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16781 return pyobj;
16782 }
16783
16784
16785 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16786 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16787 return 1;
16788 }
16789
16790
16791 static PyObject *_wrap_LIGHT_GREY_get() {
16792 PyObject *pyobj;
16793
16794 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16795 return pyobj;
16796 }
16797
16798
16799 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16800 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16801 return 1;
16802 }
16803
16804
16805 static PyObject *_wrap_STANDARD_CURSOR_get() {
16806 PyObject *pyobj;
16807
16808 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16809 return pyobj;
16810 }
16811
16812
16813 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16814 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16815 return 1;
16816 }
16817
16818
16819 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16820 PyObject *pyobj;
16821
16822 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16823 return pyobj;
16824 }
16825
16826
16827 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16828 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16829 return 1;
16830 }
16831
16832
16833 static PyObject *_wrap_CROSS_CURSOR_get() {
16834 PyObject *pyobj;
16835
16836 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16837 return pyobj;
16838 }
16839
16840
16841 static int _wrap_NullBitmap_set(PyObject *_val) {
16842 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16843 return 1;
16844 }
16845
16846
16847 static PyObject *_wrap_NullBitmap_get() {
16848 PyObject *pyobj;
16849
16850 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16851 return pyobj;
16852 }
16853
16854
16855 static int _wrap_NullIcon_set(PyObject *_val) {
16856 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16857 return 1;
16858 }
16859
16860
16861 static PyObject *_wrap_NullIcon_get() {
16862 PyObject *pyobj;
16863
16864 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
16865 return pyobj;
16866 }
16867
16868
16869 static int _wrap_NullCursor_set(PyObject *_val) {
16870 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16871 return 1;
16872 }
16873
16874
16875 static PyObject *_wrap_NullCursor_get() {
16876 PyObject *pyobj;
16877
16878 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
16879 return pyobj;
16880 }
16881
16882
16883 static int _wrap_NullPen_set(PyObject *_val) {
16884 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16885 return 1;
16886 }
16887
16888
16889 static PyObject *_wrap_NullPen_get() {
16890 PyObject *pyobj;
16891
16892 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
16893 return pyobj;
16894 }
16895
16896
16897 static int _wrap_NullBrush_set(PyObject *_val) {
16898 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16899 return 1;
16900 }
16901
16902
16903 static PyObject *_wrap_NullBrush_get() {
16904 PyObject *pyobj;
16905
16906 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
16907 return pyobj;
16908 }
16909
16910
16911 static int _wrap_NullPalette_set(PyObject *_val) {
16912 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16913 return 1;
16914 }
16915
16916
16917 static PyObject *_wrap_NullPalette_get() {
16918 PyObject *pyobj;
16919
16920 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
16921 return pyobj;
16922 }
16923
16924
16925 static int _wrap_NullFont_set(PyObject *_val) {
16926 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16927 return 1;
16928 }
16929
16930
16931 static PyObject *_wrap_NullFont_get() {
16932 PyObject *pyobj;
16933
16934 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
16935 return pyobj;
16936 }
16937
16938
16939 static int _wrap_NullColour_set(PyObject *_val) {
16940 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16941 return 1;
16942 }
16943
16944
16945 static PyObject *_wrap_NullColour_get() {
16946 PyObject *pyobj;
16947
16948 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
16949 return pyobj;
16950 }
16951
16952
16953 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj;
16955 wxPenList *arg1 = (wxPenList *) 0 ;
16956 wxPen *arg2 = (wxPen *) 0 ;
16957 PyObject * obj0 = 0 ;
16958 PyObject * obj1 = 0 ;
16959 char *kwnames[] = {
16960 (char *) "self",(char *) "pen", NULL
16961 };
16962
16963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
16964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16966 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
16967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16968 {
16969 PyThreadState* __tstate = wxPyBeginAllowThreads();
16970 (arg1)->AddPen(arg2);
16971
16972 wxPyEndAllowThreads(__tstate);
16973 if (PyErr_Occurred()) SWIG_fail;
16974 }
16975 Py_INCREF(Py_None); resultobj = Py_None;
16976 return resultobj;
16977 fail:
16978 return NULL;
16979 }
16980
16981
16982 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16983 PyObject *resultobj;
16984 wxPenList *arg1 = (wxPenList *) 0 ;
16985 wxColour *arg2 = 0 ;
16986 int arg3 ;
16987 int arg4 ;
16988 wxPen *result;
16989 wxColour temp2 ;
16990 PyObject * obj0 = 0 ;
16991 PyObject * obj1 = 0 ;
16992 PyObject * obj2 = 0 ;
16993 PyObject * obj3 = 0 ;
16994 char *kwnames[] = {
16995 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16996 };
16997
16998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17001 {
17002 arg2 = &temp2;
17003 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17004 }
17005 arg3 = (int) SWIG_AsInt(obj2);
17006 if (PyErr_Occurred()) SWIG_fail;
17007 arg4 = (int) SWIG_AsInt(obj3);
17008 if (PyErr_Occurred()) SWIG_fail;
17009 {
17010 PyThreadState* __tstate = wxPyBeginAllowThreads();
17011 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17012
17013 wxPyEndAllowThreads(__tstate);
17014 if (PyErr_Occurred()) SWIG_fail;
17015 }
17016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17017 return resultobj;
17018 fail:
17019 return NULL;
17020 }
17021
17022
17023 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17024 PyObject *resultobj;
17025 wxPenList *arg1 = (wxPenList *) 0 ;
17026 wxPen *arg2 = (wxPen *) 0 ;
17027 PyObject * obj0 = 0 ;
17028 PyObject * obj1 = 0 ;
17029 char *kwnames[] = {
17030 (char *) "self",(char *) "pen", NULL
17031 };
17032
17033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17036 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17038 {
17039 PyThreadState* __tstate = wxPyBeginAllowThreads();
17040 (arg1)->RemovePen(arg2);
17041
17042 wxPyEndAllowThreads(__tstate);
17043 if (PyErr_Occurred()) SWIG_fail;
17044 }
17045 Py_INCREF(Py_None); resultobj = Py_None;
17046 return resultobj;
17047 fail:
17048 return NULL;
17049 }
17050
17051
17052 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17053 PyObject *resultobj;
17054 wxPenList *arg1 = (wxPenList *) 0 ;
17055 int result;
17056 PyObject * obj0 = 0 ;
17057 char *kwnames[] = {
17058 (char *) "self", NULL
17059 };
17060
17061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17064 {
17065 PyThreadState* __tstate = wxPyBeginAllowThreads();
17066 result = (int)(arg1)->GetCount();
17067
17068 wxPyEndAllowThreads(__tstate);
17069 if (PyErr_Occurred()) SWIG_fail;
17070 }
17071 resultobj = SWIG_FromInt((int)result);
17072 return resultobj;
17073 fail:
17074 return NULL;
17075 }
17076
17077
17078 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17079 PyObject *obj;
17080 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17081 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17082 Py_INCREF(obj);
17083 return Py_BuildValue((char *)"");
17084 }
17085 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17086 PyObject *resultobj;
17087 wxBrushList *arg1 = (wxBrushList *) 0 ;
17088 wxBrush *arg2 = (wxBrush *) 0 ;
17089 PyObject * obj0 = 0 ;
17090 PyObject * obj1 = 0 ;
17091 char *kwnames[] = {
17092 (char *) "self",(char *) "brush", NULL
17093 };
17094
17095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17098 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17100 {
17101 PyThreadState* __tstate = wxPyBeginAllowThreads();
17102 (arg1)->AddBrush(arg2);
17103
17104 wxPyEndAllowThreads(__tstate);
17105 if (PyErr_Occurred()) SWIG_fail;
17106 }
17107 Py_INCREF(Py_None); resultobj = Py_None;
17108 return resultobj;
17109 fail:
17110 return NULL;
17111 }
17112
17113
17114 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17115 PyObject *resultobj;
17116 wxBrushList *arg1 = (wxBrushList *) 0 ;
17117 wxColour *arg2 = 0 ;
17118 int arg3 ;
17119 wxBrush *result;
17120 wxColour temp2 ;
17121 PyObject * obj0 = 0 ;
17122 PyObject * obj1 = 0 ;
17123 PyObject * obj2 = 0 ;
17124 char *kwnames[] = {
17125 (char *) "self",(char *) "colour",(char *) "style", NULL
17126 };
17127
17128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17131 {
17132 arg2 = &temp2;
17133 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17134 }
17135 arg3 = (int) SWIG_AsInt(obj2);
17136 if (PyErr_Occurred()) SWIG_fail;
17137 {
17138 PyThreadState* __tstate = wxPyBeginAllowThreads();
17139 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17140
17141 wxPyEndAllowThreads(__tstate);
17142 if (PyErr_Occurred()) SWIG_fail;
17143 }
17144 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17145 return resultobj;
17146 fail:
17147 return NULL;
17148 }
17149
17150
17151 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17152 PyObject *resultobj;
17153 wxBrushList *arg1 = (wxBrushList *) 0 ;
17154 wxBrush *arg2 = (wxBrush *) 0 ;
17155 PyObject * obj0 = 0 ;
17156 PyObject * obj1 = 0 ;
17157 char *kwnames[] = {
17158 (char *) "self",(char *) "brush", NULL
17159 };
17160
17161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17164 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17166 {
17167 PyThreadState* __tstate = wxPyBeginAllowThreads();
17168 (arg1)->RemoveBrush(arg2);
17169
17170 wxPyEndAllowThreads(__tstate);
17171 if (PyErr_Occurred()) SWIG_fail;
17172 }
17173 Py_INCREF(Py_None); resultobj = Py_None;
17174 return resultobj;
17175 fail:
17176 return NULL;
17177 }
17178
17179
17180 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17181 PyObject *resultobj;
17182 wxBrushList *arg1 = (wxBrushList *) 0 ;
17183 int result;
17184 PyObject * obj0 = 0 ;
17185 char *kwnames[] = {
17186 (char *) "self", NULL
17187 };
17188
17189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17192 {
17193 PyThreadState* __tstate = wxPyBeginAllowThreads();
17194 result = (int)(arg1)->GetCount();
17195
17196 wxPyEndAllowThreads(__tstate);
17197 if (PyErr_Occurred()) SWIG_fail;
17198 }
17199 resultobj = SWIG_FromInt((int)result);
17200 return resultobj;
17201 fail:
17202 return NULL;
17203 }
17204
17205
17206 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17207 PyObject *obj;
17208 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17209 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17210 Py_INCREF(obj);
17211 return Py_BuildValue((char *)"");
17212 }
17213 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17214 PyObject *resultobj;
17215 wxColourDatabase *result;
17216 char *kwnames[] = {
17217 NULL
17218 };
17219
17220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17221 {
17222 PyThreadState* __tstate = wxPyBeginAllowThreads();
17223 result = (wxColourDatabase *)new wxColourDatabase();
17224
17225 wxPyEndAllowThreads(__tstate);
17226 if (PyErr_Occurred()) SWIG_fail;
17227 }
17228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17229 return resultobj;
17230 fail:
17231 return NULL;
17232 }
17233
17234
17235 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17236 PyObject *resultobj;
17237 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17238 PyObject * obj0 = 0 ;
17239 char *kwnames[] = {
17240 (char *) "self", NULL
17241 };
17242
17243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17246 {
17247 PyThreadState* __tstate = wxPyBeginAllowThreads();
17248 delete arg1;
17249
17250 wxPyEndAllowThreads(__tstate);
17251 if (PyErr_Occurred()) SWIG_fail;
17252 }
17253 Py_INCREF(Py_None); resultobj = Py_None;
17254 return resultobj;
17255 fail:
17256 return NULL;
17257 }
17258
17259
17260 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj;
17262 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17263 wxString *arg2 = 0 ;
17264 wxColour result;
17265 bool temp2 = False ;
17266 PyObject * obj0 = 0 ;
17267 PyObject * obj1 = 0 ;
17268 char *kwnames[] = {
17269 (char *) "self",(char *) "name", NULL
17270 };
17271
17272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17275 {
17276 arg2 = wxString_in_helper(obj1);
17277 if (arg2 == NULL) SWIG_fail;
17278 temp2 = True;
17279 }
17280 {
17281 PyThreadState* __tstate = wxPyBeginAllowThreads();
17282 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17283
17284 wxPyEndAllowThreads(__tstate);
17285 if (PyErr_Occurred()) SWIG_fail;
17286 }
17287 {
17288 wxColour * resultptr;
17289 resultptr = new wxColour((wxColour &) result);
17290 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17291 }
17292 {
17293 if (temp2)
17294 delete arg2;
17295 }
17296 return resultobj;
17297 fail:
17298 {
17299 if (temp2)
17300 delete arg2;
17301 }
17302 return NULL;
17303 }
17304
17305
17306 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17307 PyObject *resultobj;
17308 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17309 wxColour *arg2 = 0 ;
17310 wxString result;
17311 wxColour temp2 ;
17312 PyObject * obj0 = 0 ;
17313 PyObject * obj1 = 0 ;
17314 char *kwnames[] = {
17315 (char *) "self",(char *) "colour", NULL
17316 };
17317
17318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17321 {
17322 arg2 = &temp2;
17323 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17324 }
17325 {
17326 PyThreadState* __tstate = wxPyBeginAllowThreads();
17327 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17328
17329 wxPyEndAllowThreads(__tstate);
17330 if (PyErr_Occurred()) SWIG_fail;
17331 }
17332 {
17333 #if wxUSE_UNICODE
17334 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17335 #else
17336 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17337 #endif
17338 }
17339 return resultobj;
17340 fail:
17341 return NULL;
17342 }
17343
17344
17345 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17346 PyObject *resultobj;
17347 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17348 wxString *arg2 = 0 ;
17349 wxColour *arg3 = 0 ;
17350 bool temp2 = False ;
17351 wxColour temp3 ;
17352 PyObject * obj0 = 0 ;
17353 PyObject * obj1 = 0 ;
17354 PyObject * obj2 = 0 ;
17355 char *kwnames[] = {
17356 (char *) "self",(char *) "name",(char *) "colour", NULL
17357 };
17358
17359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17362 {
17363 arg2 = wxString_in_helper(obj1);
17364 if (arg2 == NULL) SWIG_fail;
17365 temp2 = True;
17366 }
17367 {
17368 arg3 = &temp3;
17369 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17370 }
17371 {
17372 PyThreadState* __tstate = wxPyBeginAllowThreads();
17373 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17374
17375 wxPyEndAllowThreads(__tstate);
17376 if (PyErr_Occurred()) SWIG_fail;
17377 }
17378 Py_INCREF(Py_None); resultobj = Py_None;
17379 {
17380 if (temp2)
17381 delete arg2;
17382 }
17383 return resultobj;
17384 fail:
17385 {
17386 if (temp2)
17387 delete arg2;
17388 }
17389 return NULL;
17390 }
17391
17392
17393 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17394 PyObject *resultobj;
17395 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17396 wxString *arg2 = 0 ;
17397 int arg3 ;
17398 int arg4 ;
17399 int arg5 ;
17400 bool temp2 = False ;
17401 PyObject * obj0 = 0 ;
17402 PyObject * obj1 = 0 ;
17403 PyObject * obj2 = 0 ;
17404 PyObject * obj3 = 0 ;
17405 PyObject * obj4 = 0 ;
17406 char *kwnames[] = {
17407 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17408 };
17409
17410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17413 {
17414 arg2 = wxString_in_helper(obj1);
17415 if (arg2 == NULL) SWIG_fail;
17416 temp2 = True;
17417 }
17418 arg3 = (int) SWIG_AsInt(obj2);
17419 if (PyErr_Occurred()) SWIG_fail;
17420 arg4 = (int) SWIG_AsInt(obj3);
17421 if (PyErr_Occurred()) SWIG_fail;
17422 arg5 = (int) SWIG_AsInt(obj4);
17423 if (PyErr_Occurred()) SWIG_fail;
17424 {
17425 PyThreadState* __tstate = wxPyBeginAllowThreads();
17426 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17427
17428 wxPyEndAllowThreads(__tstate);
17429 if (PyErr_Occurred()) SWIG_fail;
17430 }
17431 Py_INCREF(Py_None); resultobj = Py_None;
17432 {
17433 if (temp2)
17434 delete arg2;
17435 }
17436 return resultobj;
17437 fail:
17438 {
17439 if (temp2)
17440 delete arg2;
17441 }
17442 return NULL;
17443 }
17444
17445
17446 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17447 PyObject *obj;
17448 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17449 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17450 Py_INCREF(obj);
17451 return Py_BuildValue((char *)"");
17452 }
17453 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17454 PyObject *resultobj;
17455 wxFontList *arg1 = (wxFontList *) 0 ;
17456 wxFont *arg2 = (wxFont *) 0 ;
17457 PyObject * obj0 = 0 ;
17458 PyObject * obj1 = 0 ;
17459 char *kwnames[] = {
17460 (char *) "self",(char *) "font", NULL
17461 };
17462
17463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17468 {
17469 PyThreadState* __tstate = wxPyBeginAllowThreads();
17470 (arg1)->AddFont(arg2);
17471
17472 wxPyEndAllowThreads(__tstate);
17473 if (PyErr_Occurred()) SWIG_fail;
17474 }
17475 Py_INCREF(Py_None); resultobj = Py_None;
17476 return resultobj;
17477 fail:
17478 return NULL;
17479 }
17480
17481
17482 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17483 PyObject *resultobj;
17484 wxFontList *arg1 = (wxFontList *) 0 ;
17485 int arg2 ;
17486 int arg3 ;
17487 int arg4 ;
17488 int arg5 ;
17489 bool arg6 = (bool) False ;
17490 wxString const &arg7_defvalue = wxPyEmptyString ;
17491 wxString *arg7 = (wxString *) &arg7_defvalue ;
17492 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17493 wxFont *result;
17494 bool temp7 = False ;
17495 PyObject * obj0 = 0 ;
17496 PyObject * obj1 = 0 ;
17497 PyObject * obj2 = 0 ;
17498 PyObject * obj3 = 0 ;
17499 PyObject * obj4 = 0 ;
17500 PyObject * obj5 = 0 ;
17501 PyObject * obj6 = 0 ;
17502 PyObject * obj7 = 0 ;
17503 char *kwnames[] = {
17504 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17505 };
17506
17507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17510 arg2 = (int) SWIG_AsInt(obj1);
17511 if (PyErr_Occurred()) SWIG_fail;
17512 arg3 = (int) SWIG_AsInt(obj2);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 arg4 = (int) SWIG_AsInt(obj3);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 arg5 = (int) SWIG_AsInt(obj4);
17517 if (PyErr_Occurred()) SWIG_fail;
17518 if (obj5) {
17519 arg6 = (bool) SWIG_AsBool(obj5);
17520 if (PyErr_Occurred()) SWIG_fail;
17521 }
17522 if (obj6) {
17523 {
17524 arg7 = wxString_in_helper(obj6);
17525 if (arg7 == NULL) SWIG_fail;
17526 temp7 = True;
17527 }
17528 }
17529 if (obj7) {
17530 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17531 if (PyErr_Occurred()) SWIG_fail;
17532 }
17533 {
17534 PyThreadState* __tstate = wxPyBeginAllowThreads();
17535 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17536
17537 wxPyEndAllowThreads(__tstate);
17538 if (PyErr_Occurred()) SWIG_fail;
17539 }
17540 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17541 {
17542 if (temp7)
17543 delete arg7;
17544 }
17545 return resultobj;
17546 fail:
17547 {
17548 if (temp7)
17549 delete arg7;
17550 }
17551 return NULL;
17552 }
17553
17554
17555 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17556 PyObject *resultobj;
17557 wxFontList *arg1 = (wxFontList *) 0 ;
17558 wxFont *arg2 = (wxFont *) 0 ;
17559 PyObject * obj0 = 0 ;
17560 PyObject * obj1 = 0 ;
17561 char *kwnames[] = {
17562 (char *) "self",(char *) "font", NULL
17563 };
17564
17565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17568 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17570 {
17571 PyThreadState* __tstate = wxPyBeginAllowThreads();
17572 (arg1)->RemoveFont(arg2);
17573
17574 wxPyEndAllowThreads(__tstate);
17575 if (PyErr_Occurred()) SWIG_fail;
17576 }
17577 Py_INCREF(Py_None); resultobj = Py_None;
17578 return resultobj;
17579 fail:
17580 return NULL;
17581 }
17582
17583
17584 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17585 PyObject *resultobj;
17586 wxFontList *arg1 = (wxFontList *) 0 ;
17587 int result;
17588 PyObject * obj0 = 0 ;
17589 char *kwnames[] = {
17590 (char *) "self", NULL
17591 };
17592
17593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17596 {
17597 PyThreadState* __tstate = wxPyBeginAllowThreads();
17598 result = (int)(arg1)->GetCount();
17599
17600 wxPyEndAllowThreads(__tstate);
17601 if (PyErr_Occurred()) SWIG_fail;
17602 }
17603 resultobj = SWIG_FromInt((int)result);
17604 return resultobj;
17605 fail:
17606 return NULL;
17607 }
17608
17609
17610 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17611 PyObject *obj;
17612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17613 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17614 Py_INCREF(obj);
17615 return Py_BuildValue((char *)"");
17616 }
17617 static int _wrap_TheFontList_set(PyObject *_val) {
17618 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17619 return 1;
17620 }
17621
17622
17623 static PyObject *_wrap_TheFontList_get() {
17624 PyObject *pyobj;
17625
17626 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17627 return pyobj;
17628 }
17629
17630
17631 static int _wrap_ThePenList_set(PyObject *_val) {
17632 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17633 return 1;
17634 }
17635
17636
17637 static PyObject *_wrap_ThePenList_get() {
17638 PyObject *pyobj;
17639
17640 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17641 return pyobj;
17642 }
17643
17644
17645 static int _wrap_TheBrushList_set(PyObject *_val) {
17646 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17647 return 1;
17648 }
17649
17650
17651 static PyObject *_wrap_TheBrushList_get() {
17652 PyObject *pyobj;
17653
17654 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17655 return pyobj;
17656 }
17657
17658
17659 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17660 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17661 return 1;
17662 }
17663
17664
17665 static PyObject *_wrap_TheColourDatabase_get() {
17666 PyObject *pyobj;
17667
17668 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17669 return pyobj;
17670 }
17671
17672
17673 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17674 PyObject *resultobj;
17675 wxEffects *result;
17676 char *kwnames[] = {
17677 NULL
17678 };
17679
17680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17681 {
17682 PyThreadState* __tstate = wxPyBeginAllowThreads();
17683 result = (wxEffects *)new wxEffects();
17684
17685 wxPyEndAllowThreads(__tstate);
17686 if (PyErr_Occurred()) SWIG_fail;
17687 }
17688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17689 return resultobj;
17690 fail:
17691 return NULL;
17692 }
17693
17694
17695 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17696 PyObject *resultobj;
17697 wxEffects *arg1 = (wxEffects *) 0 ;
17698 wxColour result;
17699 PyObject * obj0 = 0 ;
17700 char *kwnames[] = {
17701 (char *) "self", NULL
17702 };
17703
17704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17707 {
17708 PyThreadState* __tstate = wxPyBeginAllowThreads();
17709 result = ((wxEffects const *)arg1)->GetHighlightColour();
17710
17711 wxPyEndAllowThreads(__tstate);
17712 if (PyErr_Occurred()) SWIG_fail;
17713 }
17714 {
17715 wxColour * resultptr;
17716 resultptr = new wxColour((wxColour &) result);
17717 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17718 }
17719 return resultobj;
17720 fail:
17721 return NULL;
17722 }
17723
17724
17725 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17726 PyObject *resultobj;
17727 wxEffects *arg1 = (wxEffects *) 0 ;
17728 wxColour result;
17729 PyObject * obj0 = 0 ;
17730 char *kwnames[] = {
17731 (char *) "self", NULL
17732 };
17733
17734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17737 {
17738 PyThreadState* __tstate = wxPyBeginAllowThreads();
17739 result = ((wxEffects const *)arg1)->GetLightShadow();
17740
17741 wxPyEndAllowThreads(__tstate);
17742 if (PyErr_Occurred()) SWIG_fail;
17743 }
17744 {
17745 wxColour * resultptr;
17746 resultptr = new wxColour((wxColour &) result);
17747 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17748 }
17749 return resultobj;
17750 fail:
17751 return NULL;
17752 }
17753
17754
17755 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17756 PyObject *resultobj;
17757 wxEffects *arg1 = (wxEffects *) 0 ;
17758 wxColour result;
17759 PyObject * obj0 = 0 ;
17760 char *kwnames[] = {
17761 (char *) "self", NULL
17762 };
17763
17764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17767 {
17768 PyThreadState* __tstate = wxPyBeginAllowThreads();
17769 result = ((wxEffects const *)arg1)->GetFaceColour();
17770
17771 wxPyEndAllowThreads(__tstate);
17772 if (PyErr_Occurred()) SWIG_fail;
17773 }
17774 {
17775 wxColour * resultptr;
17776 resultptr = new wxColour((wxColour &) result);
17777 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17778 }
17779 return resultobj;
17780 fail:
17781 return NULL;
17782 }
17783
17784
17785 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17786 PyObject *resultobj;
17787 wxEffects *arg1 = (wxEffects *) 0 ;
17788 wxColour result;
17789 PyObject * obj0 = 0 ;
17790 char *kwnames[] = {
17791 (char *) "self", NULL
17792 };
17793
17794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17797 {
17798 PyThreadState* __tstate = wxPyBeginAllowThreads();
17799 result = ((wxEffects const *)arg1)->GetMediumShadow();
17800
17801 wxPyEndAllowThreads(__tstate);
17802 if (PyErr_Occurred()) SWIG_fail;
17803 }
17804 {
17805 wxColour * resultptr;
17806 resultptr = new wxColour((wxColour &) result);
17807 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17808 }
17809 return resultobj;
17810 fail:
17811 return NULL;
17812 }
17813
17814
17815 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17816 PyObject *resultobj;
17817 wxEffects *arg1 = (wxEffects *) 0 ;
17818 wxColour result;
17819 PyObject * obj0 = 0 ;
17820 char *kwnames[] = {
17821 (char *) "self", NULL
17822 };
17823
17824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17827 {
17828 PyThreadState* __tstate = wxPyBeginAllowThreads();
17829 result = ((wxEffects const *)arg1)->GetDarkShadow();
17830
17831 wxPyEndAllowThreads(__tstate);
17832 if (PyErr_Occurred()) SWIG_fail;
17833 }
17834 {
17835 wxColour * resultptr;
17836 resultptr = new wxColour((wxColour &) result);
17837 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17838 }
17839 return resultobj;
17840 fail:
17841 return NULL;
17842 }
17843
17844
17845 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17846 PyObject *resultobj;
17847 wxEffects *arg1 = (wxEffects *) 0 ;
17848 wxColour *arg2 = 0 ;
17849 wxColour temp2 ;
17850 PyObject * obj0 = 0 ;
17851 PyObject * obj1 = 0 ;
17852 char *kwnames[] = {
17853 (char *) "self",(char *) "c", NULL
17854 };
17855
17856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17859 {
17860 arg2 = &temp2;
17861 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17862 }
17863 {
17864 PyThreadState* __tstate = wxPyBeginAllowThreads();
17865 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17866
17867 wxPyEndAllowThreads(__tstate);
17868 if (PyErr_Occurred()) SWIG_fail;
17869 }
17870 Py_INCREF(Py_None); resultobj = Py_None;
17871 return resultobj;
17872 fail:
17873 return NULL;
17874 }
17875
17876
17877 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17878 PyObject *resultobj;
17879 wxEffects *arg1 = (wxEffects *) 0 ;
17880 wxColour *arg2 = 0 ;
17881 wxColour temp2 ;
17882 PyObject * obj0 = 0 ;
17883 PyObject * obj1 = 0 ;
17884 char *kwnames[] = {
17885 (char *) "self",(char *) "c", NULL
17886 };
17887
17888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17891 {
17892 arg2 = &temp2;
17893 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17894 }
17895 {
17896 PyThreadState* __tstate = wxPyBeginAllowThreads();
17897 (arg1)->SetLightShadow((wxColour const &)*arg2);
17898
17899 wxPyEndAllowThreads(__tstate);
17900 if (PyErr_Occurred()) SWIG_fail;
17901 }
17902 Py_INCREF(Py_None); resultobj = Py_None;
17903 return resultobj;
17904 fail:
17905 return NULL;
17906 }
17907
17908
17909 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17910 PyObject *resultobj;
17911 wxEffects *arg1 = (wxEffects *) 0 ;
17912 wxColour *arg2 = 0 ;
17913 wxColour temp2 ;
17914 PyObject * obj0 = 0 ;
17915 PyObject * obj1 = 0 ;
17916 char *kwnames[] = {
17917 (char *) "self",(char *) "c", NULL
17918 };
17919
17920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17923 {
17924 arg2 = &temp2;
17925 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17926 }
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 (arg1)->SetFaceColour((wxColour const &)*arg2);
17930
17931 wxPyEndAllowThreads(__tstate);
17932 if (PyErr_Occurred()) SWIG_fail;
17933 }
17934 Py_INCREF(Py_None); resultobj = Py_None;
17935 return resultobj;
17936 fail:
17937 return NULL;
17938 }
17939
17940
17941 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17942 PyObject *resultobj;
17943 wxEffects *arg1 = (wxEffects *) 0 ;
17944 wxColour *arg2 = 0 ;
17945 wxColour temp2 ;
17946 PyObject * obj0 = 0 ;
17947 PyObject * obj1 = 0 ;
17948 char *kwnames[] = {
17949 (char *) "self",(char *) "c", NULL
17950 };
17951
17952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17955 {
17956 arg2 = &temp2;
17957 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17958 }
17959 {
17960 PyThreadState* __tstate = wxPyBeginAllowThreads();
17961 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17962
17963 wxPyEndAllowThreads(__tstate);
17964 if (PyErr_Occurred()) SWIG_fail;
17965 }
17966 Py_INCREF(Py_None); resultobj = Py_None;
17967 return resultobj;
17968 fail:
17969 return NULL;
17970 }
17971
17972
17973 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17974 PyObject *resultobj;
17975 wxEffects *arg1 = (wxEffects *) 0 ;
17976 wxColour *arg2 = 0 ;
17977 wxColour temp2 ;
17978 PyObject * obj0 = 0 ;
17979 PyObject * obj1 = 0 ;
17980 char *kwnames[] = {
17981 (char *) "self",(char *) "c", NULL
17982 };
17983
17984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
17985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17987 {
17988 arg2 = &temp2;
17989 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17990 }
17991 {
17992 PyThreadState* __tstate = wxPyBeginAllowThreads();
17993 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17994
17995 wxPyEndAllowThreads(__tstate);
17996 if (PyErr_Occurred()) SWIG_fail;
17997 }
17998 Py_INCREF(Py_None); resultobj = Py_None;
17999 return resultobj;
18000 fail:
18001 return NULL;
18002 }
18003
18004
18005 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18006 PyObject *resultobj;
18007 wxEffects *arg1 = (wxEffects *) 0 ;
18008 wxColour *arg2 = 0 ;
18009 wxColour *arg3 = 0 ;
18010 wxColour *arg4 = 0 ;
18011 wxColour *arg5 = 0 ;
18012 wxColour *arg6 = 0 ;
18013 wxColour temp2 ;
18014 wxColour temp3 ;
18015 wxColour temp4 ;
18016 wxColour temp5 ;
18017 wxColour temp6 ;
18018 PyObject * obj0 = 0 ;
18019 PyObject * obj1 = 0 ;
18020 PyObject * obj2 = 0 ;
18021 PyObject * obj3 = 0 ;
18022 PyObject * obj4 = 0 ;
18023 PyObject * obj5 = 0 ;
18024 char *kwnames[] = {
18025 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18026 };
18027
18028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18031 {
18032 arg2 = &temp2;
18033 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18034 }
18035 {
18036 arg3 = &temp3;
18037 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18038 }
18039 {
18040 arg4 = &temp4;
18041 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18042 }
18043 {
18044 arg5 = &temp5;
18045 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18046 }
18047 {
18048 arg6 = &temp6;
18049 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18050 }
18051 {
18052 PyThreadState* __tstate = wxPyBeginAllowThreads();
18053 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18054
18055 wxPyEndAllowThreads(__tstate);
18056 if (PyErr_Occurred()) SWIG_fail;
18057 }
18058 Py_INCREF(Py_None); resultobj = Py_None;
18059 return resultobj;
18060 fail:
18061 return NULL;
18062 }
18063
18064
18065 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18066 PyObject *resultobj;
18067 wxEffects *arg1 = (wxEffects *) 0 ;
18068 wxDC *arg2 = 0 ;
18069 wxRect *arg3 = 0 ;
18070 int arg4 = (int) 1 ;
18071 wxRect temp3 ;
18072 PyObject * obj0 = 0 ;
18073 PyObject * obj1 = 0 ;
18074 PyObject * obj2 = 0 ;
18075 PyObject * obj3 = 0 ;
18076 char *kwnames[] = {
18077 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18078 };
18079
18080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18084 SWIG_POINTER_EXCEPTION | 0)) == -1)
18085 SWIG_fail;
18086 if (arg2 == NULL) {
18087 PyErr_SetString(PyExc_TypeError,"null reference");
18088 SWIG_fail;
18089 }
18090 {
18091 arg3 = &temp3;
18092 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18093 }
18094 if (obj3) {
18095 arg4 = (int) SWIG_AsInt(obj3);
18096 if (PyErr_Occurred()) SWIG_fail;
18097 }
18098 {
18099 PyThreadState* __tstate = wxPyBeginAllowThreads();
18100 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18101
18102 wxPyEndAllowThreads(__tstate);
18103 if (PyErr_Occurred()) SWIG_fail;
18104 }
18105 Py_INCREF(Py_None); resultobj = Py_None;
18106 return resultobj;
18107 fail:
18108 return NULL;
18109 }
18110
18111
18112 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18113 PyObject *resultobj;
18114 wxEffects *arg1 = (wxEffects *) 0 ;
18115 wxRect *arg2 = 0 ;
18116 wxDC *arg3 = 0 ;
18117 wxBitmap *arg4 = 0 ;
18118 bool result;
18119 wxRect temp2 ;
18120 PyObject * obj0 = 0 ;
18121 PyObject * obj1 = 0 ;
18122 PyObject * obj2 = 0 ;
18123 PyObject * obj3 = 0 ;
18124 char *kwnames[] = {
18125 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18126 };
18127
18128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18131 {
18132 arg2 = &temp2;
18133 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18134 }
18135 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18136 SWIG_POINTER_EXCEPTION | 0)) == -1)
18137 SWIG_fail;
18138 if (arg3 == NULL) {
18139 PyErr_SetString(PyExc_TypeError,"null reference");
18140 SWIG_fail;
18141 }
18142 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18143 SWIG_POINTER_EXCEPTION | 0)) == -1)
18144 SWIG_fail;
18145 if (arg4 == NULL) {
18146 PyErr_SetString(PyExc_TypeError,"null reference");
18147 SWIG_fail;
18148 }
18149 {
18150 PyThreadState* __tstate = wxPyBeginAllowThreads();
18151 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18152
18153 wxPyEndAllowThreads(__tstate);
18154 if (PyErr_Occurred()) SWIG_fail;
18155 }
18156 {
18157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18158 }
18159 return resultobj;
18160 fail:
18161 return NULL;
18162 }
18163
18164
18165 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18166 PyObject *obj;
18167 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18168 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18169 Py_INCREF(obj);
18170 return Py_BuildValue((char *)"");
18171 }
18172 static PyMethodDef SwigMethods[] = {
18173 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18174 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18175 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18176 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18177 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18178 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18179 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18180 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18181 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18182 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18183 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18184 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18185 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18186 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18187 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18188 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18189 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18190 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18191 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18192 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18193 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18194 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18195 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18196 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18197 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18198 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18199 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18200 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18201 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18202 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18203 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18204 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18205 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18206 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18207 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18208 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18209 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18210 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18211 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18212 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18213 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18214 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18215 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18216 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18217 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18218 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18219 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18220 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18221 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18222 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18223 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18224 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18225 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18226 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18227 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18228 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18229 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18230 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18231 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18232 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18233 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18234 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18235 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18236 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18237 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18238 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18239 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18240 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18241 { (char *)"new_EmptyBitmap", _wrap_new_EmptyBitmap, METH_VARARGS },
18242 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18243 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18244 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18245 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18246 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18247 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18248 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18249 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18250 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18251 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18252 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18253 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18254 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18255 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18256 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18257 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18258 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18259 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18260 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18262 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18263 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18264 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18265 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18267 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18268 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18272 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18273 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18276 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18280 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18281 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18282 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18283 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18284 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18285 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18288 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18295 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18296 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18297 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18298 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18299 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18302 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18307 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18315 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18321 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18323 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18329 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18343 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18367 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18376 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18396 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18433 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18441 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18448 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18470 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18472 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18480 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18606 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18610 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18611 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18612 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18615 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18617 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18622 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18624 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18626 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18628 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18630 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18636 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18638 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18640 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18642 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18654 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18659 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18664 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18671 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18676 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18691 { NULL, NULL }
18692 };
18693
18694
18695 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18696
18697 static void *_p_wxControlTo_p_wxWindow(void *x) {
18698 return (void *)((wxWindow *) ((wxControl *) x));
18699 }
18700 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18701 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18702 }
18703 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18704 return (void *)((wxWindow *) ((wxMenuBar *) x));
18705 }
18706 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18707 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18708 }
18709 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18710 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18711 }
18712 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18713 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18714 }
18715 static void *_p_wxPenTo_p_wxObject(void *x) {
18716 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18717 }
18718 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18719 return (void *)((wxObject *) ((wxRegionIterator *) x));
18720 }
18721 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18722 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18723 }
18724 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18725 return (void *)((wxObject *) ((wxSizerItem *) x));
18726 }
18727 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18728 return (void *)((wxObject *) ((wxColourDatabase *) x));
18729 }
18730 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18731 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18732 }
18733 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18734 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18735 }
18736 static void *_p_wxIconTo_p_wxObject(void *x) {
18737 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18738 }
18739 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18740 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18741 }
18742 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18743 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18744 }
18745 static void *_p_wxSizerTo_p_wxObject(void *x) {
18746 return (void *)((wxObject *) ((wxSizer *) x));
18747 }
18748 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18749 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18750 }
18751 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18752 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18753 }
18754 static void *_p_wxPenListTo_p_wxObject(void *x) {
18755 return (void *)((wxObject *) ((wxPenList *) x));
18756 }
18757 static void *_p_wxEventTo_p_wxObject(void *x) {
18758 return (void *)((wxObject *) ((wxEvent *) x));
18759 }
18760 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18761 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18762 }
18763 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18764 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18765 }
18766 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18767 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18768 }
18769 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18770 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18771 }
18772 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18773 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18774 }
18775 static void *_p_wxDCTo_p_wxObject(void *x) {
18776 return (void *)((wxObject *) ((wxDC *) x));
18777 }
18778 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18779 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18780 }
18781 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18782 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18783 }
18784 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18785 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18786 }
18787 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18788 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18789 }
18790 static void *_p_wxControlTo_p_wxObject(void *x) {
18791 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18792 }
18793 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18794 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18795 }
18796 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18797 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18798 }
18799 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18800 return (void *)((wxObject *) ((wxFSFile *) x));
18801 }
18802 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18803 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18804 }
18805 static void *_p_wxRegionTo_p_wxObject(void *x) {
18806 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18807 }
18808 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18809 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18810 }
18811 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18812 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18813 }
18814 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18815 return (void *)((wxObject *) ((wxGDIObject *) x));
18816 }
18817 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18818 return (void *)((wxObject *) ((wxEffects *) x));
18819 }
18820 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18821 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18822 }
18823 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18824 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18825 }
18826 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18827 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18828 }
18829 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18830 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18831 }
18832 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18833 return (void *)((wxObject *) ((wxMenuItem *) x));
18834 }
18835 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18836 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18837 }
18838 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18839 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18840 }
18841 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18842 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18843 }
18844 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18845 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18846 }
18847 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18848 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18849 }
18850 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18851 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18852 }
18853 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18854 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18855 }
18856 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18857 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18858 }
18859 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18860 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18861 }
18862 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18863 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18864 }
18865 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18866 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18867 }
18868 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18869 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18870 }
18871 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18872 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18873 }
18874 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18875 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18876 }
18877 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18878 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18879 }
18880 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18881 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18882 }
18883 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18884 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18885 }
18886 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18887 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18888 }
18889 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18890 return (void *)((wxObject *) ((wxImageHandler *) x));
18891 }
18892 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18893 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18894 }
18895 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18896 return (void *)((wxObject *) ((wxEvtHandler *) x));
18897 }
18898 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18899 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18900 }
18901 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18902 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18903 }
18904 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18905 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18906 }
18907 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18908 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18909 }
18910 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18911 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18912 }
18913 static void *_p_wxImageTo_p_wxObject(void *x) {
18914 return (void *)((wxObject *) ((wxImage *) x));
18915 }
18916 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18917 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18918 }
18919 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18920 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18921 }
18922 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18923 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18924 }
18925 static void *_p_wxImageListTo_p_wxObject(void *x) {
18926 return (void *)((wxObject *) ((wxImageList *) x));
18927 }
18928 static void *_p_wxCursorTo_p_wxObject(void *x) {
18929 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18930 }
18931 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18932 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18933 }
18934 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18935 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18936 }
18937 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18938 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18939 }
18940 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18941 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18942 }
18943 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18944 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18945 }
18946 static void *_p_wxWindowTo_p_wxObject(void *x) {
18947 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18948 }
18949 static void *_p_wxMenuTo_p_wxObject(void *x) {
18950 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18951 }
18952 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18953 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18954 }
18955 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18956 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18957 }
18958 static void *_p_wxBrushListTo_p_wxObject(void *x) {
18959 return (void *)((wxObject *) ((wxBrushList *) x));
18960 }
18961 static void *_p_wxPyPenTo_p_wxObject(void *x) {
18962 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
18963 }
18964 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18965 return (void *)((wxObject *) ((wxFileSystem *) x));
18966 }
18967 static void *_p_wxBitmapTo_p_wxObject(void *x) {
18968 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18969 }
18970 static void *_p_wxMaskTo_p_wxObject(void *x) {
18971 return (void *)((wxObject *) ((wxMask *) x));
18972 }
18973 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18974 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18975 }
18976 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18977 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18978 }
18979 static void *_p_wxPyAppTo_p_wxObject(void *x) {
18980 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18981 }
18982 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18983 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18984 }
18985 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18986 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18987 }
18988 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18989 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18990 }
18991 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18992 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18993 }
18994 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18995 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18996 }
18997 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18998 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18999 }
19000 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19001 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19002 }
19003 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19004 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19005 }
19006 static void *_p_wxFontTo_p_wxObject(void *x) {
19007 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19008 }
19009 static void *_p_wxBrushTo_p_wxObject(void *x) {
19010 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19011 }
19012 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19013 return (void *)((wxObject *) ((wxMetaFile *) x));
19014 }
19015 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19016 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19017 }
19018 static void *_p_wxColourTo_p_wxObject(void *x) {
19019 return (void *)((wxObject *) ((wxColour *) x));
19020 }
19021 static void *_p_wxFontListTo_p_wxObject(void *x) {
19022 return (void *)((wxObject *) ((wxFontList *) x));
19023 }
19024 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19025 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19026 }
19027 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19029 }
19030 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19031 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19032 }
19033 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19034 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19035 }
19036 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19037 return (void *)((wxDC *) ((wxScreenDC *) x));
19038 }
19039 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19040 return (void *)((wxDC *) ((wxMirrorDC *) x));
19041 }
19042 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19043 return (void *)((wxDC *) ((wxMemoryDC *) x));
19044 }
19045 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19046 return (void *)((wxDC *) ((wxWindowDC *) x));
19047 }
19048 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19049 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19050 }
19051 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19052 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19053 }
19054 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19055 return (void *)((wxDC *) ((wxClientDC *) x));
19056 }
19057 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19058 return (void *)((wxDC *) ((wxPaintDC *) x));
19059 }
19060 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19061 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19062 }
19063 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19064 return (void *)((wxDC *) ((wxPrinterDC *) x));
19065 }
19066 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19067 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19068 }
19069 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19070 return (void *)((wxGDIObject *) ((wxIcon *) x));
19071 }
19072 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19073 return (void *)((wxGDIObject *) ((wxPalette *) x));
19074 }
19075 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19076 return (void *)((wxGDIObject *) ((wxPen *) x));
19077 }
19078 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19079 return (void *)((wxGDIObject *) ((wxFont *) x));
19080 }
19081 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19082 return (void *)((wxGDIObject *) ((wxCursor *) x));
19083 }
19084 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19085 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19086 }
19087 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19088 return (void *)((wxGDIObject *) ((wxRegion *) x));
19089 }
19090 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19091 return (void *)((wxGDIObject *) ((wxBrush *) x));
19092 }
19093 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19094 return (void *)((wxPen *) ((wxPyPen *) x));
19095 }
19096 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}};
19097 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}};
19098 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}};
19099 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}};
19100 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}};
19101 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}};
19102 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}};
19103 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}};
19104 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}};
19105 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}};
19106 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}};
19107 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}};
19108 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}};
19109 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}};
19110 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}};
19111 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}};
19112 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}};
19113 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}};
19114 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}};
19115 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}};
19116 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}};
19117 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}};
19118 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_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_wxPCXHandler", _p_wxPCXHandlerTo_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_wxPyPen", _p_wxPyPenTo_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}};
19119 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}};
19120 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}};
19121 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}};
19122 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}};
19123 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}};
19124 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}};
19125 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}};
19126 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}};
19127 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}};
19128 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}};
19129 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}};
19130 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}};
19131 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}};
19132 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_wxPyPen", _p_wxPyPenTo_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}};
19133 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}};
19134 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}};
19135 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}};
19136 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}};
19137 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}};
19138 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}};
19139 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}};
19140 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}};
19141 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}};
19142 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen, 0, 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19143 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}};
19144 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}};
19145 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}};
19146 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0, 0, 0, 0},{"_p_wxPyPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19147 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}};
19148 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}};
19149 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}};
19150 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}};
19151 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}};
19152
19153 static swig_type_info *swig_types_initial[] = {
19154 _swigt__p_wxPostScriptDC,
19155 _swigt__p_wxBrush,
19156 _swigt__p_wxColour,
19157 _swigt__p_wxDC,
19158 _swigt__p_wxMirrorDC,
19159 _swigt__p_byte,
19160 _swigt__p_wxPyFontEnumerator,
19161 _swigt__p_char,
19162 _swigt__p_wxIconLocation,
19163 _swigt__p_wxImage,
19164 _swigt__p_wxMetaFileDC,
19165 _swigt__p_wxMask,
19166 _swigt__p_wxSize,
19167 _swigt__p_wxFont,
19168 _swigt__p_wxWindow,
19169 _swigt__p_double,
19170 _swigt__p_wxMemoryDC,
19171 _swigt__p_wxFontMapper,
19172 _swigt__p_wxEffects,
19173 _swigt__p_wxNativeEncodingInfo,
19174 _swigt__p_wxPalette,
19175 _swigt__p_wxBitmap,
19176 _swigt__p_wxObject,
19177 _swigt__p_wxRegionIterator,
19178 _swigt__p_wxRect,
19179 _swigt__p_wxString,
19180 _swigt__p_wxPrinterDC,
19181 _swigt__p_wxIconBundle,
19182 _swigt__p_wxPoint,
19183 _swigt__p_wxDash,
19184 _swigt__p_wxScreenDC,
19185 _swigt__p_wxCursor,
19186 _swigt__p_wxClientDC,
19187 _swigt__p_wxBufferedDC,
19188 _swigt__p_wxImageList,
19189 _swigt__p_unsigned_char,
19190 _swigt__p_wxGDIObject,
19191 _swigt__p_wxIcon,
19192 _swigt__p_wxLocale,
19193 _swigt__p_wxRegion,
19194 _swigt__p_wxConfigBase,
19195 _swigt__p_wxLanguageInfo,
19196 _swigt__p_wxWindowDC,
19197 _swigt__p_wxPrintData,
19198 _swigt__p_wxBrushList,
19199 _swigt__p_wxFontList,
19200 _swigt__p_wxPen,
19201 _swigt__p_wxBufferedPaintDC,
19202 _swigt__p_wxPaintDC,
19203 _swigt__p_wxPenList,
19204 _swigt__p_wxPyPen,
19205 _swigt__p_int,
19206 _swigt__p_wxMetaFile,
19207 _swigt__p_wxNativeFontInfo,
19208 _swigt__p_wxEncodingConverter,
19209 _swigt__p_wxColourDatabase,
19210 0
19211 };
19212
19213
19214 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19215
19216 static swig_const_info swig_const_table[] = {
19217 {0}};
19218
19219 #ifdef __cplusplus
19220 }
19221 #endif
19222
19223 #ifdef __cplusplus
19224 extern "C"
19225 #endif
19226 SWIGEXPORT(void) SWIG_init(void) {
19227 static PyObject *SWIG_globals = 0;
19228 static int typeinit = 0;
19229 PyObject *m, *d;
19230 int i;
19231 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19232 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19233 d = PyModule_GetDict(m);
19234
19235 if (!typeinit) {
19236 for (i = 0; swig_types_initial[i]; i++) {
19237 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19238 }
19239 typeinit = 1;
19240 }
19241 SWIG_InstallConstants(d,swig_const_table);
19242
19243 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19244 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19245 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19246 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19247 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19248 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19249 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19250 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19251 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19252 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19253 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19254 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19255 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19256 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19257 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19258 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19259 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19260 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19261 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19262 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19263 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19264 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19265 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19266 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19267 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19268 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19269 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19270 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19271 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19272 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19273 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19274 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19275 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19276 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19277 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19278 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19279 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19280 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19281 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19282 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19283 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19284 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19285 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19286 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19287 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19288 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19289 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19290 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19291 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19292 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19293 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19294 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19295 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19296 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19297 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19298 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19299 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19300 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19301 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19302 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19303 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19304 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19305 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19306 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19307 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19308 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19309 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19310 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19311 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19312 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19313 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19314 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19315 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19316 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19317 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19318 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19319 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19320 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19321 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19322 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19323 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19324 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19325 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19326 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19327 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19328 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19329 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19330 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19331 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19332 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19333 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19334 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19335 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19336 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19337 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19338 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19339 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19340 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19341 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19342 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19343 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19344 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19345 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19346 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19347 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19348 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19349 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19350 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19351 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19352 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19353 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19354 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19355 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19356 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19357 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19358 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19359 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19360 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19361 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19362 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19363 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19364 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19365 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19366 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19367 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19368 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19369 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19370
19371 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19372
19373 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19374 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19375 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19376 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19377 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19378 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19379 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19380 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19381 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19382 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19383 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19384 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19385 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19386 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19387 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19388 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19389 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19390 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19391 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19392 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19393 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19394 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19395 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19396 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19397 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19398 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19399 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19400 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19401 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19402 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19403 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19404 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19405 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19406 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19407 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19408 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19409 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19410 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19411 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19412 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19413 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19414 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19415 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19416 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19417 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19418 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19419 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19420 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19421 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19422 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19423 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19424 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19425 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19426 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19427 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19428 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19429 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19430 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19431 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19432 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19433 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19434 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19435 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19436 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19437 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19438 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19439 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19440 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19441 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19442 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19443 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19444 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19445 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19446 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19447 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19448 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19449 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19450 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19451 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19452 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19453 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19454 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19455 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19456 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19457 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19458 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19459 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19460 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19461 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19462 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19463 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19464 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19465 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19466 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19467 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19468 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19469 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19470 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19471 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19472 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19473 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19474 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19475 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19476 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19477 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19478 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19479 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19480 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19481 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19482 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19483 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19484 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19485 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19486 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19487 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19488 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19489 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19490 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19491 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19492 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19493 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19494 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19495 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19496 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19497 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19498 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19499 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19500 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19501 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19502 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19503 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19504 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19505 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19506 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19507 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19508 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19509 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19510 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19511 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19512 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19513 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19514 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19515 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19516 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19517 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19518 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19519 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19520 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19521 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19522 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19523 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19524 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19525 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19526 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19527 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19528 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19529 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19530 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19531 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19532 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19533 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19534 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19535 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19536 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19537 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19538 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19539 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19540 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19541 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19542 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19543 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19544 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19545 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19546 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19547 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19548 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19549 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19550 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19551 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19552 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19553 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19554 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19555 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19556 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19557 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19558 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19559 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19560 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19561 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19562 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19563 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19564 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19565 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19566 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19567 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19568 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19569 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19570 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19571 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19572 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19573 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19574 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19575 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19576 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19577 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19578 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19579 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19580 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19581 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19582 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19583 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19584 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19585 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19586 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19587 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19588 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19589 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19590 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19591 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19592 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19593 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19594 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19595 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19596 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19597 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19598 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19599 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19600 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19601 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19602 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19603 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19604 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19605 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19606 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19607 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19608 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19609 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19610 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19611 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19612 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19613 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19614 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19615 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19616 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19617 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19618 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19619 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19620 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19621 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19622 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19623 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19624 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19625 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19626 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19627 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19628 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19629 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19630 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19631 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19632 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19633 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19634 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19635 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19636 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19637 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19638 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19639 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19640 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19641 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19642 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19643 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19644 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19645 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19646 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19647 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19648 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19649 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19650 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19651 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19652 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19653 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19654 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19655 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19656 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19657 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19658 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19659 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19660 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19661 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19662 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19663 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19664 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19665 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19666 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19667 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19668 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19669 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19670 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19671 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19672 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19673
19674 // Work around a chicken/egg problem in drawlist.cpp
19675 wxPyDrawList_SetAPIPtr();
19676
19677 }
19678