]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
210 #define SWIGTYPE_p_wxBrush swig_types[1]
211 #define SWIGTYPE_p_wxColour swig_types[2]
212 #define SWIGTYPE_p_wxDC swig_types[3]
213 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
214 #define SWIGTYPE_p_byte swig_types[5]
215 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
216 #define SWIGTYPE_p_char swig_types[7]
217 #define SWIGTYPE_p_wxIconLocation swig_types[8]
218 #define SWIGTYPE_p_wxImage swig_types[9]
219 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220 #define SWIGTYPE_p_wxMask swig_types[11]
221 #define SWIGTYPE_p_wxFont swig_types[12]
222 #define SWIGTYPE_p_wxWindow swig_types[13]
223 #define SWIGTYPE_p_wxSize swig_types[14]
224 #define SWIGTYPE_p_double swig_types[15]
225 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
226 #define SWIGTYPE_p_wxFontMapper swig_types[17]
227 #define SWIGTYPE_p_wxEffects swig_types[18]
228 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229 #define SWIGTYPE_p_wxPalette swig_types[20]
230 #define SWIGTYPE_p_wxBitmap swig_types[21]
231 #define SWIGTYPE_p_wxObject swig_types[22]
232 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
233 #define SWIGTYPE_p_wxRect swig_types[24]
234 #define SWIGTYPE_p_wxString swig_types[25]
235 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
236 #define SWIGTYPE_p_wxIconBundle swig_types[27]
237 #define SWIGTYPE_p_wxPoint swig_types[28]
238 #define SWIGTYPE_p_wxDash swig_types[29]
239 #define SWIGTYPE_p_wxScreenDC swig_types[30]
240 #define SWIGTYPE_p_wxCursor swig_types[31]
241 #define SWIGTYPE_p_wxClientDC swig_types[32]
242 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
243 #define SWIGTYPE_p_wxImageList swig_types[34]
244 #define SWIGTYPE_p_unsigned_char swig_types[35]
245 #define SWIGTYPE_p_wxGDIObject swig_types[36]
246 #define SWIGTYPE_p_wxIcon swig_types[37]
247 #define SWIGTYPE_p_wxLocale swig_types[38]
248 #define SWIGTYPE_p_wxRegion swig_types[39]
249 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
250 #define SWIGTYPE_p_wxConfigBase swig_types[41]
251 #define SWIGTYPE_p_wxWindowDC swig_types[42]
252 #define SWIGTYPE_p_wxPrintData swig_types[43]
253 #define SWIGTYPE_p_wxBrushList swig_types[44]
254 #define SWIGTYPE_p_wxFontList swig_types[45]
255 #define SWIGTYPE_p_wxPen swig_types[46]
256 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257 #define SWIGTYPE_p_wxPaintDC swig_types[48]
258 #define SWIGTYPE_p_wxPenList swig_types[49]
259 #define SWIGTYPE_p_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(unsigned long)
367 SWIG_AsUnsignedLong(PyObject * obj)
368 {
369 if (PyLong_Check(obj)) {
370 return PyLong_AsUnsignedLong(obj);
371 } else {
372 long i = PyInt_AsLong(obj);
373 if ( !PyErr_Occurred() && (i < 0)) {
374 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
375 }
376 return i;
377 }
378 }
379
380
381 SWIGSTATICINLINE(unsigned char)
382 SWIG_AsUnsignedChar(PyObject *obj)
383 {
384 return swig_numeric_cast(unsigned char,
385 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
386 "unsigned char", UCHAR_MAX));
387 }
388
389
390 SWIGSTATICINLINE(int)
391 SWIG_CheckUnsignedChar(PyObject* obj)
392 {
393 SWIG_AsUnsignedChar(obj);
394 if (PyErr_Occurred()) {
395 PyErr_Clear();
396 return 0;
397 } else {
398 return 1;
399 }
400 }
401
402
403 SWIGSTATICINLINE(int)
404 SWIG_CheckUnsignedLong(PyObject* obj)
405 {
406 SWIG_AsUnsignedLong(obj);
407 if (PyErr_Occurred()) {
408 PyErr_Clear();
409 return 0;
410 } else {
411 return 1;
412 }
413 }
414
415 PyObject *wxColour_Get(wxColour *self){
416 PyObject* rv = PyTuple_New(3);
417 int red = -1;
418 int green = -1;
419 int blue = -1;
420 if (self->Ok()) {
421 red = self->Red();
422 green = self->Green();
423 blue = self->Blue();
424 }
425 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
426 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
427 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
428 return rv;
429 }
430 unsigned long wxColour_GetRGB(wxColour *self){
431 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
432 }
433
434 SWIGSTATICINLINE(PyObject* )
435 SWIG_FromUnsignedLong(unsigned long value)
436 {
437 return (value > LONG_MAX) ?
438 PyLong_FromUnsignedLong(value)
439 : PyInt_FromLong(swig_numeric_cast(long,value));
440 }
441
442
443 SWIGSTATICINLINE(long)
444 SWIG_CheckLongInRange(long value, const char* type,
445 long min_value, long max_value)
446 {
447 if (!PyErr_Occurred()) {
448 if (value < min_value) {
449 PyObject *err =
450 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
451 value, type, min_value);
452
453 PyErr_SetObject(PyExc_OverflowError, err);
454 Py_DECREF(err);
455 } else if (value > max_value) {
456 PyObject *err =
457 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
458 value, type, max_value);
459 PyErr_SetObject(PyExc_OverflowError, err);
460 Py_DECREF(err);
461 }
462 }
463 return value;
464 }
465
466
467 SWIGSTATICINLINE(long)
468 SWIG_AsLong(PyObject * obj)
469 {
470 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
471 }
472
473
474 #if INT_MAX != LONG_MAX
475 SWIGSTATICINLINE(int)
476 SWIG_AsInt(PyObject *obj)
477 {
478 return swig_numeric_cast(int,
479 SWIG_CheckLongInRange(SWIG_AsLong(obj),
480 "int", INT_MIN, INT_MAX));
481 }
482 #else
483 #define SWIG_AsInt SWIG_AsLong
484 #endif
485
486
487 SWIGSTATICINLINE(int)
488 SWIG_CheckInt(PyObject* obj)
489 {
490 SWIG_AsInt(obj);
491 if (PyErr_Occurred()) {
492 PyErr_Clear();
493 return 0;
494 } else {
495 return 1;
496 }
497 }
498
499
500 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
501 PyObject* o2;
502 PyObject* o3;
503
504 if (!target) {
505 target = o;
506 } else if (target == Py_None) {
507 Py_DECREF(Py_None);
508 target = o;
509 } else {
510 if (!PyTuple_Check(target)) {
511 o2 = target;
512 target = PyTuple_New(1);
513 PyTuple_SetItem(target, 0, o2);
514 }
515 o3 = PyTuple_New(1);
516 PyTuple_SetItem(o3, 0, o);
517
518 o2 = target;
519 target = PySequence_Concat(o2, o3);
520 Py_DECREF(o2);
521 Py_DECREF(o3);
522 }
523 return target;
524 }
525
526 PyObject *wxPen_GetDashes(wxPen *self){
527 wxDash* dashes;
528 int count = self->GetDashes(&dashes);
529 wxPyBeginBlockThreads();
530 PyObject* retval = PyList_New(0);
531 for (int x=0; x<count; x++)
532 PyList_Append(retval, PyInt_FromLong(dashes[x]));
533 wxPyEndBlockThreads();
534 return retval;
535 }
536 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
537 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
538
539 wxPyPen::~wxPyPen()
540 {
541 if (m_dash)
542 delete [] m_dash;
543 }
544
545 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
546 {
547 if (m_dash)
548 delete [] m_dash;
549 m_dash = new wxDash[nb_dashes];
550 for (int i=0; i<nb_dashes; i++) {
551 m_dash[i] = dash[i];
552 }
553 wxPen::SetDashes(nb_dashes, m_dash);
554 }
555
556
557 #include <wx/image.h>
558
559 static char** ConvertListOfStrings(PyObject* listOfStrings) {
560 char** cArray = NULL;
561 int count;
562
563 if (!PyList_Check(listOfStrings)) {
564 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
565 return NULL;
566 }
567 count = PyList_Size(listOfStrings);
568 cArray = new char*[count];
569
570 for(int x=0; x<count; x++) {
571 // TODO: Need some validation and error checking here
572 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
573 }
574 return cArray;
575 }
576
577
578 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
579 char** cArray = NULL;
580 wxBitmap* bmp;
581
582 cArray = ConvertListOfStrings(listOfStrings);
583 if (! cArray)
584 return NULL;
585 bmp = new wxBitmap(cArray);
586 delete [] cArray;
587 return bmp;
588 }
589 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
590 char* buf;
591 int length;
592 PyString_AsStringAndSize(bits, &buf, &length);
593 return new wxBitmap(buf, width, height, depth);
594 }
595
596 SWIGSTATICINLINE(int)
597 SWIG_CheckLong(PyObject* obj)
598 {
599 SWIG_AsLong(obj);
600 if (PyErr_Occurred()) {
601 PyErr_Clear();
602 return 0;
603 } else {
604 return 1;
605 }
606 }
607
608 void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
609 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
610 wxMask *mask = new wxMask(*self, colour);
611 self->SetMask(mask);
612 }
613 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
614 if ( !colour.Ok() )
615 return new wxMask(bitmap, *wxBLACK);
616 else
617 return new wxMask(bitmap, colour);
618 }
619
620 #include <wx/iconbndl.h>
621
622 wxIcon *new_wxIcon(wxBitmap const &bmp){
623 wxIcon* icon = new wxIcon();
624 icon->CopyFromBitmap(bmp);
625 return icon;
626 }
627 wxIcon *new_wxIcon(PyObject *listOfStrings){
628 char** cArray = NULL;
629 wxIcon* icon;
630
631 cArray = ConvertListOfStrings(listOfStrings);
632 if (! cArray)
633 return NULL;
634 icon = new wxIcon(cArray);
635 delete [] cArray;
636 return icon;
637 }
638 void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
639 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
640
641 return new wxIconLocation(*filename, num);
642
643
644
645 }
646 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
647
648 self->SetIndex(num);
649
650
651
652 }
653 int wxIconLocation_GetIndex(wxIconLocation *self){
654
655 return self->GetIndex();
656
657
658
659 }
660 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
661 #ifdef __WXGTK__
662 wxCHECK_MSG(False, NULL,
663 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
664 #else
665 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
666 #endif
667 }
668 void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
669
670
671 void wxRegionIterator_Next(wxRegionIterator *self){
672 (*self) ++;
673 }
674 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
675 return self->operator bool();
676 }
677
678 #include <wx/fontutil.h>
679 #include <wx/fontmap.h>
680 #include <wx/fontenum.h>
681
682 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
683 return self->ToString();
684 }
685
686 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
687 { wxPyRaiseNotImplemented(); return NULL; }
688
689 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
690 { wxPyRaiseNotImplemented(); return False; }
691
692 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
693 wxFontEncoding alt_enc;
694 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
695 return PyInt_FromLong(alt_enc);
696 else {
697 Py_INCREF(Py_None);
698 return Py_None;
699 }
700 }
701 wxFont *new_wxFont(wxString const &info){
702 wxNativeFontInfo nfi;
703 nfi.FromString(info);
704 return new wxFont(nfi);
705 }
706 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
707 return wxFont::New(pointSize, family, flags, face, encoding);
708 }
709 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
710 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
711
712 class wxPyFontEnumerator : public wxFontEnumerator {
713 public:
714 wxPyFontEnumerator() {}
715 ~wxPyFontEnumerator() {}
716
717 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
718 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
719
720 PYPRIVATE;
721 };
722
723 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
724 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
725
726
727 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
728 wxArrayString* arr = self->GetEncodings();
729 return wxArrayString2PyList_helper(*arr);
730 }
731 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
732 wxArrayString* arr = self->GetFacenames();
733 return wxArrayString2PyList_helper(*arr);
734 }
735
736
737
738 #include "wx/wxPython/pydrawxxx.h"
739
740 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
741 wxColour col;
742 self->GetPixel(x, y, &col);
743 return col;
744 }
745 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
746 wxColour col;
747 self->GetPixel(pt, &col);
748 return col;
749 }
750
751 SWIGSTATICINLINE(double)
752 SWIG_AsDouble(PyObject *obj)
753 {
754 double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
755 #if HAVE_LONG_LONG
756 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
757 #else
758 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
759 #endif
760 if (PyErr_Occurred()) {
761 PyErr_Clear();
762 PyErr_SetString(PyExc_TypeError, "a double is expected");
763 }
764 return val;
765 }
766
767
768 SWIGSTATICINLINE(int)
769 SWIG_CheckDouble(PyObject* obj)
770 {
771 SWIG_AsDouble(obj);
772 if (PyErr_Occurred()) {
773 PyErr_Clear();
774 return 0;
775 } else {
776 return 1;
777 }
778 }
779
780 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
781 wxRect rv;
782 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
783 return rv;
784 }
785 wxRect wxDC_GetClippingRect(wxDC *self){
786 wxRect rect;
787 self->GetClippingBox(rect);
788 return rect;
789 }
790 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
791 wxArrayInt widths;
792 self->GetPartialTextExtents(text, widths);
793 return widths;
794 }
795 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
796 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
797 }
798 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
799 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
800 }
801 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
802 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
803 }
804 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
805 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
806 }
807 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
808 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
809 }
810 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
811 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
812 }
813
814 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
815 *x1 = dc->MinX();
816 *y1 = dc->MinY();
817 *x2 = dc->MaxX();
818 *y2 = dc->MaxY();
819 }
820
821
822 //-=-=-=-=-=-=-=-=-=-=-
823
824 #if 1
825 // Use the standard wxBufferedDC
826 #include <wx/dcbuffer.h>
827
828 #else
829
830 // Or, temporarily put a set of classes here similar to the old buffered DC
831 // classes until the real ones can be fixed to work "correctly" again.
832
833 class wxBufferedDC : public wxMemoryDC
834 {
835 private:
836 wxDC *m_dc;
837 wxBitmap m_buffer;
838
839 public:
840
841 wxBufferedDC() : m_dc( 0 ) {}
842
843 wxBufferedDC( wxDC *dc, const wxBitmap &buffer )
844 : m_dc( dc ), m_buffer( buffer )
845 {
846 SelectObject( m_buffer );
847 }
848
849 wxBufferedDC( wxDC *dc, const wxSize &area )
850 : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() )
851 {
852 SelectObject( m_buffer );
853 }
854
855 ~wxBufferedDC() {
856 if( m_dc != 0 )
857 UnMask();
858 }
859
860
861 void Init( wxDC *dc, const wxBitmap &buffer ) {
862 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
863 _T("wxBufferedDC already initialised") );
864 m_dc = dc;
865 m_buffer = buffer;
866 SelectObject( m_buffer );
867 }
868
869 void Init( wxDC *dc, const wxSize &area ) {
870 wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap,
871 _T("wxBufferedDC already initialised") );
872 m_dc = dc;
873 m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() );
874 SelectObject( m_buffer );
875 }
876
877 void UnMask() {
878 wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") );
879 m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 );
880 m_dc = 0;
881 }
882 };
883
884
885 class wxBufferedPaintDC : public wxBufferedDC
886 {
887 private:
888 wxPaintDC m_paintdc;
889
890 public:
891 wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap )
892 : m_paintdc( window )
893 {
894 window->PrepareDC( m_paintdc );
895
896 if( buffer != wxNullBitmap )
897 Init( &m_paintdc, buffer );
898 else
899 Init( &m_paintdc, window->GetClientSize() );
900 }
901
902 ~wxBufferedPaintDC() {
903 UnMask();
904 }
905 };
906
907 #endif
908 //-=-=-=-=-=-=-=-=-=-=-
909
910
911 #include <wx/dcps.h>
912
913
914 #include <wx/metafile.h>
915
916
917
918 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
919 self->AddColour(name, wxColour(red, green, blue));
920 }
921
922 #include <wx/effects.h>
923
924 #ifdef __cplusplus
925 extern "C" {
926 #endif
927 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
928 PyObject *resultobj;
929 wxGDIObject *result;
930 char *kwnames[] = {
931 NULL
932 };
933
934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
935 {
936 PyThreadState* __tstate = wxPyBeginAllowThreads();
937 result = (wxGDIObject *)new wxGDIObject();
938
939 wxPyEndAllowThreads(__tstate);
940 if (PyErr_Occurred()) SWIG_fail;
941 }
942 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
943 return resultobj;
944 fail:
945 return NULL;
946 }
947
948
949 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
950 PyObject *resultobj;
951 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
952 PyObject * obj0 = 0 ;
953 char *kwnames[] = {
954 (char *) "self", NULL
955 };
956
957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
960 {
961 PyThreadState* __tstate = wxPyBeginAllowThreads();
962 delete arg1;
963
964 wxPyEndAllowThreads(__tstate);
965 if (PyErr_Occurred()) SWIG_fail;
966 }
967 Py_INCREF(Py_None); resultobj = Py_None;
968 return resultobj;
969 fail:
970 return NULL;
971 }
972
973
974 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
975 PyObject *resultobj;
976 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
977 bool result;
978 PyObject * obj0 = 0 ;
979 char *kwnames[] = {
980 (char *) "self", NULL
981 };
982
983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
986 {
987 PyThreadState* __tstate = wxPyBeginAllowThreads();
988 result = (bool)(arg1)->GetVisible();
989
990 wxPyEndAllowThreads(__tstate);
991 if (PyErr_Occurred()) SWIG_fail;
992 }
993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
994 return resultobj;
995 fail:
996 return NULL;
997 }
998
999
1000 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1001 PyObject *resultobj;
1002 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1003 bool arg2 ;
1004 PyObject * obj0 = 0 ;
1005 PyObject * obj1 = 0 ;
1006 char *kwnames[] = {
1007 (char *) "self",(char *) "visible", NULL
1008 };
1009
1010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
1011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1013 arg2 = (bool) SWIG_AsBool(obj1);
1014 if (PyErr_Occurred()) SWIG_fail;
1015 {
1016 PyThreadState* __tstate = wxPyBeginAllowThreads();
1017 (arg1)->SetVisible(arg2);
1018
1019 wxPyEndAllowThreads(__tstate);
1020 if (PyErr_Occurred()) SWIG_fail;
1021 }
1022 Py_INCREF(Py_None); resultobj = Py_None;
1023 return resultobj;
1024 fail:
1025 return NULL;
1026 }
1027
1028
1029 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1030 PyObject *resultobj;
1031 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1032 bool result;
1033 PyObject * obj0 = 0 ;
1034 char *kwnames[] = {
1035 (char *) "self", NULL
1036 };
1037
1038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1041 {
1042 PyThreadState* __tstate = wxPyBeginAllowThreads();
1043 result = (bool)(arg1)->IsNull();
1044
1045 wxPyEndAllowThreads(__tstate);
1046 if (PyErr_Occurred()) SWIG_fail;
1047 }
1048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1049 return resultobj;
1050 fail:
1051 return NULL;
1052 }
1053
1054
1055 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1056 PyObject *obj;
1057 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1058 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1059 Py_INCREF(obj);
1060 return Py_BuildValue((char *)"");
1061 }
1062 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1063 PyObject *resultobj;
1064 unsigned char arg1 = (unsigned char) 0 ;
1065 unsigned char arg2 = (unsigned char) 0 ;
1066 unsigned char arg3 = (unsigned char) 0 ;
1067 wxColour *result;
1068 PyObject * obj0 = 0 ;
1069 PyObject * obj1 = 0 ;
1070 PyObject * obj2 = 0 ;
1071 char *kwnames[] = {
1072 (char *) "red",(char *) "green",(char *) "blue", NULL
1073 };
1074
1075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1076 if (obj0) {
1077 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1078 if (PyErr_Occurred()) SWIG_fail;
1079 }
1080 if (obj1) {
1081 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1082 if (PyErr_Occurred()) SWIG_fail;
1083 }
1084 if (obj2) {
1085 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1086 if (PyErr_Occurred()) SWIG_fail;
1087 }
1088 {
1089 PyThreadState* __tstate = wxPyBeginAllowThreads();
1090 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1091
1092 wxPyEndAllowThreads(__tstate);
1093 if (PyErr_Occurred()) SWIG_fail;
1094 }
1095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1096 return resultobj;
1097 fail:
1098 return NULL;
1099 }
1100
1101
1102 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1103 PyObject *resultobj;
1104 wxString *arg1 = 0 ;
1105 wxColour *result;
1106 bool temp1 = False ;
1107 PyObject * obj0 = 0 ;
1108 char *kwnames[] = {
1109 (char *) "colorName", NULL
1110 };
1111
1112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1113 {
1114 arg1 = wxString_in_helper(obj0);
1115 if (arg1 == NULL) SWIG_fail;
1116 temp1 = True;
1117 }
1118 {
1119 PyThreadState* __tstate = wxPyBeginAllowThreads();
1120 result = (wxColour *)new wxColour((wxString const &)*arg1);
1121
1122 wxPyEndAllowThreads(__tstate);
1123 if (PyErr_Occurred()) SWIG_fail;
1124 }
1125 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1126 {
1127 if (temp1)
1128 delete arg1;
1129 }
1130 return resultobj;
1131 fail:
1132 {
1133 if (temp1)
1134 delete arg1;
1135 }
1136 return NULL;
1137 }
1138
1139
1140 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1141 PyObject *resultobj;
1142 unsigned long arg1 ;
1143 wxColour *result;
1144 PyObject * obj0 = 0 ;
1145 char *kwnames[] = {
1146 (char *) "colRGB", NULL
1147 };
1148
1149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1150 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1151 if (PyErr_Occurred()) SWIG_fail;
1152 {
1153 PyThreadState* __tstate = wxPyBeginAllowThreads();
1154 result = (wxColour *)new wxColour(arg1);
1155
1156 wxPyEndAllowThreads(__tstate);
1157 if (PyErr_Occurred()) SWIG_fail;
1158 }
1159 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1160 return resultobj;
1161 fail:
1162 return NULL;
1163 }
1164
1165
1166 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1167 PyObject *resultobj;
1168 wxColour *arg1 = (wxColour *) 0 ;
1169 PyObject * obj0 = 0 ;
1170 char *kwnames[] = {
1171 (char *) "self", NULL
1172 };
1173
1174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1177 {
1178 PyThreadState* __tstate = wxPyBeginAllowThreads();
1179 delete arg1;
1180
1181 wxPyEndAllowThreads(__tstate);
1182 if (PyErr_Occurred()) SWIG_fail;
1183 }
1184 Py_INCREF(Py_None); resultobj = Py_None;
1185 return resultobj;
1186 fail:
1187 return NULL;
1188 }
1189
1190
1191 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1192 PyObject *resultobj;
1193 wxColour *arg1 = (wxColour *) 0 ;
1194 unsigned char result;
1195 PyObject * obj0 = 0 ;
1196 char *kwnames[] = {
1197 (char *) "self", NULL
1198 };
1199
1200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1203 {
1204 PyThreadState* __tstate = wxPyBeginAllowThreads();
1205 result = (unsigned char)(arg1)->Red();
1206
1207 wxPyEndAllowThreads(__tstate);
1208 if (PyErr_Occurred()) SWIG_fail;
1209 }
1210 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1211 return resultobj;
1212 fail:
1213 return NULL;
1214 }
1215
1216
1217 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1218 PyObject *resultobj;
1219 wxColour *arg1 = (wxColour *) 0 ;
1220 unsigned char result;
1221 PyObject * obj0 = 0 ;
1222 char *kwnames[] = {
1223 (char *) "self", NULL
1224 };
1225
1226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1229 {
1230 PyThreadState* __tstate = wxPyBeginAllowThreads();
1231 result = (unsigned char)(arg1)->Green();
1232
1233 wxPyEndAllowThreads(__tstate);
1234 if (PyErr_Occurred()) SWIG_fail;
1235 }
1236 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1237 return resultobj;
1238 fail:
1239 return NULL;
1240 }
1241
1242
1243 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1244 PyObject *resultobj;
1245 wxColour *arg1 = (wxColour *) 0 ;
1246 unsigned char result;
1247 PyObject * obj0 = 0 ;
1248 char *kwnames[] = {
1249 (char *) "self", NULL
1250 };
1251
1252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1255 {
1256 PyThreadState* __tstate = wxPyBeginAllowThreads();
1257 result = (unsigned char)(arg1)->Blue();
1258
1259 wxPyEndAllowThreads(__tstate);
1260 if (PyErr_Occurred()) SWIG_fail;
1261 }
1262 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1263 return resultobj;
1264 fail:
1265 return NULL;
1266 }
1267
1268
1269 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1270 PyObject *resultobj;
1271 wxColour *arg1 = (wxColour *) 0 ;
1272 bool result;
1273 PyObject * obj0 = 0 ;
1274 char *kwnames[] = {
1275 (char *) "self", NULL
1276 };
1277
1278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1281 {
1282 PyThreadState* __tstate = wxPyBeginAllowThreads();
1283 result = (bool)(arg1)->Ok();
1284
1285 wxPyEndAllowThreads(__tstate);
1286 if (PyErr_Occurred()) SWIG_fail;
1287 }
1288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1289 return resultobj;
1290 fail:
1291 return NULL;
1292 }
1293
1294
1295 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1296 PyObject *resultobj;
1297 wxColour *arg1 = (wxColour *) 0 ;
1298 unsigned char arg2 ;
1299 unsigned char arg3 ;
1300 unsigned char arg4 ;
1301 PyObject * obj0 = 0 ;
1302 PyObject * obj1 = 0 ;
1303 PyObject * obj2 = 0 ;
1304 PyObject * obj3 = 0 ;
1305 char *kwnames[] = {
1306 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1307 };
1308
1309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1312 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1313 if (PyErr_Occurred()) SWIG_fail;
1314 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1315 if (PyErr_Occurred()) SWIG_fail;
1316 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1317 if (PyErr_Occurred()) SWIG_fail;
1318 {
1319 PyThreadState* __tstate = wxPyBeginAllowThreads();
1320 (arg1)->Set(arg2,arg3,arg4);
1321
1322 wxPyEndAllowThreads(__tstate);
1323 if (PyErr_Occurred()) SWIG_fail;
1324 }
1325 Py_INCREF(Py_None); resultobj = Py_None;
1326 return resultobj;
1327 fail:
1328 return NULL;
1329 }
1330
1331
1332 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1333 PyObject *resultobj;
1334 wxColour *arg1 = (wxColour *) 0 ;
1335 unsigned long arg2 ;
1336 PyObject * obj0 = 0 ;
1337 PyObject * obj1 = 0 ;
1338 char *kwnames[] = {
1339 (char *) "self",(char *) "colRGB", NULL
1340 };
1341
1342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1345 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1346 if (PyErr_Occurred()) SWIG_fail;
1347 {
1348 PyThreadState* __tstate = wxPyBeginAllowThreads();
1349 (arg1)->Set(arg2);
1350
1351 wxPyEndAllowThreads(__tstate);
1352 if (PyErr_Occurred()) SWIG_fail;
1353 }
1354 Py_INCREF(Py_None); resultobj = Py_None;
1355 return resultobj;
1356 fail:
1357 return NULL;
1358 }
1359
1360
1361 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1362 PyObject *resultobj;
1363 wxColour *arg1 = (wxColour *) 0 ;
1364 wxString *arg2 = 0 ;
1365 bool temp2 = False ;
1366 PyObject * obj0 = 0 ;
1367 PyObject * obj1 = 0 ;
1368 char *kwnames[] = {
1369 (char *) "self",(char *) "colourName", NULL
1370 };
1371
1372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1375 {
1376 arg2 = wxString_in_helper(obj1);
1377 if (arg2 == NULL) SWIG_fail;
1378 temp2 = True;
1379 }
1380 {
1381 PyThreadState* __tstate = wxPyBeginAllowThreads();
1382 (arg1)->InitFromName((wxString const &)*arg2);
1383
1384 wxPyEndAllowThreads(__tstate);
1385 if (PyErr_Occurred()) SWIG_fail;
1386 }
1387 Py_INCREF(Py_None); resultobj = Py_None;
1388 {
1389 if (temp2)
1390 delete arg2;
1391 }
1392 return resultobj;
1393 fail:
1394 {
1395 if (temp2)
1396 delete arg2;
1397 }
1398 return NULL;
1399 }
1400
1401
1402 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1403 PyObject *resultobj;
1404 wxColour *arg1 = (wxColour *) 0 ;
1405 long result;
1406 PyObject * obj0 = 0 ;
1407 char *kwnames[] = {
1408 (char *) "self", NULL
1409 };
1410
1411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1414 {
1415 PyThreadState* __tstate = wxPyBeginAllowThreads();
1416 result = (long)((wxColour const *)arg1)->GetPixel();
1417
1418 wxPyEndAllowThreads(__tstate);
1419 if (PyErr_Occurred()) SWIG_fail;
1420 }
1421 resultobj = SWIG_FromLong((long)result);
1422 return resultobj;
1423 fail:
1424 return NULL;
1425 }
1426
1427
1428 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1429 PyObject *resultobj;
1430 wxColour *arg1 = (wxColour *) 0 ;
1431 wxColour *arg2 = 0 ;
1432 bool result;
1433 wxColour temp2 ;
1434 PyObject * obj0 = 0 ;
1435 PyObject * obj1 = 0 ;
1436 char *kwnames[] = {
1437 (char *) "self",(char *) "colour", NULL
1438 };
1439
1440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1443 {
1444 arg2 = &temp2;
1445 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1446 }
1447 {
1448 PyThreadState* __tstate = wxPyBeginAllowThreads();
1449 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1450
1451 wxPyEndAllowThreads(__tstate);
1452 if (PyErr_Occurred()) SWIG_fail;
1453 }
1454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1455 return resultobj;
1456 fail:
1457 return NULL;
1458 }
1459
1460
1461 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1462 PyObject *resultobj;
1463 wxColour *arg1 = (wxColour *) 0 ;
1464 wxColour *arg2 = 0 ;
1465 bool result;
1466 wxColour temp2 ;
1467 PyObject * obj0 = 0 ;
1468 PyObject * obj1 = 0 ;
1469 char *kwnames[] = {
1470 (char *) "self",(char *) "colour", NULL
1471 };
1472
1473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1476 {
1477 arg2 = &temp2;
1478 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1479 }
1480 {
1481 PyThreadState* __tstate = wxPyBeginAllowThreads();
1482 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1483
1484 wxPyEndAllowThreads(__tstate);
1485 if (PyErr_Occurred()) SWIG_fail;
1486 }
1487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1488 return resultobj;
1489 fail:
1490 return NULL;
1491 }
1492
1493
1494 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1495 PyObject *resultobj;
1496 wxColour *arg1 = (wxColour *) 0 ;
1497 PyObject *result;
1498 PyObject * obj0 = 0 ;
1499 char *kwnames[] = {
1500 (char *) "self", NULL
1501 };
1502
1503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1506 {
1507 PyThreadState* __tstate = wxPyBeginAllowThreads();
1508 result = (PyObject *)wxColour_Get(arg1);
1509
1510 wxPyEndAllowThreads(__tstate);
1511 if (PyErr_Occurred()) SWIG_fail;
1512 }
1513 resultobj = result;
1514 return resultobj;
1515 fail:
1516 return NULL;
1517 }
1518
1519
1520 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1521 PyObject *resultobj;
1522 wxColour *arg1 = (wxColour *) 0 ;
1523 unsigned long result;
1524 PyObject * obj0 = 0 ;
1525 char *kwnames[] = {
1526 (char *) "self", NULL
1527 };
1528
1529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1532 {
1533 PyThreadState* __tstate = wxPyBeginAllowThreads();
1534 result = (unsigned long)wxColour_GetRGB(arg1);
1535
1536 wxPyEndAllowThreads(__tstate);
1537 if (PyErr_Occurred()) SWIG_fail;
1538 }
1539 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1540 return resultobj;
1541 fail:
1542 return NULL;
1543 }
1544
1545
1546 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1547 PyObject *obj;
1548 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1549 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1550 Py_INCREF(obj);
1551 return Py_BuildValue((char *)"");
1552 }
1553 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1554 PyObject *resultobj;
1555 int arg1 ;
1556 unsigned char *arg2 = (unsigned char *) 0 ;
1557 unsigned char *arg3 = (unsigned char *) 0 ;
1558 unsigned char *arg4 = (unsigned char *) 0 ;
1559 wxPalette *result;
1560 PyObject * obj0 = 0 ;
1561 PyObject * obj1 = 0 ;
1562 PyObject * obj2 = 0 ;
1563 PyObject * obj3 = 0 ;
1564 char *kwnames[] = {
1565 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1566 };
1567
1568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1569 arg1 = (int) SWIG_AsInt(obj0);
1570 if (PyErr_Occurred()) SWIG_fail;
1571 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1573 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1575 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1577 {
1578 PyThreadState* __tstate = wxPyBeginAllowThreads();
1579 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1580
1581 wxPyEndAllowThreads(__tstate);
1582 if (PyErr_Occurred()) SWIG_fail;
1583 }
1584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1585 return resultobj;
1586 fail:
1587 return NULL;
1588 }
1589
1590
1591 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1592 PyObject *resultobj;
1593 wxPalette *arg1 = (wxPalette *) 0 ;
1594 PyObject * obj0 = 0 ;
1595 char *kwnames[] = {
1596 (char *) "self", NULL
1597 };
1598
1599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1602 {
1603 PyThreadState* __tstate = wxPyBeginAllowThreads();
1604 delete arg1;
1605
1606 wxPyEndAllowThreads(__tstate);
1607 if (PyErr_Occurred()) SWIG_fail;
1608 }
1609 Py_INCREF(Py_None); resultobj = Py_None;
1610 return resultobj;
1611 fail:
1612 return NULL;
1613 }
1614
1615
1616 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1617 PyObject *resultobj;
1618 wxPalette *arg1 = (wxPalette *) 0 ;
1619 byte arg2 ;
1620 byte arg3 ;
1621 byte arg4 ;
1622 int result;
1623 PyObject * obj0 = 0 ;
1624 PyObject * obj1 = 0 ;
1625 PyObject * obj2 = 0 ;
1626 PyObject * obj3 = 0 ;
1627 char *kwnames[] = {
1628 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1629 };
1630
1631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1634 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1635 if (PyErr_Occurred()) SWIG_fail;
1636 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1637 if (PyErr_Occurred()) SWIG_fail;
1638 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 {
1641 PyThreadState* __tstate = wxPyBeginAllowThreads();
1642 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1643
1644 wxPyEndAllowThreads(__tstate);
1645 if (PyErr_Occurred()) SWIG_fail;
1646 }
1647 resultobj = SWIG_FromInt((int)result);
1648 return resultobj;
1649 fail:
1650 return NULL;
1651 }
1652
1653
1654 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1655 PyObject *resultobj;
1656 wxPalette *arg1 = (wxPalette *) 0 ;
1657 int arg2 ;
1658 byte *arg3 = (byte *) 0 ;
1659 byte *arg4 = (byte *) 0 ;
1660 byte *arg5 = (byte *) 0 ;
1661 bool result;
1662 byte temp3 ;
1663 byte temp4 ;
1664 byte temp5 ;
1665 PyObject * obj0 = 0 ;
1666 PyObject * obj1 = 0 ;
1667 char *kwnames[] = {
1668 (char *) "self",(char *) "pixel", NULL
1669 };
1670
1671 arg3 = &temp3;
1672 arg4 = &temp4;
1673 arg5 = &temp5;
1674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1677 arg2 = (int) SWIG_AsInt(obj1);
1678 if (PyErr_Occurred()) SWIG_fail;
1679 {
1680 PyThreadState* __tstate = wxPyBeginAllowThreads();
1681 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1682
1683 wxPyEndAllowThreads(__tstate);
1684 if (PyErr_Occurred()) SWIG_fail;
1685 }
1686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1687 {
1688 PyObject *o = PyInt_FromLong((long) (*arg3));
1689 resultobj = t_output_helper(resultobj,o);
1690 }
1691 {
1692 PyObject *o = PyInt_FromLong((long) (*arg4));
1693 resultobj = t_output_helper(resultobj,o);
1694 }
1695 {
1696 PyObject *o = PyInt_FromLong((long) (*arg5));
1697 resultobj = t_output_helper(resultobj,o);
1698 }
1699 return resultobj;
1700 fail:
1701 return NULL;
1702 }
1703
1704
1705 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1706 PyObject *resultobj;
1707 wxPalette *arg1 = (wxPalette *) 0 ;
1708 bool result;
1709 PyObject * obj0 = 0 ;
1710 char *kwnames[] = {
1711 (char *) "self", NULL
1712 };
1713
1714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1717 {
1718 PyThreadState* __tstate = wxPyBeginAllowThreads();
1719 result = (bool)(arg1)->Ok();
1720
1721 wxPyEndAllowThreads(__tstate);
1722 if (PyErr_Occurred()) SWIG_fail;
1723 }
1724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1725 return resultobj;
1726 fail:
1727 return NULL;
1728 }
1729
1730
1731 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1732 PyObject *obj;
1733 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1734 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1735 Py_INCREF(obj);
1736 return Py_BuildValue((char *)"");
1737 }
1738 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1739 PyObject *resultobj;
1740 wxColour *arg1 = 0 ;
1741 int arg2 = (int) 1 ;
1742 int arg3 = (int) wxSOLID ;
1743 wxPen *result;
1744 wxColour temp1 ;
1745 PyObject * obj0 = 0 ;
1746 PyObject * obj1 = 0 ;
1747 PyObject * obj2 = 0 ;
1748 char *kwnames[] = {
1749 (char *) "colour",(char *) "width",(char *) "style", NULL
1750 };
1751
1752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1753 {
1754 arg1 = &temp1;
1755 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1756 }
1757 if (obj1) {
1758 arg2 = (int) SWIG_AsInt(obj1);
1759 if (PyErr_Occurred()) SWIG_fail;
1760 }
1761 if (obj2) {
1762 arg3 = (int) SWIG_AsInt(obj2);
1763 if (PyErr_Occurred()) SWIG_fail;
1764 }
1765 {
1766 PyThreadState* __tstate = wxPyBeginAllowThreads();
1767 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1768
1769 wxPyEndAllowThreads(__tstate);
1770 if (PyErr_Occurred()) SWIG_fail;
1771 }
1772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1773 return resultobj;
1774 fail:
1775 return NULL;
1776 }
1777
1778
1779 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1780 PyObject *resultobj;
1781 wxPen *arg1 = (wxPen *) 0 ;
1782 PyObject * obj0 = 0 ;
1783 char *kwnames[] = {
1784 (char *) "self", NULL
1785 };
1786
1787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1790 {
1791 PyThreadState* __tstate = wxPyBeginAllowThreads();
1792 delete arg1;
1793
1794 wxPyEndAllowThreads(__tstate);
1795 if (PyErr_Occurred()) SWIG_fail;
1796 }
1797 Py_INCREF(Py_None); resultobj = Py_None;
1798 return resultobj;
1799 fail:
1800 return NULL;
1801 }
1802
1803
1804 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1805 PyObject *resultobj;
1806 wxPen *arg1 = (wxPen *) 0 ;
1807 int result;
1808 PyObject * obj0 = 0 ;
1809 char *kwnames[] = {
1810 (char *) "self", NULL
1811 };
1812
1813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1816 {
1817 PyThreadState* __tstate = wxPyBeginAllowThreads();
1818 result = (int)(arg1)->GetCap();
1819
1820 wxPyEndAllowThreads(__tstate);
1821 if (PyErr_Occurred()) SWIG_fail;
1822 }
1823 resultobj = SWIG_FromInt((int)result);
1824 return resultobj;
1825 fail:
1826 return NULL;
1827 }
1828
1829
1830 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1831 PyObject *resultobj;
1832 wxPen *arg1 = (wxPen *) 0 ;
1833 wxColour result;
1834 PyObject * obj0 = 0 ;
1835 char *kwnames[] = {
1836 (char *) "self", NULL
1837 };
1838
1839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",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 = (arg1)->GetColour();
1845
1846 wxPyEndAllowThreads(__tstate);
1847 if (PyErr_Occurred()) SWIG_fail;
1848 }
1849 {
1850 wxColour * resultptr;
1851 resultptr = new wxColour((wxColour &) result);
1852 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1853 }
1854 return resultobj;
1855 fail:
1856 return NULL;
1857 }
1858
1859
1860 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1861 PyObject *resultobj;
1862 wxPen *arg1 = (wxPen *) 0 ;
1863 int result;
1864 PyObject * obj0 = 0 ;
1865 char *kwnames[] = {
1866 (char *) "self", NULL
1867 };
1868
1869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1872 {
1873 PyThreadState* __tstate = wxPyBeginAllowThreads();
1874 result = (int)(arg1)->GetJoin();
1875
1876 wxPyEndAllowThreads(__tstate);
1877 if (PyErr_Occurred()) SWIG_fail;
1878 }
1879 resultobj = SWIG_FromInt((int)result);
1880 return resultobj;
1881 fail:
1882 return NULL;
1883 }
1884
1885
1886 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1887 PyObject *resultobj;
1888 wxPen *arg1 = (wxPen *) 0 ;
1889 int result;
1890 PyObject * obj0 = 0 ;
1891 char *kwnames[] = {
1892 (char *) "self", NULL
1893 };
1894
1895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1898 {
1899 PyThreadState* __tstate = wxPyBeginAllowThreads();
1900 result = (int)(arg1)->GetStyle();
1901
1902 wxPyEndAllowThreads(__tstate);
1903 if (PyErr_Occurred()) SWIG_fail;
1904 }
1905 resultobj = SWIG_FromInt((int)result);
1906 return resultobj;
1907 fail:
1908 return NULL;
1909 }
1910
1911
1912 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1913 PyObject *resultobj;
1914 wxPen *arg1 = (wxPen *) 0 ;
1915 int result;
1916 PyObject * obj0 = 0 ;
1917 char *kwnames[] = {
1918 (char *) "self", NULL
1919 };
1920
1921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1924 {
1925 PyThreadState* __tstate = wxPyBeginAllowThreads();
1926 result = (int)(arg1)->GetWidth();
1927
1928 wxPyEndAllowThreads(__tstate);
1929 if (PyErr_Occurred()) SWIG_fail;
1930 }
1931 resultobj = SWIG_FromInt((int)result);
1932 return resultobj;
1933 fail:
1934 return NULL;
1935 }
1936
1937
1938 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1939 PyObject *resultobj;
1940 wxPen *arg1 = (wxPen *) 0 ;
1941 bool result;
1942 PyObject * obj0 = 0 ;
1943 char *kwnames[] = {
1944 (char *) "self", NULL
1945 };
1946
1947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1950 {
1951 PyThreadState* __tstate = wxPyBeginAllowThreads();
1952 result = (bool)(arg1)->Ok();
1953
1954 wxPyEndAllowThreads(__tstate);
1955 if (PyErr_Occurred()) SWIG_fail;
1956 }
1957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1958 return resultobj;
1959 fail:
1960 return NULL;
1961 }
1962
1963
1964 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1965 PyObject *resultobj;
1966 wxPen *arg1 = (wxPen *) 0 ;
1967 int arg2 ;
1968 PyObject * obj0 = 0 ;
1969 PyObject * obj1 = 0 ;
1970 char *kwnames[] = {
1971 (char *) "self",(char *) "cap_style", NULL
1972 };
1973
1974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1977 arg2 = (int) SWIG_AsInt(obj1);
1978 if (PyErr_Occurred()) SWIG_fail;
1979 {
1980 PyThreadState* __tstate = wxPyBeginAllowThreads();
1981 (arg1)->SetCap(arg2);
1982
1983 wxPyEndAllowThreads(__tstate);
1984 if (PyErr_Occurred()) SWIG_fail;
1985 }
1986 Py_INCREF(Py_None); resultobj = Py_None;
1987 return resultobj;
1988 fail:
1989 return NULL;
1990 }
1991
1992
1993 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1994 PyObject *resultobj;
1995 wxPen *arg1 = (wxPen *) 0 ;
1996 wxColour *arg2 = 0 ;
1997 wxColour temp2 ;
1998 PyObject * obj0 = 0 ;
1999 PyObject * obj1 = 0 ;
2000 char *kwnames[] = {
2001 (char *) "self",(char *) "colour", NULL
2002 };
2003
2004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2007 {
2008 arg2 = &temp2;
2009 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2010 }
2011 {
2012 PyThreadState* __tstate = wxPyBeginAllowThreads();
2013 (arg1)->SetColour(*arg2);
2014
2015 wxPyEndAllowThreads(__tstate);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 }
2018 Py_INCREF(Py_None); resultobj = Py_None;
2019 return resultobj;
2020 fail:
2021 return NULL;
2022 }
2023
2024
2025 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2026 PyObject *resultobj;
2027 wxPen *arg1 = (wxPen *) 0 ;
2028 int arg2 ;
2029 PyObject * obj0 = 0 ;
2030 PyObject * obj1 = 0 ;
2031 char *kwnames[] = {
2032 (char *) "self",(char *) "join_style", NULL
2033 };
2034
2035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2038 arg2 = (int) SWIG_AsInt(obj1);
2039 if (PyErr_Occurred()) SWIG_fail;
2040 {
2041 PyThreadState* __tstate = wxPyBeginAllowThreads();
2042 (arg1)->SetJoin(arg2);
2043
2044 wxPyEndAllowThreads(__tstate);
2045 if (PyErr_Occurred()) SWIG_fail;
2046 }
2047 Py_INCREF(Py_None); resultobj = Py_None;
2048 return resultobj;
2049 fail:
2050 return NULL;
2051 }
2052
2053
2054 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2055 PyObject *resultobj;
2056 wxPen *arg1 = (wxPen *) 0 ;
2057 int arg2 ;
2058 PyObject * obj0 = 0 ;
2059 PyObject * obj1 = 0 ;
2060 char *kwnames[] = {
2061 (char *) "self",(char *) "style", NULL
2062 };
2063
2064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2067 arg2 = (int) SWIG_AsInt(obj1);
2068 if (PyErr_Occurred()) SWIG_fail;
2069 {
2070 PyThreadState* __tstate = wxPyBeginAllowThreads();
2071 (arg1)->SetStyle(arg2);
2072
2073 wxPyEndAllowThreads(__tstate);
2074 if (PyErr_Occurred()) SWIG_fail;
2075 }
2076 Py_INCREF(Py_None); resultobj = Py_None;
2077 return resultobj;
2078 fail:
2079 return NULL;
2080 }
2081
2082
2083 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2084 PyObject *resultobj;
2085 wxPen *arg1 = (wxPen *) 0 ;
2086 int arg2 ;
2087 PyObject * obj0 = 0 ;
2088 PyObject * obj1 = 0 ;
2089 char *kwnames[] = {
2090 (char *) "self",(char *) "width", NULL
2091 };
2092
2093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2096 arg2 = (int) SWIG_AsInt(obj1);
2097 if (PyErr_Occurred()) SWIG_fail;
2098 {
2099 PyThreadState* __tstate = wxPyBeginAllowThreads();
2100 (arg1)->SetWidth(arg2);
2101
2102 wxPyEndAllowThreads(__tstate);
2103 if (PyErr_Occurred()) SWIG_fail;
2104 }
2105 Py_INCREF(Py_None); resultobj = Py_None;
2106 return resultobj;
2107 fail:
2108 return NULL;
2109 }
2110
2111
2112 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2113 PyObject *resultobj;
2114 wxPen *arg1 = (wxPen *) 0 ;
2115 int arg2 ;
2116 wxDash *arg3 = (wxDash *) 0 ;
2117 PyObject * obj0 = 0 ;
2118 PyObject * obj1 = 0 ;
2119 char *kwnames[] = {
2120 (char *) "self",(char *) "dashes", NULL
2121 };
2122
2123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2126 {
2127 arg2 = PyList_Size(obj1);
2128 arg3 = (wxDash*)byte_LIST_helper(obj1);
2129 if (arg3 == NULL) SWIG_fail;
2130 }
2131 {
2132 PyThreadState* __tstate = wxPyBeginAllowThreads();
2133 (arg1)->SetDashes(arg2,arg3);
2134
2135 wxPyEndAllowThreads(__tstate);
2136 if (PyErr_Occurred()) SWIG_fail;
2137 }
2138 Py_INCREF(Py_None); resultobj = Py_None;
2139 {
2140 if (arg3) delete [] arg3;
2141 }
2142 return resultobj;
2143 fail:
2144 {
2145 if (arg3) delete [] arg3;
2146 }
2147 return NULL;
2148 }
2149
2150
2151 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2152 PyObject *resultobj;
2153 wxPen *arg1 = (wxPen *) 0 ;
2154 PyObject *result;
2155 PyObject * obj0 = 0 ;
2156 char *kwnames[] = {
2157 (char *) "self", NULL
2158 };
2159
2160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2163 {
2164 PyThreadState* __tstate = wxPyBeginAllowThreads();
2165 result = (PyObject *)wxPen_GetDashes(arg1);
2166
2167 wxPyEndAllowThreads(__tstate);
2168 if (PyErr_Occurred()) SWIG_fail;
2169 }
2170 resultobj = result;
2171 return resultobj;
2172 fail:
2173 return NULL;
2174 }
2175
2176
2177 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2178 PyObject *resultobj;
2179 wxPen *arg1 = (wxPen *) 0 ;
2180 wxPen *arg2 = (wxPen *) 0 ;
2181 bool result;
2182 PyObject * obj0 = 0 ;
2183 PyObject * obj1 = 0 ;
2184 char *kwnames[] = {
2185 (char *) "self",(char *) "other", NULL
2186 };
2187
2188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2191 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2193 {
2194 PyThreadState* __tstate = wxPyBeginAllowThreads();
2195 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2196
2197 wxPyEndAllowThreads(__tstate);
2198 if (PyErr_Occurred()) SWIG_fail;
2199 }
2200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2201 return resultobj;
2202 fail:
2203 return NULL;
2204 }
2205
2206
2207 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2208 PyObject *resultobj;
2209 wxPen *arg1 = (wxPen *) 0 ;
2210 wxPen *arg2 = (wxPen *) 0 ;
2211 bool result;
2212 PyObject * obj0 = 0 ;
2213 PyObject * obj1 = 0 ;
2214 char *kwnames[] = {
2215 (char *) "self",(char *) "other", NULL
2216 };
2217
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2223 {
2224 PyThreadState* __tstate = wxPyBeginAllowThreads();
2225 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2226
2227 wxPyEndAllowThreads(__tstate);
2228 if (PyErr_Occurred()) SWIG_fail;
2229 }
2230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2231 return resultobj;
2232 fail:
2233 return NULL;
2234 }
2235
2236
2237 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2238 PyObject *resultobj;
2239 wxPen *arg1 = (wxPen *) 0 ;
2240 int result;
2241 PyObject * obj0 = 0 ;
2242 char *kwnames[] = {
2243 (char *) "self", NULL
2244 };
2245
2246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2249 {
2250 PyThreadState* __tstate = wxPyBeginAllowThreads();
2251 result = (int)((wxPen const *)arg1)->GetDashCount();
2252
2253 wxPyEndAllowThreads(__tstate);
2254 if (PyErr_Occurred()) SWIG_fail;
2255 }
2256 resultobj = SWIG_FromInt((int)result);
2257 return resultobj;
2258 fail:
2259 return NULL;
2260 }
2261
2262
2263 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2264 PyObject *resultobj;
2265 wxPen *arg1 = (wxPen *) 0 ;
2266 wxBitmap *result;
2267 PyObject * obj0 = 0 ;
2268 char *kwnames[] = {
2269 (char *) "self", NULL
2270 };
2271
2272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2275 {
2276 PyThreadState* __tstate = wxPyBeginAllowThreads();
2277 result = (wxBitmap *)(arg1)->GetStipple();
2278
2279 wxPyEndAllowThreads(__tstate);
2280 if (PyErr_Occurred()) SWIG_fail;
2281 }
2282 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2283 return resultobj;
2284 fail:
2285 return NULL;
2286 }
2287
2288
2289 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2290 PyObject *resultobj;
2291 wxPen *arg1 = (wxPen *) 0 ;
2292 wxBitmap *arg2 = 0 ;
2293 PyObject * obj0 = 0 ;
2294 PyObject * obj1 = 0 ;
2295 char *kwnames[] = {
2296 (char *) "self",(char *) "stipple", NULL
2297 };
2298
2299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2302 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2303 SWIG_POINTER_EXCEPTION | 0)) == -1)
2304 SWIG_fail;
2305 if (arg2 == NULL) {
2306 PyErr_SetString(PyExc_TypeError,"null reference");
2307 SWIG_fail;
2308 }
2309 {
2310 PyThreadState* __tstate = wxPyBeginAllowThreads();
2311 (arg1)->SetStipple(*arg2);
2312
2313 wxPyEndAllowThreads(__tstate);
2314 if (PyErr_Occurred()) SWIG_fail;
2315 }
2316 Py_INCREF(Py_None); resultobj = Py_None;
2317 return resultobj;
2318 fail:
2319 return NULL;
2320 }
2321
2322
2323 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2324 PyObject *obj;
2325 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2326 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2327 Py_INCREF(obj);
2328 return Py_BuildValue((char *)"");
2329 }
2330 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2331 PyObject *resultobj;
2332 wxColour *arg1 = 0 ;
2333 int arg2 = (int) 1 ;
2334 int arg3 = (int) wxSOLID ;
2335 wxPyPen *result;
2336 wxColour temp1 ;
2337 PyObject * obj0 = 0 ;
2338 PyObject * obj1 = 0 ;
2339 PyObject * obj2 = 0 ;
2340 char *kwnames[] = {
2341 (char *) "colour",(char *) "width",(char *) "style", NULL
2342 };
2343
2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2345 {
2346 arg1 = &temp1;
2347 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2348 }
2349 if (obj1) {
2350 arg2 = (int) SWIG_AsInt(obj1);
2351 if (PyErr_Occurred()) SWIG_fail;
2352 }
2353 if (obj2) {
2354 arg3 = (int) SWIG_AsInt(obj2);
2355 if (PyErr_Occurred()) SWIG_fail;
2356 }
2357 {
2358 PyThreadState* __tstate = wxPyBeginAllowThreads();
2359 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2360
2361 wxPyEndAllowThreads(__tstate);
2362 if (PyErr_Occurred()) SWIG_fail;
2363 }
2364 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1);
2365 return resultobj;
2366 fail:
2367 return NULL;
2368 }
2369
2370
2371 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2372 PyObject *resultobj;
2373 wxPyPen *arg1 = (wxPyPen *) 0 ;
2374 PyObject * obj0 = 0 ;
2375 char *kwnames[] = {
2376 (char *) "self", NULL
2377 };
2378
2379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2382 {
2383 PyThreadState* __tstate = wxPyBeginAllowThreads();
2384 delete arg1;
2385
2386 wxPyEndAllowThreads(__tstate);
2387 if (PyErr_Occurred()) SWIG_fail;
2388 }
2389 Py_INCREF(Py_None); resultobj = Py_None;
2390 return resultobj;
2391 fail:
2392 return NULL;
2393 }
2394
2395
2396 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2397 PyObject *resultobj;
2398 wxPyPen *arg1 = (wxPyPen *) 0 ;
2399 int arg2 ;
2400 wxDash *arg3 = (wxDash *) 0 ;
2401 PyObject * obj0 = 0 ;
2402 PyObject * obj1 = 0 ;
2403 char *kwnames[] = {
2404 (char *) "self",(char *) "dashes", NULL
2405 };
2406
2407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen,
2409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2410 {
2411 arg2 = PyList_Size(obj1);
2412 arg3 = (wxDash*)byte_LIST_helper(obj1);
2413 if (arg3 == NULL) SWIG_fail;
2414 }
2415 {
2416 PyThreadState* __tstate = wxPyBeginAllowThreads();
2417 (arg1)->SetDashes(arg2,arg3);
2418
2419 wxPyEndAllowThreads(__tstate);
2420 if (PyErr_Occurred()) SWIG_fail;
2421 }
2422 Py_INCREF(Py_None); resultobj = Py_None;
2423 {
2424 if (arg3) delete [] arg3;
2425 }
2426 return resultobj;
2427 fail:
2428 {
2429 if (arg3) delete [] arg3;
2430 }
2431 return NULL;
2432 }
2433
2434
2435 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2436 PyObject *obj;
2437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2438 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2439 Py_INCREF(obj);
2440 return Py_BuildValue((char *)"");
2441 }
2442 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2443 PyObject *resultobj;
2444 wxColour *arg1 = 0 ;
2445 int arg2 = (int) wxSOLID ;
2446 wxBrush *result;
2447 wxColour temp1 ;
2448 PyObject * obj0 = 0 ;
2449 PyObject * obj1 = 0 ;
2450 char *kwnames[] = {
2451 (char *) "colour",(char *) "style", NULL
2452 };
2453
2454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2455 {
2456 arg1 = &temp1;
2457 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2458 }
2459 if (obj1) {
2460 arg2 = (int) SWIG_AsInt(obj1);
2461 if (PyErr_Occurred()) SWIG_fail;
2462 }
2463 {
2464 PyThreadState* __tstate = wxPyBeginAllowThreads();
2465 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2466
2467 wxPyEndAllowThreads(__tstate);
2468 if (PyErr_Occurred()) SWIG_fail;
2469 }
2470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2471 return resultobj;
2472 fail:
2473 return NULL;
2474 }
2475
2476
2477 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2478 PyObject *resultobj;
2479 wxBrush *arg1 = (wxBrush *) 0 ;
2480 PyObject * obj0 = 0 ;
2481 char *kwnames[] = {
2482 (char *) "self", NULL
2483 };
2484
2485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2488 {
2489 PyThreadState* __tstate = wxPyBeginAllowThreads();
2490 delete arg1;
2491
2492 wxPyEndAllowThreads(__tstate);
2493 if (PyErr_Occurred()) SWIG_fail;
2494 }
2495 Py_INCREF(Py_None); resultobj = Py_None;
2496 return resultobj;
2497 fail:
2498 return NULL;
2499 }
2500
2501
2502 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2503 PyObject *resultobj;
2504 wxBrush *arg1 = (wxBrush *) 0 ;
2505 wxColour *arg2 = 0 ;
2506 wxColour temp2 ;
2507 PyObject * obj0 = 0 ;
2508 PyObject * obj1 = 0 ;
2509 char *kwnames[] = {
2510 (char *) "self",(char *) "col", NULL
2511 };
2512
2513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2516 {
2517 arg2 = &temp2;
2518 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2519 }
2520 {
2521 PyThreadState* __tstate = wxPyBeginAllowThreads();
2522 (arg1)->SetColour((wxColour const &)*arg2);
2523
2524 wxPyEndAllowThreads(__tstate);
2525 if (PyErr_Occurred()) SWIG_fail;
2526 }
2527 Py_INCREF(Py_None); resultobj = Py_None;
2528 return resultobj;
2529 fail:
2530 return NULL;
2531 }
2532
2533
2534 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2535 PyObject *resultobj;
2536 wxBrush *arg1 = (wxBrush *) 0 ;
2537 int arg2 ;
2538 PyObject * obj0 = 0 ;
2539 PyObject * obj1 = 0 ;
2540 char *kwnames[] = {
2541 (char *) "self",(char *) "style", NULL
2542 };
2543
2544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2547 arg2 = (int) SWIG_AsInt(obj1);
2548 if (PyErr_Occurred()) SWIG_fail;
2549 {
2550 PyThreadState* __tstate = wxPyBeginAllowThreads();
2551 (arg1)->SetStyle(arg2);
2552
2553 wxPyEndAllowThreads(__tstate);
2554 if (PyErr_Occurred()) SWIG_fail;
2555 }
2556 Py_INCREF(Py_None); resultobj = Py_None;
2557 return resultobj;
2558 fail:
2559 return NULL;
2560 }
2561
2562
2563 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2564 PyObject *resultobj;
2565 wxBrush *arg1 = (wxBrush *) 0 ;
2566 wxBitmap *arg2 = 0 ;
2567 PyObject * obj0 = 0 ;
2568 PyObject * obj1 = 0 ;
2569 char *kwnames[] = {
2570 (char *) "self",(char *) "stipple", NULL
2571 };
2572
2573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2576 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2577 SWIG_POINTER_EXCEPTION | 0)) == -1)
2578 SWIG_fail;
2579 if (arg2 == NULL) {
2580 PyErr_SetString(PyExc_TypeError,"null reference");
2581 SWIG_fail;
2582 }
2583 {
2584 PyThreadState* __tstate = wxPyBeginAllowThreads();
2585 (arg1)->SetStipple((wxBitmap const &)*arg2);
2586
2587 wxPyEndAllowThreads(__tstate);
2588 if (PyErr_Occurred()) SWIG_fail;
2589 }
2590 Py_INCREF(Py_None); resultobj = Py_None;
2591 return resultobj;
2592 fail:
2593 return NULL;
2594 }
2595
2596
2597 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2598 PyObject *resultobj;
2599 wxBrush *arg1 = (wxBrush *) 0 ;
2600 wxColour result;
2601 PyObject * obj0 = 0 ;
2602 char *kwnames[] = {
2603 (char *) "self", NULL
2604 };
2605
2606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2609 {
2610 PyThreadState* __tstate = wxPyBeginAllowThreads();
2611 result = ((wxBrush const *)arg1)->GetColour();
2612
2613 wxPyEndAllowThreads(__tstate);
2614 if (PyErr_Occurred()) SWIG_fail;
2615 }
2616 {
2617 wxColour * resultptr;
2618 resultptr = new wxColour((wxColour &) result);
2619 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2620 }
2621 return resultobj;
2622 fail:
2623 return NULL;
2624 }
2625
2626
2627 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2628 PyObject *resultobj;
2629 wxBrush *arg1 = (wxBrush *) 0 ;
2630 int result;
2631 PyObject * obj0 = 0 ;
2632 char *kwnames[] = {
2633 (char *) "self", NULL
2634 };
2635
2636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2639 {
2640 PyThreadState* __tstate = wxPyBeginAllowThreads();
2641 result = (int)((wxBrush const *)arg1)->GetStyle();
2642
2643 wxPyEndAllowThreads(__tstate);
2644 if (PyErr_Occurred()) SWIG_fail;
2645 }
2646 resultobj = SWIG_FromInt((int)result);
2647 return resultobj;
2648 fail:
2649 return NULL;
2650 }
2651
2652
2653 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2654 PyObject *resultobj;
2655 wxBrush *arg1 = (wxBrush *) 0 ;
2656 wxBitmap *result;
2657 PyObject * obj0 = 0 ;
2658 char *kwnames[] = {
2659 (char *) "self", NULL
2660 };
2661
2662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2665 {
2666 PyThreadState* __tstate = wxPyBeginAllowThreads();
2667 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2668
2669 wxPyEndAllowThreads(__tstate);
2670 if (PyErr_Occurred()) SWIG_fail;
2671 }
2672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2673 return resultobj;
2674 fail:
2675 return NULL;
2676 }
2677
2678
2679 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2680 PyObject *resultobj;
2681 wxBrush *arg1 = (wxBrush *) 0 ;
2682 bool result;
2683 PyObject * obj0 = 0 ;
2684 char *kwnames[] = {
2685 (char *) "self", NULL
2686 };
2687
2688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2691 {
2692 PyThreadState* __tstate = wxPyBeginAllowThreads();
2693 result = (bool)(arg1)->Ok();
2694
2695 wxPyEndAllowThreads(__tstate);
2696 if (PyErr_Occurred()) SWIG_fail;
2697 }
2698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2699 return resultobj;
2700 fail:
2701 return NULL;
2702 }
2703
2704
2705 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2706 PyObject *obj;
2707 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2708 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2709 Py_INCREF(obj);
2710 return Py_BuildValue((char *)"");
2711 }
2712 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2713 PyObject *resultobj;
2714 wxString *arg1 = 0 ;
2715 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2716 wxBitmap *result;
2717 bool temp1 = False ;
2718 PyObject * obj0 = 0 ;
2719 PyObject * obj1 = 0 ;
2720 char *kwnames[] = {
2721 (char *) "name",(char *) "type", NULL
2722 };
2723
2724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2725 {
2726 arg1 = wxString_in_helper(obj0);
2727 if (arg1 == NULL) SWIG_fail;
2728 temp1 = True;
2729 }
2730 if (obj1) {
2731 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2732 if (PyErr_Occurred()) SWIG_fail;
2733 }
2734 {
2735 PyThreadState* __tstate = wxPyBeginAllowThreads();
2736 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2737
2738 wxPyEndAllowThreads(__tstate);
2739 if (PyErr_Occurred()) SWIG_fail;
2740 }
2741 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2742 {
2743 if (temp1)
2744 delete arg1;
2745 }
2746 return resultobj;
2747 fail:
2748 {
2749 if (temp1)
2750 delete arg1;
2751 }
2752 return NULL;
2753 }
2754
2755
2756 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2757 PyObject *resultobj;
2758 wxBitmap *arg1 = (wxBitmap *) 0 ;
2759 PyObject * obj0 = 0 ;
2760 char *kwnames[] = {
2761 (char *) "self", NULL
2762 };
2763
2764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2767 {
2768 PyThreadState* __tstate = wxPyBeginAllowThreads();
2769 delete arg1;
2770
2771 wxPyEndAllowThreads(__tstate);
2772 if (PyErr_Occurred()) SWIG_fail;
2773 }
2774 Py_INCREF(Py_None); resultobj = Py_None;
2775 return resultobj;
2776 fail:
2777 return NULL;
2778 }
2779
2780
2781 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2782 PyObject *resultobj;
2783 int arg1 ;
2784 int arg2 ;
2785 int arg3 = (int) -1 ;
2786 wxBitmap *result;
2787 PyObject * obj0 = 0 ;
2788 PyObject * obj1 = 0 ;
2789 PyObject * obj2 = 0 ;
2790 char *kwnames[] = {
2791 (char *) "width",(char *) "height",(char *) "depth", NULL
2792 };
2793
2794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2795 arg1 = (int) SWIG_AsInt(obj0);
2796 if (PyErr_Occurred()) SWIG_fail;
2797 arg2 = (int) SWIG_AsInt(obj1);
2798 if (PyErr_Occurred()) SWIG_fail;
2799 if (obj2) {
2800 arg3 = (int) SWIG_AsInt(obj2);
2801 if (PyErr_Occurred()) SWIG_fail;
2802 }
2803 {
2804 PyThreadState* __tstate = wxPyBeginAllowThreads();
2805 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2806
2807 wxPyEndAllowThreads(__tstate);
2808 if (PyErr_Occurred()) SWIG_fail;
2809 }
2810 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2811 return resultobj;
2812 fail:
2813 return NULL;
2814 }
2815
2816
2817 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2818 PyObject *resultobj;
2819 wxIcon *arg1 = 0 ;
2820 wxBitmap *result;
2821 PyObject * obj0 = 0 ;
2822 char *kwnames[] = {
2823 (char *) "icon", NULL
2824 };
2825
2826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2828 SWIG_POINTER_EXCEPTION | 0)) == -1)
2829 SWIG_fail;
2830 if (arg1 == NULL) {
2831 PyErr_SetString(PyExc_TypeError,"null reference");
2832 SWIG_fail;
2833 }
2834 {
2835 PyThreadState* __tstate = wxPyBeginAllowThreads();
2836 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2837
2838 wxPyEndAllowThreads(__tstate);
2839 if (PyErr_Occurred()) SWIG_fail;
2840 }
2841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2842 return resultobj;
2843 fail:
2844 return NULL;
2845 }
2846
2847
2848 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2849 PyObject *resultobj;
2850 wxImage *arg1 = 0 ;
2851 int arg2 = (int) -1 ;
2852 wxBitmap *result;
2853 PyObject * obj0 = 0 ;
2854 PyObject * obj1 = 0 ;
2855 char *kwnames[] = {
2856 (char *) "image",(char *) "depth", NULL
2857 };
2858
2859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2861 SWIG_POINTER_EXCEPTION | 0)) == -1)
2862 SWIG_fail;
2863 if (arg1 == NULL) {
2864 PyErr_SetString(PyExc_TypeError,"null reference");
2865 SWIG_fail;
2866 }
2867 if (obj1) {
2868 arg2 = (int) SWIG_AsInt(obj1);
2869 if (PyErr_Occurred()) SWIG_fail;
2870 }
2871 {
2872 PyThreadState* __tstate = wxPyBeginAllowThreads();
2873 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2874
2875 wxPyEndAllowThreads(__tstate);
2876 if (PyErr_Occurred()) SWIG_fail;
2877 }
2878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2879 return resultobj;
2880 fail:
2881 return NULL;
2882 }
2883
2884
2885 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2886 PyObject *resultobj;
2887 PyObject *arg1 = (PyObject *) 0 ;
2888 wxBitmap *result;
2889 PyObject * obj0 = 0 ;
2890 char *kwnames[] = {
2891 (char *) "listOfStrings", NULL
2892 };
2893
2894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2895 arg1 = obj0;
2896 {
2897 PyThreadState* __tstate = wxPyBeginAllowThreads();
2898 result = (wxBitmap *)new_wxBitmap(arg1);
2899
2900 wxPyEndAllowThreads(__tstate);
2901 if (PyErr_Occurred()) SWIG_fail;
2902 }
2903 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2904 return resultobj;
2905 fail:
2906 return NULL;
2907 }
2908
2909
2910 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2911 PyObject *resultobj;
2912 PyObject *arg1 = (PyObject *) 0 ;
2913 int arg2 ;
2914 int arg3 ;
2915 int arg4 = (int) 1 ;
2916 wxBitmap *result;
2917 PyObject * obj0 = 0 ;
2918 PyObject * obj1 = 0 ;
2919 PyObject * obj2 = 0 ;
2920 PyObject * obj3 = 0 ;
2921 char *kwnames[] = {
2922 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2923 };
2924
2925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2926 arg1 = obj0;
2927 arg2 = (int) SWIG_AsInt(obj1);
2928 if (PyErr_Occurred()) SWIG_fail;
2929 arg3 = (int) SWIG_AsInt(obj2);
2930 if (PyErr_Occurred()) SWIG_fail;
2931 if (obj3) {
2932 arg4 = (int) SWIG_AsInt(obj3);
2933 if (PyErr_Occurred()) SWIG_fail;
2934 }
2935 {
2936 PyThreadState* __tstate = wxPyBeginAllowThreads();
2937 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2938
2939 wxPyEndAllowThreads(__tstate);
2940 if (PyErr_Occurred()) SWIG_fail;
2941 }
2942 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2943 return resultobj;
2944 fail:
2945 return NULL;
2946 }
2947
2948
2949 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2950 PyObject *resultobj;
2951 wxBitmap *arg1 = (wxBitmap *) 0 ;
2952 wxPalette *arg2 = 0 ;
2953 PyObject * obj0 = 0 ;
2954 PyObject * obj1 = 0 ;
2955 char *kwnames[] = {
2956 (char *) "self",(char *) "palette", NULL
2957 };
2958
2959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2962 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
2963 SWIG_POINTER_EXCEPTION | 0)) == -1)
2964 SWIG_fail;
2965 if (arg2 == NULL) {
2966 PyErr_SetString(PyExc_TypeError,"null reference");
2967 SWIG_fail;
2968 }
2969 {
2970 PyThreadState* __tstate = wxPyBeginAllowThreads();
2971 (arg1)->SetPalette(*arg2);
2972
2973 wxPyEndAllowThreads(__tstate);
2974 if (PyErr_Occurred()) SWIG_fail;
2975 }
2976 Py_INCREF(Py_None); resultobj = Py_None;
2977 return resultobj;
2978 fail:
2979 return NULL;
2980 }
2981
2982
2983 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2984 PyObject *resultobj;
2985 wxBitmap *arg1 = (wxBitmap *) 0 ;
2986 long result;
2987 PyObject * obj0 = 0 ;
2988 char *kwnames[] = {
2989 (char *) "self", NULL
2990 };
2991
2992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2995 {
2996 PyThreadState* __tstate = wxPyBeginAllowThreads();
2997 result = (long)(arg1)->GetHandle();
2998
2999 wxPyEndAllowThreads(__tstate);
3000 if (PyErr_Occurred()) SWIG_fail;
3001 }
3002 resultobj = SWIG_FromLong((long)result);
3003 return resultobj;
3004 fail:
3005 return NULL;
3006 }
3007
3008
3009 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3010 PyObject *resultobj;
3011 wxBitmap *arg1 = (wxBitmap *) 0 ;
3012 long arg2 ;
3013 PyObject * obj0 = 0 ;
3014 PyObject * obj1 = 0 ;
3015 char *kwnames[] = {
3016 (char *) "self",(char *) "handle", NULL
3017 };
3018
3019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3022 arg2 = (long) SWIG_AsLong(obj1);
3023 if (PyErr_Occurred()) SWIG_fail;
3024 {
3025 PyThreadState* __tstate = wxPyBeginAllowThreads();
3026 wxBitmap_SetHandle(arg1,arg2);
3027
3028 wxPyEndAllowThreads(__tstate);
3029 if (PyErr_Occurred()) SWIG_fail;
3030 }
3031 Py_INCREF(Py_None); resultobj = Py_None;
3032 return resultobj;
3033 fail:
3034 return NULL;
3035 }
3036
3037
3038 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3039 PyObject *resultobj;
3040 wxBitmap *arg1 = (wxBitmap *) 0 ;
3041 bool result;
3042 PyObject * obj0 = 0 ;
3043 char *kwnames[] = {
3044 (char *) "self", NULL
3045 };
3046
3047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
3048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3050 {
3051 PyThreadState* __tstate = wxPyBeginAllowThreads();
3052 result = (bool)(arg1)->Ok();
3053
3054 wxPyEndAllowThreads(__tstate);
3055 if (PyErr_Occurred()) SWIG_fail;
3056 }
3057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3058 return resultobj;
3059 fail:
3060 return NULL;
3061 }
3062
3063
3064 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3065 PyObject *resultobj;
3066 wxBitmap *arg1 = (wxBitmap *) 0 ;
3067 int result;
3068 PyObject * obj0 = 0 ;
3069 char *kwnames[] = {
3070 (char *) "self", NULL
3071 };
3072
3073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
3074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3076 {
3077 PyThreadState* __tstate = wxPyBeginAllowThreads();
3078 result = (int)(arg1)->GetWidth();
3079
3080 wxPyEndAllowThreads(__tstate);
3081 if (PyErr_Occurred()) SWIG_fail;
3082 }
3083 resultobj = SWIG_FromInt((int)result);
3084 return resultobj;
3085 fail:
3086 return NULL;
3087 }
3088
3089
3090 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3091 PyObject *resultobj;
3092 wxBitmap *arg1 = (wxBitmap *) 0 ;
3093 int result;
3094 PyObject * obj0 = 0 ;
3095 char *kwnames[] = {
3096 (char *) "self", NULL
3097 };
3098
3099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3102 {
3103 PyThreadState* __tstate = wxPyBeginAllowThreads();
3104 result = (int)(arg1)->GetHeight();
3105
3106 wxPyEndAllowThreads(__tstate);
3107 if (PyErr_Occurred()) SWIG_fail;
3108 }
3109 resultobj = SWIG_FromInt((int)result);
3110 return resultobj;
3111 fail:
3112 return NULL;
3113 }
3114
3115
3116 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3117 PyObject *resultobj;
3118 wxBitmap *arg1 = (wxBitmap *) 0 ;
3119 int result;
3120 PyObject * obj0 = 0 ;
3121 char *kwnames[] = {
3122 (char *) "self", NULL
3123 };
3124
3125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3128 {
3129 PyThreadState* __tstate = wxPyBeginAllowThreads();
3130 result = (int)(arg1)->GetDepth();
3131
3132 wxPyEndAllowThreads(__tstate);
3133 if (PyErr_Occurred()) SWIG_fail;
3134 }
3135 resultobj = SWIG_FromInt((int)result);
3136 return resultobj;
3137 fail:
3138 return NULL;
3139 }
3140
3141
3142 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3143 PyObject *resultobj;
3144 wxBitmap *arg1 = (wxBitmap *) 0 ;
3145 SwigValueWrapper< wxImage > result;
3146 PyObject * obj0 = 0 ;
3147 char *kwnames[] = {
3148 (char *) "self", NULL
3149 };
3150
3151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3154 {
3155 PyThreadState* __tstate = wxPyBeginAllowThreads();
3156 result = ((wxBitmap const *)arg1)->ConvertToImage();
3157
3158 wxPyEndAllowThreads(__tstate);
3159 if (PyErr_Occurred()) SWIG_fail;
3160 }
3161 {
3162 wxImage * resultptr;
3163 resultptr = new wxImage((wxImage &) result);
3164 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3165 }
3166 return resultobj;
3167 fail:
3168 return NULL;
3169 }
3170
3171
3172 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3173 PyObject *resultobj;
3174 wxBitmap *arg1 = (wxBitmap *) 0 ;
3175 wxMask *result;
3176 PyObject * obj0 = 0 ;
3177 char *kwnames[] = {
3178 (char *) "self", NULL
3179 };
3180
3181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3184 {
3185 PyThreadState* __tstate = wxPyBeginAllowThreads();
3186 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3187
3188 wxPyEndAllowThreads(__tstate);
3189 if (PyErr_Occurred()) SWIG_fail;
3190 }
3191 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3192 return resultobj;
3193 fail:
3194 return NULL;
3195 }
3196
3197
3198 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3199 PyObject *resultobj;
3200 wxBitmap *arg1 = (wxBitmap *) 0 ;
3201 wxMask *arg2 = (wxMask *) 0 ;
3202 PyObject * obj0 = 0 ;
3203 PyObject * obj1 = 0 ;
3204 char *kwnames[] = {
3205 (char *) "self",(char *) "mask", NULL
3206 };
3207
3208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3211 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3213 {
3214 PyThreadState* __tstate = wxPyBeginAllowThreads();
3215 (arg1)->SetMask(arg2);
3216
3217 wxPyEndAllowThreads(__tstate);
3218 if (PyErr_Occurred()) SWIG_fail;
3219 }
3220 Py_INCREF(Py_None); resultobj = Py_None;
3221 return resultobj;
3222 fail:
3223 return NULL;
3224 }
3225
3226
3227 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3228 PyObject *resultobj;
3229 wxBitmap *arg1 = (wxBitmap *) 0 ;
3230 wxColour *arg2 = 0 ;
3231 wxColour temp2 ;
3232 PyObject * obj0 = 0 ;
3233 PyObject * obj1 = 0 ;
3234 char *kwnames[] = {
3235 (char *) "self",(char *) "colour", NULL
3236 };
3237
3238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3241 {
3242 arg2 = &temp2;
3243 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3244 }
3245 {
3246 PyThreadState* __tstate = wxPyBeginAllowThreads();
3247 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3248
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 Py_INCREF(Py_None); resultobj = Py_None;
3253 return resultobj;
3254 fail:
3255 return NULL;
3256 }
3257
3258
3259 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3260 PyObject *resultobj;
3261 wxBitmap *arg1 = (wxBitmap *) 0 ;
3262 wxRect *arg2 = 0 ;
3263 SwigValueWrapper< wxBitmap > result;
3264 wxRect temp2 ;
3265 PyObject * obj0 = 0 ;
3266 PyObject * obj1 = 0 ;
3267 char *kwnames[] = {
3268 (char *) "self",(char *) "rect", NULL
3269 };
3270
3271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3274 {
3275 arg2 = &temp2;
3276 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3277 }
3278 {
3279 PyThreadState* __tstate = wxPyBeginAllowThreads();
3280 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3281
3282 wxPyEndAllowThreads(__tstate);
3283 if (PyErr_Occurred()) SWIG_fail;
3284 }
3285 {
3286 wxBitmap * resultptr;
3287 resultptr = new wxBitmap((wxBitmap &) result);
3288 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3289 }
3290 return resultobj;
3291 fail:
3292 return NULL;
3293 }
3294
3295
3296 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3297 PyObject *resultobj;
3298 wxBitmap *arg1 = (wxBitmap *) 0 ;
3299 wxString *arg2 = 0 ;
3300 int arg3 ;
3301 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
3302 bool result;
3303 bool temp2 = False ;
3304 PyObject * obj0 = 0 ;
3305 PyObject * obj1 = 0 ;
3306 PyObject * obj2 = 0 ;
3307 PyObject * obj3 = 0 ;
3308 char *kwnames[] = {
3309 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3310 };
3311
3312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3315 {
3316 arg2 = wxString_in_helper(obj1);
3317 if (arg2 == NULL) SWIG_fail;
3318 temp2 = True;
3319 }
3320 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3321 if (PyErr_Occurred()) SWIG_fail;
3322 if (obj3) {
3323 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3325 }
3326 {
3327 PyThreadState* __tstate = wxPyBeginAllowThreads();
3328 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3329
3330 wxPyEndAllowThreads(__tstate);
3331 if (PyErr_Occurred()) SWIG_fail;
3332 }
3333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3334 {
3335 if (temp2)
3336 delete arg2;
3337 }
3338 return resultobj;
3339 fail:
3340 {
3341 if (temp2)
3342 delete arg2;
3343 }
3344 return NULL;
3345 }
3346
3347
3348 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3349 PyObject *resultobj;
3350 wxBitmap *arg1 = (wxBitmap *) 0 ;
3351 wxString *arg2 = 0 ;
3352 int arg3 ;
3353 bool result;
3354 bool temp2 = False ;
3355 PyObject * obj0 = 0 ;
3356 PyObject * obj1 = 0 ;
3357 PyObject * obj2 = 0 ;
3358 char *kwnames[] = {
3359 (char *) "self",(char *) "name",(char *) "type", NULL
3360 };
3361
3362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3365 {
3366 arg2 = wxString_in_helper(obj1);
3367 if (arg2 == NULL) SWIG_fail;
3368 temp2 = True;
3369 }
3370 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 {
3373 PyThreadState* __tstate = wxPyBeginAllowThreads();
3374 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3375
3376 wxPyEndAllowThreads(__tstate);
3377 if (PyErr_Occurred()) SWIG_fail;
3378 }
3379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3380 {
3381 if (temp2)
3382 delete arg2;
3383 }
3384 return resultobj;
3385 fail:
3386 {
3387 if (temp2)
3388 delete arg2;
3389 }
3390 return NULL;
3391 }
3392
3393
3394 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3395 PyObject *resultobj;
3396 wxBitmap *arg1 = (wxBitmap *) 0 ;
3397 wxIcon *arg2 = 0 ;
3398 bool result;
3399 PyObject * obj0 = 0 ;
3400 PyObject * obj1 = 0 ;
3401 char *kwnames[] = {
3402 (char *) "self",(char *) "icon", NULL
3403 };
3404
3405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3408 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3409 SWIG_POINTER_EXCEPTION | 0)) == -1)
3410 SWIG_fail;
3411 if (arg2 == NULL) {
3412 PyErr_SetString(PyExc_TypeError,"null reference");
3413 SWIG_fail;
3414 }
3415 {
3416 PyThreadState* __tstate = wxPyBeginAllowThreads();
3417 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3418
3419 wxPyEndAllowThreads(__tstate);
3420 if (PyErr_Occurred()) SWIG_fail;
3421 }
3422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3423 return resultobj;
3424 fail:
3425 return NULL;
3426 }
3427
3428
3429 static PyObject *_wrap_Bitmap_SetHeight(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 *) "height", NULL
3437 };
3438
3439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",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)->SetHeight(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_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3459 PyObject *resultobj;
3460 wxBitmap *arg1 = (wxBitmap *) 0 ;
3461 int arg2 ;
3462 PyObject * obj0 = 0 ;
3463 PyObject * obj1 = 0 ;
3464 char *kwnames[] = {
3465 (char *) "self",(char *) "width", NULL
3466 };
3467
3468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3471 arg2 = (int) SWIG_AsInt(obj1);
3472 if (PyErr_Occurred()) SWIG_fail;
3473 {
3474 PyThreadState* __tstate = wxPyBeginAllowThreads();
3475 (arg1)->SetWidth(arg2);
3476
3477 wxPyEndAllowThreads(__tstate);
3478 if (PyErr_Occurred()) SWIG_fail;
3479 }
3480 Py_INCREF(Py_None); resultobj = Py_None;
3481 return resultobj;
3482 fail:
3483 return NULL;
3484 }
3485
3486
3487 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3488 PyObject *resultobj;
3489 wxBitmap *arg1 = (wxBitmap *) 0 ;
3490 int arg2 ;
3491 PyObject * obj0 = 0 ;
3492 PyObject * obj1 = 0 ;
3493 char *kwnames[] = {
3494 (char *) "self",(char *) "depth", NULL
3495 };
3496
3497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3500 arg2 = (int) SWIG_AsInt(obj1);
3501 if (PyErr_Occurred()) SWIG_fail;
3502 {
3503 PyThreadState* __tstate = wxPyBeginAllowThreads();
3504 (arg1)->SetDepth(arg2);
3505
3506 wxPyEndAllowThreads(__tstate);
3507 if (PyErr_Occurred()) SWIG_fail;
3508 }
3509 Py_INCREF(Py_None); resultobj = Py_None;
3510 return resultobj;
3511 fail:
3512 return NULL;
3513 }
3514
3515
3516 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3517 PyObject *resultobj;
3518 wxBitmap *arg1 = (wxBitmap *) 0 ;
3519 wxCursor *arg2 = 0 ;
3520 bool result;
3521 PyObject * obj0 = 0 ;
3522 PyObject * obj1 = 0 ;
3523 char *kwnames[] = {
3524 (char *) "self",(char *) "cursor", NULL
3525 };
3526
3527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3531 SWIG_POINTER_EXCEPTION | 0)) == -1)
3532 SWIG_fail;
3533 if (arg2 == NULL) {
3534 PyErr_SetString(PyExc_TypeError,"null reference");
3535 SWIG_fail;
3536 }
3537 {
3538 PyThreadState* __tstate = wxPyBeginAllowThreads();
3539 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3540
3541 wxPyEndAllowThreads(__tstate);
3542 if (PyErr_Occurred()) SWIG_fail;
3543 }
3544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3545 return resultobj;
3546 fail:
3547 return NULL;
3548 }
3549
3550
3551 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3552 PyObject *resultobj;
3553 wxBitmap *arg1 = (wxBitmap *) 0 ;
3554 int result;
3555 PyObject * obj0 = 0 ;
3556 char *kwnames[] = {
3557 (char *) "self", NULL
3558 };
3559
3560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3563 {
3564 PyThreadState* __tstate = wxPyBeginAllowThreads();
3565 result = (int)(arg1)->GetQuality();
3566
3567 wxPyEndAllowThreads(__tstate);
3568 if (PyErr_Occurred()) SWIG_fail;
3569 }
3570 resultobj = SWIG_FromInt((int)result);
3571 return resultobj;
3572 fail:
3573 return NULL;
3574 }
3575
3576
3577 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3578 PyObject *resultobj;
3579 wxBitmap *arg1 = (wxBitmap *) 0 ;
3580 int arg2 ;
3581 PyObject * obj0 = 0 ;
3582 PyObject * obj1 = 0 ;
3583 char *kwnames[] = {
3584 (char *) "self",(char *) "q", NULL
3585 };
3586
3587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3590 arg2 = (int) SWIG_AsInt(obj1);
3591 if (PyErr_Occurred()) SWIG_fail;
3592 {
3593 PyThreadState* __tstate = wxPyBeginAllowThreads();
3594 (arg1)->SetQuality(arg2);
3595
3596 wxPyEndAllowThreads(__tstate);
3597 if (PyErr_Occurred()) SWIG_fail;
3598 }
3599 Py_INCREF(Py_None); resultobj = Py_None;
3600 return resultobj;
3601 fail:
3602 return NULL;
3603 }
3604
3605
3606 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3607 PyObject *obj;
3608 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3609 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3610 Py_INCREF(obj);
3611 return Py_BuildValue((char *)"");
3612 }
3613 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3614 PyObject *resultobj;
3615 wxBitmap *arg1 = 0 ;
3616 wxColour const &arg2_defvalue = wxNullColour ;
3617 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3618 wxMask *result;
3619 wxColour temp2 ;
3620 PyObject * obj0 = 0 ;
3621 PyObject * obj1 = 0 ;
3622 char *kwnames[] = {
3623 (char *) "bitmap",(char *) "colour", NULL
3624 };
3625
3626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3628 SWIG_POINTER_EXCEPTION | 0)) == -1)
3629 SWIG_fail;
3630 if (arg1 == NULL) {
3631 PyErr_SetString(PyExc_TypeError,"null reference");
3632 SWIG_fail;
3633 }
3634 if (obj1) {
3635 {
3636 arg2 = &temp2;
3637 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3638 }
3639 }
3640 {
3641 PyThreadState* __tstate = wxPyBeginAllowThreads();
3642 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3643
3644 wxPyEndAllowThreads(__tstate);
3645 if (PyErr_Occurred()) SWIG_fail;
3646 }
3647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3648 return resultobj;
3649 fail:
3650 return NULL;
3651 }
3652
3653
3654 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3655 PyObject *obj;
3656 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3657 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3658 Py_INCREF(obj);
3659 return Py_BuildValue((char *)"");
3660 }
3661 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3662 PyObject *resultobj;
3663 wxString *arg1 = 0 ;
3664 int arg2 ;
3665 int arg3 = (int) -1 ;
3666 int arg4 = (int) -1 ;
3667 wxIcon *result;
3668 bool temp1 = False ;
3669 PyObject * obj0 = 0 ;
3670 PyObject * obj1 = 0 ;
3671 PyObject * obj2 = 0 ;
3672 PyObject * obj3 = 0 ;
3673 char *kwnames[] = {
3674 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3675 };
3676
3677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3678 {
3679 arg1 = wxString_in_helper(obj0);
3680 if (arg1 == NULL) SWIG_fail;
3681 temp1 = True;
3682 }
3683 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3684 if (PyErr_Occurred()) SWIG_fail;
3685 if (obj2) {
3686 arg3 = (int) SWIG_AsInt(obj2);
3687 if (PyErr_Occurred()) SWIG_fail;
3688 }
3689 if (obj3) {
3690 arg4 = (int) SWIG_AsInt(obj3);
3691 if (PyErr_Occurred()) SWIG_fail;
3692 }
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3696
3697 wxPyEndAllowThreads(__tstate);
3698 if (PyErr_Occurred()) SWIG_fail;
3699 }
3700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3701 {
3702 if (temp1)
3703 delete arg1;
3704 }
3705 return resultobj;
3706 fail:
3707 {
3708 if (temp1)
3709 delete arg1;
3710 }
3711 return NULL;
3712 }
3713
3714
3715 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3716 PyObject *resultobj;
3717 wxIcon *arg1 = (wxIcon *) 0 ;
3718 PyObject * obj0 = 0 ;
3719 char *kwnames[] = {
3720 (char *) "self", NULL
3721 };
3722
3723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3726 {
3727 PyThreadState* __tstate = wxPyBeginAllowThreads();
3728 delete arg1;
3729
3730 wxPyEndAllowThreads(__tstate);
3731 if (PyErr_Occurred()) SWIG_fail;
3732 }
3733 Py_INCREF(Py_None); resultobj = Py_None;
3734 return resultobj;
3735 fail:
3736 return NULL;
3737 }
3738
3739
3740 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3741 PyObject *resultobj;
3742 wxIcon *result;
3743 char *kwnames[] = {
3744 NULL
3745 };
3746
3747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3748 {
3749 PyThreadState* __tstate = wxPyBeginAllowThreads();
3750 result = (wxIcon *)new wxIcon();
3751
3752 wxPyEndAllowThreads(__tstate);
3753 if (PyErr_Occurred()) SWIG_fail;
3754 }
3755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3756 return resultobj;
3757 fail:
3758 return NULL;
3759 }
3760
3761
3762 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3763 PyObject *resultobj;
3764 wxIconLocation *arg1 = 0 ;
3765 wxIcon *result;
3766 PyObject * obj0 = 0 ;
3767 char *kwnames[] = {
3768 (char *) "loc", NULL
3769 };
3770
3771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3773 SWIG_POINTER_EXCEPTION | 0)) == -1)
3774 SWIG_fail;
3775 if (arg1 == NULL) {
3776 PyErr_SetString(PyExc_TypeError,"null reference");
3777 SWIG_fail;
3778 }
3779 {
3780 PyThreadState* __tstate = wxPyBeginAllowThreads();
3781 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3782
3783 wxPyEndAllowThreads(__tstate);
3784 if (PyErr_Occurred()) SWIG_fail;
3785 }
3786 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3787 return resultobj;
3788 fail:
3789 return NULL;
3790 }
3791
3792
3793 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3794 PyObject *resultobj;
3795 wxBitmap *arg1 = 0 ;
3796 wxIcon *result;
3797 PyObject * obj0 = 0 ;
3798 char *kwnames[] = {
3799 (char *) "bmp", NULL
3800 };
3801
3802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3804 SWIG_POINTER_EXCEPTION | 0)) == -1)
3805 SWIG_fail;
3806 if (arg1 == NULL) {
3807 PyErr_SetString(PyExc_TypeError,"null reference");
3808 SWIG_fail;
3809 }
3810 {
3811 PyThreadState* __tstate = wxPyBeginAllowThreads();
3812 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3813
3814 wxPyEndAllowThreads(__tstate);
3815 if (PyErr_Occurred()) SWIG_fail;
3816 }
3817 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3818 return resultobj;
3819 fail:
3820 return NULL;
3821 }
3822
3823
3824 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3825 PyObject *resultobj;
3826 PyObject *arg1 = (PyObject *) 0 ;
3827 wxIcon *result;
3828 PyObject * obj0 = 0 ;
3829 char *kwnames[] = {
3830 (char *) "listOfStrings", NULL
3831 };
3832
3833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3834 arg1 = obj0;
3835 {
3836 PyThreadState* __tstate = wxPyBeginAllowThreads();
3837 result = (wxIcon *)new_wxIcon(arg1);
3838
3839 wxPyEndAllowThreads(__tstate);
3840 if (PyErr_Occurred()) SWIG_fail;
3841 }
3842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3843 return resultobj;
3844 fail:
3845 return NULL;
3846 }
3847
3848
3849 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3850 PyObject *resultobj;
3851 wxIcon *arg1 = (wxIcon *) 0 ;
3852 wxString *arg2 = 0 ;
3853 int arg3 ;
3854 bool result;
3855 bool temp2 = False ;
3856 PyObject * obj0 = 0 ;
3857 PyObject * obj1 = 0 ;
3858 PyObject * obj2 = 0 ;
3859 char *kwnames[] = {
3860 (char *) "self",(char *) "name",(char *) "type", NULL
3861 };
3862
3863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3866 {
3867 arg2 = wxString_in_helper(obj1);
3868 if (arg2 == NULL) SWIG_fail;
3869 temp2 = True;
3870 }
3871 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3872 if (PyErr_Occurred()) SWIG_fail;
3873 {
3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
3875 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3876
3877 wxPyEndAllowThreads(__tstate);
3878 if (PyErr_Occurred()) SWIG_fail;
3879 }
3880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3881 {
3882 if (temp2)
3883 delete arg2;
3884 }
3885 return resultobj;
3886 fail:
3887 {
3888 if (temp2)
3889 delete arg2;
3890 }
3891 return NULL;
3892 }
3893
3894
3895 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3896 PyObject *resultobj;
3897 wxIcon *arg1 = (wxIcon *) 0 ;
3898 long result;
3899 PyObject * obj0 = 0 ;
3900 char *kwnames[] = {
3901 (char *) "self", NULL
3902 };
3903
3904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
3905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3907 {
3908 PyThreadState* __tstate = wxPyBeginAllowThreads();
3909 result = (long)(arg1)->GetHandle();
3910
3911 wxPyEndAllowThreads(__tstate);
3912 if (PyErr_Occurred()) SWIG_fail;
3913 }
3914 resultobj = SWIG_FromLong((long)result);
3915 return resultobj;
3916 fail:
3917 return NULL;
3918 }
3919
3920
3921 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3922 PyObject *resultobj;
3923 wxIcon *arg1 = (wxIcon *) 0 ;
3924 long arg2 ;
3925 PyObject * obj0 = 0 ;
3926 PyObject * obj1 = 0 ;
3927 char *kwnames[] = {
3928 (char *) "self",(char *) "handle", NULL
3929 };
3930
3931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3934 arg2 = (long) SWIG_AsLong(obj1);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 {
3937 PyThreadState* __tstate = wxPyBeginAllowThreads();
3938 wxIcon_SetHandle(arg1,arg2);
3939
3940 wxPyEndAllowThreads(__tstate);
3941 if (PyErr_Occurred()) SWIG_fail;
3942 }
3943 Py_INCREF(Py_None); resultobj = Py_None;
3944 return resultobj;
3945 fail:
3946 return NULL;
3947 }
3948
3949
3950 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3951 PyObject *resultobj;
3952 wxIcon *arg1 = (wxIcon *) 0 ;
3953 bool result;
3954 PyObject * obj0 = 0 ;
3955 char *kwnames[] = {
3956 (char *) "self", NULL
3957 };
3958
3959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3962 {
3963 PyThreadState* __tstate = wxPyBeginAllowThreads();
3964 result = (bool)(arg1)->Ok();
3965
3966 wxPyEndAllowThreads(__tstate);
3967 if (PyErr_Occurred()) SWIG_fail;
3968 }
3969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3970 return resultobj;
3971 fail:
3972 return NULL;
3973 }
3974
3975
3976 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3977 PyObject *resultobj;
3978 wxIcon *arg1 = (wxIcon *) 0 ;
3979 int result;
3980 PyObject * obj0 = 0 ;
3981 char *kwnames[] = {
3982 (char *) "self", NULL
3983 };
3984
3985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3988 {
3989 PyThreadState* __tstate = wxPyBeginAllowThreads();
3990 result = (int)(arg1)->GetWidth();
3991
3992 wxPyEndAllowThreads(__tstate);
3993 if (PyErr_Occurred()) SWIG_fail;
3994 }
3995 resultobj = SWIG_FromInt((int)result);
3996 return resultobj;
3997 fail:
3998 return NULL;
3999 }
4000
4001
4002 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4003 PyObject *resultobj;
4004 wxIcon *arg1 = (wxIcon *) 0 ;
4005 int result;
4006 PyObject * obj0 = 0 ;
4007 char *kwnames[] = {
4008 (char *) "self", NULL
4009 };
4010
4011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 result = (int)(arg1)->GetHeight();
4017
4018 wxPyEndAllowThreads(__tstate);
4019 if (PyErr_Occurred()) SWIG_fail;
4020 }
4021 resultobj = SWIG_FromInt((int)result);
4022 return resultobj;
4023 fail:
4024 return NULL;
4025 }
4026
4027
4028 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4029 PyObject *resultobj;
4030 wxIcon *arg1 = (wxIcon *) 0 ;
4031 int result;
4032 PyObject * obj0 = 0 ;
4033 char *kwnames[] = {
4034 (char *) "self", NULL
4035 };
4036
4037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4040 {
4041 PyThreadState* __tstate = wxPyBeginAllowThreads();
4042 result = (int)(arg1)->GetDepth();
4043
4044 wxPyEndAllowThreads(__tstate);
4045 if (PyErr_Occurred()) SWIG_fail;
4046 }
4047 resultobj = SWIG_FromInt((int)result);
4048 return resultobj;
4049 fail:
4050 return NULL;
4051 }
4052
4053
4054 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4055 PyObject *resultobj;
4056 wxIcon *arg1 = (wxIcon *) 0 ;
4057 int arg2 ;
4058 PyObject * obj0 = 0 ;
4059 PyObject * obj1 = 0 ;
4060 char *kwnames[] = {
4061 (char *) "self",(char *) "w", NULL
4062 };
4063
4064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4067 arg2 = (int) SWIG_AsInt(obj1);
4068 if (PyErr_Occurred()) SWIG_fail;
4069 {
4070 PyThreadState* __tstate = wxPyBeginAllowThreads();
4071 (arg1)->SetWidth(arg2);
4072
4073 wxPyEndAllowThreads(__tstate);
4074 if (PyErr_Occurred()) SWIG_fail;
4075 }
4076 Py_INCREF(Py_None); resultobj = Py_None;
4077 return resultobj;
4078 fail:
4079 return NULL;
4080 }
4081
4082
4083 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4084 PyObject *resultobj;
4085 wxIcon *arg1 = (wxIcon *) 0 ;
4086 int arg2 ;
4087 PyObject * obj0 = 0 ;
4088 PyObject * obj1 = 0 ;
4089 char *kwnames[] = {
4090 (char *) "self",(char *) "h", NULL
4091 };
4092
4093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4096 arg2 = (int) SWIG_AsInt(obj1);
4097 if (PyErr_Occurred()) SWIG_fail;
4098 {
4099 PyThreadState* __tstate = wxPyBeginAllowThreads();
4100 (arg1)->SetHeight(arg2);
4101
4102 wxPyEndAllowThreads(__tstate);
4103 if (PyErr_Occurred()) SWIG_fail;
4104 }
4105 Py_INCREF(Py_None); resultobj = Py_None;
4106 return resultobj;
4107 fail:
4108 return NULL;
4109 }
4110
4111
4112 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4113 PyObject *resultobj;
4114 wxIcon *arg1 = (wxIcon *) 0 ;
4115 int arg2 ;
4116 PyObject * obj0 = 0 ;
4117 PyObject * obj1 = 0 ;
4118 char *kwnames[] = {
4119 (char *) "self",(char *) "d", NULL
4120 };
4121
4122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4125 arg2 = (int) SWIG_AsInt(obj1);
4126 if (PyErr_Occurred()) SWIG_fail;
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 (arg1)->SetDepth(arg2);
4130
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 Py_INCREF(Py_None); resultobj = Py_None;
4135 return resultobj;
4136 fail:
4137 return NULL;
4138 }
4139
4140
4141 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4142 PyObject *resultobj;
4143 wxIcon *arg1 = (wxIcon *) 0 ;
4144 wxSize *arg2 = 0 ;
4145 wxSize temp2 ;
4146 PyObject * obj0 = 0 ;
4147 PyObject * obj1 = 0 ;
4148 char *kwnames[] = {
4149 (char *) "self",(char *) "size", NULL
4150 };
4151
4152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4155 {
4156 arg2 = &temp2;
4157 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4158 }
4159 {
4160 PyThreadState* __tstate = wxPyBeginAllowThreads();
4161 (arg1)->SetSize((wxSize const &)*arg2);
4162
4163 wxPyEndAllowThreads(__tstate);
4164 if (PyErr_Occurred()) SWIG_fail;
4165 }
4166 Py_INCREF(Py_None); resultobj = Py_None;
4167 return resultobj;
4168 fail:
4169 return NULL;
4170 }
4171
4172
4173 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4174 PyObject *resultobj;
4175 wxIcon *arg1 = (wxIcon *) 0 ;
4176 wxBitmap *arg2 = 0 ;
4177 PyObject * obj0 = 0 ;
4178 PyObject * obj1 = 0 ;
4179 char *kwnames[] = {
4180 (char *) "self",(char *) "bmp", NULL
4181 };
4182
4183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4186 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4187 SWIG_POINTER_EXCEPTION | 0)) == -1)
4188 SWIG_fail;
4189 if (arg2 == NULL) {
4190 PyErr_SetString(PyExc_TypeError,"null reference");
4191 SWIG_fail;
4192 }
4193 {
4194 PyThreadState* __tstate = wxPyBeginAllowThreads();
4195 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4196
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 Py_INCREF(Py_None); resultobj = Py_None;
4201 return resultobj;
4202 fail:
4203 return NULL;
4204 }
4205
4206
4207 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4208 PyObject *obj;
4209 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4210 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4211 Py_INCREF(obj);
4212 return Py_BuildValue((char *)"");
4213 }
4214 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4215 PyObject *resultobj;
4216 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4217 int arg2 = (int) 0 ;
4218 wxIconLocation *result;
4219 bool temp1 = False ;
4220 PyObject * obj0 = 0 ;
4221 PyObject * obj1 = 0 ;
4222 char *kwnames[] = {
4223 (char *) "filename",(char *) "num", NULL
4224 };
4225
4226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4227 if (obj0) {
4228 {
4229 arg1 = wxString_in_helper(obj0);
4230 if (arg1 == NULL) SWIG_fail;
4231 temp1 = True;
4232 }
4233 }
4234 if (obj1) {
4235 arg2 = (int) SWIG_AsInt(obj1);
4236 if (PyErr_Occurred()) SWIG_fail;
4237 }
4238 {
4239 PyThreadState* __tstate = wxPyBeginAllowThreads();
4240 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4241
4242 wxPyEndAllowThreads(__tstate);
4243 if (PyErr_Occurred()) SWIG_fail;
4244 }
4245 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4246 {
4247 if (temp1)
4248 delete arg1;
4249 }
4250 return resultobj;
4251 fail:
4252 {
4253 if (temp1)
4254 delete arg1;
4255 }
4256 return NULL;
4257 }
4258
4259
4260 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4261 PyObject *resultobj;
4262 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4263 PyObject * obj0 = 0 ;
4264 char *kwnames[] = {
4265 (char *) "self", NULL
4266 };
4267
4268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4271 {
4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
4273 delete arg1;
4274
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 Py_INCREF(Py_None); resultobj = Py_None;
4279 return resultobj;
4280 fail:
4281 return NULL;
4282 }
4283
4284
4285 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4286 PyObject *resultobj;
4287 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4288 bool result;
4289 PyObject * obj0 = 0 ;
4290 char *kwnames[] = {
4291 (char *) "self", NULL
4292 };
4293
4294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4300
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4305 return resultobj;
4306 fail:
4307 return NULL;
4308 }
4309
4310
4311 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4312 PyObject *resultobj;
4313 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4314 wxString *arg2 = 0 ;
4315 bool temp2 = False ;
4316 PyObject * obj0 = 0 ;
4317 PyObject * obj1 = 0 ;
4318 char *kwnames[] = {
4319 (char *) "self",(char *) "filename", NULL
4320 };
4321
4322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4325 {
4326 arg2 = wxString_in_helper(obj1);
4327 if (arg2 == NULL) SWIG_fail;
4328 temp2 = True;
4329 }
4330 {
4331 PyThreadState* __tstate = wxPyBeginAllowThreads();
4332 (arg1)->SetFileName((wxString const &)*arg2);
4333
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 Py_INCREF(Py_None); resultobj = Py_None;
4338 {
4339 if (temp2)
4340 delete arg2;
4341 }
4342 return resultobj;
4343 fail:
4344 {
4345 if (temp2)
4346 delete arg2;
4347 }
4348 return NULL;
4349 }
4350
4351
4352 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4353 PyObject *resultobj;
4354 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4355 wxString *result;
4356 PyObject * obj0 = 0 ;
4357 char *kwnames[] = {
4358 (char *) "self", NULL
4359 };
4360
4361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4364 {
4365 PyThreadState* __tstate = wxPyBeginAllowThreads();
4366 {
4367 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4368 result = (wxString *) &_result_ref;
4369 }
4370
4371 wxPyEndAllowThreads(__tstate);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 }
4374 {
4375 #if wxUSE_UNICODE
4376 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4377 #else
4378 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4379 #endif
4380 }
4381 return resultobj;
4382 fail:
4383 return NULL;
4384 }
4385
4386
4387 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4388 PyObject *resultobj;
4389 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4390 int arg2 ;
4391 PyObject * obj0 = 0 ;
4392 PyObject * obj1 = 0 ;
4393 char *kwnames[] = {
4394 (char *) "self",(char *) "num", NULL
4395 };
4396
4397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4400 arg2 = (int) SWIG_AsInt(obj1);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 {
4403 PyThreadState* __tstate = wxPyBeginAllowThreads();
4404 wxIconLocation_SetIndex(arg1,arg2);
4405
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 Py_INCREF(Py_None); resultobj = Py_None;
4410 return resultobj;
4411 fail:
4412 return NULL;
4413 }
4414
4415
4416 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4417 PyObject *resultobj;
4418 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4419 int result;
4420 PyObject * obj0 = 0 ;
4421 char *kwnames[] = {
4422 (char *) "self", NULL
4423 };
4424
4425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4428 {
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 result = (int)wxIconLocation_GetIndex(arg1);
4431
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) SWIG_fail;
4434 }
4435 resultobj = SWIG_FromInt((int)result);
4436 return resultobj;
4437 fail:
4438 return NULL;
4439 }
4440
4441
4442 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4443 PyObject *obj;
4444 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4445 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4446 Py_INCREF(obj);
4447 return Py_BuildValue((char *)"");
4448 }
4449 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4450 PyObject *resultobj;
4451 wxIconBundle *result;
4452 char *kwnames[] = {
4453 NULL
4454 };
4455
4456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4457 {
4458 PyThreadState* __tstate = wxPyBeginAllowThreads();
4459 result = (wxIconBundle *)new wxIconBundle();
4460
4461 wxPyEndAllowThreads(__tstate);
4462 if (PyErr_Occurred()) SWIG_fail;
4463 }
4464 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4465 return resultobj;
4466 fail:
4467 return NULL;
4468 }
4469
4470
4471 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4472 PyObject *resultobj;
4473 wxString *arg1 = 0 ;
4474 long arg2 ;
4475 wxIconBundle *result;
4476 bool temp1 = False ;
4477 PyObject * obj0 = 0 ;
4478 PyObject * obj1 = 0 ;
4479 char *kwnames[] = {
4480 (char *) "file",(char *) "type", NULL
4481 };
4482
4483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4484 {
4485 arg1 = wxString_in_helper(obj0);
4486 if (arg1 == NULL) SWIG_fail;
4487 temp1 = True;
4488 }
4489 arg2 = (long) SWIG_AsLong(obj1);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 {
4492 PyThreadState* __tstate = wxPyBeginAllowThreads();
4493 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4494
4495 wxPyEndAllowThreads(__tstate);
4496 if (PyErr_Occurred()) SWIG_fail;
4497 }
4498 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4499 {
4500 if (temp1)
4501 delete arg1;
4502 }
4503 return resultobj;
4504 fail:
4505 {
4506 if (temp1)
4507 delete arg1;
4508 }
4509 return NULL;
4510 }
4511
4512
4513 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4514 PyObject *resultobj;
4515 wxIcon *arg1 = 0 ;
4516 wxIconBundle *result;
4517 PyObject * obj0 = 0 ;
4518 char *kwnames[] = {
4519 (char *) "icon", NULL
4520 };
4521
4522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4524 SWIG_POINTER_EXCEPTION | 0)) == -1)
4525 SWIG_fail;
4526 if (arg1 == NULL) {
4527 PyErr_SetString(PyExc_TypeError,"null reference");
4528 SWIG_fail;
4529 }
4530 {
4531 PyThreadState* __tstate = wxPyBeginAllowThreads();
4532 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4533
4534 wxPyEndAllowThreads(__tstate);
4535 if (PyErr_Occurred()) SWIG_fail;
4536 }
4537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4538 return resultobj;
4539 fail:
4540 return NULL;
4541 }
4542
4543
4544 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4545 PyObject *resultobj;
4546 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4547 PyObject * obj0 = 0 ;
4548 char *kwnames[] = {
4549 (char *) "self", NULL
4550 };
4551
4552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4555 {
4556 PyThreadState* __tstate = wxPyBeginAllowThreads();
4557 delete arg1;
4558
4559 wxPyEndAllowThreads(__tstate);
4560 if (PyErr_Occurred()) SWIG_fail;
4561 }
4562 Py_INCREF(Py_None); resultobj = Py_None;
4563 return resultobj;
4564 fail:
4565 return NULL;
4566 }
4567
4568
4569 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4570 PyObject *resultobj;
4571 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4572 wxIcon *arg2 = 0 ;
4573 PyObject * obj0 = 0 ;
4574 PyObject * obj1 = 0 ;
4575 char *kwnames[] = {
4576 (char *) "self",(char *) "icon", NULL
4577 };
4578
4579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4582 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4583 SWIG_POINTER_EXCEPTION | 0)) == -1)
4584 SWIG_fail;
4585 if (arg2 == NULL) {
4586 PyErr_SetString(PyExc_TypeError,"null reference");
4587 SWIG_fail;
4588 }
4589 {
4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
4591 (arg1)->AddIcon((wxIcon const &)*arg2);
4592
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 Py_INCREF(Py_None); resultobj = Py_None;
4597 return resultobj;
4598 fail:
4599 return NULL;
4600 }
4601
4602
4603 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4604 PyObject *resultobj;
4605 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4606 wxString *arg2 = 0 ;
4607 long arg3 ;
4608 bool temp2 = False ;
4609 PyObject * obj0 = 0 ;
4610 PyObject * obj1 = 0 ;
4611 PyObject * obj2 = 0 ;
4612 char *kwnames[] = {
4613 (char *) "self",(char *) "file",(char *) "type", NULL
4614 };
4615
4616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4619 {
4620 arg2 = wxString_in_helper(obj1);
4621 if (arg2 == NULL) SWIG_fail;
4622 temp2 = True;
4623 }
4624 arg3 = (long) SWIG_AsLong(obj2);
4625 if (PyErr_Occurred()) SWIG_fail;
4626 {
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4629
4630 wxPyEndAllowThreads(__tstate);
4631 if (PyErr_Occurred()) SWIG_fail;
4632 }
4633 Py_INCREF(Py_None); resultobj = Py_None;
4634 {
4635 if (temp2)
4636 delete arg2;
4637 }
4638 return resultobj;
4639 fail:
4640 {
4641 if (temp2)
4642 delete arg2;
4643 }
4644 return NULL;
4645 }
4646
4647
4648 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4649 PyObject *resultobj;
4650 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4651 wxSize *arg2 = 0 ;
4652 wxIcon *result;
4653 wxSize temp2 ;
4654 PyObject * obj0 = 0 ;
4655 PyObject * obj1 = 0 ;
4656 char *kwnames[] = {
4657 (char *) "self",(char *) "size", NULL
4658 };
4659
4660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4663 {
4664 arg2 = &temp2;
4665 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4666 }
4667 {
4668 PyThreadState* __tstate = wxPyBeginAllowThreads();
4669 {
4670 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4671 result = (wxIcon *) &_result_ref;
4672 }
4673
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 0);
4678 return resultobj;
4679 fail:
4680 return NULL;
4681 }
4682
4683
4684 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4685 PyObject *obj;
4686 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4687 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4688 Py_INCREF(obj);
4689 return Py_BuildValue((char *)"");
4690 }
4691 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4692 PyObject *resultobj;
4693 wxString *arg1 = (wxString *) 0 ;
4694 long arg2 ;
4695 int arg3 = (int) 0 ;
4696 int arg4 = (int) 0 ;
4697 wxCursor *result;
4698 bool temp1 = False ;
4699 PyObject * obj0 = 0 ;
4700 PyObject * obj1 = 0 ;
4701 PyObject * obj2 = 0 ;
4702 PyObject * obj3 = 0 ;
4703 char *kwnames[] = {
4704 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4705 };
4706
4707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4708 {
4709 arg1 = wxString_in_helper(obj0);
4710 if (arg1 == NULL) SWIG_fail;
4711 temp1 = True;
4712 }
4713 arg2 = (long) SWIG_AsLong(obj1);
4714 if (PyErr_Occurred()) SWIG_fail;
4715 if (obj2) {
4716 arg3 = (int) SWIG_AsInt(obj2);
4717 if (PyErr_Occurred()) SWIG_fail;
4718 }
4719 if (obj3) {
4720 arg4 = (int) SWIG_AsInt(obj3);
4721 if (PyErr_Occurred()) SWIG_fail;
4722 }
4723 {
4724 PyThreadState* __tstate = wxPyBeginAllowThreads();
4725 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4726
4727 wxPyEndAllowThreads(__tstate);
4728 if (PyErr_Occurred()) SWIG_fail;
4729 }
4730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4731 {
4732 if (temp1)
4733 delete arg1;
4734 }
4735 return resultobj;
4736 fail:
4737 {
4738 if (temp1)
4739 delete arg1;
4740 }
4741 return NULL;
4742 }
4743
4744
4745 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4746 PyObject *resultobj;
4747 wxCursor *arg1 = (wxCursor *) 0 ;
4748 PyObject * obj0 = 0 ;
4749 char *kwnames[] = {
4750 (char *) "self", NULL
4751 };
4752
4753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4756 {
4757 PyThreadState* __tstate = wxPyBeginAllowThreads();
4758 delete arg1;
4759
4760 wxPyEndAllowThreads(__tstate);
4761 if (PyErr_Occurred()) SWIG_fail;
4762 }
4763 Py_INCREF(Py_None); resultobj = Py_None;
4764 return resultobj;
4765 fail:
4766 return NULL;
4767 }
4768
4769
4770 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4771 PyObject *resultobj;
4772 int arg1 ;
4773 wxCursor *result;
4774 PyObject * obj0 = 0 ;
4775 char *kwnames[] = {
4776 (char *) "id", NULL
4777 };
4778
4779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4780 arg1 = (int) SWIG_AsInt(obj0);
4781 if (PyErr_Occurred()) SWIG_fail;
4782 {
4783 PyThreadState* __tstate = wxPyBeginAllowThreads();
4784 result = (wxCursor *)new wxCursor(arg1);
4785
4786 wxPyEndAllowThreads(__tstate);
4787 if (PyErr_Occurred()) SWIG_fail;
4788 }
4789 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4790 return resultobj;
4791 fail:
4792 return NULL;
4793 }
4794
4795
4796 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4797 PyObject *resultobj;
4798 wxImage *arg1 = 0 ;
4799 wxCursor *result;
4800 PyObject * obj0 = 0 ;
4801 char *kwnames[] = {
4802 (char *) "image", NULL
4803 };
4804
4805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4807 SWIG_POINTER_EXCEPTION | 0)) == -1)
4808 SWIG_fail;
4809 if (arg1 == NULL) {
4810 PyErr_SetString(PyExc_TypeError,"null reference");
4811 SWIG_fail;
4812 }
4813 {
4814 PyThreadState* __tstate = wxPyBeginAllowThreads();
4815 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4816
4817 wxPyEndAllowThreads(__tstate);
4818 if (PyErr_Occurred()) SWIG_fail;
4819 }
4820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4821 return resultobj;
4822 fail:
4823 return NULL;
4824 }
4825
4826
4827 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4828 PyObject *resultobj;
4829 wxCursor *arg1 = (wxCursor *) 0 ;
4830 long result;
4831 PyObject * obj0 = 0 ;
4832 char *kwnames[] = {
4833 (char *) "self", NULL
4834 };
4835
4836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4839 {
4840 PyThreadState* __tstate = wxPyBeginAllowThreads();
4841 result = (long)(arg1)->GetHandle();
4842
4843 wxPyEndAllowThreads(__tstate);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 resultobj = SWIG_FromLong((long)result);
4847 return resultobj;
4848 fail:
4849 return NULL;
4850 }
4851
4852
4853 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4854 PyObject *resultobj;
4855 wxCursor *arg1 = (wxCursor *) 0 ;
4856 long arg2 ;
4857 PyObject * obj0 = 0 ;
4858 PyObject * obj1 = 0 ;
4859 char *kwnames[] = {
4860 (char *) "self",(char *) "handle", NULL
4861 };
4862
4863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4866 arg2 = (long) SWIG_AsLong(obj1);
4867 if (PyErr_Occurred()) SWIG_fail;
4868 {
4869 PyThreadState* __tstate = wxPyBeginAllowThreads();
4870 wxCursor_SetHandle(arg1,arg2);
4871
4872 wxPyEndAllowThreads(__tstate);
4873 if (PyErr_Occurred()) SWIG_fail;
4874 }
4875 Py_INCREF(Py_None); resultobj = Py_None;
4876 return resultobj;
4877 fail:
4878 return NULL;
4879 }
4880
4881
4882 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4883 PyObject *resultobj;
4884 wxCursor *arg1 = (wxCursor *) 0 ;
4885 bool result;
4886 PyObject * obj0 = 0 ;
4887 char *kwnames[] = {
4888 (char *) "self", NULL
4889 };
4890
4891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4894 {
4895 PyThreadState* __tstate = wxPyBeginAllowThreads();
4896 result = (bool)(arg1)->Ok();
4897
4898 wxPyEndAllowThreads(__tstate);
4899 if (PyErr_Occurred()) SWIG_fail;
4900 }
4901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4902 return resultobj;
4903 fail:
4904 return NULL;
4905 }
4906
4907
4908 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4909 PyObject *resultobj;
4910 wxCursor *arg1 = (wxCursor *) 0 ;
4911 int result;
4912 PyObject * obj0 = 0 ;
4913 char *kwnames[] = {
4914 (char *) "self", NULL
4915 };
4916
4917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4920 {
4921 PyThreadState* __tstate = wxPyBeginAllowThreads();
4922 result = (int)(arg1)->GetWidth();
4923
4924 wxPyEndAllowThreads(__tstate);
4925 if (PyErr_Occurred()) SWIG_fail;
4926 }
4927 resultobj = SWIG_FromInt((int)result);
4928 return resultobj;
4929 fail:
4930 return NULL;
4931 }
4932
4933
4934 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4935 PyObject *resultobj;
4936 wxCursor *arg1 = (wxCursor *) 0 ;
4937 int result;
4938 PyObject * obj0 = 0 ;
4939 char *kwnames[] = {
4940 (char *) "self", NULL
4941 };
4942
4943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
4944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4946 {
4947 PyThreadState* __tstate = wxPyBeginAllowThreads();
4948 result = (int)(arg1)->GetHeight();
4949
4950 wxPyEndAllowThreads(__tstate);
4951 if (PyErr_Occurred()) SWIG_fail;
4952 }
4953 resultobj = SWIG_FromInt((int)result);
4954 return resultobj;
4955 fail:
4956 return NULL;
4957 }
4958
4959
4960 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4961 PyObject *resultobj;
4962 wxCursor *arg1 = (wxCursor *) 0 ;
4963 int result;
4964 PyObject * obj0 = 0 ;
4965 char *kwnames[] = {
4966 (char *) "self", NULL
4967 };
4968
4969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
4970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4972 {
4973 PyThreadState* __tstate = wxPyBeginAllowThreads();
4974 result = (int)(arg1)->GetDepth();
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_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4987 PyObject *resultobj;
4988 wxCursor *arg1 = (wxCursor *) 0 ;
4989 int arg2 ;
4990 PyObject * obj0 = 0 ;
4991 PyObject * obj1 = 0 ;
4992 char *kwnames[] = {
4993 (char *) "self",(char *) "w", NULL
4994 };
4995
4996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4999 arg2 = (int) SWIG_AsInt(obj1);
5000 if (PyErr_Occurred()) SWIG_fail;
5001 {
5002 PyThreadState* __tstate = wxPyBeginAllowThreads();
5003 (arg1)->SetWidth(arg2);
5004
5005 wxPyEndAllowThreads(__tstate);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 }
5008 Py_INCREF(Py_None); resultobj = Py_None;
5009 return resultobj;
5010 fail:
5011 return NULL;
5012 }
5013
5014
5015 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5016 PyObject *resultobj;
5017 wxCursor *arg1 = (wxCursor *) 0 ;
5018 int arg2 ;
5019 PyObject * obj0 = 0 ;
5020 PyObject * obj1 = 0 ;
5021 char *kwnames[] = {
5022 (char *) "self",(char *) "h", NULL
5023 };
5024
5025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5028 arg2 = (int) SWIG_AsInt(obj1);
5029 if (PyErr_Occurred()) SWIG_fail;
5030 {
5031 PyThreadState* __tstate = wxPyBeginAllowThreads();
5032 (arg1)->SetHeight(arg2);
5033
5034 wxPyEndAllowThreads(__tstate);
5035 if (PyErr_Occurred()) SWIG_fail;
5036 }
5037 Py_INCREF(Py_None); resultobj = Py_None;
5038 return resultobj;
5039 fail:
5040 return NULL;
5041 }
5042
5043
5044 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5045 PyObject *resultobj;
5046 wxCursor *arg1 = (wxCursor *) 0 ;
5047 int arg2 ;
5048 PyObject * obj0 = 0 ;
5049 PyObject * obj1 = 0 ;
5050 char *kwnames[] = {
5051 (char *) "self",(char *) "d", NULL
5052 };
5053
5054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5057 arg2 = (int) SWIG_AsInt(obj1);
5058 if (PyErr_Occurred()) SWIG_fail;
5059 {
5060 PyThreadState* __tstate = wxPyBeginAllowThreads();
5061 (arg1)->SetDepth(arg2);
5062
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 Py_INCREF(Py_None); resultobj = Py_None;
5067 return resultobj;
5068 fail:
5069 return NULL;
5070 }
5071
5072
5073 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5074 PyObject *resultobj;
5075 wxCursor *arg1 = (wxCursor *) 0 ;
5076 wxSize *arg2 = 0 ;
5077 wxSize temp2 ;
5078 PyObject * obj0 = 0 ;
5079 PyObject * obj1 = 0 ;
5080 char *kwnames[] = {
5081 (char *) "self",(char *) "size", NULL
5082 };
5083
5084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5087 {
5088 arg2 = &temp2;
5089 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5090 }
5091 {
5092 PyThreadState* __tstate = wxPyBeginAllowThreads();
5093 (arg1)->SetSize((wxSize const &)*arg2);
5094
5095 wxPyEndAllowThreads(__tstate);
5096 if (PyErr_Occurred()) SWIG_fail;
5097 }
5098 Py_INCREF(Py_None); resultobj = Py_None;
5099 return resultobj;
5100 fail:
5101 return NULL;
5102 }
5103
5104
5105 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
5106 PyObject *obj;
5107 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5108 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5109 Py_INCREF(obj);
5110 return Py_BuildValue((char *)"");
5111 }
5112 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5113 PyObject *resultobj;
5114 int arg1 = (int) 0 ;
5115 int arg2 = (int) 0 ;
5116 int arg3 = (int) 0 ;
5117 int arg4 = (int) 0 ;
5118 wxRegion *result;
5119 PyObject * obj0 = 0 ;
5120 PyObject * obj1 = 0 ;
5121 PyObject * obj2 = 0 ;
5122 PyObject * obj3 = 0 ;
5123 char *kwnames[] = {
5124 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5125 };
5126
5127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5128 if (obj0) {
5129 arg1 = (int) SWIG_AsInt(obj0);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 if (obj1) {
5133 arg2 = (int) SWIG_AsInt(obj1);
5134 if (PyErr_Occurred()) SWIG_fail;
5135 }
5136 if (obj2) {
5137 arg3 = (int) SWIG_AsInt(obj2);
5138 if (PyErr_Occurred()) SWIG_fail;
5139 }
5140 if (obj3) {
5141 arg4 = (int) SWIG_AsInt(obj3);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 {
5145 PyThreadState* __tstate = wxPyBeginAllowThreads();
5146 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5147
5148 wxPyEndAllowThreads(__tstate);
5149 if (PyErr_Occurred()) SWIG_fail;
5150 }
5151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5152 return resultobj;
5153 fail:
5154 return NULL;
5155 }
5156
5157
5158 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5159 PyObject *resultobj;
5160 wxBitmap *arg1 = 0 ;
5161 wxColour const &arg2_defvalue = wxNullColour ;
5162 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5163 int arg3 = (int) 0 ;
5164 wxRegion *result;
5165 wxColour temp2 ;
5166 PyObject * obj0 = 0 ;
5167 PyObject * obj1 = 0 ;
5168 PyObject * obj2 = 0 ;
5169 char *kwnames[] = {
5170 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5171 };
5172
5173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
5174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5175 SWIG_POINTER_EXCEPTION | 0)) == -1)
5176 SWIG_fail;
5177 if (arg1 == NULL) {
5178 PyErr_SetString(PyExc_TypeError,"null reference");
5179 SWIG_fail;
5180 }
5181 if (obj1) {
5182 {
5183 arg2 = &temp2;
5184 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5185 }
5186 }
5187 if (obj2) {
5188 arg3 = (int) SWIG_AsInt(obj2);
5189 if (PyErr_Occurred()) SWIG_fail;
5190 }
5191 {
5192 PyThreadState* __tstate = wxPyBeginAllowThreads();
5193 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5194
5195 wxPyEndAllowThreads(__tstate);
5196 if (PyErr_Occurred()) SWIG_fail;
5197 }
5198 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5199 return resultobj;
5200 fail:
5201 return NULL;
5202 }
5203
5204
5205 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
5206 PyObject *resultobj;
5207 int arg1 ;
5208 wxPoint *arg2 = (wxPoint *) 0 ;
5209 int arg3 = (int) wxWINDING_RULE ;
5210 wxRegion *result;
5211 PyObject * obj0 = 0 ;
5212 PyObject * obj1 = 0 ;
5213 char *kwnames[] = {
5214 (char *) "points",(char *) "fillStyle", NULL
5215 };
5216
5217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5218 {
5219 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5220 if (arg2 == NULL) SWIG_fail;
5221 }
5222 if (obj1) {
5223 arg3 = (int) SWIG_AsInt(obj1);
5224 if (PyErr_Occurred()) SWIG_fail;
5225 }
5226 {
5227 PyThreadState* __tstate = wxPyBeginAllowThreads();
5228 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5229
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 }
5233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5234 {
5235 if (arg2) delete [] arg2;
5236 }
5237 return resultobj;
5238 fail:
5239 {
5240 if (arg2) delete [] arg2;
5241 }
5242 return NULL;
5243 }
5244
5245
5246 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5247 PyObject *resultobj;
5248 wxRegion *arg1 = (wxRegion *) 0 ;
5249 PyObject * obj0 = 0 ;
5250 char *kwnames[] = {
5251 (char *) "self", NULL
5252 };
5253
5254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5257 {
5258 PyThreadState* __tstate = wxPyBeginAllowThreads();
5259 delete arg1;
5260
5261 wxPyEndAllowThreads(__tstate);
5262 if (PyErr_Occurred()) SWIG_fail;
5263 }
5264 Py_INCREF(Py_None); resultobj = Py_None;
5265 return resultobj;
5266 fail:
5267 return NULL;
5268 }
5269
5270
5271 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5272 PyObject *resultobj;
5273 wxRegion *arg1 = (wxRegion *) 0 ;
5274 PyObject * obj0 = 0 ;
5275 char *kwnames[] = {
5276 (char *) "self", NULL
5277 };
5278
5279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5282 {
5283 PyThreadState* __tstate = wxPyBeginAllowThreads();
5284 (arg1)->Clear();
5285
5286 wxPyEndAllowThreads(__tstate);
5287 if (PyErr_Occurred()) SWIG_fail;
5288 }
5289 Py_INCREF(Py_None); resultobj = Py_None;
5290 return resultobj;
5291 fail:
5292 return NULL;
5293 }
5294
5295
5296 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5297 PyObject *resultobj;
5298 wxRegion *arg1 = (wxRegion *) 0 ;
5299 int arg2 ;
5300 int arg3 ;
5301 bool result;
5302 PyObject * obj0 = 0 ;
5303 PyObject * obj1 = 0 ;
5304 PyObject * obj2 = 0 ;
5305 char *kwnames[] = {
5306 (char *) "self",(char *) "x",(char *) "y", NULL
5307 };
5308
5309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5312 arg2 = (int) SWIG_AsInt(obj1);
5313 if (PyErr_Occurred()) SWIG_fail;
5314 arg3 = (int) SWIG_AsInt(obj2);
5315 if (PyErr_Occurred()) SWIG_fail;
5316 {
5317 PyThreadState* __tstate = wxPyBeginAllowThreads();
5318 result = (bool)(arg1)->Offset(arg2,arg3);
5319
5320 wxPyEndAllowThreads(__tstate);
5321 if (PyErr_Occurred()) SWIG_fail;
5322 }
5323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5324 return resultobj;
5325 fail:
5326 return NULL;
5327 }
5328
5329
5330 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5331 PyObject *resultobj;
5332 wxRegion *arg1 = (wxRegion *) 0 ;
5333 int arg2 ;
5334 int arg3 ;
5335 int result;
5336 PyObject * obj0 = 0 ;
5337 PyObject * obj1 = 0 ;
5338 PyObject * obj2 = 0 ;
5339 char *kwnames[] = {
5340 (char *) "self",(char *) "x",(char *) "y", NULL
5341 };
5342
5343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5346 arg2 = (int) SWIG_AsInt(obj1);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 arg3 = (int) SWIG_AsInt(obj2);
5349 if (PyErr_Occurred()) SWIG_fail;
5350 {
5351 PyThreadState* __tstate = wxPyBeginAllowThreads();
5352 result = (int)(arg1)->Contains(arg2,arg3);
5353
5354 wxPyEndAllowThreads(__tstate);
5355 if (PyErr_Occurred()) SWIG_fail;
5356 }
5357 resultobj = SWIG_FromInt((int)result);
5358 return resultobj;
5359 fail:
5360 return NULL;
5361 }
5362
5363
5364 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5365 PyObject *resultobj;
5366 wxRegion *arg1 = (wxRegion *) 0 ;
5367 wxPoint *arg2 = 0 ;
5368 int result;
5369 wxPoint temp2 ;
5370 PyObject * obj0 = 0 ;
5371 PyObject * obj1 = 0 ;
5372 char *kwnames[] = {
5373 (char *) "self",(char *) "pt", NULL
5374 };
5375
5376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5379 {
5380 arg2 = &temp2;
5381 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5382 }
5383 {
5384 PyThreadState* __tstate = wxPyBeginAllowThreads();
5385 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5386
5387 wxPyEndAllowThreads(__tstate);
5388 if (PyErr_Occurred()) SWIG_fail;
5389 }
5390 resultobj = SWIG_FromInt((int)result);
5391 return resultobj;
5392 fail:
5393 return NULL;
5394 }
5395
5396
5397 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5398 PyObject *resultobj;
5399 wxRegion *arg1 = (wxRegion *) 0 ;
5400 wxRect *arg2 = 0 ;
5401 int result;
5402 wxRect temp2 ;
5403 PyObject * obj0 = 0 ;
5404 PyObject * obj1 = 0 ;
5405 char *kwnames[] = {
5406 (char *) "self",(char *) "rect", NULL
5407 };
5408
5409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5412 {
5413 arg2 = &temp2;
5414 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5415 }
5416 {
5417 PyThreadState* __tstate = wxPyBeginAllowThreads();
5418 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5419
5420 wxPyEndAllowThreads(__tstate);
5421 if (PyErr_Occurred()) SWIG_fail;
5422 }
5423 resultobj = SWIG_FromInt((int)result);
5424 return resultobj;
5425 fail:
5426 return NULL;
5427 }
5428
5429
5430 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5431 PyObject *resultobj;
5432 wxRegion *arg1 = (wxRegion *) 0 ;
5433 int arg2 ;
5434 int arg3 ;
5435 int arg4 ;
5436 int arg5 ;
5437 int result;
5438 PyObject * obj0 = 0 ;
5439 PyObject * obj1 = 0 ;
5440 PyObject * obj2 = 0 ;
5441 PyObject * obj3 = 0 ;
5442 PyObject * obj4 = 0 ;
5443 char *kwnames[] = {
5444 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5445 };
5446
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5450 arg2 = (int) SWIG_AsInt(obj1);
5451 if (PyErr_Occurred()) SWIG_fail;
5452 arg3 = (int) SWIG_AsInt(obj2);
5453 if (PyErr_Occurred()) SWIG_fail;
5454 arg4 = (int) SWIG_AsInt(obj3);
5455 if (PyErr_Occurred()) SWIG_fail;
5456 arg5 = (int) SWIG_AsInt(obj4);
5457 if (PyErr_Occurred()) SWIG_fail;
5458 {
5459 PyThreadState* __tstate = wxPyBeginAllowThreads();
5460 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5461
5462 wxPyEndAllowThreads(__tstate);
5463 if (PyErr_Occurred()) SWIG_fail;
5464 }
5465 resultobj = SWIG_FromInt((int)result);
5466 return resultobj;
5467 fail:
5468 return NULL;
5469 }
5470
5471
5472 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5473 PyObject *resultobj;
5474 wxRegion *arg1 = (wxRegion *) 0 ;
5475 wxRect result;
5476 PyObject * obj0 = 0 ;
5477 char *kwnames[] = {
5478 (char *) "self", NULL
5479 };
5480
5481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5484 {
5485 PyThreadState* __tstate = wxPyBeginAllowThreads();
5486 result = (arg1)->GetBox();
5487
5488 wxPyEndAllowThreads(__tstate);
5489 if (PyErr_Occurred()) SWIG_fail;
5490 }
5491 {
5492 wxRect * resultptr;
5493 resultptr = new wxRect((wxRect &) result);
5494 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5495 }
5496 return resultobj;
5497 fail:
5498 return NULL;
5499 }
5500
5501
5502 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5503 PyObject *resultobj;
5504 wxRegion *arg1 = (wxRegion *) 0 ;
5505 int arg2 ;
5506 int arg3 ;
5507 int arg4 ;
5508 int arg5 ;
5509 bool result;
5510 PyObject * obj0 = 0 ;
5511 PyObject * obj1 = 0 ;
5512 PyObject * obj2 = 0 ;
5513 PyObject * obj3 = 0 ;
5514 PyObject * obj4 = 0 ;
5515 char *kwnames[] = {
5516 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5517 };
5518
5519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5522 arg2 = (int) SWIG_AsInt(obj1);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 arg3 = (int) SWIG_AsInt(obj2);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 arg4 = (int) SWIG_AsInt(obj3);
5527 if (PyErr_Occurred()) SWIG_fail;
5528 arg5 = (int) SWIG_AsInt(obj4);
5529 if (PyErr_Occurred()) SWIG_fail;
5530 {
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5533
5534 wxPyEndAllowThreads(__tstate);
5535 if (PyErr_Occurred()) SWIG_fail;
5536 }
5537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5538 return resultobj;
5539 fail:
5540 return NULL;
5541 }
5542
5543
5544 static PyObject *_wrap_Region_IntersectRect(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_IntersectRect",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)->Intersect((wxRect const &)*arg2);
5566
5567 wxPyEndAllowThreads(__tstate);
5568 if (PyErr_Occurred()) SWIG_fail;
5569 }
5570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5571 return resultobj;
5572 fail:
5573 return NULL;
5574 }
5575
5576
5577 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5578 PyObject *resultobj;
5579 wxRegion *arg1 = (wxRegion *) 0 ;
5580 wxRegion *arg2 = 0 ;
5581 bool result;
5582 PyObject * obj0 = 0 ;
5583 PyObject * obj1 = 0 ;
5584 char *kwnames[] = {
5585 (char *) "self",(char *) "region", NULL
5586 };
5587
5588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5591 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5592 SWIG_POINTER_EXCEPTION | 0)) == -1)
5593 SWIG_fail;
5594 if (arg2 == NULL) {
5595 PyErr_SetString(PyExc_TypeError,"null reference");
5596 SWIG_fail;
5597 }
5598 {
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5601
5602 wxPyEndAllowThreads(__tstate);
5603 if (PyErr_Occurred()) SWIG_fail;
5604 }
5605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5606 return resultobj;
5607 fail:
5608 return NULL;
5609 }
5610
5611
5612 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5613 PyObject *resultobj;
5614 wxRegion *arg1 = (wxRegion *) 0 ;
5615 bool result;
5616 PyObject * obj0 = 0 ;
5617 char *kwnames[] = {
5618 (char *) "self", NULL
5619 };
5620
5621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5624 {
5625 PyThreadState* __tstate = wxPyBeginAllowThreads();
5626 result = (bool)(arg1)->IsEmpty();
5627
5628 wxPyEndAllowThreads(__tstate);
5629 if (PyErr_Occurred()) SWIG_fail;
5630 }
5631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5632 return resultobj;
5633 fail:
5634 return NULL;
5635 }
5636
5637
5638 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5639 PyObject *resultobj;
5640 wxRegion *arg1 = (wxRegion *) 0 ;
5641 int arg2 ;
5642 int arg3 ;
5643 int arg4 ;
5644 int arg5 ;
5645 bool result;
5646 PyObject * obj0 = 0 ;
5647 PyObject * obj1 = 0 ;
5648 PyObject * obj2 = 0 ;
5649 PyObject * obj3 = 0 ;
5650 PyObject * obj4 = 0 ;
5651 char *kwnames[] = {
5652 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5653 };
5654
5655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5658 arg2 = (int) SWIG_AsInt(obj1);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 arg3 = (int) SWIG_AsInt(obj2);
5661 if (PyErr_Occurred()) SWIG_fail;
5662 arg4 = (int) SWIG_AsInt(obj3);
5663 if (PyErr_Occurred()) SWIG_fail;
5664 arg5 = (int) SWIG_AsInt(obj4);
5665 if (PyErr_Occurred()) SWIG_fail;
5666 {
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5669
5670 wxPyEndAllowThreads(__tstate);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 }
5673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5674 return resultobj;
5675 fail:
5676 return NULL;
5677 }
5678
5679
5680 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5681 PyObject *resultobj;
5682 wxRegion *arg1 = (wxRegion *) 0 ;
5683 wxRect *arg2 = 0 ;
5684 bool result;
5685 wxRect temp2 ;
5686 PyObject * obj0 = 0 ;
5687 PyObject * obj1 = 0 ;
5688 char *kwnames[] = {
5689 (char *) "self",(char *) "rect", NULL
5690 };
5691
5692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5695 {
5696 arg2 = &temp2;
5697 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5698 }
5699 {
5700 PyThreadState* __tstate = wxPyBeginAllowThreads();
5701 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5702
5703 wxPyEndAllowThreads(__tstate);
5704 if (PyErr_Occurred()) SWIG_fail;
5705 }
5706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5707 return resultobj;
5708 fail:
5709 return NULL;
5710 }
5711
5712
5713 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5714 PyObject *resultobj;
5715 wxRegion *arg1 = (wxRegion *) 0 ;
5716 wxRegion *arg2 = 0 ;
5717 bool result;
5718 PyObject * obj0 = 0 ;
5719 PyObject * obj1 = 0 ;
5720 char *kwnames[] = {
5721 (char *) "self",(char *) "region", NULL
5722 };
5723
5724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5727 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5728 SWIG_POINTER_EXCEPTION | 0)) == -1)
5729 SWIG_fail;
5730 if (arg2 == NULL) {
5731 PyErr_SetString(PyExc_TypeError,"null reference");
5732 SWIG_fail;
5733 }
5734 {
5735 PyThreadState* __tstate = wxPyBeginAllowThreads();
5736 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5737
5738 wxPyEndAllowThreads(__tstate);
5739 if (PyErr_Occurred()) SWIG_fail;
5740 }
5741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5742 return resultobj;
5743 fail:
5744 return NULL;
5745 }
5746
5747
5748 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5749 PyObject *resultobj;
5750 wxRegion *arg1 = (wxRegion *) 0 ;
5751 int arg2 ;
5752 int arg3 ;
5753 int arg4 ;
5754 int arg5 ;
5755 bool result;
5756 PyObject * obj0 = 0 ;
5757 PyObject * obj1 = 0 ;
5758 PyObject * obj2 = 0 ;
5759 PyObject * obj3 = 0 ;
5760 PyObject * obj4 = 0 ;
5761 char *kwnames[] = {
5762 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5763 };
5764
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5768 arg2 = (int) SWIG_AsInt(obj1);
5769 if (PyErr_Occurred()) SWIG_fail;
5770 arg3 = (int) SWIG_AsInt(obj2);
5771 if (PyErr_Occurred()) SWIG_fail;
5772 arg4 = (int) SWIG_AsInt(obj3);
5773 if (PyErr_Occurred()) SWIG_fail;
5774 arg5 = (int) SWIG_AsInt(obj4);
5775 if (PyErr_Occurred()) SWIG_fail;
5776 {
5777 PyThreadState* __tstate = wxPyBeginAllowThreads();
5778 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5779
5780 wxPyEndAllowThreads(__tstate);
5781 if (PyErr_Occurred()) SWIG_fail;
5782 }
5783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5784 return resultobj;
5785 fail:
5786 return NULL;
5787 }
5788
5789
5790 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5791 PyObject *resultobj;
5792 wxRegion *arg1 = (wxRegion *) 0 ;
5793 wxRect *arg2 = 0 ;
5794 bool result;
5795 wxRect temp2 ;
5796 PyObject * obj0 = 0 ;
5797 PyObject * obj1 = 0 ;
5798 char *kwnames[] = {
5799 (char *) "self",(char *) "rect", NULL
5800 };
5801
5802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5805 {
5806 arg2 = &temp2;
5807 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5808 }
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5812
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5817 return resultobj;
5818 fail:
5819 return NULL;
5820 }
5821
5822
5823 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5824 PyObject *resultobj;
5825 wxRegion *arg1 = (wxRegion *) 0 ;
5826 wxRegion *arg2 = 0 ;
5827 bool result;
5828 PyObject * obj0 = 0 ;
5829 PyObject * obj1 = 0 ;
5830 char *kwnames[] = {
5831 (char *) "self",(char *) "region", NULL
5832 };
5833
5834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5837 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5838 SWIG_POINTER_EXCEPTION | 0)) == -1)
5839 SWIG_fail;
5840 if (arg2 == NULL) {
5841 PyErr_SetString(PyExc_TypeError,"null reference");
5842 SWIG_fail;
5843 }
5844 {
5845 PyThreadState* __tstate = wxPyBeginAllowThreads();
5846 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5847
5848 wxPyEndAllowThreads(__tstate);
5849 if (PyErr_Occurred()) SWIG_fail;
5850 }
5851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5852 return resultobj;
5853 fail:
5854 return NULL;
5855 }
5856
5857
5858 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5859 PyObject *resultobj;
5860 wxRegion *arg1 = (wxRegion *) 0 ;
5861 int arg2 ;
5862 int arg3 ;
5863 int arg4 ;
5864 int arg5 ;
5865 bool result;
5866 PyObject * obj0 = 0 ;
5867 PyObject * obj1 = 0 ;
5868 PyObject * obj2 = 0 ;
5869 PyObject * obj3 = 0 ;
5870 PyObject * obj4 = 0 ;
5871 char *kwnames[] = {
5872 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5873 };
5874
5875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5878 arg2 = (int) SWIG_AsInt(obj1);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 arg3 = (int) SWIG_AsInt(obj2);
5881 if (PyErr_Occurred()) SWIG_fail;
5882 arg4 = (int) SWIG_AsInt(obj3);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 arg5 = (int) SWIG_AsInt(obj4);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 {
5887 PyThreadState* __tstate = wxPyBeginAllowThreads();
5888 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5889
5890 wxPyEndAllowThreads(__tstate);
5891 if (PyErr_Occurred()) SWIG_fail;
5892 }
5893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5894 return resultobj;
5895 fail:
5896 return NULL;
5897 }
5898
5899
5900 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5901 PyObject *resultobj;
5902 wxRegion *arg1 = (wxRegion *) 0 ;
5903 wxRect *arg2 = 0 ;
5904 bool result;
5905 wxRect temp2 ;
5906 PyObject * obj0 = 0 ;
5907 PyObject * obj1 = 0 ;
5908 char *kwnames[] = {
5909 (char *) "self",(char *) "rect", NULL
5910 };
5911
5912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5915 {
5916 arg2 = &temp2;
5917 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5918 }
5919 {
5920 PyThreadState* __tstate = wxPyBeginAllowThreads();
5921 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5922
5923 wxPyEndAllowThreads(__tstate);
5924 if (PyErr_Occurred()) SWIG_fail;
5925 }
5926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5927 return resultobj;
5928 fail:
5929 return NULL;
5930 }
5931
5932
5933 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5934 PyObject *resultobj;
5935 wxRegion *arg1 = (wxRegion *) 0 ;
5936 wxRegion *arg2 = 0 ;
5937 bool result;
5938 PyObject * obj0 = 0 ;
5939 PyObject * obj1 = 0 ;
5940 char *kwnames[] = {
5941 (char *) "self",(char *) "region", NULL
5942 };
5943
5944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5947 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5948 SWIG_POINTER_EXCEPTION | 0)) == -1)
5949 SWIG_fail;
5950 if (arg2 == NULL) {
5951 PyErr_SetString(PyExc_TypeError,"null reference");
5952 SWIG_fail;
5953 }
5954 {
5955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5956 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5957
5958 wxPyEndAllowThreads(__tstate);
5959 if (PyErr_Occurred()) SWIG_fail;
5960 }
5961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5962 return resultobj;
5963 fail:
5964 return NULL;
5965 }
5966
5967
5968 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5969 PyObject *resultobj;
5970 wxRegion *arg1 = (wxRegion *) 0 ;
5971 SwigValueWrapper< wxBitmap > result;
5972 PyObject * obj0 = 0 ;
5973 char *kwnames[] = {
5974 (char *) "self", NULL
5975 };
5976
5977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5980 {
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 result = (arg1)->ConvertToBitmap();
5983
5984 wxPyEndAllowThreads(__tstate);
5985 if (PyErr_Occurred()) SWIG_fail;
5986 }
5987 {
5988 wxBitmap * resultptr;
5989 resultptr = new wxBitmap((wxBitmap &) result);
5990 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5991 }
5992 return resultobj;
5993 fail:
5994 return NULL;
5995 }
5996
5997
5998 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5999 PyObject *resultobj;
6000 wxRegion *arg1 = (wxRegion *) 0 ;
6001 wxBitmap *arg2 = 0 ;
6002 wxColour const &arg3_defvalue = wxNullColour ;
6003 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
6004 int arg4 = (int) 0 ;
6005 bool result;
6006 wxColour temp3 ;
6007 PyObject * obj0 = 0 ;
6008 PyObject * obj1 = 0 ;
6009 PyObject * obj2 = 0 ;
6010 PyObject * obj3 = 0 ;
6011 char *kwnames[] = {
6012 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6013 };
6014
6015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6019 SWIG_POINTER_EXCEPTION | 0)) == -1)
6020 SWIG_fail;
6021 if (arg2 == NULL) {
6022 PyErr_SetString(PyExc_TypeError,"null reference");
6023 SWIG_fail;
6024 }
6025 if (obj2) {
6026 {
6027 arg3 = &temp3;
6028 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6029 }
6030 }
6031 if (obj3) {
6032 arg4 = (int) SWIG_AsInt(obj3);
6033 if (PyErr_Occurred()) SWIG_fail;
6034 }
6035 {
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6038
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6043 return resultobj;
6044 fail:
6045 return NULL;
6046 }
6047
6048
6049 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
6050 PyObject *obj;
6051 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6052 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6053 Py_INCREF(obj);
6054 return Py_BuildValue((char *)"");
6055 }
6056 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6057 PyObject *resultobj;
6058 wxRegion *arg1 = 0 ;
6059 wxRegionIterator *result;
6060 PyObject * obj0 = 0 ;
6061 char *kwnames[] = {
6062 (char *) "region", NULL
6063 };
6064
6065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6067 SWIG_POINTER_EXCEPTION | 0)) == -1)
6068 SWIG_fail;
6069 if (arg1 == NULL) {
6070 PyErr_SetString(PyExc_TypeError,"null reference");
6071 SWIG_fail;
6072 }
6073 {
6074 PyThreadState* __tstate = wxPyBeginAllowThreads();
6075 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6076
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6081 return resultobj;
6082 fail:
6083 return NULL;
6084 }
6085
6086
6087 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj;
6089 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6090 PyObject * obj0 = 0 ;
6091 char *kwnames[] = {
6092 (char *) "self", NULL
6093 };
6094
6095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6098 {
6099 PyThreadState* __tstate = wxPyBeginAllowThreads();
6100 delete arg1;
6101
6102 wxPyEndAllowThreads(__tstate);
6103 if (PyErr_Occurred()) SWIG_fail;
6104 }
6105 Py_INCREF(Py_None); resultobj = Py_None;
6106 return resultobj;
6107 fail:
6108 return NULL;
6109 }
6110
6111
6112 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
6113 PyObject *resultobj;
6114 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6115 int result;
6116 PyObject * obj0 = 0 ;
6117 char *kwnames[] = {
6118 (char *) "self", NULL
6119 };
6120
6121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6124 {
6125 PyThreadState* __tstate = wxPyBeginAllowThreads();
6126 result = (int)(arg1)->GetX();
6127
6128 wxPyEndAllowThreads(__tstate);
6129 if (PyErr_Occurred()) SWIG_fail;
6130 }
6131 resultobj = SWIG_FromInt((int)result);
6132 return resultobj;
6133 fail:
6134 return NULL;
6135 }
6136
6137
6138 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj;
6140 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6141 int result;
6142 PyObject * obj0 = 0 ;
6143 char *kwnames[] = {
6144 (char *) "self", NULL
6145 };
6146
6147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6150 {
6151 PyThreadState* __tstate = wxPyBeginAllowThreads();
6152 result = (int)(arg1)->GetY();
6153
6154 wxPyEndAllowThreads(__tstate);
6155 if (PyErr_Occurred()) SWIG_fail;
6156 }
6157 resultobj = SWIG_FromInt((int)result);
6158 return resultobj;
6159 fail:
6160 return NULL;
6161 }
6162
6163
6164 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
6165 PyObject *resultobj;
6166 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6167 int result;
6168 PyObject * obj0 = 0 ;
6169 char *kwnames[] = {
6170 (char *) "self", NULL
6171 };
6172
6173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6176 {
6177 PyThreadState* __tstate = wxPyBeginAllowThreads();
6178 result = (int)(arg1)->GetW();
6179
6180 wxPyEndAllowThreads(__tstate);
6181 if (PyErr_Occurred()) SWIG_fail;
6182 }
6183 resultobj = SWIG_FromInt((int)result);
6184 return resultobj;
6185 fail:
6186 return NULL;
6187 }
6188
6189
6190 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6191 PyObject *resultobj;
6192 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6193 int result;
6194 PyObject * obj0 = 0 ;
6195 char *kwnames[] = {
6196 (char *) "self", NULL
6197 };
6198
6199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6202 {
6203 PyThreadState* __tstate = wxPyBeginAllowThreads();
6204 result = (int)(arg1)->GetWidth();
6205
6206 wxPyEndAllowThreads(__tstate);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 resultobj = SWIG_FromInt((int)result);
6210 return resultobj;
6211 fail:
6212 return NULL;
6213 }
6214
6215
6216 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj;
6218 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6219 int result;
6220 PyObject * obj0 = 0 ;
6221 char *kwnames[] = {
6222 (char *) "self", NULL
6223 };
6224
6225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6228 {
6229 PyThreadState* __tstate = wxPyBeginAllowThreads();
6230 result = (int)(arg1)->GetH();
6231
6232 wxPyEndAllowThreads(__tstate);
6233 if (PyErr_Occurred()) SWIG_fail;
6234 }
6235 resultobj = SWIG_FromInt((int)result);
6236 return resultobj;
6237 fail:
6238 return NULL;
6239 }
6240
6241
6242 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6243 PyObject *resultobj;
6244 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6245 int result;
6246 PyObject * obj0 = 0 ;
6247 char *kwnames[] = {
6248 (char *) "self", NULL
6249 };
6250
6251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6254 {
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 result = (int)(arg1)->GetHeight();
6257
6258 wxPyEndAllowThreads(__tstate);
6259 if (PyErr_Occurred()) SWIG_fail;
6260 }
6261 resultobj = SWIG_FromInt((int)result);
6262 return resultobj;
6263 fail:
6264 return NULL;
6265 }
6266
6267
6268 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6269 PyObject *resultobj;
6270 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6271 wxRect result;
6272 PyObject * obj0 = 0 ;
6273 char *kwnames[] = {
6274 (char *) "self", NULL
6275 };
6276
6277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6280 {
6281 PyThreadState* __tstate = wxPyBeginAllowThreads();
6282 result = (arg1)->GetRect();
6283
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 {
6288 wxRect * resultptr;
6289 resultptr = new wxRect((wxRect &) result);
6290 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6291 }
6292 return resultobj;
6293 fail:
6294 return NULL;
6295 }
6296
6297
6298 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6299 PyObject *resultobj;
6300 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6301 bool result;
6302 PyObject * obj0 = 0 ;
6303 char *kwnames[] = {
6304 (char *) "self", NULL
6305 };
6306
6307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6310 {
6311 PyThreadState* __tstate = wxPyBeginAllowThreads();
6312 result = (bool)(arg1)->HaveRects();
6313
6314 wxPyEndAllowThreads(__tstate);
6315 if (PyErr_Occurred()) SWIG_fail;
6316 }
6317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6318 return resultobj;
6319 fail:
6320 return NULL;
6321 }
6322
6323
6324 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6325 PyObject *resultobj;
6326 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6327 PyObject * obj0 = 0 ;
6328 char *kwnames[] = {
6329 (char *) "self", NULL
6330 };
6331
6332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6335 {
6336 PyThreadState* __tstate = wxPyBeginAllowThreads();
6337 (arg1)->Reset();
6338
6339 wxPyEndAllowThreads(__tstate);
6340 if (PyErr_Occurred()) SWIG_fail;
6341 }
6342 Py_INCREF(Py_None); resultobj = Py_None;
6343 return resultobj;
6344 fail:
6345 return NULL;
6346 }
6347
6348
6349 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6350 PyObject *resultobj;
6351 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6352 PyObject * obj0 = 0 ;
6353 char *kwnames[] = {
6354 (char *) "self", NULL
6355 };
6356
6357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6360 {
6361 PyThreadState* __tstate = wxPyBeginAllowThreads();
6362 wxRegionIterator_Next(arg1);
6363
6364 wxPyEndAllowThreads(__tstate);
6365 if (PyErr_Occurred()) SWIG_fail;
6366 }
6367 Py_INCREF(Py_None); resultobj = Py_None;
6368 return resultobj;
6369 fail:
6370 return NULL;
6371 }
6372
6373
6374 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6375 PyObject *resultobj;
6376 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6377 bool result;
6378 PyObject * obj0 = 0 ;
6379 char *kwnames[] = {
6380 (char *) "self", NULL
6381 };
6382
6383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6386 {
6387 PyThreadState* __tstate = wxPyBeginAllowThreads();
6388 result = (bool)wxRegionIterator___nonzero__(arg1);
6389
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6401 PyObject *obj;
6402 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6403 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6404 Py_INCREF(obj);
6405 return Py_BuildValue((char *)"");
6406 }
6407 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6408 PyObject *resultobj;
6409 wxNativeFontInfo *result;
6410 char *kwnames[] = {
6411 NULL
6412 };
6413
6414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6415 {
6416 PyThreadState* __tstate = wxPyBeginAllowThreads();
6417 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6418
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6423 return resultobj;
6424 fail:
6425 return NULL;
6426 }
6427
6428
6429 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6430 PyObject *resultobj;
6431 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6432 PyObject * obj0 = 0 ;
6433 char *kwnames[] = {
6434 (char *) "self", NULL
6435 };
6436
6437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6440 {
6441 PyThreadState* __tstate = wxPyBeginAllowThreads();
6442 delete arg1;
6443
6444 wxPyEndAllowThreads(__tstate);
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 Py_INCREF(Py_None); resultobj = Py_None;
6448 return resultobj;
6449 fail:
6450 return NULL;
6451 }
6452
6453
6454 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6455 PyObject *resultobj;
6456 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6457 PyObject * obj0 = 0 ;
6458 char *kwnames[] = {
6459 (char *) "self", NULL
6460 };
6461
6462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6465 {
6466 PyThreadState* __tstate = wxPyBeginAllowThreads();
6467 (arg1)->Init();
6468
6469 wxPyEndAllowThreads(__tstate);
6470 if (PyErr_Occurred()) SWIG_fail;
6471 }
6472 Py_INCREF(Py_None); resultobj = Py_None;
6473 return resultobj;
6474 fail:
6475 return NULL;
6476 }
6477
6478
6479 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6480 PyObject *resultobj;
6481 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6482 wxFont *arg2 = 0 ;
6483 PyObject * obj0 = 0 ;
6484 PyObject * obj1 = 0 ;
6485 char *kwnames[] = {
6486 (char *) "self",(char *) "font", NULL
6487 };
6488
6489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6492 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6493 SWIG_POINTER_EXCEPTION | 0)) == -1)
6494 SWIG_fail;
6495 if (arg2 == NULL) {
6496 PyErr_SetString(PyExc_TypeError,"null reference");
6497 SWIG_fail;
6498 }
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 (arg1)->InitFromFont((wxFont const &)*arg2);
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 Py_INCREF(Py_None); resultobj = Py_None;
6507 return resultobj;
6508 fail:
6509 return NULL;
6510 }
6511
6512
6513 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6514 PyObject *resultobj;
6515 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6516 int result;
6517 PyObject * obj0 = 0 ;
6518 char *kwnames[] = {
6519 (char *) "self", NULL
6520 };
6521
6522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6528
6529 wxPyEndAllowThreads(__tstate);
6530 if (PyErr_Occurred()) SWIG_fail;
6531 }
6532 resultobj = SWIG_FromInt((int)result);
6533 return resultobj;
6534 fail:
6535 return NULL;
6536 }
6537
6538
6539 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6540 PyObject *resultobj;
6541 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6542 int result;
6543 PyObject * obj0 = 0 ;
6544 char *kwnames[] = {
6545 (char *) "self", NULL
6546 };
6547
6548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6551 {
6552 PyThreadState* __tstate = wxPyBeginAllowThreads();
6553 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6554
6555 wxPyEndAllowThreads(__tstate);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 }
6558 resultobj = SWIG_FromInt((int)result);
6559 return resultobj;
6560 fail:
6561 return NULL;
6562 }
6563
6564
6565 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6566 PyObject *resultobj;
6567 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6568 int result;
6569 PyObject * obj0 = 0 ;
6570 char *kwnames[] = {
6571 (char *) "self", NULL
6572 };
6573
6574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6577 {
6578 PyThreadState* __tstate = wxPyBeginAllowThreads();
6579 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6580
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 resultobj = SWIG_FromInt((int)result);
6585 return resultobj;
6586 fail:
6587 return NULL;
6588 }
6589
6590
6591 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6592 PyObject *resultobj;
6593 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6594 bool result;
6595 PyObject * obj0 = 0 ;
6596 char *kwnames[] = {
6597 (char *) "self", NULL
6598 };
6599
6600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6603 {
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6606
6607 wxPyEndAllowThreads(__tstate);
6608 if (PyErr_Occurred()) SWIG_fail;
6609 }
6610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6611 return resultobj;
6612 fail:
6613 return NULL;
6614 }
6615
6616
6617 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6618 PyObject *resultobj;
6619 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6620 wxString result;
6621 PyObject * obj0 = 0 ;
6622 char *kwnames[] = {
6623 (char *) "self", NULL
6624 };
6625
6626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6629 {
6630 PyThreadState* __tstate = wxPyBeginAllowThreads();
6631 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6632
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 {
6637 #if wxUSE_UNICODE
6638 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6639 #else
6640 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6641 #endif
6642 }
6643 return resultobj;
6644 fail:
6645 return NULL;
6646 }
6647
6648
6649 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6650 PyObject *resultobj;
6651 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6652 int result;
6653 PyObject * obj0 = 0 ;
6654 char *kwnames[] = {
6655 (char *) "self", NULL
6656 };
6657
6658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6661 {
6662 PyThreadState* __tstate = wxPyBeginAllowThreads();
6663 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6664
6665 wxPyEndAllowThreads(__tstate);
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 resultobj = SWIG_FromInt((int)result);
6669 return resultobj;
6670 fail:
6671 return NULL;
6672 }
6673
6674
6675 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj;
6677 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6678 int result;
6679 PyObject * obj0 = 0 ;
6680 char *kwnames[] = {
6681 (char *) "self", NULL
6682 };
6683
6684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6687 {
6688 PyThreadState* __tstate = wxPyBeginAllowThreads();
6689 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6690
6691 wxPyEndAllowThreads(__tstate);
6692 if (PyErr_Occurred()) SWIG_fail;
6693 }
6694 resultobj = SWIG_FromInt((int)result);
6695 return resultobj;
6696 fail:
6697 return NULL;
6698 }
6699
6700
6701 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6702 PyObject *resultobj;
6703 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6704 int arg2 ;
6705 PyObject * obj0 = 0 ;
6706 PyObject * obj1 = 0 ;
6707 char *kwnames[] = {
6708 (char *) "self",(char *) "pointsize", NULL
6709 };
6710
6711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6714 arg2 = (int) SWIG_AsInt(obj1);
6715 if (PyErr_Occurred()) SWIG_fail;
6716 {
6717 PyThreadState* __tstate = wxPyBeginAllowThreads();
6718 (arg1)->SetPointSize(arg2);
6719
6720 wxPyEndAllowThreads(__tstate);
6721 if (PyErr_Occurred()) SWIG_fail;
6722 }
6723 Py_INCREF(Py_None); resultobj = Py_None;
6724 return resultobj;
6725 fail:
6726 return NULL;
6727 }
6728
6729
6730 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6731 PyObject *resultobj;
6732 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6733 int arg2 ;
6734 PyObject * obj0 = 0 ;
6735 PyObject * obj1 = 0 ;
6736 char *kwnames[] = {
6737 (char *) "self",(char *) "style", NULL
6738 };
6739
6740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6743 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6744 if (PyErr_Occurred()) SWIG_fail;
6745 {
6746 PyThreadState* __tstate = wxPyBeginAllowThreads();
6747 (arg1)->SetStyle((wxFontStyle )arg2);
6748
6749 wxPyEndAllowThreads(__tstate);
6750 if (PyErr_Occurred()) SWIG_fail;
6751 }
6752 Py_INCREF(Py_None); resultobj = Py_None;
6753 return resultobj;
6754 fail:
6755 return NULL;
6756 }
6757
6758
6759 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6760 PyObject *resultobj;
6761 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6762 int arg2 ;
6763 PyObject * obj0 = 0 ;
6764 PyObject * obj1 = 0 ;
6765 char *kwnames[] = {
6766 (char *) "self",(char *) "weight", NULL
6767 };
6768
6769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6772 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6773 if (PyErr_Occurred()) SWIG_fail;
6774 {
6775 PyThreadState* __tstate = wxPyBeginAllowThreads();
6776 (arg1)->SetWeight((wxFontWeight )arg2);
6777
6778 wxPyEndAllowThreads(__tstate);
6779 if (PyErr_Occurred()) SWIG_fail;
6780 }
6781 Py_INCREF(Py_None); resultobj = Py_None;
6782 return resultobj;
6783 fail:
6784 return NULL;
6785 }
6786
6787
6788 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6789 PyObject *resultobj;
6790 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6791 bool arg2 ;
6792 PyObject * obj0 = 0 ;
6793 PyObject * obj1 = 0 ;
6794 char *kwnames[] = {
6795 (char *) "self",(char *) "underlined", NULL
6796 };
6797
6798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6801 arg2 = (bool) SWIG_AsBool(obj1);
6802 if (PyErr_Occurred()) SWIG_fail;
6803 {
6804 PyThreadState* __tstate = wxPyBeginAllowThreads();
6805 (arg1)->SetUnderlined(arg2);
6806
6807 wxPyEndAllowThreads(__tstate);
6808 if (PyErr_Occurred()) SWIG_fail;
6809 }
6810 Py_INCREF(Py_None); resultobj = Py_None;
6811 return resultobj;
6812 fail:
6813 return NULL;
6814 }
6815
6816
6817 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6818 PyObject *resultobj;
6819 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6820 wxString arg2 ;
6821 PyObject * obj0 = 0 ;
6822 PyObject * obj1 = 0 ;
6823 char *kwnames[] = {
6824 (char *) "self",(char *) "facename", NULL
6825 };
6826
6827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6830 {
6831 wxString* sptr = wxString_in_helper(obj1);
6832 if (sptr == NULL) SWIG_fail;
6833 arg2 = *sptr;
6834 delete sptr;
6835 }
6836 {
6837 PyThreadState* __tstate = wxPyBeginAllowThreads();
6838 (arg1)->SetFaceName(arg2);
6839
6840 wxPyEndAllowThreads(__tstate);
6841 if (PyErr_Occurred()) SWIG_fail;
6842 }
6843 Py_INCREF(Py_None); resultobj = Py_None;
6844 return resultobj;
6845 fail:
6846 return NULL;
6847 }
6848
6849
6850 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6851 PyObject *resultobj;
6852 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6853 int arg2 ;
6854 PyObject * obj0 = 0 ;
6855 PyObject * obj1 = 0 ;
6856 char *kwnames[] = {
6857 (char *) "self",(char *) "family", NULL
6858 };
6859
6860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6863 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 {
6866 PyThreadState* __tstate = wxPyBeginAllowThreads();
6867 (arg1)->SetFamily((wxFontFamily )arg2);
6868
6869 wxPyEndAllowThreads(__tstate);
6870 if (PyErr_Occurred()) SWIG_fail;
6871 }
6872 Py_INCREF(Py_None); resultobj = Py_None;
6873 return resultobj;
6874 fail:
6875 return NULL;
6876 }
6877
6878
6879 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6880 PyObject *resultobj;
6881 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6882 int arg2 ;
6883 PyObject * obj0 = 0 ;
6884 PyObject * obj1 = 0 ;
6885 char *kwnames[] = {
6886 (char *) "self",(char *) "encoding", NULL
6887 };
6888
6889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6892 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6893 if (PyErr_Occurred()) SWIG_fail;
6894 {
6895 PyThreadState* __tstate = wxPyBeginAllowThreads();
6896 (arg1)->SetEncoding((wxFontEncoding )arg2);
6897
6898 wxPyEndAllowThreads(__tstate);
6899 if (PyErr_Occurred()) SWIG_fail;
6900 }
6901 Py_INCREF(Py_None); resultobj = Py_None;
6902 return resultobj;
6903 fail:
6904 return NULL;
6905 }
6906
6907
6908 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6909 PyObject *resultobj;
6910 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6911 wxString *arg2 = 0 ;
6912 bool result;
6913 bool temp2 = False ;
6914 PyObject * obj0 = 0 ;
6915 PyObject * obj1 = 0 ;
6916 char *kwnames[] = {
6917 (char *) "self",(char *) "s", NULL
6918 };
6919
6920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6923 {
6924 arg2 = wxString_in_helper(obj1);
6925 if (arg2 == NULL) SWIG_fail;
6926 temp2 = True;
6927 }
6928 {
6929 PyThreadState* __tstate = wxPyBeginAllowThreads();
6930 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6931
6932 wxPyEndAllowThreads(__tstate);
6933 if (PyErr_Occurred()) SWIG_fail;
6934 }
6935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6936 {
6937 if (temp2)
6938 delete arg2;
6939 }
6940 return resultobj;
6941 fail:
6942 {
6943 if (temp2)
6944 delete arg2;
6945 }
6946 return NULL;
6947 }
6948
6949
6950 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6951 PyObject *resultobj;
6952 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6953 wxString result;
6954 PyObject * obj0 = 0 ;
6955 char *kwnames[] = {
6956 (char *) "self", NULL
6957 };
6958
6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6962 {
6963 PyThreadState* __tstate = wxPyBeginAllowThreads();
6964 result = ((wxNativeFontInfo const *)arg1)->ToString();
6965
6966 wxPyEndAllowThreads(__tstate);
6967 if (PyErr_Occurred()) SWIG_fail;
6968 }
6969 {
6970 #if wxUSE_UNICODE
6971 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6972 #else
6973 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6974 #endif
6975 }
6976 return resultobj;
6977 fail:
6978 return NULL;
6979 }
6980
6981
6982 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6983 PyObject *resultobj;
6984 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6985 wxString result;
6986 PyObject * obj0 = 0 ;
6987 char *kwnames[] = {
6988 (char *) "self", NULL
6989 };
6990
6991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6994 {
6995 PyThreadState* __tstate = wxPyBeginAllowThreads();
6996 result = wxNativeFontInfo___str__(arg1);
6997
6998 wxPyEndAllowThreads(__tstate);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 }
7001 {
7002 #if wxUSE_UNICODE
7003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7004 #else
7005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7006 #endif
7007 }
7008 return resultobj;
7009 fail:
7010 return NULL;
7011 }
7012
7013
7014 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7015 PyObject *resultobj;
7016 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7017 wxString *arg2 = 0 ;
7018 bool result;
7019 bool temp2 = False ;
7020 PyObject * obj0 = 0 ;
7021 PyObject * obj1 = 0 ;
7022 char *kwnames[] = {
7023 (char *) "self",(char *) "s", NULL
7024 };
7025
7026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7029 {
7030 arg2 = wxString_in_helper(obj1);
7031 if (arg2 == NULL) SWIG_fail;
7032 temp2 = True;
7033 }
7034 {
7035 PyThreadState* __tstate = wxPyBeginAllowThreads();
7036 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7037
7038 wxPyEndAllowThreads(__tstate);
7039 if (PyErr_Occurred()) SWIG_fail;
7040 }
7041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7042 {
7043 if (temp2)
7044 delete arg2;
7045 }
7046 return resultobj;
7047 fail:
7048 {
7049 if (temp2)
7050 delete arg2;
7051 }
7052 return NULL;
7053 }
7054
7055
7056 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7057 PyObject *resultobj;
7058 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7059 wxString result;
7060 PyObject * obj0 = 0 ;
7061 char *kwnames[] = {
7062 (char *) "self", NULL
7063 };
7064
7065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7068 {
7069 PyThreadState* __tstate = wxPyBeginAllowThreads();
7070 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7071
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 {
7076 #if wxUSE_UNICODE
7077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7078 #else
7079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7080 #endif
7081 }
7082 return resultobj;
7083 fail:
7084 return NULL;
7085 }
7086
7087
7088 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
7089 PyObject *obj;
7090 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7091 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7092 Py_INCREF(obj);
7093 return Py_BuildValue((char *)"");
7094 }
7095 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7096 PyObject *resultobj;
7097 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7098 wxString *arg2 = (wxString *) 0 ;
7099 bool temp2 = False ;
7100 PyObject * obj0 = 0 ;
7101 PyObject * obj1 = 0 ;
7102 char *kwnames[] = {
7103 (char *) "self",(char *) "facename", NULL
7104 };
7105
7106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7109 {
7110 arg2 = wxString_in_helper(obj1);
7111 if (arg2 == NULL) SWIG_fail;
7112 temp2 = True;
7113 }
7114 if (arg1) (arg1)->facename = *arg2;
7115
7116 Py_INCREF(Py_None); resultobj = Py_None;
7117 {
7118 if (temp2)
7119 delete arg2;
7120 }
7121 return resultobj;
7122 fail:
7123 {
7124 if (temp2)
7125 delete arg2;
7126 }
7127 return NULL;
7128 }
7129
7130
7131 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7132 PyObject *resultobj;
7133 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7134 wxString *result;
7135 PyObject * obj0 = 0 ;
7136 char *kwnames[] = {
7137 (char *) "self", NULL
7138 };
7139
7140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7143 result = (wxString *)& ((arg1)->facename);
7144
7145 {
7146 #if wxUSE_UNICODE
7147 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7148 #else
7149 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7150 #endif
7151 }
7152 return resultobj;
7153 fail:
7154 return NULL;
7155 }
7156
7157
7158 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7159 PyObject *resultobj;
7160 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7161 int arg2 ;
7162 PyObject * obj0 = 0 ;
7163 PyObject * obj1 = 0 ;
7164 char *kwnames[] = {
7165 (char *) "self",(char *) "encoding", NULL
7166 };
7167
7168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7171 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7174
7175 Py_INCREF(Py_None); resultobj = Py_None;
7176 return resultobj;
7177 fail:
7178 return NULL;
7179 }
7180
7181
7182 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7183 PyObject *resultobj;
7184 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7185 int result;
7186 PyObject * obj0 = 0 ;
7187 char *kwnames[] = {
7188 (char *) "self", NULL
7189 };
7190
7191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7194 result = (int) ((arg1)->encoding);
7195
7196 resultobj = SWIG_FromInt((int)result);
7197 return resultobj;
7198 fail:
7199 return NULL;
7200 }
7201
7202
7203 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7204 PyObject *resultobj;
7205 wxNativeEncodingInfo *result;
7206 char *kwnames[] = {
7207 NULL
7208 };
7209
7210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7211 {
7212 PyThreadState* __tstate = wxPyBeginAllowThreads();
7213 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7214
7215 wxPyEndAllowThreads(__tstate);
7216 if (PyErr_Occurred()) SWIG_fail;
7217 }
7218 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7219 return resultobj;
7220 fail:
7221 return NULL;
7222 }
7223
7224
7225 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7226 PyObject *resultobj;
7227 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7228 PyObject * obj0 = 0 ;
7229 char *kwnames[] = {
7230 (char *) "self", NULL
7231 };
7232
7233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7236 {
7237 PyThreadState* __tstate = wxPyBeginAllowThreads();
7238 delete arg1;
7239
7240 wxPyEndAllowThreads(__tstate);
7241 if (PyErr_Occurred()) SWIG_fail;
7242 }
7243 Py_INCREF(Py_None); resultobj = Py_None;
7244 return resultobj;
7245 fail:
7246 return NULL;
7247 }
7248
7249
7250 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7251 PyObject *resultobj;
7252 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7253 wxString *arg2 = 0 ;
7254 bool result;
7255 bool temp2 = False ;
7256 PyObject * obj0 = 0 ;
7257 PyObject * obj1 = 0 ;
7258 char *kwnames[] = {
7259 (char *) "self",(char *) "s", NULL
7260 };
7261
7262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7265 {
7266 arg2 = wxString_in_helper(obj1);
7267 if (arg2 == NULL) SWIG_fail;
7268 temp2 = True;
7269 }
7270 {
7271 PyThreadState* __tstate = wxPyBeginAllowThreads();
7272 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7273
7274 wxPyEndAllowThreads(__tstate);
7275 if (PyErr_Occurred()) SWIG_fail;
7276 }
7277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7278 {
7279 if (temp2)
7280 delete arg2;
7281 }
7282 return resultobj;
7283 fail:
7284 {
7285 if (temp2)
7286 delete arg2;
7287 }
7288 return NULL;
7289 }
7290
7291
7292 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7293 PyObject *resultobj;
7294 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7295 wxString result;
7296 PyObject * obj0 = 0 ;
7297 char *kwnames[] = {
7298 (char *) "self", NULL
7299 };
7300
7301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7304 {
7305 PyThreadState* __tstate = wxPyBeginAllowThreads();
7306 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7307
7308 wxPyEndAllowThreads(__tstate);
7309 if (PyErr_Occurred()) SWIG_fail;
7310 }
7311 {
7312 #if wxUSE_UNICODE
7313 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7314 #else
7315 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7316 #endif
7317 }
7318 return resultobj;
7319 fail:
7320 return NULL;
7321 }
7322
7323
7324 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7325 PyObject *obj;
7326 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7327 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7328 Py_INCREF(obj);
7329 return Py_BuildValue((char *)"");
7330 }
7331 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7332 PyObject *resultobj;
7333 int arg1 ;
7334 wxNativeEncodingInfo *result;
7335 PyObject * obj0 = 0 ;
7336 char *kwnames[] = {
7337 (char *) "encoding", NULL
7338 };
7339
7340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7341 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7342 if (PyErr_Occurred()) SWIG_fail;
7343 {
7344 PyThreadState* __tstate = wxPyBeginAllowThreads();
7345 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7346
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7351 return resultobj;
7352 fail:
7353 return NULL;
7354 }
7355
7356
7357 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7358 PyObject *resultobj;
7359 wxNativeEncodingInfo *arg1 = 0 ;
7360 bool result;
7361 PyObject * obj0 = 0 ;
7362 char *kwnames[] = {
7363 (char *) "info", NULL
7364 };
7365
7366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7368 SWIG_POINTER_EXCEPTION | 0)) == -1)
7369 SWIG_fail;
7370 if (arg1 == NULL) {
7371 PyErr_SetString(PyExc_TypeError,"null reference");
7372 SWIG_fail;
7373 }
7374 {
7375 PyThreadState* __tstate = wxPyBeginAllowThreads();
7376 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7377
7378 wxPyEndAllowThreads(__tstate);
7379 if (PyErr_Occurred()) SWIG_fail;
7380 }
7381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7382 return resultobj;
7383 fail:
7384 return NULL;
7385 }
7386
7387
7388 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7389 PyObject *resultobj;
7390 wxFontMapper *result;
7391 char *kwnames[] = {
7392 NULL
7393 };
7394
7395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7396 {
7397 PyThreadState* __tstate = wxPyBeginAllowThreads();
7398 result = (wxFontMapper *)new wxFontMapper();
7399
7400 wxPyEndAllowThreads(__tstate);
7401 if (PyErr_Occurred()) SWIG_fail;
7402 }
7403 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7404 return resultobj;
7405 fail:
7406 return NULL;
7407 }
7408
7409
7410 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7411 PyObject *resultobj;
7412 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7413 PyObject * obj0 = 0 ;
7414 char *kwnames[] = {
7415 (char *) "self", NULL
7416 };
7417
7418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7421 {
7422 PyThreadState* __tstate = wxPyBeginAllowThreads();
7423 delete arg1;
7424
7425 wxPyEndAllowThreads(__tstate);
7426 if (PyErr_Occurred()) SWIG_fail;
7427 }
7428 Py_INCREF(Py_None); resultobj = Py_None;
7429 return resultobj;
7430 fail:
7431 return NULL;
7432 }
7433
7434
7435 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7436 PyObject *resultobj;
7437 wxFontMapper *result;
7438 char *kwnames[] = {
7439 NULL
7440 };
7441
7442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7443 {
7444 PyThreadState* __tstate = wxPyBeginAllowThreads();
7445 result = (wxFontMapper *)wxFontMapper::Get();
7446
7447 wxPyEndAllowThreads(__tstate);
7448 if (PyErr_Occurred()) SWIG_fail;
7449 }
7450 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7451 return resultobj;
7452 fail:
7453 return NULL;
7454 }
7455
7456
7457 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7458 PyObject *resultobj;
7459 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7460 wxFontMapper *result;
7461 PyObject * obj0 = 0 ;
7462 char *kwnames[] = {
7463 (char *) "mapper", NULL
7464 };
7465
7466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7469 {
7470 PyThreadState* __tstate = wxPyBeginAllowThreads();
7471 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7472
7473 wxPyEndAllowThreads(__tstate);
7474 if (PyErr_Occurred()) SWIG_fail;
7475 }
7476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7477 return resultobj;
7478 fail:
7479 return NULL;
7480 }
7481
7482
7483 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7484 PyObject *resultobj;
7485 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7486 wxString *arg2 = 0 ;
7487 bool arg3 = (bool) True ;
7488 int result;
7489 bool temp2 = False ;
7490 PyObject * obj0 = 0 ;
7491 PyObject * obj1 = 0 ;
7492 PyObject * obj2 = 0 ;
7493 char *kwnames[] = {
7494 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7495 };
7496
7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7500 {
7501 arg2 = wxString_in_helper(obj1);
7502 if (arg2 == NULL) SWIG_fail;
7503 temp2 = True;
7504 }
7505 if (obj2) {
7506 arg3 = (bool) SWIG_AsBool(obj2);
7507 if (PyErr_Occurred()) SWIG_fail;
7508 }
7509 {
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
7511 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7512
7513 wxPyEndAllowThreads(__tstate);
7514 if (PyErr_Occurred()) SWIG_fail;
7515 }
7516 resultobj = SWIG_FromInt((int)result);
7517 {
7518 if (temp2)
7519 delete arg2;
7520 }
7521 return resultobj;
7522 fail:
7523 {
7524 if (temp2)
7525 delete arg2;
7526 }
7527 return NULL;
7528 }
7529
7530
7531 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7532 PyObject *resultobj;
7533 size_t result;
7534 char *kwnames[] = {
7535 NULL
7536 };
7537
7538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7539 {
7540 PyThreadState* __tstate = wxPyBeginAllowThreads();
7541 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7542
7543 wxPyEndAllowThreads(__tstate);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7547 return resultobj;
7548 fail:
7549 return NULL;
7550 }
7551
7552
7553 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7554 PyObject *resultobj;
7555 size_t arg1 ;
7556 int result;
7557 PyObject * obj0 = 0 ;
7558 char *kwnames[] = {
7559 (char *) "n", NULL
7560 };
7561
7562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7563 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7564 if (PyErr_Occurred()) SWIG_fail;
7565 {
7566 PyThreadState* __tstate = wxPyBeginAllowThreads();
7567 result = (int)wxFontMapper::GetEncoding(arg1);
7568
7569 wxPyEndAllowThreads(__tstate);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 resultobj = SWIG_FromInt((int)result);
7573 return resultobj;
7574 fail:
7575 return NULL;
7576 }
7577
7578
7579 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7580 PyObject *resultobj;
7581 int arg1 ;
7582 wxString result;
7583 PyObject * obj0 = 0 ;
7584 char *kwnames[] = {
7585 (char *) "encoding", NULL
7586 };
7587
7588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7589 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7590 if (PyErr_Occurred()) SWIG_fail;
7591 {
7592 PyThreadState* __tstate = wxPyBeginAllowThreads();
7593 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7594
7595 wxPyEndAllowThreads(__tstate);
7596 if (PyErr_Occurred()) SWIG_fail;
7597 }
7598 {
7599 #if wxUSE_UNICODE
7600 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7601 #else
7602 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7603 #endif
7604 }
7605 return resultobj;
7606 fail:
7607 return NULL;
7608 }
7609
7610
7611 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7612 PyObject *resultobj;
7613 int arg1 ;
7614 wxString result;
7615 PyObject * obj0 = 0 ;
7616 char *kwnames[] = {
7617 (char *) "encoding", NULL
7618 };
7619
7620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7621 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7622 if (PyErr_Occurred()) SWIG_fail;
7623 {
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
7625 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7626
7627 wxPyEndAllowThreads(__tstate);
7628 if (PyErr_Occurred()) SWIG_fail;
7629 }
7630 {
7631 #if wxUSE_UNICODE
7632 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7633 #else
7634 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7635 #endif
7636 }
7637 return resultobj;
7638 fail:
7639 return NULL;
7640 }
7641
7642
7643 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7644 PyObject *resultobj;
7645 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7646 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7647 PyObject * obj0 = 0 ;
7648 PyObject * obj1 = 0 ;
7649 char *kwnames[] = {
7650 (char *) "self",(char *) "config", NULL
7651 };
7652
7653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7656 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7658 {
7659 PyThreadState* __tstate = wxPyBeginAllowThreads();
7660 (arg1)->SetConfig(arg2);
7661
7662 wxPyEndAllowThreads(__tstate);
7663 if (PyErr_Occurred()) SWIG_fail;
7664 }
7665 Py_INCREF(Py_None); resultobj = Py_None;
7666 return resultobj;
7667 fail:
7668 return NULL;
7669 }
7670
7671
7672 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7673 PyObject *resultobj;
7674 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7675 wxString *arg2 = 0 ;
7676 bool temp2 = False ;
7677 PyObject * obj0 = 0 ;
7678 PyObject * obj1 = 0 ;
7679 char *kwnames[] = {
7680 (char *) "self",(char *) "prefix", NULL
7681 };
7682
7683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7686 {
7687 arg2 = wxString_in_helper(obj1);
7688 if (arg2 == NULL) SWIG_fail;
7689 temp2 = True;
7690 }
7691 {
7692 PyThreadState* __tstate = wxPyBeginAllowThreads();
7693 (arg1)->SetConfigPath((wxString const &)*arg2);
7694
7695 wxPyEndAllowThreads(__tstate);
7696 if (PyErr_Occurred()) SWIG_fail;
7697 }
7698 Py_INCREF(Py_None); resultobj = Py_None;
7699 {
7700 if (temp2)
7701 delete arg2;
7702 }
7703 return resultobj;
7704 fail:
7705 {
7706 if (temp2)
7707 delete arg2;
7708 }
7709 return NULL;
7710 }
7711
7712
7713 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7714 PyObject *resultobj;
7715 wxString result;
7716 char *kwnames[] = {
7717 NULL
7718 };
7719
7720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7721 {
7722 PyThreadState* __tstate = wxPyBeginAllowThreads();
7723 result = wxFontMapper::GetDefaultConfigPath();
7724
7725 wxPyEndAllowThreads(__tstate);
7726 if (PyErr_Occurred()) SWIG_fail;
7727 }
7728 {
7729 #if wxUSE_UNICODE
7730 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7731 #else
7732 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7733 #endif
7734 }
7735 return resultobj;
7736 fail:
7737 return NULL;
7738 }
7739
7740
7741 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7742 PyObject *resultobj;
7743 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7744 int arg2 ;
7745 wxString const &arg3_defvalue = wxPyEmptyString ;
7746 wxString *arg3 = (wxString *) &arg3_defvalue ;
7747 bool arg4 = (bool) True ;
7748 PyObject *result;
7749 bool temp3 = False ;
7750 PyObject * obj0 = 0 ;
7751 PyObject * obj1 = 0 ;
7752 PyObject * obj2 = 0 ;
7753 PyObject * obj3 = 0 ;
7754 char *kwnames[] = {
7755 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7756 };
7757
7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7761 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7762 if (PyErr_Occurred()) SWIG_fail;
7763 if (obj2) {
7764 {
7765 arg3 = wxString_in_helper(obj2);
7766 if (arg3 == NULL) SWIG_fail;
7767 temp3 = True;
7768 }
7769 }
7770 if (obj3) {
7771 arg4 = (bool) SWIG_AsBool(obj3);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 {
7775 PyThreadState* __tstate = wxPyBeginAllowThreads();
7776 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7777
7778 wxPyEndAllowThreads(__tstate);
7779 if (PyErr_Occurred()) SWIG_fail;
7780 }
7781 resultobj = result;
7782 {
7783 if (temp3)
7784 delete arg3;
7785 }
7786 return resultobj;
7787 fail:
7788 {
7789 if (temp3)
7790 delete arg3;
7791 }
7792 return NULL;
7793 }
7794
7795
7796 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7797 PyObject *resultobj;
7798 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7799 int arg2 ;
7800 wxString const &arg3_defvalue = wxPyEmptyString ;
7801 wxString *arg3 = (wxString *) &arg3_defvalue ;
7802 bool result;
7803 bool temp3 = False ;
7804 PyObject * obj0 = 0 ;
7805 PyObject * obj1 = 0 ;
7806 PyObject * obj2 = 0 ;
7807 char *kwnames[] = {
7808 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7809 };
7810
7811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7814 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7815 if (PyErr_Occurred()) SWIG_fail;
7816 if (obj2) {
7817 {
7818 arg3 = wxString_in_helper(obj2);
7819 if (arg3 == NULL) SWIG_fail;
7820 temp3 = True;
7821 }
7822 }
7823 {
7824 PyThreadState* __tstate = wxPyBeginAllowThreads();
7825 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7826
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7831 {
7832 if (temp3)
7833 delete arg3;
7834 }
7835 return resultobj;
7836 fail:
7837 {
7838 if (temp3)
7839 delete arg3;
7840 }
7841 return NULL;
7842 }
7843
7844
7845 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7846 PyObject *resultobj;
7847 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7848 wxWindow *arg2 = (wxWindow *) 0 ;
7849 PyObject * obj0 = 0 ;
7850 PyObject * obj1 = 0 ;
7851 char *kwnames[] = {
7852 (char *) "self",(char *) "parent", NULL
7853 };
7854
7855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7860 {
7861 PyThreadState* __tstate = wxPyBeginAllowThreads();
7862 (arg1)->SetDialogParent(arg2);
7863
7864 wxPyEndAllowThreads(__tstate);
7865 if (PyErr_Occurred()) SWIG_fail;
7866 }
7867 Py_INCREF(Py_None); resultobj = Py_None;
7868 return resultobj;
7869 fail:
7870 return NULL;
7871 }
7872
7873
7874 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7875 PyObject *resultobj;
7876 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7877 wxString *arg2 = 0 ;
7878 bool temp2 = False ;
7879 PyObject * obj0 = 0 ;
7880 PyObject * obj1 = 0 ;
7881 char *kwnames[] = {
7882 (char *) "self",(char *) "title", NULL
7883 };
7884
7885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7888 {
7889 arg2 = wxString_in_helper(obj1);
7890 if (arg2 == NULL) SWIG_fail;
7891 temp2 = True;
7892 }
7893 {
7894 PyThreadState* __tstate = wxPyBeginAllowThreads();
7895 (arg1)->SetDialogTitle((wxString const &)*arg2);
7896
7897 wxPyEndAllowThreads(__tstate);
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 Py_INCREF(Py_None); resultobj = Py_None;
7901 {
7902 if (temp2)
7903 delete arg2;
7904 }
7905 return resultobj;
7906 fail:
7907 {
7908 if (temp2)
7909 delete arg2;
7910 }
7911 return NULL;
7912 }
7913
7914
7915 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7916 PyObject *obj;
7917 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7918 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7919 Py_INCREF(obj);
7920 return Py_BuildValue((char *)"");
7921 }
7922 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7923 PyObject *resultobj;
7924 int arg1 ;
7925 int arg2 ;
7926 int arg3 ;
7927 int arg4 ;
7928 bool arg5 = (bool) False ;
7929 wxString const &arg6_defvalue = wxPyEmptyString ;
7930 wxString *arg6 = (wxString *) &arg6_defvalue ;
7931 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7932 wxFont *result;
7933 bool temp6 = False ;
7934 PyObject * obj0 = 0 ;
7935 PyObject * obj1 = 0 ;
7936 PyObject * obj2 = 0 ;
7937 PyObject * obj3 = 0 ;
7938 PyObject * obj4 = 0 ;
7939 PyObject * obj5 = 0 ;
7940 PyObject * obj6 = 0 ;
7941 char *kwnames[] = {
7942 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7943 };
7944
7945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7946 arg1 = (int) SWIG_AsInt(obj0);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 arg2 = (int) SWIG_AsInt(obj1);
7949 if (PyErr_Occurred()) SWIG_fail;
7950 arg3 = (int) SWIG_AsInt(obj2);
7951 if (PyErr_Occurred()) SWIG_fail;
7952 arg4 = (int) SWIG_AsInt(obj3);
7953 if (PyErr_Occurred()) SWIG_fail;
7954 if (obj4) {
7955 arg5 = (bool) SWIG_AsBool(obj4);
7956 if (PyErr_Occurred()) SWIG_fail;
7957 }
7958 if (obj5) {
7959 {
7960 arg6 = wxString_in_helper(obj5);
7961 if (arg6 == NULL) SWIG_fail;
7962 temp6 = True;
7963 }
7964 }
7965 if (obj6) {
7966 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7967 if (PyErr_Occurred()) SWIG_fail;
7968 }
7969 {
7970 PyThreadState* __tstate = wxPyBeginAllowThreads();
7971 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7972
7973 wxPyEndAllowThreads(__tstate);
7974 if (PyErr_Occurred()) SWIG_fail;
7975 }
7976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7977 {
7978 if (temp6)
7979 delete arg6;
7980 }
7981 return resultobj;
7982 fail:
7983 {
7984 if (temp6)
7985 delete arg6;
7986 }
7987 return NULL;
7988 }
7989
7990
7991 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7992 PyObject *resultobj;
7993 wxFont *arg1 = (wxFont *) 0 ;
7994 PyObject * obj0 = 0 ;
7995 char *kwnames[] = {
7996 (char *) "self", NULL
7997 };
7998
7999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8002 {
8003 PyThreadState* __tstate = wxPyBeginAllowThreads();
8004 delete arg1;
8005
8006 wxPyEndAllowThreads(__tstate);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 Py_INCREF(Py_None); resultobj = Py_None;
8010 return resultobj;
8011 fail:
8012 return NULL;
8013 }
8014
8015
8016 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8017 PyObject *resultobj;
8018 wxNativeFontInfo *arg1 = 0 ;
8019 wxFont *result;
8020 PyObject * obj0 = 0 ;
8021 char *kwnames[] = {
8022 (char *) "info", NULL
8023 };
8024
8025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8027 SWIG_POINTER_EXCEPTION | 0)) == -1)
8028 SWIG_fail;
8029 if (arg1 == NULL) {
8030 PyErr_SetString(PyExc_TypeError,"null reference");
8031 SWIG_fail;
8032 }
8033 {
8034 PyThreadState* __tstate = wxPyBeginAllowThreads();
8035 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8036
8037 wxPyEndAllowThreads(__tstate);
8038 if (PyErr_Occurred()) SWIG_fail;
8039 }
8040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8041 return resultobj;
8042 fail:
8043 return NULL;
8044 }
8045
8046
8047 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
8048 PyObject *resultobj;
8049 wxString *arg1 = 0 ;
8050 wxFont *result;
8051 bool temp1 = False ;
8052 PyObject * obj0 = 0 ;
8053 char *kwnames[] = {
8054 (char *) "info", NULL
8055 };
8056
8057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8058 {
8059 arg1 = wxString_in_helper(obj0);
8060 if (arg1 == NULL) SWIG_fail;
8061 temp1 = True;
8062 }
8063 {
8064 PyThreadState* __tstate = wxPyBeginAllowThreads();
8065 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8066
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8071 {
8072 if (temp1)
8073 delete arg1;
8074 }
8075 return resultobj;
8076 fail:
8077 {
8078 if (temp1)
8079 delete arg1;
8080 }
8081 return NULL;
8082 }
8083
8084
8085 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
8086 PyObject *resultobj;
8087 int arg1 ;
8088 int arg2 ;
8089 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8090 wxString const &arg4_defvalue = wxPyEmptyString ;
8091 wxString *arg4 = (wxString *) &arg4_defvalue ;
8092 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8093 wxFont *result;
8094 bool temp4 = False ;
8095 PyObject * obj0 = 0 ;
8096 PyObject * obj1 = 0 ;
8097 PyObject * obj2 = 0 ;
8098 PyObject * obj3 = 0 ;
8099 PyObject * obj4 = 0 ;
8100 char *kwnames[] = {
8101 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8102 };
8103
8104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
8105 arg1 = (int) SWIG_AsInt(obj0);
8106 if (PyErr_Occurred()) SWIG_fail;
8107 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 if (obj2) {
8110 arg3 = (int) SWIG_AsInt(obj2);
8111 if (PyErr_Occurred()) SWIG_fail;
8112 }
8113 if (obj3) {
8114 {
8115 arg4 = wxString_in_helper(obj3);
8116 if (arg4 == NULL) SWIG_fail;
8117 temp4 = True;
8118 }
8119 }
8120 if (obj4) {
8121 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
8122 if (PyErr_Occurred()) SWIG_fail;
8123 }
8124 {
8125 PyThreadState* __tstate = wxPyBeginAllowThreads();
8126 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8127
8128 wxPyEndAllowThreads(__tstate);
8129 if (PyErr_Occurred()) SWIG_fail;
8130 }
8131 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8132 {
8133 if (temp4)
8134 delete arg4;
8135 }
8136 return resultobj;
8137 fail:
8138 {
8139 if (temp4)
8140 delete arg4;
8141 }
8142 return NULL;
8143 }
8144
8145
8146 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8147 PyObject *resultobj;
8148 wxFont *arg1 = (wxFont *) 0 ;
8149 bool result;
8150 PyObject * obj0 = 0 ;
8151 char *kwnames[] = {
8152 (char *) "self", NULL
8153 };
8154
8155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8158 {
8159 PyThreadState* __tstate = wxPyBeginAllowThreads();
8160 result = (bool)((wxFont const *)arg1)->Ok();
8161
8162 wxPyEndAllowThreads(__tstate);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 }
8165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8166 return resultobj;
8167 fail:
8168 return NULL;
8169 }
8170
8171
8172 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj;
8174 wxFont *arg1 = (wxFont *) 0 ;
8175 wxFont *arg2 = (wxFont *) 0 ;
8176 bool result;
8177 PyObject * obj0 = 0 ;
8178 PyObject * obj1 = 0 ;
8179 char *kwnames[] = {
8180 (char *) "self",(char *) "other", NULL
8181 };
8182
8183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8186 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8188 {
8189 PyThreadState* __tstate = wxPyBeginAllowThreads();
8190 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8191
8192 wxPyEndAllowThreads(__tstate);
8193 if (PyErr_Occurred()) SWIG_fail;
8194 }
8195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8196 return resultobj;
8197 fail:
8198 return NULL;
8199 }
8200
8201
8202 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
8203 PyObject *resultobj;
8204 wxFont *arg1 = (wxFont *) 0 ;
8205 wxFont *arg2 = (wxFont *) 0 ;
8206 bool result;
8207 PyObject * obj0 = 0 ;
8208 PyObject * obj1 = 0 ;
8209 char *kwnames[] = {
8210 (char *) "self",(char *) "other", NULL
8211 };
8212
8213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8216 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8218 {
8219 PyThreadState* __tstate = wxPyBeginAllowThreads();
8220 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8221
8222 wxPyEndAllowThreads(__tstate);
8223 if (PyErr_Occurred()) SWIG_fail;
8224 }
8225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8226 return resultobj;
8227 fail:
8228 return NULL;
8229 }
8230
8231
8232 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8233 PyObject *resultobj;
8234 wxFont *arg1 = (wxFont *) 0 ;
8235 int result;
8236 PyObject * obj0 = 0 ;
8237 char *kwnames[] = {
8238 (char *) "self", NULL
8239 };
8240
8241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8244 {
8245 PyThreadState* __tstate = wxPyBeginAllowThreads();
8246 result = (int)((wxFont const *)arg1)->GetPointSize();
8247
8248 wxPyEndAllowThreads(__tstate);
8249 if (PyErr_Occurred()) SWIG_fail;
8250 }
8251 resultobj = SWIG_FromInt((int)result);
8252 return resultobj;
8253 fail:
8254 return NULL;
8255 }
8256
8257
8258 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8259 PyObject *resultobj;
8260 wxFont *arg1 = (wxFont *) 0 ;
8261 int result;
8262 PyObject * obj0 = 0 ;
8263 char *kwnames[] = {
8264 (char *) "self", NULL
8265 };
8266
8267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8270 {
8271 PyThreadState* __tstate = wxPyBeginAllowThreads();
8272 result = (int)((wxFont const *)arg1)->GetFamily();
8273
8274 wxPyEndAllowThreads(__tstate);
8275 if (PyErr_Occurred()) SWIG_fail;
8276 }
8277 resultobj = SWIG_FromInt((int)result);
8278 return resultobj;
8279 fail:
8280 return NULL;
8281 }
8282
8283
8284 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8285 PyObject *resultobj;
8286 wxFont *arg1 = (wxFont *) 0 ;
8287 int result;
8288 PyObject * obj0 = 0 ;
8289 char *kwnames[] = {
8290 (char *) "self", NULL
8291 };
8292
8293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8296 {
8297 PyThreadState* __tstate = wxPyBeginAllowThreads();
8298 result = (int)((wxFont const *)arg1)->GetStyle();
8299
8300 wxPyEndAllowThreads(__tstate);
8301 if (PyErr_Occurred()) SWIG_fail;
8302 }
8303 resultobj = SWIG_FromInt((int)result);
8304 return resultobj;
8305 fail:
8306 return NULL;
8307 }
8308
8309
8310 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8311 PyObject *resultobj;
8312 wxFont *arg1 = (wxFont *) 0 ;
8313 int result;
8314 PyObject * obj0 = 0 ;
8315 char *kwnames[] = {
8316 (char *) "self", NULL
8317 };
8318
8319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8322 {
8323 PyThreadState* __tstate = wxPyBeginAllowThreads();
8324 result = (int)((wxFont const *)arg1)->GetWeight();
8325
8326 wxPyEndAllowThreads(__tstate);
8327 if (PyErr_Occurred()) SWIG_fail;
8328 }
8329 resultobj = SWIG_FromInt((int)result);
8330 return resultobj;
8331 fail:
8332 return NULL;
8333 }
8334
8335
8336 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8337 PyObject *resultobj;
8338 wxFont *arg1 = (wxFont *) 0 ;
8339 bool result;
8340 PyObject * obj0 = 0 ;
8341 char *kwnames[] = {
8342 (char *) "self", NULL
8343 };
8344
8345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8348 {
8349 PyThreadState* __tstate = wxPyBeginAllowThreads();
8350 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8351
8352 wxPyEndAllowThreads(__tstate);
8353 if (PyErr_Occurred()) SWIG_fail;
8354 }
8355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8356 return resultobj;
8357 fail:
8358 return NULL;
8359 }
8360
8361
8362 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8363 PyObject *resultobj;
8364 wxFont *arg1 = (wxFont *) 0 ;
8365 wxString result;
8366 PyObject * obj0 = 0 ;
8367 char *kwnames[] = {
8368 (char *) "self", NULL
8369 };
8370
8371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8374 {
8375 PyThreadState* __tstate = wxPyBeginAllowThreads();
8376 result = ((wxFont const *)arg1)->GetFaceName();
8377
8378 wxPyEndAllowThreads(__tstate);
8379 if (PyErr_Occurred()) SWIG_fail;
8380 }
8381 {
8382 #if wxUSE_UNICODE
8383 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8384 #else
8385 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8386 #endif
8387 }
8388 return resultobj;
8389 fail:
8390 return NULL;
8391 }
8392
8393
8394 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8395 PyObject *resultobj;
8396 wxFont *arg1 = (wxFont *) 0 ;
8397 int result;
8398 PyObject * obj0 = 0 ;
8399 char *kwnames[] = {
8400 (char *) "self", NULL
8401 };
8402
8403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8406 {
8407 PyThreadState* __tstate = wxPyBeginAllowThreads();
8408 result = (int)((wxFont const *)arg1)->GetEncoding();
8409
8410 wxPyEndAllowThreads(__tstate);
8411 if (PyErr_Occurred()) SWIG_fail;
8412 }
8413 resultobj = SWIG_FromInt((int)result);
8414 return resultobj;
8415 fail:
8416 return NULL;
8417 }
8418
8419
8420 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8421 PyObject *resultobj;
8422 wxFont *arg1 = (wxFont *) 0 ;
8423 wxNativeFontInfo *result;
8424 PyObject * obj0 = 0 ;
8425 char *kwnames[] = {
8426 (char *) "self", NULL
8427 };
8428
8429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8432 {
8433 PyThreadState* __tstate = wxPyBeginAllowThreads();
8434 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8435
8436 wxPyEndAllowThreads(__tstate);
8437 if (PyErr_Occurred()) SWIG_fail;
8438 }
8439 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8440 return resultobj;
8441 fail:
8442 return NULL;
8443 }
8444
8445
8446 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8447 PyObject *resultobj;
8448 wxFont *arg1 = (wxFont *) 0 ;
8449 bool result;
8450 PyObject * obj0 = 0 ;
8451 char *kwnames[] = {
8452 (char *) "self", NULL
8453 };
8454
8455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8458 {
8459 PyThreadState* __tstate = wxPyBeginAllowThreads();
8460 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8461
8462 wxPyEndAllowThreads(__tstate);
8463 if (PyErr_Occurred()) SWIG_fail;
8464 }
8465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8466 return resultobj;
8467 fail:
8468 return NULL;
8469 }
8470
8471
8472 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8473 PyObject *resultobj;
8474 wxFont *arg1 = (wxFont *) 0 ;
8475 wxString result;
8476 PyObject * obj0 = 0 ;
8477 char *kwnames[] = {
8478 (char *) "self", NULL
8479 };
8480
8481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8484 {
8485 PyThreadState* __tstate = wxPyBeginAllowThreads();
8486 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8487
8488 wxPyEndAllowThreads(__tstate);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 {
8492 #if wxUSE_UNICODE
8493 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8494 #else
8495 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8496 #endif
8497 }
8498 return resultobj;
8499 fail:
8500 return NULL;
8501 }
8502
8503
8504 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8505 PyObject *resultobj;
8506 wxFont *arg1 = (wxFont *) 0 ;
8507 wxString result;
8508 PyObject * obj0 = 0 ;
8509 char *kwnames[] = {
8510 (char *) "self", NULL
8511 };
8512
8513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8516 {
8517 PyThreadState* __tstate = wxPyBeginAllowThreads();
8518 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8519
8520 wxPyEndAllowThreads(__tstate);
8521 if (PyErr_Occurred()) SWIG_fail;
8522 }
8523 {
8524 #if wxUSE_UNICODE
8525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8526 #else
8527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8528 #endif
8529 }
8530 return resultobj;
8531 fail:
8532 return NULL;
8533 }
8534
8535
8536 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8537 PyObject *resultobj;
8538 wxFont *arg1 = (wxFont *) 0 ;
8539 int arg2 ;
8540 PyObject * obj0 = 0 ;
8541 PyObject * obj1 = 0 ;
8542 char *kwnames[] = {
8543 (char *) "self",(char *) "pointSize", NULL
8544 };
8545
8546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8549 arg2 = (int) SWIG_AsInt(obj1);
8550 if (PyErr_Occurred()) SWIG_fail;
8551 {
8552 PyThreadState* __tstate = wxPyBeginAllowThreads();
8553 (arg1)->SetPointSize(arg2);
8554
8555 wxPyEndAllowThreads(__tstate);
8556 if (PyErr_Occurred()) SWIG_fail;
8557 }
8558 Py_INCREF(Py_None); resultobj = Py_None;
8559 return resultobj;
8560 fail:
8561 return NULL;
8562 }
8563
8564
8565 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8566 PyObject *resultobj;
8567 wxFont *arg1 = (wxFont *) 0 ;
8568 int arg2 ;
8569 PyObject * obj0 = 0 ;
8570 PyObject * obj1 = 0 ;
8571 char *kwnames[] = {
8572 (char *) "self",(char *) "family", NULL
8573 };
8574
8575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8578 arg2 = (int) SWIG_AsInt(obj1);
8579 if (PyErr_Occurred()) SWIG_fail;
8580 {
8581 PyThreadState* __tstate = wxPyBeginAllowThreads();
8582 (arg1)->SetFamily(arg2);
8583
8584 wxPyEndAllowThreads(__tstate);
8585 if (PyErr_Occurred()) SWIG_fail;
8586 }
8587 Py_INCREF(Py_None); resultobj = Py_None;
8588 return resultobj;
8589 fail:
8590 return NULL;
8591 }
8592
8593
8594 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8595 PyObject *resultobj;
8596 wxFont *arg1 = (wxFont *) 0 ;
8597 int arg2 ;
8598 PyObject * obj0 = 0 ;
8599 PyObject * obj1 = 0 ;
8600 char *kwnames[] = {
8601 (char *) "self",(char *) "style", NULL
8602 };
8603
8604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8607 arg2 = (int) SWIG_AsInt(obj1);
8608 if (PyErr_Occurred()) SWIG_fail;
8609 {
8610 PyThreadState* __tstate = wxPyBeginAllowThreads();
8611 (arg1)->SetStyle(arg2);
8612
8613 wxPyEndAllowThreads(__tstate);
8614 if (PyErr_Occurred()) SWIG_fail;
8615 }
8616 Py_INCREF(Py_None); resultobj = Py_None;
8617 return resultobj;
8618 fail:
8619 return NULL;
8620 }
8621
8622
8623 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8624 PyObject *resultobj;
8625 wxFont *arg1 = (wxFont *) 0 ;
8626 int arg2 ;
8627 PyObject * obj0 = 0 ;
8628 PyObject * obj1 = 0 ;
8629 char *kwnames[] = {
8630 (char *) "self",(char *) "weight", NULL
8631 };
8632
8633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8636 arg2 = (int) SWIG_AsInt(obj1);
8637 if (PyErr_Occurred()) SWIG_fail;
8638 {
8639 PyThreadState* __tstate = wxPyBeginAllowThreads();
8640 (arg1)->SetWeight(arg2);
8641
8642 wxPyEndAllowThreads(__tstate);
8643 if (PyErr_Occurred()) SWIG_fail;
8644 }
8645 Py_INCREF(Py_None); resultobj = Py_None;
8646 return resultobj;
8647 fail:
8648 return NULL;
8649 }
8650
8651
8652 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8653 PyObject *resultobj;
8654 wxFont *arg1 = (wxFont *) 0 ;
8655 wxString *arg2 = 0 ;
8656 bool temp2 = False ;
8657 PyObject * obj0 = 0 ;
8658 PyObject * obj1 = 0 ;
8659 char *kwnames[] = {
8660 (char *) "self",(char *) "faceName", NULL
8661 };
8662
8663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8666 {
8667 arg2 = wxString_in_helper(obj1);
8668 if (arg2 == NULL) SWIG_fail;
8669 temp2 = True;
8670 }
8671 {
8672 PyThreadState* __tstate = wxPyBeginAllowThreads();
8673 (arg1)->SetFaceName((wxString const &)*arg2);
8674
8675 wxPyEndAllowThreads(__tstate);
8676 if (PyErr_Occurred()) SWIG_fail;
8677 }
8678 Py_INCREF(Py_None); resultobj = Py_None;
8679 {
8680 if (temp2)
8681 delete arg2;
8682 }
8683 return resultobj;
8684 fail:
8685 {
8686 if (temp2)
8687 delete arg2;
8688 }
8689 return NULL;
8690 }
8691
8692
8693 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8694 PyObject *resultobj;
8695 wxFont *arg1 = (wxFont *) 0 ;
8696 bool arg2 ;
8697 PyObject * obj0 = 0 ;
8698 PyObject * obj1 = 0 ;
8699 char *kwnames[] = {
8700 (char *) "self",(char *) "underlined", NULL
8701 };
8702
8703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8706 arg2 = (bool) SWIG_AsBool(obj1);
8707 if (PyErr_Occurred()) SWIG_fail;
8708 {
8709 PyThreadState* __tstate = wxPyBeginAllowThreads();
8710 (arg1)->SetUnderlined(arg2);
8711
8712 wxPyEndAllowThreads(__tstate);
8713 if (PyErr_Occurred()) SWIG_fail;
8714 }
8715 Py_INCREF(Py_None); resultobj = Py_None;
8716 return resultobj;
8717 fail:
8718 return NULL;
8719 }
8720
8721
8722 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8723 PyObject *resultobj;
8724 wxFont *arg1 = (wxFont *) 0 ;
8725 int arg2 ;
8726 PyObject * obj0 = 0 ;
8727 PyObject * obj1 = 0 ;
8728 char *kwnames[] = {
8729 (char *) "self",(char *) "encoding", NULL
8730 };
8731
8732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8735 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8736 if (PyErr_Occurred()) SWIG_fail;
8737 {
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 (arg1)->SetEncoding((wxFontEncoding )arg2);
8740
8741 wxPyEndAllowThreads(__tstate);
8742 if (PyErr_Occurred()) SWIG_fail;
8743 }
8744 Py_INCREF(Py_None); resultobj = Py_None;
8745 return resultobj;
8746 fail:
8747 return NULL;
8748 }
8749
8750
8751 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8752 PyObject *resultobj;
8753 wxFont *arg1 = (wxFont *) 0 ;
8754 wxNativeFontInfo *arg2 = 0 ;
8755 PyObject * obj0 = 0 ;
8756 PyObject * obj1 = 0 ;
8757 char *kwnames[] = {
8758 (char *) "self",(char *) "info", NULL
8759 };
8760
8761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8764 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8765 SWIG_POINTER_EXCEPTION | 0)) == -1)
8766 SWIG_fail;
8767 if (arg2 == NULL) {
8768 PyErr_SetString(PyExc_TypeError,"null reference");
8769 SWIG_fail;
8770 }
8771 {
8772 PyThreadState* __tstate = wxPyBeginAllowThreads();
8773 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8774
8775 wxPyEndAllowThreads(__tstate);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 Py_INCREF(Py_None); resultobj = Py_None;
8779 return resultobj;
8780 fail:
8781 return NULL;
8782 }
8783
8784
8785 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8786 PyObject *resultobj;
8787 wxFont *arg1 = (wxFont *) 0 ;
8788 wxString *arg2 = 0 ;
8789 bool temp2 = False ;
8790 PyObject * obj0 = 0 ;
8791 PyObject * obj1 = 0 ;
8792 char *kwnames[] = {
8793 (char *) "self",(char *) "info", NULL
8794 };
8795
8796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8799 {
8800 arg2 = wxString_in_helper(obj1);
8801 if (arg2 == NULL) SWIG_fail;
8802 temp2 = True;
8803 }
8804 {
8805 PyThreadState* __tstate = wxPyBeginAllowThreads();
8806 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8807
8808 wxPyEndAllowThreads(__tstate);
8809 if (PyErr_Occurred()) SWIG_fail;
8810 }
8811 Py_INCREF(Py_None); resultobj = Py_None;
8812 {
8813 if (temp2)
8814 delete arg2;
8815 }
8816 return resultobj;
8817 fail:
8818 {
8819 if (temp2)
8820 delete arg2;
8821 }
8822 return NULL;
8823 }
8824
8825
8826 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8827 PyObject *resultobj;
8828 wxFont *arg1 = (wxFont *) 0 ;
8829 wxString *arg2 = 0 ;
8830 bool temp2 = False ;
8831 PyObject * obj0 = 0 ;
8832 PyObject * obj1 = 0 ;
8833 char *kwnames[] = {
8834 (char *) "self",(char *) "info", NULL
8835 };
8836
8837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8840 {
8841 arg2 = wxString_in_helper(obj1);
8842 if (arg2 == NULL) SWIG_fail;
8843 temp2 = True;
8844 }
8845 {
8846 PyThreadState* __tstate = wxPyBeginAllowThreads();
8847 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8848
8849 wxPyEndAllowThreads(__tstate);
8850 if (PyErr_Occurred()) SWIG_fail;
8851 }
8852 Py_INCREF(Py_None); resultobj = Py_None;
8853 {
8854 if (temp2)
8855 delete arg2;
8856 }
8857 return resultobj;
8858 fail:
8859 {
8860 if (temp2)
8861 delete arg2;
8862 }
8863 return NULL;
8864 }
8865
8866
8867 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8868 PyObject *resultobj;
8869 wxFont *arg1 = (wxFont *) 0 ;
8870 wxString result;
8871 PyObject * obj0 = 0 ;
8872 char *kwnames[] = {
8873 (char *) "self", NULL
8874 };
8875
8876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8879 {
8880 PyThreadState* __tstate = wxPyBeginAllowThreads();
8881 result = ((wxFont const *)arg1)->GetFamilyString();
8882
8883 wxPyEndAllowThreads(__tstate);
8884 if (PyErr_Occurred()) SWIG_fail;
8885 }
8886 {
8887 #if wxUSE_UNICODE
8888 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8889 #else
8890 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8891 #endif
8892 }
8893 return resultobj;
8894 fail:
8895 return NULL;
8896 }
8897
8898
8899 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8900 PyObject *resultobj;
8901 wxFont *arg1 = (wxFont *) 0 ;
8902 wxString result;
8903 PyObject * obj0 = 0 ;
8904 char *kwnames[] = {
8905 (char *) "self", NULL
8906 };
8907
8908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8911 {
8912 PyThreadState* __tstate = wxPyBeginAllowThreads();
8913 result = ((wxFont const *)arg1)->GetStyleString();
8914
8915 wxPyEndAllowThreads(__tstate);
8916 if (PyErr_Occurred()) SWIG_fail;
8917 }
8918 {
8919 #if wxUSE_UNICODE
8920 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8921 #else
8922 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8923 #endif
8924 }
8925 return resultobj;
8926 fail:
8927 return NULL;
8928 }
8929
8930
8931 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8932 PyObject *resultobj;
8933 wxFont *arg1 = (wxFont *) 0 ;
8934 wxString result;
8935 PyObject * obj0 = 0 ;
8936 char *kwnames[] = {
8937 (char *) "self", NULL
8938 };
8939
8940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8943 {
8944 PyThreadState* __tstate = wxPyBeginAllowThreads();
8945 result = ((wxFont const *)arg1)->GetWeightString();
8946
8947 wxPyEndAllowThreads(__tstate);
8948 if (PyErr_Occurred()) SWIG_fail;
8949 }
8950 {
8951 #if wxUSE_UNICODE
8952 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8953 #else
8954 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8955 #endif
8956 }
8957 return resultobj;
8958 fail:
8959 return NULL;
8960 }
8961
8962
8963 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8964 PyObject *resultobj;
8965 wxFont *arg1 = (wxFont *) 0 ;
8966 bool arg2 = (bool) True ;
8967 PyObject * obj0 = 0 ;
8968 PyObject * obj1 = 0 ;
8969 char *kwnames[] = {
8970 (char *) "self",(char *) "no", NULL
8971 };
8972
8973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8976 if (obj1) {
8977 arg2 = (bool) SWIG_AsBool(obj1);
8978 if (PyErr_Occurred()) SWIG_fail;
8979 }
8980 {
8981 PyThreadState* __tstate = wxPyBeginAllowThreads();
8982 (arg1)->SetNoAntiAliasing(arg2);
8983
8984 wxPyEndAllowThreads(__tstate);
8985 if (PyErr_Occurred()) SWIG_fail;
8986 }
8987 Py_INCREF(Py_None); resultobj = Py_None;
8988 return resultobj;
8989 fail:
8990 return NULL;
8991 }
8992
8993
8994 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8995 PyObject *resultobj;
8996 wxFont *arg1 = (wxFont *) 0 ;
8997 bool result;
8998 PyObject * obj0 = 0 ;
8999 char *kwnames[] = {
9000 (char *) "self", NULL
9001 };
9002
9003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9006 {
9007 PyThreadState* __tstate = wxPyBeginAllowThreads();
9008 result = (bool)(arg1)->GetNoAntiAliasing();
9009
9010 wxPyEndAllowThreads(__tstate);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 }
9013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9014 return resultobj;
9015 fail:
9016 return NULL;
9017 }
9018
9019
9020 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9021 PyObject *resultobj;
9022 int result;
9023 char *kwnames[] = {
9024 NULL
9025 };
9026
9027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9028 {
9029 PyThreadState* __tstate = wxPyBeginAllowThreads();
9030 result = (int)wxFont::GetDefaultEncoding();
9031
9032 wxPyEndAllowThreads(__tstate);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 }
9035 resultobj = SWIG_FromInt((int)result);
9036 return resultobj;
9037 fail:
9038 return NULL;
9039 }
9040
9041
9042 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9043 PyObject *resultobj;
9044 int arg1 ;
9045 PyObject * obj0 = 0 ;
9046 char *kwnames[] = {
9047 (char *) "encoding", NULL
9048 };
9049
9050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
9051 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 {
9054 PyThreadState* __tstate = wxPyBeginAllowThreads();
9055 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9056
9057 wxPyEndAllowThreads(__tstate);
9058 if (PyErr_Occurred()) SWIG_fail;
9059 }
9060 Py_INCREF(Py_None); resultobj = Py_None;
9061 return resultobj;
9062 fail:
9063 return NULL;
9064 }
9065
9066
9067 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
9068 PyObject *obj;
9069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9070 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9071 Py_INCREF(obj);
9072 return Py_BuildValue((char *)"");
9073 }
9074 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9075 PyObject *resultobj;
9076 wxPyFontEnumerator *result;
9077 char *kwnames[] = {
9078 NULL
9079 };
9080
9081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9082 {
9083 PyThreadState* __tstate = wxPyBeginAllowThreads();
9084 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9085
9086 wxPyEndAllowThreads(__tstate);
9087 if (PyErr_Occurred()) SWIG_fail;
9088 }
9089 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9090 return resultobj;
9091 fail:
9092 return NULL;
9093 }
9094
9095
9096 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9097 PyObject *resultobj;
9098 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9099 PyObject * obj0 = 0 ;
9100 char *kwnames[] = {
9101 (char *) "self", NULL
9102 };
9103
9104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9107 {
9108 PyThreadState* __tstate = wxPyBeginAllowThreads();
9109 delete arg1;
9110
9111 wxPyEndAllowThreads(__tstate);
9112 if (PyErr_Occurred()) SWIG_fail;
9113 }
9114 Py_INCREF(Py_None); resultobj = Py_None;
9115 return resultobj;
9116 fail:
9117 return NULL;
9118 }
9119
9120
9121 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9122 PyObject *resultobj;
9123 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9124 PyObject *arg2 = (PyObject *) 0 ;
9125 PyObject *arg3 = (PyObject *) 0 ;
9126 bool arg4 ;
9127 PyObject * obj0 = 0 ;
9128 PyObject * obj1 = 0 ;
9129 PyObject * obj2 = 0 ;
9130 PyObject * obj3 = 0 ;
9131 char *kwnames[] = {
9132 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9133 };
9134
9135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9138 arg2 = obj1;
9139 arg3 = obj2;
9140 arg4 = (bool) SWIG_AsBool(obj3);
9141 if (PyErr_Occurred()) SWIG_fail;
9142 {
9143 PyThreadState* __tstate = wxPyBeginAllowThreads();
9144 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9145
9146 wxPyEndAllowThreads(__tstate);
9147 if (PyErr_Occurred()) SWIG_fail;
9148 }
9149 Py_INCREF(Py_None); resultobj = Py_None;
9150 return resultobj;
9151 fail:
9152 return NULL;
9153 }
9154
9155
9156 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9157 PyObject *resultobj;
9158 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9159 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9160 bool arg3 = (bool) False ;
9161 bool result;
9162 PyObject * obj0 = 0 ;
9163 PyObject * obj1 = 0 ;
9164 PyObject * obj2 = 0 ;
9165 char *kwnames[] = {
9166 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9167 };
9168
9169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9172 if (obj1) {
9173 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9174 if (PyErr_Occurred()) SWIG_fail;
9175 }
9176 if (obj2) {
9177 arg3 = (bool) SWIG_AsBool(obj2);
9178 if (PyErr_Occurred()) SWIG_fail;
9179 }
9180 {
9181 PyThreadState* __tstate = wxPyBeginAllowThreads();
9182 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9183
9184 wxPyEndAllowThreads(__tstate);
9185 if (PyErr_Occurred()) SWIG_fail;
9186 }
9187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9188 return resultobj;
9189 fail:
9190 return NULL;
9191 }
9192
9193
9194 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9195 PyObject *resultobj;
9196 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9197 wxString const &arg2_defvalue = wxPyEmptyString ;
9198 wxString *arg2 = (wxString *) &arg2_defvalue ;
9199 bool result;
9200 bool temp2 = False ;
9201 PyObject * obj0 = 0 ;
9202 PyObject * obj1 = 0 ;
9203 char *kwnames[] = {
9204 (char *) "self",(char *) "facename", NULL
9205 };
9206
9207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9210 if (obj1) {
9211 {
9212 arg2 = wxString_in_helper(obj1);
9213 if (arg2 == NULL) SWIG_fail;
9214 temp2 = True;
9215 }
9216 }
9217 {
9218 PyThreadState* __tstate = wxPyBeginAllowThreads();
9219 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9220
9221 wxPyEndAllowThreads(__tstate);
9222 if (PyErr_Occurred()) SWIG_fail;
9223 }
9224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9225 {
9226 if (temp2)
9227 delete arg2;
9228 }
9229 return resultobj;
9230 fail:
9231 {
9232 if (temp2)
9233 delete arg2;
9234 }
9235 return NULL;
9236 }
9237
9238
9239 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9240 PyObject *resultobj;
9241 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9242 PyObject *result;
9243 PyObject * obj0 = 0 ;
9244 char *kwnames[] = {
9245 (char *) "self", NULL
9246 };
9247
9248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9251 {
9252 PyThreadState* __tstate = wxPyBeginAllowThreads();
9253 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9254
9255 wxPyEndAllowThreads(__tstate);
9256 if (PyErr_Occurred()) SWIG_fail;
9257 }
9258 resultobj = result;
9259 return resultobj;
9260 fail:
9261 return NULL;
9262 }
9263
9264
9265 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9266 PyObject *resultobj;
9267 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9268 PyObject *result;
9269 PyObject * obj0 = 0 ;
9270 char *kwnames[] = {
9271 (char *) "self", NULL
9272 };
9273
9274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9277 {
9278 PyThreadState* __tstate = wxPyBeginAllowThreads();
9279 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9280
9281 wxPyEndAllowThreads(__tstate);
9282 if (PyErr_Occurred()) SWIG_fail;
9283 }
9284 resultobj = result;
9285 return resultobj;
9286 fail:
9287 return NULL;
9288 }
9289
9290
9291 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9292 PyObject *obj;
9293 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9294 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9295 Py_INCREF(obj);
9296 return Py_BuildValue((char *)"");
9297 }
9298 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9299 PyObject *resultobj;
9300 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9301 int arg2 ;
9302 PyObject * obj0 = 0 ;
9303 PyObject * obj1 = 0 ;
9304 char *kwnames[] = {
9305 (char *) "self",(char *) "Language", NULL
9306 };
9307
9308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9311 arg2 = (int) SWIG_AsInt(obj1);
9312 if (PyErr_Occurred()) SWIG_fail;
9313 if (arg1) (arg1)->Language = arg2;
9314
9315 Py_INCREF(Py_None); resultobj = Py_None;
9316 return resultobj;
9317 fail:
9318 return NULL;
9319 }
9320
9321
9322 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9323 PyObject *resultobj;
9324 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9325 int result;
9326 PyObject * obj0 = 0 ;
9327 char *kwnames[] = {
9328 (char *) "self", NULL
9329 };
9330
9331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9334 result = (int) ((arg1)->Language);
9335
9336 resultobj = SWIG_FromInt((int)result);
9337 return resultobj;
9338 fail:
9339 return NULL;
9340 }
9341
9342
9343 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9344 PyObject *resultobj;
9345 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9346 wxString *arg2 = (wxString *) 0 ;
9347 bool temp2 = False ;
9348 PyObject * obj0 = 0 ;
9349 PyObject * obj1 = 0 ;
9350 char *kwnames[] = {
9351 (char *) "self",(char *) "CanonicalName", NULL
9352 };
9353
9354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9357 {
9358 arg2 = wxString_in_helper(obj1);
9359 if (arg2 == NULL) SWIG_fail;
9360 temp2 = True;
9361 }
9362 if (arg1) (arg1)->CanonicalName = *arg2;
9363
9364 Py_INCREF(Py_None); resultobj = Py_None;
9365 {
9366 if (temp2)
9367 delete arg2;
9368 }
9369 return resultobj;
9370 fail:
9371 {
9372 if (temp2)
9373 delete arg2;
9374 }
9375 return NULL;
9376 }
9377
9378
9379 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9380 PyObject *resultobj;
9381 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9382 wxString *result;
9383 PyObject * obj0 = 0 ;
9384 char *kwnames[] = {
9385 (char *) "self", NULL
9386 };
9387
9388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9391 result = (wxString *)& ((arg1)->CanonicalName);
9392
9393 {
9394 #if wxUSE_UNICODE
9395 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9396 #else
9397 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9398 #endif
9399 }
9400 return resultobj;
9401 fail:
9402 return NULL;
9403 }
9404
9405
9406 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9407 PyObject *resultobj;
9408 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9409 wxString *arg2 = (wxString *) 0 ;
9410 bool temp2 = False ;
9411 PyObject * obj0 = 0 ;
9412 PyObject * obj1 = 0 ;
9413 char *kwnames[] = {
9414 (char *) "self",(char *) "Description", NULL
9415 };
9416
9417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9420 {
9421 arg2 = wxString_in_helper(obj1);
9422 if (arg2 == NULL) SWIG_fail;
9423 temp2 = True;
9424 }
9425 if (arg1) (arg1)->Description = *arg2;
9426
9427 Py_INCREF(Py_None); resultobj = Py_None;
9428 {
9429 if (temp2)
9430 delete arg2;
9431 }
9432 return resultobj;
9433 fail:
9434 {
9435 if (temp2)
9436 delete arg2;
9437 }
9438 return NULL;
9439 }
9440
9441
9442 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9443 PyObject *resultobj;
9444 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9445 wxString *result;
9446 PyObject * obj0 = 0 ;
9447 char *kwnames[] = {
9448 (char *) "self", NULL
9449 };
9450
9451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9454 result = (wxString *)& ((arg1)->Description);
9455
9456 {
9457 #if wxUSE_UNICODE
9458 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9459 #else
9460 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9461 #endif
9462 }
9463 return resultobj;
9464 fail:
9465 return NULL;
9466 }
9467
9468
9469 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9470 PyObject *obj;
9471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9472 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9473 Py_INCREF(obj);
9474 return Py_BuildValue((char *)"");
9475 }
9476 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9477 PyObject *resultobj;
9478 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9479 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9480 wxLocale *result;
9481 PyObject * obj0 = 0 ;
9482 PyObject * obj1 = 0 ;
9483 char *kwnames[] = {
9484 (char *) "language",(char *) "flags", NULL
9485 };
9486
9487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9488 if (obj0) {
9489 arg1 = (int) SWIG_AsInt(obj0);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 if (obj1) {
9493 arg2 = (int) SWIG_AsInt(obj1);
9494 if (PyErr_Occurred()) SWIG_fail;
9495 }
9496 {
9497 PyThreadState* __tstate = wxPyBeginAllowThreads();
9498 result = (wxLocale *)new wxLocale(arg1,arg2);
9499
9500 wxPyEndAllowThreads(__tstate);
9501 if (PyErr_Occurred()) SWIG_fail;
9502 }
9503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9504 return resultobj;
9505 fail:
9506 return NULL;
9507 }
9508
9509
9510 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9511 PyObject *resultobj;
9512 wxLocale *arg1 = (wxLocale *) 0 ;
9513 PyObject * obj0 = 0 ;
9514 char *kwnames[] = {
9515 (char *) "self", NULL
9516 };
9517
9518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9521 {
9522 PyThreadState* __tstate = wxPyBeginAllowThreads();
9523 delete arg1;
9524
9525 wxPyEndAllowThreads(__tstate);
9526 if (PyErr_Occurred()) SWIG_fail;
9527 }
9528 Py_INCREF(Py_None); resultobj = Py_None;
9529 return resultobj;
9530 fail:
9531 return NULL;
9532 }
9533
9534
9535 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9536 PyObject *resultobj;
9537 wxLocale *arg1 = (wxLocale *) 0 ;
9538 wxString *arg2 = 0 ;
9539 wxString const &arg3_defvalue = wxPyEmptyString ;
9540 wxString *arg3 = (wxString *) &arg3_defvalue ;
9541 wxString const &arg4_defvalue = wxPyEmptyString ;
9542 wxString *arg4 = (wxString *) &arg4_defvalue ;
9543 bool arg5 = (bool) True ;
9544 bool arg6 = (bool) False ;
9545 bool result;
9546 bool temp2 = False ;
9547 bool temp3 = False ;
9548 bool temp4 = False ;
9549 PyObject * obj0 = 0 ;
9550 PyObject * obj1 = 0 ;
9551 PyObject * obj2 = 0 ;
9552 PyObject * obj3 = 0 ;
9553 PyObject * obj4 = 0 ;
9554 PyObject * obj5 = 0 ;
9555 char *kwnames[] = {
9556 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9557 };
9558
9559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9562 {
9563 arg2 = wxString_in_helper(obj1);
9564 if (arg2 == NULL) SWIG_fail;
9565 temp2 = True;
9566 }
9567 if (obj2) {
9568 {
9569 arg3 = wxString_in_helper(obj2);
9570 if (arg3 == NULL) SWIG_fail;
9571 temp3 = True;
9572 }
9573 }
9574 if (obj3) {
9575 {
9576 arg4 = wxString_in_helper(obj3);
9577 if (arg4 == NULL) SWIG_fail;
9578 temp4 = True;
9579 }
9580 }
9581 if (obj4) {
9582 arg5 = (bool) SWIG_AsBool(obj4);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 }
9585 if (obj5) {
9586 arg6 = (bool) SWIG_AsBool(obj5);
9587 if (PyErr_Occurred()) SWIG_fail;
9588 }
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9592
9593 wxPyEndAllowThreads(__tstate);
9594 if (PyErr_Occurred()) SWIG_fail;
9595 }
9596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9597 {
9598 if (temp2)
9599 delete arg2;
9600 }
9601 {
9602 if (temp3)
9603 delete arg3;
9604 }
9605 {
9606 if (temp4)
9607 delete arg4;
9608 }
9609 return resultobj;
9610 fail:
9611 {
9612 if (temp2)
9613 delete arg2;
9614 }
9615 {
9616 if (temp3)
9617 delete arg3;
9618 }
9619 {
9620 if (temp4)
9621 delete arg4;
9622 }
9623 return NULL;
9624 }
9625
9626
9627 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9628 PyObject *resultobj;
9629 wxLocale *arg1 = (wxLocale *) 0 ;
9630 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9631 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9632 bool result;
9633 PyObject * obj0 = 0 ;
9634 PyObject * obj1 = 0 ;
9635 PyObject * obj2 = 0 ;
9636 char *kwnames[] = {
9637 (char *) "self",(char *) "language",(char *) "flags", NULL
9638 };
9639
9640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9643 if (obj1) {
9644 arg2 = (int) SWIG_AsInt(obj1);
9645 if (PyErr_Occurred()) SWIG_fail;
9646 }
9647 if (obj2) {
9648 arg3 = (int) SWIG_AsInt(obj2);
9649 if (PyErr_Occurred()) SWIG_fail;
9650 }
9651 {
9652 PyThreadState* __tstate = wxPyBeginAllowThreads();
9653 result = (bool)(arg1)->Init(arg2,arg3);
9654
9655 wxPyEndAllowThreads(__tstate);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9659 return resultobj;
9660 fail:
9661 return NULL;
9662 }
9663
9664
9665 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj;
9667 int result;
9668 char *kwnames[] = {
9669 NULL
9670 };
9671
9672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 result = (int)wxLocale::GetSystemLanguage();
9676
9677 wxPyEndAllowThreads(__tstate);
9678 if (PyErr_Occurred()) SWIG_fail;
9679 }
9680 resultobj = SWIG_FromInt((int)result);
9681 return resultobj;
9682 fail:
9683 return NULL;
9684 }
9685
9686
9687 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9688 PyObject *resultobj;
9689 int result;
9690 char *kwnames[] = {
9691 NULL
9692 };
9693
9694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9695 {
9696 PyThreadState* __tstate = wxPyBeginAllowThreads();
9697 result = (int)wxLocale::GetSystemEncoding();
9698
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) SWIG_fail;
9701 }
9702 resultobj = SWIG_FromInt((int)result);
9703 return resultobj;
9704 fail:
9705 return NULL;
9706 }
9707
9708
9709 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9710 PyObject *resultobj;
9711 wxString result;
9712 char *kwnames[] = {
9713 NULL
9714 };
9715
9716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9717 {
9718 PyThreadState* __tstate = wxPyBeginAllowThreads();
9719 result = wxLocale::GetSystemEncodingName();
9720
9721 wxPyEndAllowThreads(__tstate);
9722 if (PyErr_Occurred()) SWIG_fail;
9723 }
9724 {
9725 #if wxUSE_UNICODE
9726 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9727 #else
9728 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9729 #endif
9730 }
9731 return resultobj;
9732 fail:
9733 return NULL;
9734 }
9735
9736
9737 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9738 PyObject *resultobj;
9739 wxLocale *arg1 = (wxLocale *) 0 ;
9740 bool result;
9741 PyObject * obj0 = 0 ;
9742 char *kwnames[] = {
9743 (char *) "self", NULL
9744 };
9745
9746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9749 {
9750 PyThreadState* __tstate = wxPyBeginAllowThreads();
9751 result = (bool)((wxLocale const *)arg1)->IsOk();
9752
9753 wxPyEndAllowThreads(__tstate);
9754 if (PyErr_Occurred()) SWIG_fail;
9755 }
9756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9757 return resultobj;
9758 fail:
9759 return NULL;
9760 }
9761
9762
9763 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9764 PyObject *resultobj;
9765 wxLocale *arg1 = (wxLocale *) 0 ;
9766 wxString result;
9767 PyObject * obj0 = 0 ;
9768 char *kwnames[] = {
9769 (char *) "self", NULL
9770 };
9771
9772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9775 {
9776 PyThreadState* __tstate = wxPyBeginAllowThreads();
9777 result = ((wxLocale const *)arg1)->GetLocale();
9778
9779 wxPyEndAllowThreads(__tstate);
9780 if (PyErr_Occurred()) SWIG_fail;
9781 }
9782 {
9783 #if wxUSE_UNICODE
9784 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9785 #else
9786 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9787 #endif
9788 }
9789 return resultobj;
9790 fail:
9791 return NULL;
9792 }
9793
9794
9795 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9796 PyObject *resultobj;
9797 wxLocale *arg1 = (wxLocale *) 0 ;
9798 int result;
9799 PyObject * obj0 = 0 ;
9800 char *kwnames[] = {
9801 (char *) "self", NULL
9802 };
9803
9804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9807 {
9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
9809 result = (int)((wxLocale const *)arg1)->GetLanguage();
9810
9811 wxPyEndAllowThreads(__tstate);
9812 if (PyErr_Occurred()) SWIG_fail;
9813 }
9814 resultobj = SWIG_FromInt((int)result);
9815 return resultobj;
9816 fail:
9817 return NULL;
9818 }
9819
9820
9821 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9822 PyObject *resultobj;
9823 wxLocale *arg1 = (wxLocale *) 0 ;
9824 wxString result;
9825 PyObject * obj0 = 0 ;
9826 char *kwnames[] = {
9827 (char *) "self", NULL
9828 };
9829
9830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9833 {
9834 PyThreadState* __tstate = wxPyBeginAllowThreads();
9835 result = ((wxLocale const *)arg1)->GetSysName();
9836
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 {
9841 #if wxUSE_UNICODE
9842 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9843 #else
9844 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9845 #endif
9846 }
9847 return resultobj;
9848 fail:
9849 return NULL;
9850 }
9851
9852
9853 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9854 PyObject *resultobj;
9855 wxLocale *arg1 = (wxLocale *) 0 ;
9856 wxString result;
9857 PyObject * obj0 = 0 ;
9858 char *kwnames[] = {
9859 (char *) "self", NULL
9860 };
9861
9862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9865 {
9866 PyThreadState* __tstate = wxPyBeginAllowThreads();
9867 result = ((wxLocale const *)arg1)->GetCanonicalName();
9868
9869 wxPyEndAllowThreads(__tstate);
9870 if (PyErr_Occurred()) SWIG_fail;
9871 }
9872 {
9873 #if wxUSE_UNICODE
9874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9875 #else
9876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9877 #endif
9878 }
9879 return resultobj;
9880 fail:
9881 return NULL;
9882 }
9883
9884
9885 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9886 PyObject *resultobj;
9887 wxString *arg1 = 0 ;
9888 bool temp1 = False ;
9889 PyObject * obj0 = 0 ;
9890 char *kwnames[] = {
9891 (char *) "prefix", NULL
9892 };
9893
9894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9895 {
9896 arg1 = wxString_in_helper(obj0);
9897 if (arg1 == NULL) SWIG_fail;
9898 temp1 = True;
9899 }
9900 {
9901 PyThreadState* __tstate = wxPyBeginAllowThreads();
9902 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9903
9904 wxPyEndAllowThreads(__tstate);
9905 if (PyErr_Occurred()) SWIG_fail;
9906 }
9907 Py_INCREF(Py_None); resultobj = Py_None;
9908 {
9909 if (temp1)
9910 delete arg1;
9911 }
9912 return resultobj;
9913 fail:
9914 {
9915 if (temp1)
9916 delete arg1;
9917 }
9918 return NULL;
9919 }
9920
9921
9922 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9923 PyObject *resultobj;
9924 wxLocale *arg1 = (wxLocale *) 0 ;
9925 wxString *arg2 = 0 ;
9926 bool result;
9927 bool temp2 = False ;
9928 PyObject * obj0 = 0 ;
9929 PyObject * obj1 = 0 ;
9930 char *kwnames[] = {
9931 (char *) "self",(char *) "szDomain", NULL
9932 };
9933
9934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9937 {
9938 arg2 = wxString_in_helper(obj1);
9939 if (arg2 == NULL) SWIG_fail;
9940 temp2 = True;
9941 }
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9945
9946 wxPyEndAllowThreads(__tstate);
9947 if (PyErr_Occurred()) SWIG_fail;
9948 }
9949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9950 {
9951 if (temp2)
9952 delete arg2;
9953 }
9954 return resultobj;
9955 fail:
9956 {
9957 if (temp2)
9958 delete arg2;
9959 }
9960 return NULL;
9961 }
9962
9963
9964 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9965 PyObject *resultobj;
9966 wxLocale *arg1 = (wxLocale *) 0 ;
9967 wxString *arg2 = 0 ;
9968 bool result;
9969 bool temp2 = False ;
9970 PyObject * obj0 = 0 ;
9971 PyObject * obj1 = 0 ;
9972 char *kwnames[] = {
9973 (char *) "self",(char *) "szDomain", NULL
9974 };
9975
9976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9979 {
9980 arg2 = wxString_in_helper(obj1);
9981 if (arg2 == NULL) SWIG_fail;
9982 temp2 = True;
9983 }
9984 {
9985 PyThreadState* __tstate = wxPyBeginAllowThreads();
9986 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9987
9988 wxPyEndAllowThreads(__tstate);
9989 if (PyErr_Occurred()) SWIG_fail;
9990 }
9991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9992 {
9993 if (temp2)
9994 delete arg2;
9995 }
9996 return resultobj;
9997 fail:
9998 {
9999 if (temp2)
10000 delete arg2;
10001 }
10002 return NULL;
10003 }
10004
10005
10006 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10007 PyObject *resultobj;
10008 int arg1 ;
10009 wxLanguageInfo *result;
10010 PyObject * obj0 = 0 ;
10011 char *kwnames[] = {
10012 (char *) "lang", NULL
10013 };
10014
10015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
10016 arg1 = (int) SWIG_AsInt(obj0);
10017 if (PyErr_Occurred()) SWIG_fail;
10018 {
10019 PyThreadState* __tstate = wxPyBeginAllowThreads();
10020 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10021
10022 wxPyEndAllowThreads(__tstate);
10023 if (PyErr_Occurred()) SWIG_fail;
10024 }
10025 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10026 return resultobj;
10027 fail:
10028 return NULL;
10029 }
10030
10031
10032 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
10033 PyObject *resultobj;
10034 int arg1 ;
10035 wxString result;
10036 PyObject * obj0 = 0 ;
10037 char *kwnames[] = {
10038 (char *) "lang", NULL
10039 };
10040
10041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
10042 arg1 = (int) SWIG_AsInt(obj0);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 {
10045 PyThreadState* __tstate = wxPyBeginAllowThreads();
10046 result = wxLocale::GetLanguageName(arg1);
10047
10048 wxPyEndAllowThreads(__tstate);
10049 if (PyErr_Occurred()) SWIG_fail;
10050 }
10051 {
10052 #if wxUSE_UNICODE
10053 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10054 #else
10055 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10056 #endif
10057 }
10058 return resultobj;
10059 fail:
10060 return NULL;
10061 }
10062
10063
10064 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10065 PyObject *resultobj;
10066 wxString *arg1 = 0 ;
10067 wxLanguageInfo *result;
10068 bool temp1 = False ;
10069 PyObject * obj0 = 0 ;
10070 char *kwnames[] = {
10071 (char *) "locale", NULL
10072 };
10073
10074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10075 {
10076 arg1 = wxString_in_helper(obj0);
10077 if (arg1 == NULL) SWIG_fail;
10078 temp1 = True;
10079 }
10080 {
10081 PyThreadState* __tstate = wxPyBeginAllowThreads();
10082 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10083
10084 wxPyEndAllowThreads(__tstate);
10085 if (PyErr_Occurred()) SWIG_fail;
10086 }
10087 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10088 {
10089 if (temp1)
10090 delete arg1;
10091 }
10092 return resultobj;
10093 fail:
10094 {
10095 if (temp1)
10096 delete arg1;
10097 }
10098 return NULL;
10099 }
10100
10101
10102 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10103 PyObject *resultobj;
10104 wxLanguageInfo *arg1 = 0 ;
10105 PyObject * obj0 = 0 ;
10106 char *kwnames[] = {
10107 (char *) "info", NULL
10108 };
10109
10110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10112 SWIG_POINTER_EXCEPTION | 0)) == -1)
10113 SWIG_fail;
10114 if (arg1 == NULL) {
10115 PyErr_SetString(PyExc_TypeError,"null reference");
10116 SWIG_fail;
10117 }
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10121
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
10125 Py_INCREF(Py_None); resultobj = Py_None;
10126 return resultobj;
10127 fail:
10128 return NULL;
10129 }
10130
10131
10132 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10133 PyObject *resultobj;
10134 wxLocale *arg1 = (wxLocale *) 0 ;
10135 wxString *arg2 = 0 ;
10136 wxString const &arg3_defvalue = wxPyEmptyString ;
10137 wxString *arg3 = (wxString *) &arg3_defvalue ;
10138 wxString result;
10139 bool temp2 = False ;
10140 bool temp3 = False ;
10141 PyObject * obj0 = 0 ;
10142 PyObject * obj1 = 0 ;
10143 PyObject * obj2 = 0 ;
10144 char *kwnames[] = {
10145 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10146 };
10147
10148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10151 {
10152 arg2 = wxString_in_helper(obj1);
10153 if (arg2 == NULL) SWIG_fail;
10154 temp2 = True;
10155 }
10156 if (obj2) {
10157 {
10158 arg3 = wxString_in_helper(obj2);
10159 if (arg3 == NULL) SWIG_fail;
10160 temp3 = True;
10161 }
10162 }
10163 {
10164 PyThreadState* __tstate = wxPyBeginAllowThreads();
10165 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10166
10167 wxPyEndAllowThreads(__tstate);
10168 if (PyErr_Occurred()) SWIG_fail;
10169 }
10170 {
10171 #if wxUSE_UNICODE
10172 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10173 #else
10174 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10175 #endif
10176 }
10177 {
10178 if (temp2)
10179 delete arg2;
10180 }
10181 {
10182 if (temp3)
10183 delete arg3;
10184 }
10185 return resultobj;
10186 fail:
10187 {
10188 if (temp2)
10189 delete arg2;
10190 }
10191 {
10192 if (temp3)
10193 delete arg3;
10194 }
10195 return NULL;
10196 }
10197
10198
10199 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10200 PyObject *resultobj;
10201 wxLocale *arg1 = (wxLocale *) 0 ;
10202 wxString *result;
10203 PyObject * obj0 = 0 ;
10204 char *kwnames[] = {
10205 (char *) "self", NULL
10206 };
10207
10208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10211 {
10212 PyThreadState* __tstate = wxPyBeginAllowThreads();
10213 {
10214 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10215 result = (wxString *) &_result_ref;
10216 }
10217
10218 wxPyEndAllowThreads(__tstate);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 }
10221 {
10222 #if wxUSE_UNICODE
10223 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10224 #else
10225 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10226 #endif
10227 }
10228 return resultobj;
10229 fail:
10230 return NULL;
10231 }
10232
10233
10234 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10235 PyObject *obj;
10236 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10237 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10238 Py_INCREF(obj);
10239 return Py_BuildValue((char *)"");
10240 }
10241 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10242 PyObject *resultobj;
10243 wxLocale *result;
10244 char *kwnames[] = {
10245 NULL
10246 };
10247
10248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10249 {
10250 PyThreadState* __tstate = wxPyBeginAllowThreads();
10251 result = (wxLocale *)wxGetLocale();
10252
10253 wxPyEndAllowThreads(__tstate);
10254 if (PyErr_Occurred()) SWIG_fail;
10255 }
10256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10257 return resultobj;
10258 fail:
10259 return NULL;
10260 }
10261
10262
10263 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10264 PyObject *resultobj;
10265 wxString *arg1 = 0 ;
10266 wxString result;
10267 bool temp1 = False ;
10268 PyObject * obj0 = 0 ;
10269
10270 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10271 {
10272 arg1 = wxString_in_helper(obj0);
10273 if (arg1 == NULL) SWIG_fail;
10274 temp1 = True;
10275 }
10276 {
10277 PyThreadState* __tstate = wxPyBeginAllowThreads();
10278 result = wxGetTranslation((wxString const &)*arg1);
10279
10280 wxPyEndAllowThreads(__tstate);
10281 if (PyErr_Occurred()) SWIG_fail;
10282 }
10283 {
10284 #if wxUSE_UNICODE
10285 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10286 #else
10287 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10288 #endif
10289 }
10290 {
10291 if (temp1)
10292 delete arg1;
10293 }
10294 return resultobj;
10295 fail:
10296 {
10297 if (temp1)
10298 delete arg1;
10299 }
10300 return NULL;
10301 }
10302
10303
10304 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10305 PyObject *resultobj;
10306 wxString *arg1 = 0 ;
10307 wxString *arg2 = 0 ;
10308 size_t arg3 ;
10309 wxString result;
10310 bool temp1 = False ;
10311 bool temp2 = False ;
10312 PyObject * obj0 = 0 ;
10313 PyObject * obj1 = 0 ;
10314 PyObject * obj2 = 0 ;
10315
10316 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10317 {
10318 arg1 = wxString_in_helper(obj0);
10319 if (arg1 == NULL) SWIG_fail;
10320 temp1 = True;
10321 }
10322 {
10323 arg2 = wxString_in_helper(obj1);
10324 if (arg2 == NULL) SWIG_fail;
10325 temp2 = True;
10326 }
10327 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10328 if (PyErr_Occurred()) SWIG_fail;
10329 {
10330 PyThreadState* __tstate = wxPyBeginAllowThreads();
10331 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10332
10333 wxPyEndAllowThreads(__tstate);
10334 if (PyErr_Occurred()) SWIG_fail;
10335 }
10336 {
10337 #if wxUSE_UNICODE
10338 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10339 #else
10340 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10341 #endif
10342 }
10343 {
10344 if (temp1)
10345 delete arg1;
10346 }
10347 {
10348 if (temp2)
10349 delete arg2;
10350 }
10351 return resultobj;
10352 fail:
10353 {
10354 if (temp1)
10355 delete arg1;
10356 }
10357 {
10358 if (temp2)
10359 delete arg2;
10360 }
10361 return NULL;
10362 }
10363
10364
10365 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10366 int argc;
10367 PyObject *argv[4];
10368 int ii;
10369
10370 argc = PyObject_Length(args);
10371 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10372 argv[ii] = PyTuple_GetItem(args,ii);
10373 }
10374 if (argc == 1) {
10375 int _v;
10376 {
10377 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10378 }
10379 if (_v) {
10380 return _wrap_GetTranslation__SWIG_0(self,args);
10381 }
10382 }
10383 if (argc == 3) {
10384 int _v;
10385 {
10386 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10387 }
10388 if (_v) {
10389 {
10390 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10391 }
10392 if (_v) {
10393 _v = SWIG_CheckUnsignedLong(argv[2]);
10394 if (_v) {
10395 return _wrap_GetTranslation__SWIG_1(self,args);
10396 }
10397 }
10398 }
10399 }
10400
10401 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10402 return NULL;
10403 }
10404
10405
10406 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10407 PyObject *resultobj;
10408 wxEncodingConverter *result;
10409 char *kwnames[] = {
10410 NULL
10411 };
10412
10413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10414 {
10415 PyThreadState* __tstate = wxPyBeginAllowThreads();
10416 result = (wxEncodingConverter *)new wxEncodingConverter();
10417
10418 wxPyEndAllowThreads(__tstate);
10419 if (PyErr_Occurred()) SWIG_fail;
10420 }
10421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10422 return resultobj;
10423 fail:
10424 return NULL;
10425 }
10426
10427
10428 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj;
10430 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10431 PyObject * obj0 = 0 ;
10432 char *kwnames[] = {
10433 (char *) "self", NULL
10434 };
10435
10436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10439 {
10440 PyThreadState* __tstate = wxPyBeginAllowThreads();
10441 delete arg1;
10442
10443 wxPyEndAllowThreads(__tstate);
10444 if (PyErr_Occurred()) SWIG_fail;
10445 }
10446 Py_INCREF(Py_None); resultobj = Py_None;
10447 return resultobj;
10448 fail:
10449 return NULL;
10450 }
10451
10452
10453 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10454 PyObject *resultobj;
10455 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10456 int arg2 ;
10457 int arg3 ;
10458 int arg4 = (int) wxCONVERT_STRICT ;
10459 bool result;
10460 PyObject * obj0 = 0 ;
10461 PyObject * obj1 = 0 ;
10462 PyObject * obj2 = 0 ;
10463 PyObject * obj3 = 0 ;
10464 char *kwnames[] = {
10465 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10466 };
10467
10468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10471 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 if (obj3) {
10476 arg4 = (int) SWIG_AsInt(obj3);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 }
10479 {
10480 PyThreadState* __tstate = wxPyBeginAllowThreads();
10481 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10482
10483 wxPyEndAllowThreads(__tstate);
10484 if (PyErr_Occurred()) SWIG_fail;
10485 }
10486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10487 return resultobj;
10488 fail:
10489 return NULL;
10490 }
10491
10492
10493 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10494 PyObject *resultobj;
10495 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10496 wxString *arg2 = 0 ;
10497 wxString result;
10498 bool temp2 = False ;
10499 PyObject * obj0 = 0 ;
10500 PyObject * obj1 = 0 ;
10501 char *kwnames[] = {
10502 (char *) "self",(char *) "input", NULL
10503 };
10504
10505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10508 {
10509 arg2 = wxString_in_helper(obj1);
10510 if (arg2 == NULL) SWIG_fail;
10511 temp2 = True;
10512 }
10513 {
10514 PyThreadState* __tstate = wxPyBeginAllowThreads();
10515 result = (arg1)->Convert((wxString const &)*arg2);
10516
10517 wxPyEndAllowThreads(__tstate);
10518 if (PyErr_Occurred()) SWIG_fail;
10519 }
10520 {
10521 #if wxUSE_UNICODE
10522 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10523 #else
10524 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10525 #endif
10526 }
10527 {
10528 if (temp2)
10529 delete arg2;
10530 }
10531 return resultobj;
10532 fail:
10533 {
10534 if (temp2)
10535 delete arg2;
10536 }
10537 return NULL;
10538 }
10539
10540
10541 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10542 PyObject *resultobj;
10543 int arg1 ;
10544 int arg2 = (int) wxPLATFORM_CURRENT ;
10545 wxFontEncodingArray result;
10546 PyObject * obj0 = 0 ;
10547 PyObject * obj1 = 0 ;
10548 char *kwnames[] = {
10549 (char *) "enc",(char *) "platform", NULL
10550 };
10551
10552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10553 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10554 if (PyErr_Occurred()) SWIG_fail;
10555 if (obj1) {
10556 arg2 = (int) SWIG_AsInt(obj1);
10557 if (PyErr_Occurred()) SWIG_fail;
10558 }
10559 {
10560 PyThreadState* __tstate = wxPyBeginAllowThreads();
10561 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10562
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 {
10567 resultobj = PyList_New(0);
10568 for (size_t i=0; i < (&result)->GetCount(); i++) {
10569 PyObject* number = PyInt_FromLong((&result)->Item(i));
10570 PyList_Append(resultobj, number);
10571 Py_DECREF(number);
10572 }
10573 }
10574 return resultobj;
10575 fail:
10576 return NULL;
10577 }
10578
10579
10580 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10581 PyObject *resultobj;
10582 int arg1 ;
10583 wxFontEncodingArray result;
10584 PyObject * obj0 = 0 ;
10585 char *kwnames[] = {
10586 (char *) "enc", NULL
10587 };
10588
10589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10590 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10591 if (PyErr_Occurred()) SWIG_fail;
10592 {
10593 PyThreadState* __tstate = wxPyBeginAllowThreads();
10594 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10595
10596 wxPyEndAllowThreads(__tstate);
10597 if (PyErr_Occurred()) SWIG_fail;
10598 }
10599 {
10600 resultobj = PyList_New(0);
10601 for (size_t i=0; i < (&result)->GetCount(); i++) {
10602 PyObject* number = PyInt_FromLong((&result)->Item(i));
10603 PyList_Append(resultobj, number);
10604 Py_DECREF(number);
10605 }
10606 }
10607 return resultobj;
10608 fail:
10609 return NULL;
10610 }
10611
10612
10613 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10614 PyObject *resultobj;
10615 int arg1 ;
10616 int arg2 ;
10617 bool result;
10618 PyObject * obj0 = 0 ;
10619 PyObject * obj1 = 0 ;
10620 char *kwnames[] = {
10621 (char *) "encIn",(char *) "encOut", NULL
10622 };
10623
10624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10625 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10626 if (PyErr_Occurred()) SWIG_fail;
10627 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10628 if (PyErr_Occurred()) SWIG_fail;
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10632
10633 wxPyEndAllowThreads(__tstate);
10634 if (PyErr_Occurred()) SWIG_fail;
10635 }
10636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10637 return resultobj;
10638 fail:
10639 return NULL;
10640 }
10641
10642
10643 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10644 PyObject *obj;
10645 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10646 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10647 Py_INCREF(obj);
10648 return Py_BuildValue((char *)"");
10649 }
10650 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10651 PyObject *resultobj;
10652 wxDC *arg1 = (wxDC *) 0 ;
10653 PyObject * obj0 = 0 ;
10654 char *kwnames[] = {
10655 (char *) "self", NULL
10656 };
10657
10658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10661 {
10662 PyThreadState* __tstate = wxPyBeginAllowThreads();
10663 delete arg1;
10664
10665 wxPyEndAllowThreads(__tstate);
10666 if (PyErr_Occurred()) SWIG_fail;
10667 }
10668 Py_INCREF(Py_None); resultobj = Py_None;
10669 return resultobj;
10670 fail:
10671 return NULL;
10672 }
10673
10674
10675 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10676 PyObject *resultobj;
10677 wxDC *arg1 = (wxDC *) 0 ;
10678 PyObject * obj0 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "self", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10686 {
10687 PyThreadState* __tstate = wxPyBeginAllowThreads();
10688 (arg1)->BeginDrawing();
10689
10690 wxPyEndAllowThreads(__tstate);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 Py_INCREF(Py_None); resultobj = Py_None;
10694 return resultobj;
10695 fail:
10696 return NULL;
10697 }
10698
10699
10700 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10701 PyObject *resultobj;
10702 wxDC *arg1 = (wxDC *) 0 ;
10703 PyObject * obj0 = 0 ;
10704 char *kwnames[] = {
10705 (char *) "self", NULL
10706 };
10707
10708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10711 {
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 (arg1)->EndDrawing();
10714
10715 wxPyEndAllowThreads(__tstate);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 }
10718 Py_INCREF(Py_None); resultobj = Py_None;
10719 return resultobj;
10720 fail:
10721 return NULL;
10722 }
10723
10724
10725 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10726 PyObject *resultobj;
10727 wxDC *arg1 = (wxDC *) 0 ;
10728 int arg2 ;
10729 int arg3 ;
10730 wxColour *arg4 = 0 ;
10731 int arg5 = (int) wxFLOOD_SURFACE ;
10732 bool result;
10733 wxColour temp4 ;
10734 PyObject * obj0 = 0 ;
10735 PyObject * obj1 = 0 ;
10736 PyObject * obj2 = 0 ;
10737 PyObject * obj3 = 0 ;
10738 PyObject * obj4 = 0 ;
10739 char *kwnames[] = {
10740 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10741 };
10742
10743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10746 arg2 = (int) SWIG_AsInt(obj1);
10747 if (PyErr_Occurred()) SWIG_fail;
10748 arg3 = (int) SWIG_AsInt(obj2);
10749 if (PyErr_Occurred()) SWIG_fail;
10750 {
10751 arg4 = &temp4;
10752 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10753 }
10754 if (obj4) {
10755 arg5 = (int) SWIG_AsInt(obj4);
10756 if (PyErr_Occurred()) SWIG_fail;
10757 }
10758 {
10759 PyThreadState* __tstate = wxPyBeginAllowThreads();
10760 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10761
10762 wxPyEndAllowThreads(__tstate);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10766 return resultobj;
10767 fail:
10768 return NULL;
10769 }
10770
10771
10772 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10773 PyObject *resultobj;
10774 wxDC *arg1 = (wxDC *) 0 ;
10775 wxPoint *arg2 = 0 ;
10776 wxColour *arg3 = 0 ;
10777 int arg4 = (int) wxFLOOD_SURFACE ;
10778 bool result;
10779 wxPoint temp2 ;
10780 wxColour temp3 ;
10781 PyObject * obj0 = 0 ;
10782 PyObject * obj1 = 0 ;
10783 PyObject * obj2 = 0 ;
10784 PyObject * obj3 = 0 ;
10785 char *kwnames[] = {
10786 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10787 };
10788
10789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10792 {
10793 arg2 = &temp2;
10794 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10795 }
10796 {
10797 arg3 = &temp3;
10798 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10799 }
10800 if (obj3) {
10801 arg4 = (int) SWIG_AsInt(obj3);
10802 if (PyErr_Occurred()) SWIG_fail;
10803 }
10804 {
10805 PyThreadState* __tstate = wxPyBeginAllowThreads();
10806 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10807
10808 wxPyEndAllowThreads(__tstate);
10809 if (PyErr_Occurred()) SWIG_fail;
10810 }
10811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10812 return resultobj;
10813 fail:
10814 return NULL;
10815 }
10816
10817
10818 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10819 PyObject *resultobj;
10820 wxDC *arg1 = (wxDC *) 0 ;
10821 int arg2 ;
10822 int arg3 ;
10823 wxColour result;
10824 PyObject * obj0 = 0 ;
10825 PyObject * obj1 = 0 ;
10826 PyObject * obj2 = 0 ;
10827 char *kwnames[] = {
10828 (char *) "self",(char *) "x",(char *) "y", NULL
10829 };
10830
10831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10834 arg2 = (int) SWIG_AsInt(obj1);
10835 if (PyErr_Occurred()) SWIG_fail;
10836 arg3 = (int) SWIG_AsInt(obj2);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 {
10839 PyThreadState* __tstate = wxPyBeginAllowThreads();
10840 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10841
10842 wxPyEndAllowThreads(__tstate);
10843 if (PyErr_Occurred()) SWIG_fail;
10844 }
10845 {
10846 wxColour * resultptr;
10847 resultptr = new wxColour((wxColour &) result);
10848 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10849 }
10850 return resultobj;
10851 fail:
10852 return NULL;
10853 }
10854
10855
10856 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10857 PyObject *resultobj;
10858 wxDC *arg1 = (wxDC *) 0 ;
10859 wxPoint *arg2 = 0 ;
10860 wxColour result;
10861 wxPoint temp2 ;
10862 PyObject * obj0 = 0 ;
10863 PyObject * obj1 = 0 ;
10864 char *kwnames[] = {
10865 (char *) "self",(char *) "pt", NULL
10866 };
10867
10868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10871 {
10872 arg2 = &temp2;
10873 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10874 }
10875 {
10876 PyThreadState* __tstate = wxPyBeginAllowThreads();
10877 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10878
10879 wxPyEndAllowThreads(__tstate);
10880 if (PyErr_Occurred()) SWIG_fail;
10881 }
10882 {
10883 wxColour * resultptr;
10884 resultptr = new wxColour((wxColour &) result);
10885 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10886 }
10887 return resultobj;
10888 fail:
10889 return NULL;
10890 }
10891
10892
10893 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10894 PyObject *resultobj;
10895 wxDC *arg1 = (wxDC *) 0 ;
10896 int arg2 ;
10897 int arg3 ;
10898 int arg4 ;
10899 int arg5 ;
10900 PyObject * obj0 = 0 ;
10901 PyObject * obj1 = 0 ;
10902 PyObject * obj2 = 0 ;
10903 PyObject * obj3 = 0 ;
10904 PyObject * obj4 = 0 ;
10905 char *kwnames[] = {
10906 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10907 };
10908
10909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10912 arg2 = (int) SWIG_AsInt(obj1);
10913 if (PyErr_Occurred()) SWIG_fail;
10914 arg3 = (int) SWIG_AsInt(obj2);
10915 if (PyErr_Occurred()) SWIG_fail;
10916 arg4 = (int) SWIG_AsInt(obj3);
10917 if (PyErr_Occurred()) SWIG_fail;
10918 arg5 = (int) SWIG_AsInt(obj4);
10919 if (PyErr_Occurred()) SWIG_fail;
10920 {
10921 PyThreadState* __tstate = wxPyBeginAllowThreads();
10922 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10923
10924 wxPyEndAllowThreads(__tstate);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 }
10927 Py_INCREF(Py_None); resultobj = Py_None;
10928 return resultobj;
10929 fail:
10930 return NULL;
10931 }
10932
10933
10934 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10935 PyObject *resultobj;
10936 wxDC *arg1 = (wxDC *) 0 ;
10937 wxPoint *arg2 = 0 ;
10938 wxPoint *arg3 = 0 ;
10939 wxPoint temp2 ;
10940 wxPoint temp3 ;
10941 PyObject * obj0 = 0 ;
10942 PyObject * obj1 = 0 ;
10943 PyObject * obj2 = 0 ;
10944 char *kwnames[] = {
10945 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10946 };
10947
10948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10951 {
10952 arg2 = &temp2;
10953 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10954 }
10955 {
10956 arg3 = &temp3;
10957 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10958 }
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10962
10963 wxPyEndAllowThreads(__tstate);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 }
10966 Py_INCREF(Py_None); resultobj = Py_None;
10967 return resultobj;
10968 fail:
10969 return NULL;
10970 }
10971
10972
10973 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10974 PyObject *resultobj;
10975 wxDC *arg1 = (wxDC *) 0 ;
10976 int arg2 ;
10977 int arg3 ;
10978 PyObject * obj0 = 0 ;
10979 PyObject * obj1 = 0 ;
10980 PyObject * obj2 = 0 ;
10981 char *kwnames[] = {
10982 (char *) "self",(char *) "x",(char *) "y", NULL
10983 };
10984
10985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10988 arg2 = (int) SWIG_AsInt(obj1);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 arg3 = (int) SWIG_AsInt(obj2);
10991 if (PyErr_Occurred()) SWIG_fail;
10992 {
10993 PyThreadState* __tstate = wxPyBeginAllowThreads();
10994 (arg1)->CrossHair(arg2,arg3);
10995
10996 wxPyEndAllowThreads(__tstate);
10997 if (PyErr_Occurred()) SWIG_fail;
10998 }
10999 Py_INCREF(Py_None); resultobj = Py_None;
11000 return resultobj;
11001 fail:
11002 return NULL;
11003 }
11004
11005
11006 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
11007 PyObject *resultobj;
11008 wxDC *arg1 = (wxDC *) 0 ;
11009 wxPoint *arg2 = 0 ;
11010 wxPoint temp2 ;
11011 PyObject * obj0 = 0 ;
11012 PyObject * obj1 = 0 ;
11013 char *kwnames[] = {
11014 (char *) "self",(char *) "pt", NULL
11015 };
11016
11017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
11018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11020 {
11021 arg2 = &temp2;
11022 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11023 }
11024 {
11025 PyThreadState* __tstate = wxPyBeginAllowThreads();
11026 (arg1)->CrossHair((wxPoint const &)*arg2);
11027
11028 wxPyEndAllowThreads(__tstate);
11029 if (PyErr_Occurred()) SWIG_fail;
11030 }
11031 Py_INCREF(Py_None); resultobj = Py_None;
11032 return resultobj;
11033 fail:
11034 return NULL;
11035 }
11036
11037
11038 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11039 PyObject *resultobj;
11040 wxDC *arg1 = (wxDC *) 0 ;
11041 int arg2 ;
11042 int arg3 ;
11043 int arg4 ;
11044 int arg5 ;
11045 int arg6 ;
11046 int arg7 ;
11047 PyObject * obj0 = 0 ;
11048 PyObject * obj1 = 0 ;
11049 PyObject * obj2 = 0 ;
11050 PyObject * obj3 = 0 ;
11051 PyObject * obj4 = 0 ;
11052 PyObject * obj5 = 0 ;
11053 PyObject * obj6 = 0 ;
11054 char *kwnames[] = {
11055 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11056 };
11057
11058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11061 arg2 = (int) SWIG_AsInt(obj1);
11062 if (PyErr_Occurred()) SWIG_fail;
11063 arg3 = (int) SWIG_AsInt(obj2);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 arg4 = (int) SWIG_AsInt(obj3);
11066 if (PyErr_Occurred()) SWIG_fail;
11067 arg5 = (int) SWIG_AsInt(obj4);
11068 if (PyErr_Occurred()) SWIG_fail;
11069 arg6 = (int) SWIG_AsInt(obj5);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 arg7 = (int) SWIG_AsInt(obj6);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 {
11074 PyThreadState* __tstate = wxPyBeginAllowThreads();
11075 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11076
11077 wxPyEndAllowThreads(__tstate);
11078 if (PyErr_Occurred()) SWIG_fail;
11079 }
11080 Py_INCREF(Py_None); resultobj = Py_None;
11081 return resultobj;
11082 fail:
11083 return NULL;
11084 }
11085
11086
11087 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11088 PyObject *resultobj;
11089 wxDC *arg1 = (wxDC *) 0 ;
11090 wxPoint *arg2 = 0 ;
11091 wxPoint *arg3 = 0 ;
11092 wxPoint *arg4 = 0 ;
11093 wxPoint temp2 ;
11094 wxPoint temp3 ;
11095 wxPoint temp4 ;
11096 PyObject * obj0 = 0 ;
11097 PyObject * obj1 = 0 ;
11098 PyObject * obj2 = 0 ;
11099 PyObject * obj3 = 0 ;
11100 char *kwnames[] = {
11101 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
11102 };
11103
11104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11107 {
11108 arg2 = &temp2;
11109 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11110 }
11111 {
11112 arg3 = &temp3;
11113 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11114 }
11115 {
11116 arg4 = &temp4;
11117 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11118 }
11119 {
11120 PyThreadState* __tstate = wxPyBeginAllowThreads();
11121 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11122
11123 wxPyEndAllowThreads(__tstate);
11124 if (PyErr_Occurred()) SWIG_fail;
11125 }
11126 Py_INCREF(Py_None); resultobj = Py_None;
11127 return resultobj;
11128 fail:
11129 return NULL;
11130 }
11131
11132
11133 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11134 PyObject *resultobj;
11135 wxDC *arg1 = (wxDC *) 0 ;
11136 int arg2 ;
11137 int arg3 ;
11138 int arg4 ;
11139 int arg5 ;
11140 PyObject * obj0 = 0 ;
11141 PyObject * obj1 = 0 ;
11142 PyObject * obj2 = 0 ;
11143 PyObject * obj3 = 0 ;
11144 PyObject * obj4 = 0 ;
11145 char *kwnames[] = {
11146 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11147 };
11148
11149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11152 arg2 = (int) SWIG_AsInt(obj1);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 arg3 = (int) SWIG_AsInt(obj2);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 arg4 = (int) SWIG_AsInt(obj3);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 arg5 = (int) SWIG_AsInt(obj4);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 {
11161 PyThreadState* __tstate = wxPyBeginAllowThreads();
11162 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11163
11164 wxPyEndAllowThreads(__tstate);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 }
11167 Py_INCREF(Py_None); resultobj = Py_None;
11168 return resultobj;
11169 fail:
11170 return NULL;
11171 }
11172
11173
11174 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
11175 PyObject *resultobj;
11176 wxDC *arg1 = (wxDC *) 0 ;
11177 wxRect *arg2 = 0 ;
11178 wxRect temp2 ;
11179 PyObject * obj0 = 0 ;
11180 PyObject * obj1 = 0 ;
11181 char *kwnames[] = {
11182 (char *) "self",(char *) "rect", NULL
11183 };
11184
11185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
11186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11188 {
11189 arg2 = &temp2;
11190 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11191 }
11192 {
11193 PyThreadState* __tstate = wxPyBeginAllowThreads();
11194 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11195
11196 wxPyEndAllowThreads(__tstate);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 }
11199 Py_INCREF(Py_None); resultobj = Py_None;
11200 return resultobj;
11201 fail:
11202 return NULL;
11203 }
11204
11205
11206 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11207 PyObject *resultobj;
11208 wxDC *arg1 = (wxDC *) 0 ;
11209 int arg2 ;
11210 int arg3 ;
11211 int arg4 ;
11212 int arg5 ;
11213 double arg6 ;
11214 double arg7 ;
11215 PyObject * obj0 = 0 ;
11216 PyObject * obj1 = 0 ;
11217 PyObject * obj2 = 0 ;
11218 PyObject * obj3 = 0 ;
11219 PyObject * obj4 = 0 ;
11220 PyObject * obj5 = 0 ;
11221 PyObject * obj6 = 0 ;
11222 char *kwnames[] = {
11223 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11224 };
11225
11226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11229 arg2 = (int) SWIG_AsInt(obj1);
11230 if (PyErr_Occurred()) SWIG_fail;
11231 arg3 = (int) SWIG_AsInt(obj2);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 arg4 = (int) SWIG_AsInt(obj3);
11234 if (PyErr_Occurred()) SWIG_fail;
11235 arg5 = (int) SWIG_AsInt(obj4);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 arg6 = (double) SWIG_AsDouble(obj5);
11238 if (PyErr_Occurred()) SWIG_fail;
11239 arg7 = (double) SWIG_AsDouble(obj6);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 {
11242 PyThreadState* __tstate = wxPyBeginAllowThreads();
11243 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11244
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 Py_INCREF(Py_None); resultobj = Py_None;
11249 return resultobj;
11250 fail:
11251 return NULL;
11252 }
11253
11254
11255 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11256 PyObject *resultobj;
11257 wxDC *arg1 = (wxDC *) 0 ;
11258 wxPoint *arg2 = 0 ;
11259 wxSize *arg3 = 0 ;
11260 double arg4 ;
11261 double arg5 ;
11262 wxPoint temp2 ;
11263 wxSize temp3 ;
11264 PyObject * obj0 = 0 ;
11265 PyObject * obj1 = 0 ;
11266 PyObject * obj2 = 0 ;
11267 PyObject * obj3 = 0 ;
11268 PyObject * obj4 = 0 ;
11269 char *kwnames[] = {
11270 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11271 };
11272
11273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11276 {
11277 arg2 = &temp2;
11278 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11279 }
11280 {
11281 arg3 = &temp3;
11282 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11283 }
11284 arg4 = (double) SWIG_AsDouble(obj3);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 arg5 = (double) SWIG_AsDouble(obj4);
11287 if (PyErr_Occurred()) SWIG_fail;
11288 {
11289 PyThreadState* __tstate = wxPyBeginAllowThreads();
11290 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11291
11292 wxPyEndAllowThreads(__tstate);
11293 if (PyErr_Occurred()) SWIG_fail;
11294 }
11295 Py_INCREF(Py_None); resultobj = Py_None;
11296 return resultobj;
11297 fail:
11298 return NULL;
11299 }
11300
11301
11302 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11303 PyObject *resultobj;
11304 wxDC *arg1 = (wxDC *) 0 ;
11305 int arg2 ;
11306 int arg3 ;
11307 PyObject * obj0 = 0 ;
11308 PyObject * obj1 = 0 ;
11309 PyObject * obj2 = 0 ;
11310 char *kwnames[] = {
11311 (char *) "self",(char *) "x",(char *) "y", NULL
11312 };
11313
11314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11317 arg2 = (int) SWIG_AsInt(obj1);
11318 if (PyErr_Occurred()) SWIG_fail;
11319 arg3 = (int) SWIG_AsInt(obj2);
11320 if (PyErr_Occurred()) SWIG_fail;
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 (arg1)->DrawPoint(arg2,arg3);
11324
11325 wxPyEndAllowThreads(__tstate);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 Py_INCREF(Py_None); resultobj = Py_None;
11329 return resultobj;
11330 fail:
11331 return NULL;
11332 }
11333
11334
11335 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11336 PyObject *resultobj;
11337 wxDC *arg1 = (wxDC *) 0 ;
11338 wxPoint *arg2 = 0 ;
11339 wxPoint temp2 ;
11340 PyObject * obj0 = 0 ;
11341 PyObject * obj1 = 0 ;
11342 char *kwnames[] = {
11343 (char *) "self",(char *) "pt", NULL
11344 };
11345
11346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
11347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11349 {
11350 arg2 = &temp2;
11351 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11352 }
11353 {
11354 PyThreadState* __tstate = wxPyBeginAllowThreads();
11355 (arg1)->DrawPoint((wxPoint const &)*arg2);
11356
11357 wxPyEndAllowThreads(__tstate);
11358 if (PyErr_Occurred()) SWIG_fail;
11359 }
11360 Py_INCREF(Py_None); resultobj = Py_None;
11361 return resultobj;
11362 fail:
11363 return NULL;
11364 }
11365
11366
11367 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11368 PyObject *resultobj;
11369 wxDC *arg1 = (wxDC *) 0 ;
11370 int arg2 ;
11371 int arg3 ;
11372 int arg4 ;
11373 int arg5 ;
11374 PyObject * obj0 = 0 ;
11375 PyObject * obj1 = 0 ;
11376 PyObject * obj2 = 0 ;
11377 PyObject * obj3 = 0 ;
11378 PyObject * obj4 = 0 ;
11379 char *kwnames[] = {
11380 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11381 };
11382
11383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11386 arg2 = (int) SWIG_AsInt(obj1);
11387 if (PyErr_Occurred()) SWIG_fail;
11388 arg3 = (int) SWIG_AsInt(obj2);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 arg4 = (int) SWIG_AsInt(obj3);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 arg5 = (int) SWIG_AsInt(obj4);
11393 if (PyErr_Occurred()) SWIG_fail;
11394 {
11395 PyThreadState* __tstate = wxPyBeginAllowThreads();
11396 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11397
11398 wxPyEndAllowThreads(__tstate);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 }
11401 Py_INCREF(Py_None); resultobj = Py_None;
11402 return resultobj;
11403 fail:
11404 return NULL;
11405 }
11406
11407
11408 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11409 PyObject *resultobj;
11410 wxDC *arg1 = (wxDC *) 0 ;
11411 wxPoint *arg2 = 0 ;
11412 wxSize *arg3 = 0 ;
11413 wxPoint temp2 ;
11414 wxSize temp3 ;
11415 PyObject * obj0 = 0 ;
11416 PyObject * obj1 = 0 ;
11417 PyObject * obj2 = 0 ;
11418 char *kwnames[] = {
11419 (char *) "self",(char *) "pt",(char *) "sz", NULL
11420 };
11421
11422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11425 {
11426 arg2 = &temp2;
11427 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11428 }
11429 {
11430 arg3 = &temp3;
11431 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11432 }
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11436
11437 wxPyEndAllowThreads(__tstate);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 Py_INCREF(Py_None); resultobj = Py_None;
11441 return resultobj;
11442 fail:
11443 return NULL;
11444 }
11445
11446
11447 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11448 PyObject *resultobj;
11449 wxDC *arg1 = (wxDC *) 0 ;
11450 wxRect *arg2 = 0 ;
11451 wxRect temp2 ;
11452 PyObject * obj0 = 0 ;
11453 PyObject * obj1 = 0 ;
11454 char *kwnames[] = {
11455 (char *) "self",(char *) "rect", NULL
11456 };
11457
11458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11461 {
11462 arg2 = &temp2;
11463 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11464 }
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 (arg1)->DrawRectangle((wxRect const &)*arg2);
11468
11469 wxPyEndAllowThreads(__tstate);
11470 if (PyErr_Occurred()) SWIG_fail;
11471 }
11472 Py_INCREF(Py_None); resultobj = Py_None;
11473 return resultobj;
11474 fail:
11475 return NULL;
11476 }
11477
11478
11479 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11480 PyObject *resultobj;
11481 wxDC *arg1 = (wxDC *) 0 ;
11482 int arg2 ;
11483 int arg3 ;
11484 int arg4 ;
11485 int arg5 ;
11486 double arg6 ;
11487 PyObject * obj0 = 0 ;
11488 PyObject * obj1 = 0 ;
11489 PyObject * obj2 = 0 ;
11490 PyObject * obj3 = 0 ;
11491 PyObject * obj4 = 0 ;
11492 PyObject * obj5 = 0 ;
11493 char *kwnames[] = {
11494 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11495 };
11496
11497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11500 arg2 = (int) SWIG_AsInt(obj1);
11501 if (PyErr_Occurred()) SWIG_fail;
11502 arg3 = (int) SWIG_AsInt(obj2);
11503 if (PyErr_Occurred()) SWIG_fail;
11504 arg4 = (int) SWIG_AsInt(obj3);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 arg5 = (int) SWIG_AsInt(obj4);
11507 if (PyErr_Occurred()) SWIG_fail;
11508 arg6 = (double) SWIG_AsDouble(obj5);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 {
11511 PyThreadState* __tstate = wxPyBeginAllowThreads();
11512 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11513
11514 wxPyEndAllowThreads(__tstate);
11515 if (PyErr_Occurred()) SWIG_fail;
11516 }
11517 Py_INCREF(Py_None); resultobj = Py_None;
11518 return resultobj;
11519 fail:
11520 return NULL;
11521 }
11522
11523
11524 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11525 PyObject *resultobj;
11526 wxDC *arg1 = (wxDC *) 0 ;
11527 wxPoint *arg2 = 0 ;
11528 wxSize *arg3 = 0 ;
11529 double arg4 ;
11530 wxPoint temp2 ;
11531 wxSize temp3 ;
11532 PyObject * obj0 = 0 ;
11533 PyObject * obj1 = 0 ;
11534 PyObject * obj2 = 0 ;
11535 PyObject * obj3 = 0 ;
11536 char *kwnames[] = {
11537 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11538 };
11539
11540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",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 {
11544 arg2 = &temp2;
11545 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11546 }
11547 {
11548 arg3 = &temp3;
11549 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11550 }
11551 arg4 = (double) SWIG_AsDouble(obj3);
11552 if (PyErr_Occurred()) SWIG_fail;
11553 {
11554 PyThreadState* __tstate = wxPyBeginAllowThreads();
11555 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11556
11557 wxPyEndAllowThreads(__tstate);
11558 if (PyErr_Occurred()) SWIG_fail;
11559 }
11560 Py_INCREF(Py_None); resultobj = Py_None;
11561 return resultobj;
11562 fail:
11563 return NULL;
11564 }
11565
11566
11567 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11568 PyObject *resultobj;
11569 wxDC *arg1 = (wxDC *) 0 ;
11570 wxRect *arg2 = 0 ;
11571 double arg3 ;
11572 wxRect temp2 ;
11573 PyObject * obj0 = 0 ;
11574 PyObject * obj1 = 0 ;
11575 PyObject * obj2 = 0 ;
11576 char *kwnames[] = {
11577 (char *) "self",(char *) "r",(char *) "radius", NULL
11578 };
11579
11580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11583 {
11584 arg2 = &temp2;
11585 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11586 }
11587 arg3 = (double) SWIG_AsDouble(obj2);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 {
11590 PyThreadState* __tstate = wxPyBeginAllowThreads();
11591 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11592
11593 wxPyEndAllowThreads(__tstate);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 Py_INCREF(Py_None); resultobj = Py_None;
11597 return resultobj;
11598 fail:
11599 return NULL;
11600 }
11601
11602
11603 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11604 PyObject *resultobj;
11605 wxDC *arg1 = (wxDC *) 0 ;
11606 int arg2 ;
11607 int arg3 ;
11608 int arg4 ;
11609 PyObject * obj0 = 0 ;
11610 PyObject * obj1 = 0 ;
11611 PyObject * obj2 = 0 ;
11612 PyObject * obj3 = 0 ;
11613 char *kwnames[] = {
11614 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11615 };
11616
11617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11620 arg2 = (int) SWIG_AsInt(obj1);
11621 if (PyErr_Occurred()) SWIG_fail;
11622 arg3 = (int) SWIG_AsInt(obj2);
11623 if (PyErr_Occurred()) SWIG_fail;
11624 arg4 = (int) SWIG_AsInt(obj3);
11625 if (PyErr_Occurred()) SWIG_fail;
11626 {
11627 PyThreadState* __tstate = wxPyBeginAllowThreads();
11628 (arg1)->DrawCircle(arg2,arg3,arg4);
11629
11630 wxPyEndAllowThreads(__tstate);
11631 if (PyErr_Occurred()) SWIG_fail;
11632 }
11633 Py_INCREF(Py_None); resultobj = Py_None;
11634 return resultobj;
11635 fail:
11636 return NULL;
11637 }
11638
11639
11640 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11641 PyObject *resultobj;
11642 wxDC *arg1 = (wxDC *) 0 ;
11643 wxPoint *arg2 = 0 ;
11644 int arg3 ;
11645 wxPoint temp2 ;
11646 PyObject * obj0 = 0 ;
11647 PyObject * obj1 = 0 ;
11648 PyObject * obj2 = 0 ;
11649 char *kwnames[] = {
11650 (char *) "self",(char *) "pt",(char *) "radius", NULL
11651 };
11652
11653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11656 {
11657 arg2 = &temp2;
11658 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11659 }
11660 arg3 = (int) SWIG_AsInt(obj2);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 {
11663 PyThreadState* __tstate = wxPyBeginAllowThreads();
11664 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11665
11666 wxPyEndAllowThreads(__tstate);
11667 if (PyErr_Occurred()) SWIG_fail;
11668 }
11669 Py_INCREF(Py_None); resultobj = Py_None;
11670 return resultobj;
11671 fail:
11672 return NULL;
11673 }
11674
11675
11676 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11677 PyObject *resultobj;
11678 wxDC *arg1 = (wxDC *) 0 ;
11679 int arg2 ;
11680 int arg3 ;
11681 int arg4 ;
11682 int arg5 ;
11683 PyObject * obj0 = 0 ;
11684 PyObject * obj1 = 0 ;
11685 PyObject * obj2 = 0 ;
11686 PyObject * obj3 = 0 ;
11687 PyObject * obj4 = 0 ;
11688 char *kwnames[] = {
11689 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11690 };
11691
11692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11695 arg2 = (int) SWIG_AsInt(obj1);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 arg3 = (int) SWIG_AsInt(obj2);
11698 if (PyErr_Occurred()) SWIG_fail;
11699 arg4 = (int) SWIG_AsInt(obj3);
11700 if (PyErr_Occurred()) SWIG_fail;
11701 arg5 = (int) SWIG_AsInt(obj4);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 {
11704 PyThreadState* __tstate = wxPyBeginAllowThreads();
11705 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11706
11707 wxPyEndAllowThreads(__tstate);
11708 if (PyErr_Occurred()) SWIG_fail;
11709 }
11710 Py_INCREF(Py_None); resultobj = Py_None;
11711 return resultobj;
11712 fail:
11713 return NULL;
11714 }
11715
11716
11717 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11718 PyObject *resultobj;
11719 wxDC *arg1 = (wxDC *) 0 ;
11720 wxPoint *arg2 = 0 ;
11721 wxSize *arg3 = 0 ;
11722 wxPoint temp2 ;
11723 wxSize temp3 ;
11724 PyObject * obj0 = 0 ;
11725 PyObject * obj1 = 0 ;
11726 PyObject * obj2 = 0 ;
11727 char *kwnames[] = {
11728 (char *) "self",(char *) "pt",(char *) "sz", NULL
11729 };
11730
11731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11734 {
11735 arg2 = &temp2;
11736 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11737 }
11738 {
11739 arg3 = &temp3;
11740 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11741 }
11742 {
11743 PyThreadState* __tstate = wxPyBeginAllowThreads();
11744 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11745
11746 wxPyEndAllowThreads(__tstate);
11747 if (PyErr_Occurred()) SWIG_fail;
11748 }
11749 Py_INCREF(Py_None); resultobj = Py_None;
11750 return resultobj;
11751 fail:
11752 return NULL;
11753 }
11754
11755
11756 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11757 PyObject *resultobj;
11758 wxDC *arg1 = (wxDC *) 0 ;
11759 wxRect *arg2 = 0 ;
11760 wxRect temp2 ;
11761 PyObject * obj0 = 0 ;
11762 PyObject * obj1 = 0 ;
11763 char *kwnames[] = {
11764 (char *) "self",(char *) "rect", NULL
11765 };
11766
11767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11770 {
11771 arg2 = &temp2;
11772 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11773 }
11774 {
11775 PyThreadState* __tstate = wxPyBeginAllowThreads();
11776 (arg1)->DrawEllipse((wxRect const &)*arg2);
11777
11778 wxPyEndAllowThreads(__tstate);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 }
11781 Py_INCREF(Py_None); resultobj = Py_None;
11782 return resultobj;
11783 fail:
11784 return NULL;
11785 }
11786
11787
11788 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11789 PyObject *resultobj;
11790 wxDC *arg1 = (wxDC *) 0 ;
11791 wxIcon *arg2 = 0 ;
11792 int arg3 ;
11793 int arg4 ;
11794 PyObject * obj0 = 0 ;
11795 PyObject * obj1 = 0 ;
11796 PyObject * obj2 = 0 ;
11797 PyObject * obj3 = 0 ;
11798 char *kwnames[] = {
11799 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11800 };
11801
11802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11805 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11806 SWIG_POINTER_EXCEPTION | 0)) == -1)
11807 SWIG_fail;
11808 if (arg2 == NULL) {
11809 PyErr_SetString(PyExc_TypeError,"null reference");
11810 SWIG_fail;
11811 }
11812 arg3 = (int) SWIG_AsInt(obj2);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 arg4 = (int) SWIG_AsInt(obj3);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 {
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11819
11820 wxPyEndAllowThreads(__tstate);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 Py_INCREF(Py_None); resultobj = Py_None;
11824 return resultobj;
11825 fail:
11826 return NULL;
11827 }
11828
11829
11830 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11831 PyObject *resultobj;
11832 wxDC *arg1 = (wxDC *) 0 ;
11833 wxIcon *arg2 = 0 ;
11834 wxPoint *arg3 = 0 ;
11835 wxPoint temp3 ;
11836 PyObject * obj0 = 0 ;
11837 PyObject * obj1 = 0 ;
11838 PyObject * obj2 = 0 ;
11839 char *kwnames[] = {
11840 (char *) "self",(char *) "icon",(char *) "pt", NULL
11841 };
11842
11843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11846 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11847 SWIG_POINTER_EXCEPTION | 0)) == -1)
11848 SWIG_fail;
11849 if (arg2 == NULL) {
11850 PyErr_SetString(PyExc_TypeError,"null reference");
11851 SWIG_fail;
11852 }
11853 {
11854 arg3 = &temp3;
11855 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11856 }
11857 {
11858 PyThreadState* __tstate = wxPyBeginAllowThreads();
11859 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11860
11861 wxPyEndAllowThreads(__tstate);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 Py_INCREF(Py_None); resultobj = Py_None;
11865 return resultobj;
11866 fail:
11867 return NULL;
11868 }
11869
11870
11871 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11872 PyObject *resultobj;
11873 wxDC *arg1 = (wxDC *) 0 ;
11874 wxBitmap *arg2 = 0 ;
11875 int arg3 ;
11876 int arg4 ;
11877 bool arg5 = (bool) False ;
11878 PyObject * obj0 = 0 ;
11879 PyObject * obj1 = 0 ;
11880 PyObject * obj2 = 0 ;
11881 PyObject * obj3 = 0 ;
11882 PyObject * obj4 = 0 ;
11883 char *kwnames[] = {
11884 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11885 };
11886
11887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11890 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11891 SWIG_POINTER_EXCEPTION | 0)) == -1)
11892 SWIG_fail;
11893 if (arg2 == NULL) {
11894 PyErr_SetString(PyExc_TypeError,"null reference");
11895 SWIG_fail;
11896 }
11897 arg3 = (int) SWIG_AsInt(obj2);
11898 if (PyErr_Occurred()) SWIG_fail;
11899 arg4 = (int) SWIG_AsInt(obj3);
11900 if (PyErr_Occurred()) SWIG_fail;
11901 if (obj4) {
11902 arg5 = (bool) SWIG_AsBool(obj4);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 {
11906 PyThreadState* __tstate = wxPyBeginAllowThreads();
11907 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11908
11909 wxPyEndAllowThreads(__tstate);
11910 if (PyErr_Occurred()) SWIG_fail;
11911 }
11912 Py_INCREF(Py_None); resultobj = Py_None;
11913 return resultobj;
11914 fail:
11915 return NULL;
11916 }
11917
11918
11919 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11920 PyObject *resultobj;
11921 wxDC *arg1 = (wxDC *) 0 ;
11922 wxBitmap *arg2 = 0 ;
11923 wxPoint *arg3 = 0 ;
11924 bool arg4 = (bool) False ;
11925 wxPoint temp3 ;
11926 PyObject * obj0 = 0 ;
11927 PyObject * obj1 = 0 ;
11928 PyObject * obj2 = 0 ;
11929 PyObject * obj3 = 0 ;
11930 char *kwnames[] = {
11931 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11932 };
11933
11934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11937 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11938 SWIG_POINTER_EXCEPTION | 0)) == -1)
11939 SWIG_fail;
11940 if (arg2 == NULL) {
11941 PyErr_SetString(PyExc_TypeError,"null reference");
11942 SWIG_fail;
11943 }
11944 {
11945 arg3 = &temp3;
11946 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11947 }
11948 if (obj3) {
11949 arg4 = (bool) SWIG_AsBool(obj3);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 {
11953 PyThreadState* __tstate = wxPyBeginAllowThreads();
11954 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11955
11956 wxPyEndAllowThreads(__tstate);
11957 if (PyErr_Occurred()) SWIG_fail;
11958 }
11959 Py_INCREF(Py_None); resultobj = Py_None;
11960 return resultobj;
11961 fail:
11962 return NULL;
11963 }
11964
11965
11966 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11967 PyObject *resultobj;
11968 wxDC *arg1 = (wxDC *) 0 ;
11969 wxString *arg2 = 0 ;
11970 int arg3 ;
11971 int arg4 ;
11972 bool temp2 = False ;
11973 PyObject * obj0 = 0 ;
11974 PyObject * obj1 = 0 ;
11975 PyObject * obj2 = 0 ;
11976 PyObject * obj3 = 0 ;
11977 char *kwnames[] = {
11978 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11979 };
11980
11981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11984 {
11985 arg2 = wxString_in_helper(obj1);
11986 if (arg2 == NULL) SWIG_fail;
11987 temp2 = True;
11988 }
11989 arg3 = (int) SWIG_AsInt(obj2);
11990 if (PyErr_Occurred()) SWIG_fail;
11991 arg4 = (int) SWIG_AsInt(obj3);
11992 if (PyErr_Occurred()) SWIG_fail;
11993 {
11994 PyThreadState* __tstate = wxPyBeginAllowThreads();
11995 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11996
11997 wxPyEndAllowThreads(__tstate);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 }
12000 Py_INCREF(Py_None); resultobj = Py_None;
12001 {
12002 if (temp2)
12003 delete arg2;
12004 }
12005 return resultobj;
12006 fail:
12007 {
12008 if (temp2)
12009 delete arg2;
12010 }
12011 return NULL;
12012 }
12013
12014
12015 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
12016 PyObject *resultobj;
12017 wxDC *arg1 = (wxDC *) 0 ;
12018 wxString *arg2 = 0 ;
12019 wxPoint *arg3 = 0 ;
12020 bool temp2 = False ;
12021 wxPoint temp3 ;
12022 PyObject * obj0 = 0 ;
12023 PyObject * obj1 = 0 ;
12024 PyObject * obj2 = 0 ;
12025 char *kwnames[] = {
12026 (char *) "self",(char *) "text",(char *) "pt", NULL
12027 };
12028
12029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
12030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12032 {
12033 arg2 = wxString_in_helper(obj1);
12034 if (arg2 == NULL) SWIG_fail;
12035 temp2 = True;
12036 }
12037 {
12038 arg3 = &temp3;
12039 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12040 }
12041 {
12042 PyThreadState* __tstate = wxPyBeginAllowThreads();
12043 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12044
12045 wxPyEndAllowThreads(__tstate);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 Py_INCREF(Py_None); resultobj = Py_None;
12049 {
12050 if (temp2)
12051 delete arg2;
12052 }
12053 return resultobj;
12054 fail:
12055 {
12056 if (temp2)
12057 delete arg2;
12058 }
12059 return NULL;
12060 }
12061
12062
12063 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12064 PyObject *resultobj;
12065 wxDC *arg1 = (wxDC *) 0 ;
12066 wxString *arg2 = 0 ;
12067 int arg3 ;
12068 int arg4 ;
12069 double arg5 ;
12070 bool temp2 = False ;
12071 PyObject * obj0 = 0 ;
12072 PyObject * obj1 = 0 ;
12073 PyObject * obj2 = 0 ;
12074 PyObject * obj3 = 0 ;
12075 PyObject * obj4 = 0 ;
12076 char *kwnames[] = {
12077 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12078 };
12079
12080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12083 {
12084 arg2 = wxString_in_helper(obj1);
12085 if (arg2 == NULL) SWIG_fail;
12086 temp2 = True;
12087 }
12088 arg3 = (int) SWIG_AsInt(obj2);
12089 if (PyErr_Occurred()) SWIG_fail;
12090 arg4 = (int) SWIG_AsInt(obj3);
12091 if (PyErr_Occurred()) SWIG_fail;
12092 arg5 = (double) SWIG_AsDouble(obj4);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 {
12095 PyThreadState* __tstate = wxPyBeginAllowThreads();
12096 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12097
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 Py_INCREF(Py_None); resultobj = Py_None;
12102 {
12103 if (temp2)
12104 delete arg2;
12105 }
12106 return resultobj;
12107 fail:
12108 {
12109 if (temp2)
12110 delete arg2;
12111 }
12112 return NULL;
12113 }
12114
12115
12116 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
12117 PyObject *resultobj;
12118 wxDC *arg1 = (wxDC *) 0 ;
12119 wxString *arg2 = 0 ;
12120 wxPoint *arg3 = 0 ;
12121 double arg4 ;
12122 bool temp2 = False ;
12123 wxPoint temp3 ;
12124 PyObject * obj0 = 0 ;
12125 PyObject * obj1 = 0 ;
12126 PyObject * obj2 = 0 ;
12127 PyObject * obj3 = 0 ;
12128 char *kwnames[] = {
12129 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12130 };
12131
12132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12135 {
12136 arg2 = wxString_in_helper(obj1);
12137 if (arg2 == NULL) SWIG_fail;
12138 temp2 = True;
12139 }
12140 {
12141 arg3 = &temp3;
12142 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12143 }
12144 arg4 = (double) SWIG_AsDouble(obj3);
12145 if (PyErr_Occurred()) SWIG_fail;
12146 {
12147 PyThreadState* __tstate = wxPyBeginAllowThreads();
12148 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12149
12150 wxPyEndAllowThreads(__tstate);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 Py_INCREF(Py_None); resultobj = Py_None;
12154 {
12155 if (temp2)
12156 delete arg2;
12157 }
12158 return resultobj;
12159 fail:
12160 {
12161 if (temp2)
12162 delete arg2;
12163 }
12164 return NULL;
12165 }
12166
12167
12168 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12169 PyObject *resultobj;
12170 wxDC *arg1 = (wxDC *) 0 ;
12171 int arg2 ;
12172 int arg3 ;
12173 int arg4 ;
12174 int arg5 ;
12175 wxDC *arg6 = (wxDC *) 0 ;
12176 int arg7 ;
12177 int arg8 ;
12178 int arg9 = (int) wxCOPY ;
12179 bool arg10 = (bool) False ;
12180 int arg11 = (int) -1 ;
12181 int arg12 = (int) -1 ;
12182 bool result;
12183 PyObject * obj0 = 0 ;
12184 PyObject * obj1 = 0 ;
12185 PyObject * obj2 = 0 ;
12186 PyObject * obj3 = 0 ;
12187 PyObject * obj4 = 0 ;
12188 PyObject * obj5 = 0 ;
12189 PyObject * obj6 = 0 ;
12190 PyObject * obj7 = 0 ;
12191 PyObject * obj8 = 0 ;
12192 PyObject * obj9 = 0 ;
12193 PyObject * obj10 = 0 ;
12194 PyObject * obj11 = 0 ;
12195 char *kwnames[] = {
12196 (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
12197 };
12198
12199 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;
12200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12202 arg2 = (int) SWIG_AsInt(obj1);
12203 if (PyErr_Occurred()) SWIG_fail;
12204 arg3 = (int) SWIG_AsInt(obj2);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 arg4 = (int) SWIG_AsInt(obj3);
12207 if (PyErr_Occurred()) SWIG_fail;
12208 arg5 = (int) SWIG_AsInt(obj4);
12209 if (PyErr_Occurred()) SWIG_fail;
12210 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12212 arg7 = (int) SWIG_AsInt(obj6);
12213 if (PyErr_Occurred()) SWIG_fail;
12214 arg8 = (int) SWIG_AsInt(obj7);
12215 if (PyErr_Occurred()) SWIG_fail;
12216 if (obj8) {
12217 arg9 = (int) SWIG_AsInt(obj8);
12218 if (PyErr_Occurred()) SWIG_fail;
12219 }
12220 if (obj9) {
12221 arg10 = (bool) SWIG_AsBool(obj9);
12222 if (PyErr_Occurred()) SWIG_fail;
12223 }
12224 if (obj10) {
12225 arg11 = (int) SWIG_AsInt(obj10);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 if (obj11) {
12229 arg12 = (int) SWIG_AsInt(obj11);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 }
12232 {
12233 PyThreadState* __tstate = wxPyBeginAllowThreads();
12234 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12235
12236 wxPyEndAllowThreads(__tstate);
12237 if (PyErr_Occurred()) SWIG_fail;
12238 }
12239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12240 return resultobj;
12241 fail:
12242 return NULL;
12243 }
12244
12245
12246 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12247 PyObject *resultobj;
12248 wxDC *arg1 = (wxDC *) 0 ;
12249 wxPoint *arg2 = 0 ;
12250 wxSize *arg3 = 0 ;
12251 wxDC *arg4 = (wxDC *) 0 ;
12252 wxPoint *arg5 = 0 ;
12253 int arg6 = (int) wxCOPY ;
12254 bool arg7 = (bool) False ;
12255 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12256 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12257 bool result;
12258 wxPoint temp2 ;
12259 wxSize temp3 ;
12260 wxPoint temp5 ;
12261 wxPoint temp8 ;
12262 PyObject * obj0 = 0 ;
12263 PyObject * obj1 = 0 ;
12264 PyObject * obj2 = 0 ;
12265 PyObject * obj3 = 0 ;
12266 PyObject * obj4 = 0 ;
12267 PyObject * obj5 = 0 ;
12268 PyObject * obj6 = 0 ;
12269 PyObject * obj7 = 0 ;
12270 char *kwnames[] = {
12271 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12272 };
12273
12274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12277 {
12278 arg2 = &temp2;
12279 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12280 }
12281 {
12282 arg3 = &temp3;
12283 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12284 }
12285 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12287 {
12288 arg5 = &temp5;
12289 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12290 }
12291 if (obj5) {
12292 arg6 = (int) SWIG_AsInt(obj5);
12293 if (PyErr_Occurred()) SWIG_fail;
12294 }
12295 if (obj6) {
12296 arg7 = (bool) SWIG_AsBool(obj6);
12297 if (PyErr_Occurred()) SWIG_fail;
12298 }
12299 if (obj7) {
12300 {
12301 arg8 = &temp8;
12302 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12303 }
12304 }
12305 {
12306 PyThreadState* __tstate = wxPyBeginAllowThreads();
12307 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12308
12309 wxPyEndAllowThreads(__tstate);
12310 if (PyErr_Occurred()) SWIG_fail;
12311 }
12312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12313 return resultobj;
12314 fail:
12315 return NULL;
12316 }
12317
12318
12319 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12320 PyObject *resultobj;
12321 wxDC *arg1 = (wxDC *) 0 ;
12322 int arg2 ;
12323 wxPoint *arg3 = (wxPoint *) 0 ;
12324 int arg4 = (int) 0 ;
12325 int arg5 = (int) 0 ;
12326 PyObject * obj0 = 0 ;
12327 PyObject * obj1 = 0 ;
12328 PyObject * obj2 = 0 ;
12329 PyObject * obj3 = 0 ;
12330 char *kwnames[] = {
12331 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12332 };
12333
12334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12337 {
12338 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12339 if (arg3 == NULL) SWIG_fail;
12340 }
12341 if (obj2) {
12342 arg4 = (int) SWIG_AsInt(obj2);
12343 if (PyErr_Occurred()) SWIG_fail;
12344 }
12345 if (obj3) {
12346 arg5 = (int) SWIG_AsInt(obj3);
12347 if (PyErr_Occurred()) SWIG_fail;
12348 }
12349 {
12350 PyThreadState* __tstate = wxPyBeginAllowThreads();
12351 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12352
12353 wxPyEndAllowThreads(__tstate);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 }
12356 Py_INCREF(Py_None); resultobj = Py_None;
12357 {
12358 if (arg3) delete [] arg3;
12359 }
12360 return resultobj;
12361 fail:
12362 {
12363 if (arg3) delete [] arg3;
12364 }
12365 return NULL;
12366 }
12367
12368
12369 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12370 PyObject *resultobj;
12371 wxDC *arg1 = (wxDC *) 0 ;
12372 int arg2 ;
12373 wxPoint *arg3 = (wxPoint *) 0 ;
12374 int arg4 = (int) 0 ;
12375 int arg5 = (int) 0 ;
12376 int arg6 = (int) wxODDEVEN_RULE ;
12377 PyObject * obj0 = 0 ;
12378 PyObject * obj1 = 0 ;
12379 PyObject * obj2 = 0 ;
12380 PyObject * obj3 = 0 ;
12381 PyObject * obj4 = 0 ;
12382 char *kwnames[] = {
12383 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12384 };
12385
12386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12389 {
12390 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12391 if (arg3 == NULL) SWIG_fail;
12392 }
12393 if (obj2) {
12394 arg4 = (int) SWIG_AsInt(obj2);
12395 if (PyErr_Occurred()) SWIG_fail;
12396 }
12397 if (obj3) {
12398 arg5 = (int) SWIG_AsInt(obj3);
12399 if (PyErr_Occurred()) SWIG_fail;
12400 }
12401 if (obj4) {
12402 arg6 = (int) SWIG_AsInt(obj4);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 {
12406 PyThreadState* __tstate = wxPyBeginAllowThreads();
12407 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12408
12409 wxPyEndAllowThreads(__tstate);
12410 if (PyErr_Occurred()) SWIG_fail;
12411 }
12412 Py_INCREF(Py_None); resultobj = Py_None;
12413 {
12414 if (arg3) delete [] arg3;
12415 }
12416 return resultobj;
12417 fail:
12418 {
12419 if (arg3) delete [] arg3;
12420 }
12421 return NULL;
12422 }
12423
12424
12425 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12426 PyObject *resultobj;
12427 wxDC *arg1 = (wxDC *) 0 ;
12428 wxString *arg2 = 0 ;
12429 wxRect *arg3 = 0 ;
12430 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12431 int arg5 = (int) -1 ;
12432 bool temp2 = False ;
12433 wxRect temp3 ;
12434 PyObject * obj0 = 0 ;
12435 PyObject * obj1 = 0 ;
12436 PyObject * obj2 = 0 ;
12437 PyObject * obj3 = 0 ;
12438 PyObject * obj4 = 0 ;
12439 char *kwnames[] = {
12440 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12441 };
12442
12443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12446 {
12447 arg2 = wxString_in_helper(obj1);
12448 if (arg2 == NULL) SWIG_fail;
12449 temp2 = True;
12450 }
12451 {
12452 arg3 = &temp3;
12453 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12454 }
12455 if (obj3) {
12456 arg4 = (int) SWIG_AsInt(obj3);
12457 if (PyErr_Occurred()) SWIG_fail;
12458 }
12459 if (obj4) {
12460 arg5 = (int) SWIG_AsInt(obj4);
12461 if (PyErr_Occurred()) SWIG_fail;
12462 }
12463 {
12464 PyThreadState* __tstate = wxPyBeginAllowThreads();
12465 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12466
12467 wxPyEndAllowThreads(__tstate);
12468 if (PyErr_Occurred()) SWIG_fail;
12469 }
12470 Py_INCREF(Py_None); resultobj = Py_None;
12471 {
12472 if (temp2)
12473 delete arg2;
12474 }
12475 return resultobj;
12476 fail:
12477 {
12478 if (temp2)
12479 delete arg2;
12480 }
12481 return NULL;
12482 }
12483
12484
12485 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12486 PyObject *resultobj;
12487 wxDC *arg1 = (wxDC *) 0 ;
12488 wxString *arg2 = 0 ;
12489 wxBitmap *arg3 = 0 ;
12490 wxRect *arg4 = 0 ;
12491 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12492 int arg6 = (int) -1 ;
12493 wxRect result;
12494 bool temp2 = False ;
12495 wxRect temp4 ;
12496 PyObject * obj0 = 0 ;
12497 PyObject * obj1 = 0 ;
12498 PyObject * obj2 = 0 ;
12499 PyObject * obj3 = 0 ;
12500 PyObject * obj4 = 0 ;
12501 PyObject * obj5 = 0 ;
12502 char *kwnames[] = {
12503 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12504 };
12505
12506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12509 {
12510 arg2 = wxString_in_helper(obj1);
12511 if (arg2 == NULL) SWIG_fail;
12512 temp2 = True;
12513 }
12514 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12515 SWIG_POINTER_EXCEPTION | 0)) == -1)
12516 SWIG_fail;
12517 if (arg3 == NULL) {
12518 PyErr_SetString(PyExc_TypeError,"null reference");
12519 SWIG_fail;
12520 }
12521 {
12522 arg4 = &temp4;
12523 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12524 }
12525 if (obj4) {
12526 arg5 = (int) SWIG_AsInt(obj4);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 }
12529 if (obj5) {
12530 arg6 = (int) SWIG_AsInt(obj5);
12531 if (PyErr_Occurred()) SWIG_fail;
12532 }
12533 {
12534 PyThreadState* __tstate = wxPyBeginAllowThreads();
12535 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12536
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 {
12541 wxRect * resultptr;
12542 resultptr = new wxRect((wxRect &) result);
12543 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12544 }
12545 {
12546 if (temp2)
12547 delete arg2;
12548 }
12549 return resultobj;
12550 fail:
12551 {
12552 if (temp2)
12553 delete arg2;
12554 }
12555 return NULL;
12556 }
12557
12558
12559 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12560 PyObject *resultobj;
12561 wxDC *arg1 = (wxDC *) 0 ;
12562 int arg2 ;
12563 wxPoint *arg3 = (wxPoint *) 0 ;
12564 PyObject * obj0 = 0 ;
12565 PyObject * obj1 = 0 ;
12566 char *kwnames[] = {
12567 (char *) "self",(char *) "points", NULL
12568 };
12569
12570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12573 {
12574 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12575 if (arg3 == NULL) SWIG_fail;
12576 }
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 (arg1)->DrawSpline(arg2,arg3);
12580
12581 wxPyEndAllowThreads(__tstate);
12582 if (PyErr_Occurred()) SWIG_fail;
12583 }
12584 Py_INCREF(Py_None); resultobj = Py_None;
12585 {
12586 if (arg3) delete [] arg3;
12587 }
12588 return resultobj;
12589 fail:
12590 {
12591 if (arg3) delete [] arg3;
12592 }
12593 return NULL;
12594 }
12595
12596
12597 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj;
12599 wxDC *arg1 = (wxDC *) 0 ;
12600 PyObject * obj0 = 0 ;
12601 char *kwnames[] = {
12602 (char *) "self", NULL
12603 };
12604
12605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12608 {
12609 PyThreadState* __tstate = wxPyBeginAllowThreads();
12610 (arg1)->Clear();
12611
12612 wxPyEndAllowThreads(__tstate);
12613 if (PyErr_Occurred()) SWIG_fail;
12614 }
12615 Py_INCREF(Py_None); resultobj = Py_None;
12616 return resultobj;
12617 fail:
12618 return NULL;
12619 }
12620
12621
12622 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12623 PyObject *resultobj;
12624 wxDC *arg1 = (wxDC *) 0 ;
12625 wxString *arg2 = 0 ;
12626 bool result;
12627 bool temp2 = False ;
12628 PyObject * obj0 = 0 ;
12629 PyObject * obj1 = 0 ;
12630 char *kwnames[] = {
12631 (char *) "self",(char *) "message", NULL
12632 };
12633
12634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12637 {
12638 arg2 = wxString_in_helper(obj1);
12639 if (arg2 == NULL) SWIG_fail;
12640 temp2 = True;
12641 }
12642 {
12643 PyThreadState* __tstate = wxPyBeginAllowThreads();
12644 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12645
12646 wxPyEndAllowThreads(__tstate);
12647 if (PyErr_Occurred()) SWIG_fail;
12648 }
12649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12650 {
12651 if (temp2)
12652 delete arg2;
12653 }
12654 return resultobj;
12655 fail:
12656 {
12657 if (temp2)
12658 delete arg2;
12659 }
12660 return NULL;
12661 }
12662
12663
12664 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12665 PyObject *resultobj;
12666 wxDC *arg1 = (wxDC *) 0 ;
12667 PyObject * obj0 = 0 ;
12668 char *kwnames[] = {
12669 (char *) "self", NULL
12670 };
12671
12672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12675 {
12676 PyThreadState* __tstate = wxPyBeginAllowThreads();
12677 (arg1)->EndDoc();
12678
12679 wxPyEndAllowThreads(__tstate);
12680 if (PyErr_Occurred()) SWIG_fail;
12681 }
12682 Py_INCREF(Py_None); resultobj = Py_None;
12683 return resultobj;
12684 fail:
12685 return NULL;
12686 }
12687
12688
12689 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12690 PyObject *resultobj;
12691 wxDC *arg1 = (wxDC *) 0 ;
12692 PyObject * obj0 = 0 ;
12693 char *kwnames[] = {
12694 (char *) "self", NULL
12695 };
12696
12697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12700 {
12701 PyThreadState* __tstate = wxPyBeginAllowThreads();
12702 (arg1)->StartPage();
12703
12704 wxPyEndAllowThreads(__tstate);
12705 if (PyErr_Occurred()) SWIG_fail;
12706 }
12707 Py_INCREF(Py_None); resultobj = Py_None;
12708 return resultobj;
12709 fail:
12710 return NULL;
12711 }
12712
12713
12714 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12715 PyObject *resultobj;
12716 wxDC *arg1 = (wxDC *) 0 ;
12717 PyObject * obj0 = 0 ;
12718 char *kwnames[] = {
12719 (char *) "self", NULL
12720 };
12721
12722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12725 {
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 (arg1)->EndPage();
12728
12729 wxPyEndAllowThreads(__tstate);
12730 if (PyErr_Occurred()) SWIG_fail;
12731 }
12732 Py_INCREF(Py_None); resultobj = Py_None;
12733 return resultobj;
12734 fail:
12735 return NULL;
12736 }
12737
12738
12739 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12740 PyObject *resultobj;
12741 wxDC *arg1 = (wxDC *) 0 ;
12742 wxFont *arg2 = 0 ;
12743 PyObject * obj0 = 0 ;
12744 PyObject * obj1 = 0 ;
12745 char *kwnames[] = {
12746 (char *) "self",(char *) "font", NULL
12747 };
12748
12749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12752 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12753 SWIG_POINTER_EXCEPTION | 0)) == -1)
12754 SWIG_fail;
12755 if (arg2 == NULL) {
12756 PyErr_SetString(PyExc_TypeError,"null reference");
12757 SWIG_fail;
12758 }
12759 {
12760 PyThreadState* __tstate = wxPyBeginAllowThreads();
12761 (arg1)->SetFont((wxFont const &)*arg2);
12762
12763 wxPyEndAllowThreads(__tstate);
12764 if (PyErr_Occurred()) SWIG_fail;
12765 }
12766 Py_INCREF(Py_None); resultobj = Py_None;
12767 return resultobj;
12768 fail:
12769 return NULL;
12770 }
12771
12772
12773 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12774 PyObject *resultobj;
12775 wxDC *arg1 = (wxDC *) 0 ;
12776 wxPen *arg2 = 0 ;
12777 PyObject * obj0 = 0 ;
12778 PyObject * obj1 = 0 ;
12779 char *kwnames[] = {
12780 (char *) "self",(char *) "pen", NULL
12781 };
12782
12783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12786 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12787 SWIG_POINTER_EXCEPTION | 0)) == -1)
12788 SWIG_fail;
12789 if (arg2 == NULL) {
12790 PyErr_SetString(PyExc_TypeError,"null reference");
12791 SWIG_fail;
12792 }
12793 {
12794 PyThreadState* __tstate = wxPyBeginAllowThreads();
12795 (arg1)->SetPen((wxPen const &)*arg2);
12796
12797 wxPyEndAllowThreads(__tstate);
12798 if (PyErr_Occurred()) SWIG_fail;
12799 }
12800 Py_INCREF(Py_None); resultobj = Py_None;
12801 return resultobj;
12802 fail:
12803 return NULL;
12804 }
12805
12806
12807 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12808 PyObject *resultobj;
12809 wxDC *arg1 = (wxDC *) 0 ;
12810 wxBrush *arg2 = 0 ;
12811 PyObject * obj0 = 0 ;
12812 PyObject * obj1 = 0 ;
12813 char *kwnames[] = {
12814 (char *) "self",(char *) "brush", NULL
12815 };
12816
12817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12821 SWIG_POINTER_EXCEPTION | 0)) == -1)
12822 SWIG_fail;
12823 if (arg2 == NULL) {
12824 PyErr_SetString(PyExc_TypeError,"null reference");
12825 SWIG_fail;
12826 }
12827 {
12828 PyThreadState* __tstate = wxPyBeginAllowThreads();
12829 (arg1)->SetBrush((wxBrush const &)*arg2);
12830
12831 wxPyEndAllowThreads(__tstate);
12832 if (PyErr_Occurred()) SWIG_fail;
12833 }
12834 Py_INCREF(Py_None); resultobj = Py_None;
12835 return resultobj;
12836 fail:
12837 return NULL;
12838 }
12839
12840
12841 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12842 PyObject *resultobj;
12843 wxDC *arg1 = (wxDC *) 0 ;
12844 wxBrush *arg2 = 0 ;
12845 PyObject * obj0 = 0 ;
12846 PyObject * obj1 = 0 ;
12847 char *kwnames[] = {
12848 (char *) "self",(char *) "brush", NULL
12849 };
12850
12851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12854 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12855 SWIG_POINTER_EXCEPTION | 0)) == -1)
12856 SWIG_fail;
12857 if (arg2 == NULL) {
12858 PyErr_SetString(PyExc_TypeError,"null reference");
12859 SWIG_fail;
12860 }
12861 {
12862 PyThreadState* __tstate = wxPyBeginAllowThreads();
12863 (arg1)->SetBackground((wxBrush const &)*arg2);
12864
12865 wxPyEndAllowThreads(__tstate);
12866 if (PyErr_Occurred()) SWIG_fail;
12867 }
12868 Py_INCREF(Py_None); resultobj = Py_None;
12869 return resultobj;
12870 fail:
12871 return NULL;
12872 }
12873
12874
12875 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12876 PyObject *resultobj;
12877 wxDC *arg1 = (wxDC *) 0 ;
12878 int arg2 ;
12879 PyObject * obj0 = 0 ;
12880 PyObject * obj1 = 0 ;
12881 char *kwnames[] = {
12882 (char *) "self",(char *) "mode", NULL
12883 };
12884
12885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12888 arg2 = (int) SWIG_AsInt(obj1);
12889 if (PyErr_Occurred()) SWIG_fail;
12890 {
12891 PyThreadState* __tstate = wxPyBeginAllowThreads();
12892 (arg1)->SetBackgroundMode(arg2);
12893
12894 wxPyEndAllowThreads(__tstate);
12895 if (PyErr_Occurred()) SWIG_fail;
12896 }
12897 Py_INCREF(Py_None); resultobj = Py_None;
12898 return resultobj;
12899 fail:
12900 return NULL;
12901 }
12902
12903
12904 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12905 PyObject *resultobj;
12906 wxDC *arg1 = (wxDC *) 0 ;
12907 wxPalette *arg2 = 0 ;
12908 PyObject * obj0 = 0 ;
12909 PyObject * obj1 = 0 ;
12910 char *kwnames[] = {
12911 (char *) "self",(char *) "palette", NULL
12912 };
12913
12914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12917 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12918 SWIG_POINTER_EXCEPTION | 0)) == -1)
12919 SWIG_fail;
12920 if (arg2 == NULL) {
12921 PyErr_SetString(PyExc_TypeError,"null reference");
12922 SWIG_fail;
12923 }
12924 {
12925 PyThreadState* __tstate = wxPyBeginAllowThreads();
12926 (arg1)->SetPalette((wxPalette const &)*arg2);
12927
12928 wxPyEndAllowThreads(__tstate);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 Py_INCREF(Py_None); resultobj = Py_None;
12932 return resultobj;
12933 fail:
12934 return NULL;
12935 }
12936
12937
12938 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12939 PyObject *resultobj;
12940 wxDC *arg1 = (wxDC *) 0 ;
12941 int arg2 ;
12942 int arg3 ;
12943 int arg4 ;
12944 int arg5 ;
12945 PyObject * obj0 = 0 ;
12946 PyObject * obj1 = 0 ;
12947 PyObject * obj2 = 0 ;
12948 PyObject * obj3 = 0 ;
12949 PyObject * obj4 = 0 ;
12950 char *kwnames[] = {
12951 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12952 };
12953
12954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12957 arg2 = (int) SWIG_AsInt(obj1);
12958 if (PyErr_Occurred()) SWIG_fail;
12959 arg3 = (int) SWIG_AsInt(obj2);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 arg4 = (int) SWIG_AsInt(obj3);
12962 if (PyErr_Occurred()) SWIG_fail;
12963 arg5 = (int) SWIG_AsInt(obj4);
12964 if (PyErr_Occurred()) SWIG_fail;
12965 {
12966 PyThreadState* __tstate = wxPyBeginAllowThreads();
12967 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12968
12969 wxPyEndAllowThreads(__tstate);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 }
12972 Py_INCREF(Py_None); resultobj = Py_None;
12973 return resultobj;
12974 fail:
12975 return NULL;
12976 }
12977
12978
12979 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12980 PyObject *resultobj;
12981 wxDC *arg1 = (wxDC *) 0 ;
12982 wxPoint *arg2 = 0 ;
12983 wxSize *arg3 = 0 ;
12984 wxPoint temp2 ;
12985 wxSize temp3 ;
12986 PyObject * obj0 = 0 ;
12987 PyObject * obj1 = 0 ;
12988 PyObject * obj2 = 0 ;
12989 char *kwnames[] = {
12990 (char *) "self",(char *) "pt",(char *) "sz", NULL
12991 };
12992
12993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12996 {
12997 arg2 = &temp2;
12998 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12999 }
13000 {
13001 arg3 = &temp3;
13002 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13003 }
13004 {
13005 PyThreadState* __tstate = wxPyBeginAllowThreads();
13006 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
13007
13008 wxPyEndAllowThreads(__tstate);
13009 if (PyErr_Occurred()) SWIG_fail;
13010 }
13011 Py_INCREF(Py_None); resultobj = Py_None;
13012 return resultobj;
13013 fail:
13014 return NULL;
13015 }
13016
13017
13018 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13019 PyObject *resultobj;
13020 wxDC *arg1 = (wxDC *) 0 ;
13021 wxRect *arg2 = 0 ;
13022 wxRect temp2 ;
13023 PyObject * obj0 = 0 ;
13024 PyObject * obj1 = 0 ;
13025 char *kwnames[] = {
13026 (char *) "self",(char *) "rect", NULL
13027 };
13028
13029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
13030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13032 {
13033 arg2 = &temp2;
13034 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13035 }
13036 {
13037 PyThreadState* __tstate = wxPyBeginAllowThreads();
13038 (arg1)->SetClippingRegion((wxRect const &)*arg2);
13039
13040 wxPyEndAllowThreads(__tstate);
13041 if (PyErr_Occurred()) SWIG_fail;
13042 }
13043 Py_INCREF(Py_None); resultobj = Py_None;
13044 return resultobj;
13045 fail:
13046 return NULL;
13047 }
13048
13049
13050 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13051 PyObject *resultobj;
13052 wxDC *arg1 = (wxDC *) 0 ;
13053 wxRegion *arg2 = 0 ;
13054 PyObject * obj0 = 0 ;
13055 PyObject * obj1 = 0 ;
13056 char *kwnames[] = {
13057 (char *) "self",(char *) "region", NULL
13058 };
13059
13060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
13061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13063 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
13064 SWIG_POINTER_EXCEPTION | 0)) == -1)
13065 SWIG_fail;
13066 if (arg2 == NULL) {
13067 PyErr_SetString(PyExc_TypeError,"null reference");
13068 SWIG_fail;
13069 }
13070 {
13071 PyThreadState* __tstate = wxPyBeginAllowThreads();
13072 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
13073
13074 wxPyEndAllowThreads(__tstate);
13075 if (PyErr_Occurred()) SWIG_fail;
13076 }
13077 Py_INCREF(Py_None); resultobj = Py_None;
13078 return resultobj;
13079 fail:
13080 return NULL;
13081 }
13082
13083
13084 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13085 PyObject *resultobj;
13086 wxDC *arg1 = (wxDC *) 0 ;
13087 PyObject * obj0 = 0 ;
13088 char *kwnames[] = {
13089 (char *) "self", NULL
13090 };
13091
13092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 (arg1)->DestroyClippingRegion();
13098
13099 wxPyEndAllowThreads(__tstate);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 }
13102 Py_INCREF(Py_None); resultobj = Py_None;
13103 return resultobj;
13104 fail:
13105 return NULL;
13106 }
13107
13108
13109 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13110 PyObject *resultobj;
13111 wxDC *arg1 = (wxDC *) 0 ;
13112 int *arg2 = (int *) 0 ;
13113 int *arg3 = (int *) 0 ;
13114 int *arg4 = (int *) 0 ;
13115 int *arg5 = (int *) 0 ;
13116 int temp2 ;
13117 int temp3 ;
13118 int temp4 ;
13119 int temp5 ;
13120 PyObject * obj0 = 0 ;
13121 char *kwnames[] = {
13122 (char *) "self", NULL
13123 };
13124
13125 arg2 = &temp2;
13126 arg3 = &temp3;
13127 arg4 = &temp4;
13128 arg5 = &temp5;
13129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13132 {
13133 PyThreadState* __tstate = wxPyBeginAllowThreads();
13134 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13135
13136 wxPyEndAllowThreads(__tstate);
13137 if (PyErr_Occurred()) SWIG_fail;
13138 }
13139 Py_INCREF(Py_None); resultobj = Py_None;
13140 {
13141 PyObject *o = PyInt_FromLong((long) (*arg2));
13142 resultobj = t_output_helper(resultobj,o);
13143 }
13144 {
13145 PyObject *o = PyInt_FromLong((long) (*arg3));
13146 resultobj = t_output_helper(resultobj,o);
13147 }
13148 {
13149 PyObject *o = PyInt_FromLong((long) (*arg4));
13150 resultobj = t_output_helper(resultobj,o);
13151 }
13152 {
13153 PyObject *o = PyInt_FromLong((long) (*arg5));
13154 resultobj = t_output_helper(resultobj,o);
13155 }
13156 return resultobj;
13157 fail:
13158 return NULL;
13159 }
13160
13161
13162 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13163 PyObject *resultobj;
13164 wxDC *arg1 = (wxDC *) 0 ;
13165 wxRect result;
13166 PyObject * obj0 = 0 ;
13167 char *kwnames[] = {
13168 (char *) "self", NULL
13169 };
13170
13171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 result = wxDC_GetClippingRect(arg1);
13177
13178 wxPyEndAllowThreads(__tstate);
13179 if (PyErr_Occurred()) SWIG_fail;
13180 }
13181 {
13182 wxRect * resultptr;
13183 resultptr = new wxRect((wxRect &) result);
13184 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13185 }
13186 return resultobj;
13187 fail:
13188 return NULL;
13189 }
13190
13191
13192 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13193 PyObject *resultobj;
13194 wxDC *arg1 = (wxDC *) 0 ;
13195 int result;
13196 PyObject * obj0 = 0 ;
13197 char *kwnames[] = {
13198 (char *) "self", NULL
13199 };
13200
13201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13204 {
13205 PyThreadState* __tstate = wxPyBeginAllowThreads();
13206 result = (int)((wxDC const *)arg1)->GetCharHeight();
13207
13208 wxPyEndAllowThreads(__tstate);
13209 if (PyErr_Occurred()) SWIG_fail;
13210 }
13211 resultobj = SWIG_FromInt((int)result);
13212 return resultobj;
13213 fail:
13214 return NULL;
13215 }
13216
13217
13218 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13219 PyObject *resultobj;
13220 wxDC *arg1 = (wxDC *) 0 ;
13221 int result;
13222 PyObject * obj0 = 0 ;
13223 char *kwnames[] = {
13224 (char *) "self", NULL
13225 };
13226
13227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13230 {
13231 PyThreadState* __tstate = wxPyBeginAllowThreads();
13232 result = (int)((wxDC const *)arg1)->GetCharWidth();
13233
13234 wxPyEndAllowThreads(__tstate);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 }
13237 resultobj = SWIG_FromInt((int)result);
13238 return resultobj;
13239 fail:
13240 return NULL;
13241 }
13242
13243
13244 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13245 PyObject *resultobj;
13246 wxDC *arg1 = (wxDC *) 0 ;
13247 wxString *arg2 = 0 ;
13248 int *arg3 = (int *) 0 ;
13249 int *arg4 = (int *) 0 ;
13250 bool temp2 = False ;
13251 int temp3 ;
13252 int temp4 ;
13253 PyObject * obj0 = 0 ;
13254 PyObject * obj1 = 0 ;
13255 char *kwnames[] = {
13256 (char *) "self",(char *) "string", NULL
13257 };
13258
13259 arg3 = &temp3;
13260 arg4 = &temp4;
13261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13264 {
13265 arg2 = wxString_in_helper(obj1);
13266 if (arg2 == NULL) SWIG_fail;
13267 temp2 = True;
13268 }
13269 {
13270 PyThreadState* __tstate = wxPyBeginAllowThreads();
13271 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13272
13273 wxPyEndAllowThreads(__tstate);
13274 if (PyErr_Occurred()) SWIG_fail;
13275 }
13276 Py_INCREF(Py_None); resultobj = Py_None;
13277 {
13278 PyObject *o = PyInt_FromLong((long) (*arg3));
13279 resultobj = t_output_helper(resultobj,o);
13280 }
13281 {
13282 PyObject *o = PyInt_FromLong((long) (*arg4));
13283 resultobj = t_output_helper(resultobj,o);
13284 }
13285 {
13286 if (temp2)
13287 delete arg2;
13288 }
13289 return resultobj;
13290 fail:
13291 {
13292 if (temp2)
13293 delete arg2;
13294 }
13295 return NULL;
13296 }
13297
13298
13299 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13300 PyObject *resultobj;
13301 wxDC *arg1 = (wxDC *) 0 ;
13302 wxString *arg2 = 0 ;
13303 int *arg3 = (int *) 0 ;
13304 int *arg4 = (int *) 0 ;
13305 int *arg5 = (int *) 0 ;
13306 int *arg6 = (int *) 0 ;
13307 wxFont *arg7 = (wxFont *) NULL ;
13308 bool temp2 = False ;
13309 int temp3 ;
13310 int temp4 ;
13311 int temp5 ;
13312 int temp6 ;
13313 PyObject * obj0 = 0 ;
13314 PyObject * obj1 = 0 ;
13315 PyObject * obj2 = 0 ;
13316 char *kwnames[] = {
13317 (char *) "self",(char *) "string",(char *) "font", NULL
13318 };
13319
13320 arg3 = &temp3;
13321 arg4 = &temp4;
13322 arg5 = &temp5;
13323 arg6 = &temp6;
13324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13327 {
13328 arg2 = wxString_in_helper(obj1);
13329 if (arg2 == NULL) SWIG_fail;
13330 temp2 = True;
13331 }
13332 if (obj2) {
13333 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13335 }
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13339
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 Py_INCREF(Py_None); resultobj = Py_None;
13344 {
13345 PyObject *o = PyInt_FromLong((long) (*arg3));
13346 resultobj = t_output_helper(resultobj,o);
13347 }
13348 {
13349 PyObject *o = PyInt_FromLong((long) (*arg4));
13350 resultobj = t_output_helper(resultobj,o);
13351 }
13352 {
13353 PyObject *o = PyInt_FromLong((long) (*arg5));
13354 resultobj = t_output_helper(resultobj,o);
13355 }
13356 {
13357 PyObject *o = PyInt_FromLong((long) (*arg6));
13358 resultobj = t_output_helper(resultobj,o);
13359 }
13360 {
13361 if (temp2)
13362 delete arg2;
13363 }
13364 return resultobj;
13365 fail:
13366 {
13367 if (temp2)
13368 delete arg2;
13369 }
13370 return NULL;
13371 }
13372
13373
13374 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13375 PyObject *resultobj;
13376 wxDC *arg1 = (wxDC *) 0 ;
13377 wxString *arg2 = 0 ;
13378 int *arg3 = (int *) 0 ;
13379 int *arg4 = (int *) 0 ;
13380 int *arg5 = (int *) 0 ;
13381 wxFont *arg6 = (wxFont *) NULL ;
13382 bool temp2 = False ;
13383 int temp3 ;
13384 int temp4 ;
13385 int temp5 ;
13386 PyObject * obj0 = 0 ;
13387 PyObject * obj1 = 0 ;
13388 PyObject * obj2 = 0 ;
13389 char *kwnames[] = {
13390 (char *) "self",(char *) "text",(char *) "font", NULL
13391 };
13392
13393 arg3 = &temp3;
13394 arg4 = &temp4;
13395 arg5 = &temp5;
13396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13399 {
13400 arg2 = wxString_in_helper(obj1);
13401 if (arg2 == NULL) SWIG_fail;
13402 temp2 = True;
13403 }
13404 if (obj2) {
13405 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13407 }
13408 {
13409 PyThreadState* __tstate = wxPyBeginAllowThreads();
13410 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13411
13412 wxPyEndAllowThreads(__tstate);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 Py_INCREF(Py_None); resultobj = Py_None;
13416 {
13417 PyObject *o = PyInt_FromLong((long) (*arg3));
13418 resultobj = t_output_helper(resultobj,o);
13419 }
13420 {
13421 PyObject *o = PyInt_FromLong((long) (*arg4));
13422 resultobj = t_output_helper(resultobj,o);
13423 }
13424 {
13425 PyObject *o = PyInt_FromLong((long) (*arg5));
13426 resultobj = t_output_helper(resultobj,o);
13427 }
13428 {
13429 if (temp2)
13430 delete arg2;
13431 }
13432 return resultobj;
13433 fail:
13434 {
13435 if (temp2)
13436 delete arg2;
13437 }
13438 return NULL;
13439 }
13440
13441
13442 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13443 PyObject *resultobj;
13444 wxDC *arg1 = (wxDC *) 0 ;
13445 wxString *arg2 = 0 ;
13446 wxArrayInt result;
13447 bool temp2 = False ;
13448 PyObject * obj0 = 0 ;
13449 PyObject * obj1 = 0 ;
13450 char *kwnames[] = {
13451 (char *) "self",(char *) "text", NULL
13452 };
13453
13454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13457 {
13458 arg2 = wxString_in_helper(obj1);
13459 if (arg2 == NULL) SWIG_fail;
13460 temp2 = True;
13461 }
13462 {
13463 PyThreadState* __tstate = wxPyBeginAllowThreads();
13464 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13465
13466 wxPyEndAllowThreads(__tstate);
13467 if (PyErr_Occurred()) SWIG_fail;
13468 }
13469 {
13470 resultobj = PyList_New(0);
13471 size_t idx;
13472 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13473 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13474 PyList_Append(resultobj, val);
13475 Py_DECREF(val);
13476 }
13477 }
13478 {
13479 if (temp2)
13480 delete arg2;
13481 }
13482 return resultobj;
13483 fail:
13484 {
13485 if (temp2)
13486 delete arg2;
13487 }
13488 return NULL;
13489 }
13490
13491
13492 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13493 PyObject *resultobj;
13494 wxDC *arg1 = (wxDC *) 0 ;
13495 wxSize result;
13496 PyObject * obj0 = 0 ;
13497 char *kwnames[] = {
13498 (char *) "self", NULL
13499 };
13500
13501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13504 {
13505 PyThreadState* __tstate = wxPyBeginAllowThreads();
13506 result = (arg1)->GetSize();
13507
13508 wxPyEndAllowThreads(__tstate);
13509 if (PyErr_Occurred()) SWIG_fail;
13510 }
13511 {
13512 wxSize * resultptr;
13513 resultptr = new wxSize((wxSize &) result);
13514 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13515 }
13516 return resultobj;
13517 fail:
13518 return NULL;
13519 }
13520
13521
13522 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13523 PyObject *resultobj;
13524 wxDC *arg1 = (wxDC *) 0 ;
13525 int *arg2 = (int *) 0 ;
13526 int *arg3 = (int *) 0 ;
13527 int temp2 ;
13528 int temp3 ;
13529 PyObject * obj0 = 0 ;
13530 char *kwnames[] = {
13531 (char *) "self", NULL
13532 };
13533
13534 arg2 = &temp2;
13535 arg3 = &temp3;
13536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13539 {
13540 PyThreadState* __tstate = wxPyBeginAllowThreads();
13541 (arg1)->GetSize(arg2,arg3);
13542
13543 wxPyEndAllowThreads(__tstate);
13544 if (PyErr_Occurred()) SWIG_fail;
13545 }
13546 Py_INCREF(Py_None); resultobj = Py_None;
13547 {
13548 PyObject *o = PyInt_FromLong((long) (*arg2));
13549 resultobj = t_output_helper(resultobj,o);
13550 }
13551 {
13552 PyObject *o = PyInt_FromLong((long) (*arg3));
13553 resultobj = t_output_helper(resultobj,o);
13554 }
13555 return resultobj;
13556 fail:
13557 return NULL;
13558 }
13559
13560
13561 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13562 PyObject *resultobj;
13563 wxDC *arg1 = (wxDC *) 0 ;
13564 wxSize result;
13565 PyObject * obj0 = 0 ;
13566 char *kwnames[] = {
13567 (char *) "self", NULL
13568 };
13569
13570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 result = ((wxDC const *)arg1)->GetSizeMM();
13576
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 {
13581 wxSize * resultptr;
13582 resultptr = new wxSize((wxSize &) result);
13583 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13584 }
13585 return resultobj;
13586 fail:
13587 return NULL;
13588 }
13589
13590
13591 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13592 PyObject *resultobj;
13593 wxDC *arg1 = (wxDC *) 0 ;
13594 int *arg2 = (int *) 0 ;
13595 int *arg3 = (int *) 0 ;
13596 int temp2 ;
13597 int temp3 ;
13598 PyObject * obj0 = 0 ;
13599 char *kwnames[] = {
13600 (char *) "self", NULL
13601 };
13602
13603 arg2 = &temp2;
13604 arg3 = &temp3;
13605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13608 {
13609 PyThreadState* __tstate = wxPyBeginAllowThreads();
13610 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13611
13612 wxPyEndAllowThreads(__tstate);
13613 if (PyErr_Occurred()) SWIG_fail;
13614 }
13615 Py_INCREF(Py_None); resultobj = Py_None;
13616 {
13617 PyObject *o = PyInt_FromLong((long) (*arg2));
13618 resultobj = t_output_helper(resultobj,o);
13619 }
13620 {
13621 PyObject *o = PyInt_FromLong((long) (*arg3));
13622 resultobj = t_output_helper(resultobj,o);
13623 }
13624 return resultobj;
13625 fail:
13626 return NULL;
13627 }
13628
13629
13630 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13631 PyObject *resultobj;
13632 wxDC *arg1 = (wxDC *) 0 ;
13633 int arg2 ;
13634 int result;
13635 PyObject * obj0 = 0 ;
13636 PyObject * obj1 = 0 ;
13637 char *kwnames[] = {
13638 (char *) "self",(char *) "x", NULL
13639 };
13640
13641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13644 arg2 = (int) SWIG_AsInt(obj1);
13645 if (PyErr_Occurred()) SWIG_fail;
13646 {
13647 PyThreadState* __tstate = wxPyBeginAllowThreads();
13648 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13649
13650 wxPyEndAllowThreads(__tstate);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 resultobj = SWIG_FromInt((int)result);
13654 return resultobj;
13655 fail:
13656 return NULL;
13657 }
13658
13659
13660 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13661 PyObject *resultobj;
13662 wxDC *arg1 = (wxDC *) 0 ;
13663 int arg2 ;
13664 int result;
13665 PyObject * obj0 = 0 ;
13666 PyObject * obj1 = 0 ;
13667 char *kwnames[] = {
13668 (char *) "self",(char *) "y", NULL
13669 };
13670
13671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13674 arg2 = (int) SWIG_AsInt(obj1);
13675 if (PyErr_Occurred()) SWIG_fail;
13676 {
13677 PyThreadState* __tstate = wxPyBeginAllowThreads();
13678 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13679
13680 wxPyEndAllowThreads(__tstate);
13681 if (PyErr_Occurred()) SWIG_fail;
13682 }
13683 resultobj = SWIG_FromInt((int)result);
13684 return resultobj;
13685 fail:
13686 return NULL;
13687 }
13688
13689
13690 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13691 PyObject *resultobj;
13692 wxDC *arg1 = (wxDC *) 0 ;
13693 int arg2 ;
13694 int result;
13695 PyObject * obj0 = 0 ;
13696 PyObject * obj1 = 0 ;
13697 char *kwnames[] = {
13698 (char *) "self",(char *) "x", NULL
13699 };
13700
13701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13704 arg2 = (int) SWIG_AsInt(obj1);
13705 if (PyErr_Occurred()) SWIG_fail;
13706 {
13707 PyThreadState* __tstate = wxPyBeginAllowThreads();
13708 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13709
13710 wxPyEndAllowThreads(__tstate);
13711 if (PyErr_Occurred()) SWIG_fail;
13712 }
13713 resultobj = SWIG_FromInt((int)result);
13714 return resultobj;
13715 fail:
13716 return NULL;
13717 }
13718
13719
13720 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13721 PyObject *resultobj;
13722 wxDC *arg1 = (wxDC *) 0 ;
13723 int arg2 ;
13724 int result;
13725 PyObject * obj0 = 0 ;
13726 PyObject * obj1 = 0 ;
13727 char *kwnames[] = {
13728 (char *) "self",(char *) "y", NULL
13729 };
13730
13731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13734 arg2 = (int) SWIG_AsInt(obj1);
13735 if (PyErr_Occurred()) SWIG_fail;
13736 {
13737 PyThreadState* __tstate = wxPyBeginAllowThreads();
13738 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13739
13740 wxPyEndAllowThreads(__tstate);
13741 if (PyErr_Occurred()) SWIG_fail;
13742 }
13743 resultobj = SWIG_FromInt((int)result);
13744 return resultobj;
13745 fail:
13746 return NULL;
13747 }
13748
13749
13750 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13751 PyObject *resultobj;
13752 wxDC *arg1 = (wxDC *) 0 ;
13753 int arg2 ;
13754 int result;
13755 PyObject * obj0 = 0 ;
13756 PyObject * obj1 = 0 ;
13757 char *kwnames[] = {
13758 (char *) "self",(char *) "x", NULL
13759 };
13760
13761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13764 arg2 = (int) SWIG_AsInt(obj1);
13765 if (PyErr_Occurred()) SWIG_fail;
13766 {
13767 PyThreadState* __tstate = wxPyBeginAllowThreads();
13768 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
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_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13781 PyObject *resultobj;
13782 wxDC *arg1 = (wxDC *) 0 ;
13783 int arg2 ;
13784 int result;
13785 PyObject * obj0 = 0 ;
13786 PyObject * obj1 = 0 ;
13787 char *kwnames[] = {
13788 (char *) "self",(char *) "y", NULL
13789 };
13790
13791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13794 arg2 = (int) SWIG_AsInt(obj1);
13795 if (PyErr_Occurred()) SWIG_fail;
13796 {
13797 PyThreadState* __tstate = wxPyBeginAllowThreads();
13798 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13799
13800 wxPyEndAllowThreads(__tstate);
13801 if (PyErr_Occurred()) SWIG_fail;
13802 }
13803 resultobj = SWIG_FromInt((int)result);
13804 return resultobj;
13805 fail:
13806 return NULL;
13807 }
13808
13809
13810 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13811 PyObject *resultobj;
13812 wxDC *arg1 = (wxDC *) 0 ;
13813 int arg2 ;
13814 int result;
13815 PyObject * obj0 = 0 ;
13816 PyObject * obj1 = 0 ;
13817 char *kwnames[] = {
13818 (char *) "self",(char *) "x", NULL
13819 };
13820
13821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13824 arg2 = (int) SWIG_AsInt(obj1);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 {
13827 PyThreadState* __tstate = wxPyBeginAllowThreads();
13828 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13829
13830 wxPyEndAllowThreads(__tstate);
13831 if (PyErr_Occurred()) SWIG_fail;
13832 }
13833 resultobj = SWIG_FromInt((int)result);
13834 return resultobj;
13835 fail:
13836 return NULL;
13837 }
13838
13839
13840 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13841 PyObject *resultobj;
13842 wxDC *arg1 = (wxDC *) 0 ;
13843 int arg2 ;
13844 int result;
13845 PyObject * obj0 = 0 ;
13846 PyObject * obj1 = 0 ;
13847 char *kwnames[] = {
13848 (char *) "self",(char *) "y", NULL
13849 };
13850
13851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13854 arg2 = (int) SWIG_AsInt(obj1);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 {
13857 PyThreadState* __tstate = wxPyBeginAllowThreads();
13858 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13859
13860 wxPyEndAllowThreads(__tstate);
13861 if (PyErr_Occurred()) SWIG_fail;
13862 }
13863 resultobj = SWIG_FromInt((int)result);
13864 return resultobj;
13865 fail:
13866 return NULL;
13867 }
13868
13869
13870 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13871 PyObject *resultobj;
13872 wxDC *arg1 = (wxDC *) 0 ;
13873 bool result;
13874 PyObject * obj0 = 0 ;
13875 char *kwnames[] = {
13876 (char *) "self", NULL
13877 };
13878
13879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13882 {
13883 PyThreadState* __tstate = wxPyBeginAllowThreads();
13884 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13885
13886 wxPyEndAllowThreads(__tstate);
13887 if (PyErr_Occurred()) SWIG_fail;
13888 }
13889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13890 return resultobj;
13891 fail:
13892 return NULL;
13893 }
13894
13895
13896 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13897 PyObject *resultobj;
13898 wxDC *arg1 = (wxDC *) 0 ;
13899 bool result;
13900 PyObject * obj0 = 0 ;
13901 char *kwnames[] = {
13902 (char *) "self", NULL
13903 };
13904
13905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13908 {
13909 PyThreadState* __tstate = wxPyBeginAllowThreads();
13910 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13911
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13916 return resultobj;
13917 fail:
13918 return NULL;
13919 }
13920
13921
13922 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13923 PyObject *resultobj;
13924 wxDC *arg1 = (wxDC *) 0 ;
13925 int result;
13926 PyObject * obj0 = 0 ;
13927 char *kwnames[] = {
13928 (char *) "self", NULL
13929 };
13930
13931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13934 {
13935 PyThreadState* __tstate = wxPyBeginAllowThreads();
13936 result = (int)((wxDC const *)arg1)->GetDepth();
13937
13938 wxPyEndAllowThreads(__tstate);
13939 if (PyErr_Occurred()) SWIG_fail;
13940 }
13941 resultobj = SWIG_FromInt((int)result);
13942 return resultobj;
13943 fail:
13944 return NULL;
13945 }
13946
13947
13948 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13949 PyObject *resultobj;
13950 wxDC *arg1 = (wxDC *) 0 ;
13951 wxSize result;
13952 PyObject * obj0 = 0 ;
13953 char *kwnames[] = {
13954 (char *) "self", NULL
13955 };
13956
13957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13960 {
13961 PyThreadState* __tstate = wxPyBeginAllowThreads();
13962 result = ((wxDC const *)arg1)->GetPPI();
13963
13964 wxPyEndAllowThreads(__tstate);
13965 if (PyErr_Occurred()) SWIG_fail;
13966 }
13967 {
13968 wxSize * resultptr;
13969 resultptr = new wxSize((wxSize &) result);
13970 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13971 }
13972 return resultobj;
13973 fail:
13974 return NULL;
13975 }
13976
13977
13978 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13979 PyObject *resultobj;
13980 wxDC *arg1 = (wxDC *) 0 ;
13981 bool result;
13982 PyObject * obj0 = 0 ;
13983 char *kwnames[] = {
13984 (char *) "self", NULL
13985 };
13986
13987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 result = (bool)((wxDC const *)arg1)->Ok();
13993
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13998 return resultobj;
13999 fail:
14000 return NULL;
14001 }
14002
14003
14004 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14005 PyObject *resultobj;
14006 wxDC *arg1 = (wxDC *) 0 ;
14007 int result;
14008 PyObject * obj0 = 0 ;
14009 char *kwnames[] = {
14010 (char *) "self", NULL
14011 };
14012
14013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14016 {
14017 PyThreadState* __tstate = wxPyBeginAllowThreads();
14018 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14019
14020 wxPyEndAllowThreads(__tstate);
14021 if (PyErr_Occurred()) SWIG_fail;
14022 }
14023 resultobj = SWIG_FromInt((int)result);
14024 return resultobj;
14025 fail:
14026 return NULL;
14027 }
14028
14029
14030 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14031 PyObject *resultobj;
14032 wxDC *arg1 = (wxDC *) 0 ;
14033 wxBrush *result;
14034 PyObject * obj0 = 0 ;
14035 char *kwnames[] = {
14036 (char *) "self", NULL
14037 };
14038
14039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",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 {
14045 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14046 result = (wxBrush *) &_result_ref;
14047 }
14048
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
14053 return resultobj;
14054 fail:
14055 return NULL;
14056 }
14057
14058
14059 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14060 PyObject *resultobj;
14061 wxDC *arg1 = (wxDC *) 0 ;
14062 wxBrush *result;
14063 PyObject * obj0 = 0 ;
14064 char *kwnames[] = {
14065 (char *) "self", NULL
14066 };
14067
14068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14071 {
14072 PyThreadState* __tstate = wxPyBeginAllowThreads();
14073 {
14074 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14075 result = (wxBrush *) &_result_ref;
14076 }
14077
14078 wxPyEndAllowThreads(__tstate);
14079 if (PyErr_Occurred()) SWIG_fail;
14080 }
14081 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
14082 return resultobj;
14083 fail:
14084 return NULL;
14085 }
14086
14087
14088 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14089 PyObject *resultobj;
14090 wxDC *arg1 = (wxDC *) 0 ;
14091 wxFont *result;
14092 PyObject * obj0 = 0 ;
14093 char *kwnames[] = {
14094 (char *) "self", NULL
14095 };
14096
14097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14100 {
14101 PyThreadState* __tstate = wxPyBeginAllowThreads();
14102 {
14103 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14104 result = (wxFont *) &_result_ref;
14105 }
14106
14107 wxPyEndAllowThreads(__tstate);
14108 if (PyErr_Occurred()) SWIG_fail;
14109 }
14110 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
14111 return resultobj;
14112 fail:
14113 return NULL;
14114 }
14115
14116
14117 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14118 PyObject *resultobj;
14119 wxDC *arg1 = (wxDC *) 0 ;
14120 wxPen *result;
14121 PyObject * obj0 = 0 ;
14122 char *kwnames[] = {
14123 (char *) "self", NULL
14124 };
14125
14126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14129 {
14130 PyThreadState* __tstate = wxPyBeginAllowThreads();
14131 {
14132 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14133 result = (wxPen *) &_result_ref;
14134 }
14135
14136 wxPyEndAllowThreads(__tstate);
14137 if (PyErr_Occurred()) SWIG_fail;
14138 }
14139 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
14140 return resultobj;
14141 fail:
14142 return NULL;
14143 }
14144
14145
14146 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14147 PyObject *resultobj;
14148 wxDC *arg1 = (wxDC *) 0 ;
14149 wxColour *result;
14150 PyObject * obj0 = 0 ;
14151 char *kwnames[] = {
14152 (char *) "self", NULL
14153 };
14154
14155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14158 {
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 {
14161 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14162 result = (wxColour *) &_result_ref;
14163 }
14164
14165 wxPyEndAllowThreads(__tstate);
14166 if (PyErr_Occurred()) SWIG_fail;
14167 }
14168 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14169 return resultobj;
14170 fail:
14171 return NULL;
14172 }
14173
14174
14175 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14176 PyObject *resultobj;
14177 wxDC *arg1 = (wxDC *) 0 ;
14178 wxColour *result;
14179 PyObject * obj0 = 0 ;
14180 char *kwnames[] = {
14181 (char *) "self", NULL
14182 };
14183
14184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14187 {
14188 PyThreadState* __tstate = wxPyBeginAllowThreads();
14189 {
14190 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14191 result = (wxColour *) &_result_ref;
14192 }
14193
14194 wxPyEndAllowThreads(__tstate);
14195 if (PyErr_Occurred()) SWIG_fail;
14196 }
14197 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14198 return resultobj;
14199 fail:
14200 return NULL;
14201 }
14202
14203
14204 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14205 PyObject *resultobj;
14206 wxDC *arg1 = (wxDC *) 0 ;
14207 wxColour *arg2 = 0 ;
14208 wxColour temp2 ;
14209 PyObject * obj0 = 0 ;
14210 PyObject * obj1 = 0 ;
14211 char *kwnames[] = {
14212 (char *) "self",(char *) "colour", NULL
14213 };
14214
14215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14218 {
14219 arg2 = &temp2;
14220 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14221 }
14222 {
14223 PyThreadState* __tstate = wxPyBeginAllowThreads();
14224 (arg1)->SetTextForeground((wxColour const &)*arg2);
14225
14226 wxPyEndAllowThreads(__tstate);
14227 if (PyErr_Occurred()) SWIG_fail;
14228 }
14229 Py_INCREF(Py_None); resultobj = Py_None;
14230 return resultobj;
14231 fail:
14232 return NULL;
14233 }
14234
14235
14236 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14237 PyObject *resultobj;
14238 wxDC *arg1 = (wxDC *) 0 ;
14239 wxColour *arg2 = 0 ;
14240 wxColour temp2 ;
14241 PyObject * obj0 = 0 ;
14242 PyObject * obj1 = 0 ;
14243 char *kwnames[] = {
14244 (char *) "self",(char *) "colour", NULL
14245 };
14246
14247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14250 {
14251 arg2 = &temp2;
14252 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14253 }
14254 {
14255 PyThreadState* __tstate = wxPyBeginAllowThreads();
14256 (arg1)->SetTextBackground((wxColour const &)*arg2);
14257
14258 wxPyEndAllowThreads(__tstate);
14259 if (PyErr_Occurred()) SWIG_fail;
14260 }
14261 Py_INCREF(Py_None); resultobj = Py_None;
14262 return resultobj;
14263 fail:
14264 return NULL;
14265 }
14266
14267
14268 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14269 PyObject *resultobj;
14270 wxDC *arg1 = (wxDC *) 0 ;
14271 int result;
14272 PyObject * obj0 = 0 ;
14273 char *kwnames[] = {
14274 (char *) "self", NULL
14275 };
14276
14277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14280 {
14281 PyThreadState* __tstate = wxPyBeginAllowThreads();
14282 result = (int)((wxDC const *)arg1)->GetMapMode();
14283
14284 wxPyEndAllowThreads(__tstate);
14285 if (PyErr_Occurred()) SWIG_fail;
14286 }
14287 resultobj = SWIG_FromInt((int)result);
14288 return resultobj;
14289 fail:
14290 return NULL;
14291 }
14292
14293
14294 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14295 PyObject *resultobj;
14296 wxDC *arg1 = (wxDC *) 0 ;
14297 int arg2 ;
14298 PyObject * obj0 = 0 ;
14299 PyObject * obj1 = 0 ;
14300 char *kwnames[] = {
14301 (char *) "self",(char *) "mode", NULL
14302 };
14303
14304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14307 arg2 = (int) SWIG_AsInt(obj1);
14308 if (PyErr_Occurred()) SWIG_fail;
14309 {
14310 PyThreadState* __tstate = wxPyBeginAllowThreads();
14311 (arg1)->SetMapMode(arg2);
14312
14313 wxPyEndAllowThreads(__tstate);
14314 if (PyErr_Occurred()) SWIG_fail;
14315 }
14316 Py_INCREF(Py_None); resultobj = Py_None;
14317 return resultobj;
14318 fail:
14319 return NULL;
14320 }
14321
14322
14323 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14324 PyObject *resultobj;
14325 wxDC *arg1 = (wxDC *) 0 ;
14326 double *arg2 = (double *) 0 ;
14327 double *arg3 = (double *) 0 ;
14328 double temp2 ;
14329 double temp3 ;
14330 PyObject * obj0 = 0 ;
14331 char *kwnames[] = {
14332 (char *) "self", NULL
14333 };
14334
14335 arg2 = &temp2;
14336 arg3 = &temp3;
14337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14340 {
14341 PyThreadState* __tstate = wxPyBeginAllowThreads();
14342 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14343
14344 wxPyEndAllowThreads(__tstate);
14345 if (PyErr_Occurred()) SWIG_fail;
14346 }
14347 Py_INCREF(Py_None); resultobj = Py_None;
14348 {
14349 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14350 resultobj = t_output_helper(resultobj,o);
14351 }
14352 {
14353 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14354 resultobj = t_output_helper(resultobj,o);
14355 }
14356 return resultobj;
14357 fail:
14358 return NULL;
14359 }
14360
14361
14362 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14363 PyObject *resultobj;
14364 wxDC *arg1 = (wxDC *) 0 ;
14365 double arg2 ;
14366 double arg3 ;
14367 PyObject * obj0 = 0 ;
14368 PyObject * obj1 = 0 ;
14369 PyObject * obj2 = 0 ;
14370 char *kwnames[] = {
14371 (char *) "self",(char *) "x",(char *) "y", NULL
14372 };
14373
14374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14377 arg2 = (double) SWIG_AsDouble(obj1);
14378 if (PyErr_Occurred()) SWIG_fail;
14379 arg3 = (double) SWIG_AsDouble(obj2);
14380 if (PyErr_Occurred()) SWIG_fail;
14381 {
14382 PyThreadState* __tstate = wxPyBeginAllowThreads();
14383 (arg1)->SetUserScale(arg2,arg3);
14384
14385 wxPyEndAllowThreads(__tstate);
14386 if (PyErr_Occurred()) SWIG_fail;
14387 }
14388 Py_INCREF(Py_None); resultobj = Py_None;
14389 return resultobj;
14390 fail:
14391 return NULL;
14392 }
14393
14394
14395 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14396 PyObject *resultobj;
14397 wxDC *arg1 = (wxDC *) 0 ;
14398 double *arg2 = (double *) 0 ;
14399 double *arg3 = (double *) 0 ;
14400 double temp2 ;
14401 double temp3 ;
14402 PyObject * obj0 = 0 ;
14403 char *kwnames[] = {
14404 (char *) "self", NULL
14405 };
14406
14407 arg2 = &temp2;
14408 arg3 = &temp3;
14409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14412 {
14413 PyThreadState* __tstate = wxPyBeginAllowThreads();
14414 (arg1)->GetLogicalScale(arg2,arg3);
14415
14416 wxPyEndAllowThreads(__tstate);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 }
14419 Py_INCREF(Py_None); resultobj = Py_None;
14420 {
14421 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14422 resultobj = t_output_helper(resultobj,o);
14423 }
14424 {
14425 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14426 resultobj = t_output_helper(resultobj,o);
14427 }
14428 return resultobj;
14429 fail:
14430 return NULL;
14431 }
14432
14433
14434 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14435 PyObject *resultobj;
14436 wxDC *arg1 = (wxDC *) 0 ;
14437 double arg2 ;
14438 double arg3 ;
14439 PyObject * obj0 = 0 ;
14440 PyObject * obj1 = 0 ;
14441 PyObject * obj2 = 0 ;
14442 char *kwnames[] = {
14443 (char *) "self",(char *) "x",(char *) "y", NULL
14444 };
14445
14446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14449 arg2 = (double) SWIG_AsDouble(obj1);
14450 if (PyErr_Occurred()) SWIG_fail;
14451 arg3 = (double) SWIG_AsDouble(obj2);
14452 if (PyErr_Occurred()) SWIG_fail;
14453 {
14454 PyThreadState* __tstate = wxPyBeginAllowThreads();
14455 (arg1)->SetLogicalScale(arg2,arg3);
14456
14457 wxPyEndAllowThreads(__tstate);
14458 if (PyErr_Occurred()) SWIG_fail;
14459 }
14460 Py_INCREF(Py_None); resultobj = Py_None;
14461 return resultobj;
14462 fail:
14463 return NULL;
14464 }
14465
14466
14467 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14468 PyObject *resultobj;
14469 wxDC *arg1 = (wxDC *) 0 ;
14470 wxPoint result;
14471 PyObject * obj0 = 0 ;
14472 char *kwnames[] = {
14473 (char *) "self", NULL
14474 };
14475
14476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14479 {
14480 PyThreadState* __tstate = wxPyBeginAllowThreads();
14481 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14482
14483 wxPyEndAllowThreads(__tstate);
14484 if (PyErr_Occurred()) SWIG_fail;
14485 }
14486 {
14487 wxPoint * resultptr;
14488 resultptr = new wxPoint((wxPoint &) result);
14489 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14490 }
14491 return resultobj;
14492 fail:
14493 return NULL;
14494 }
14495
14496
14497 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14498 PyObject *resultobj;
14499 wxDC *arg1 = (wxDC *) 0 ;
14500 int *arg2 = (int *) 0 ;
14501 int *arg3 = (int *) 0 ;
14502 int temp2 ;
14503 int temp3 ;
14504 PyObject * obj0 = 0 ;
14505 char *kwnames[] = {
14506 (char *) "self", NULL
14507 };
14508
14509 arg2 = &temp2;
14510 arg3 = &temp3;
14511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14514 {
14515 PyThreadState* __tstate = wxPyBeginAllowThreads();
14516 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14517
14518 wxPyEndAllowThreads(__tstate);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 Py_INCREF(Py_None); resultobj = Py_None;
14522 {
14523 PyObject *o = PyInt_FromLong((long) (*arg2));
14524 resultobj = t_output_helper(resultobj,o);
14525 }
14526 {
14527 PyObject *o = PyInt_FromLong((long) (*arg3));
14528 resultobj = t_output_helper(resultobj,o);
14529 }
14530 return resultobj;
14531 fail:
14532 return NULL;
14533 }
14534
14535
14536 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14537 PyObject *resultobj;
14538 wxDC *arg1 = (wxDC *) 0 ;
14539 int arg2 ;
14540 int arg3 ;
14541 PyObject * obj0 = 0 ;
14542 PyObject * obj1 = 0 ;
14543 PyObject * obj2 = 0 ;
14544 char *kwnames[] = {
14545 (char *) "self",(char *) "x",(char *) "y", NULL
14546 };
14547
14548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14551 arg2 = (int) SWIG_AsInt(obj1);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 arg3 = (int) SWIG_AsInt(obj2);
14554 if (PyErr_Occurred()) SWIG_fail;
14555 {
14556 PyThreadState* __tstate = wxPyBeginAllowThreads();
14557 (arg1)->SetLogicalOrigin(arg2,arg3);
14558
14559 wxPyEndAllowThreads(__tstate);
14560 if (PyErr_Occurred()) SWIG_fail;
14561 }
14562 Py_INCREF(Py_None); resultobj = Py_None;
14563 return resultobj;
14564 fail:
14565 return NULL;
14566 }
14567
14568
14569 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14570 PyObject *resultobj;
14571 wxDC *arg1 = (wxDC *) 0 ;
14572 wxPoint result;
14573 PyObject * obj0 = 0 ;
14574 char *kwnames[] = {
14575 (char *) "self", NULL
14576 };
14577
14578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14581 {
14582 PyThreadState* __tstate = wxPyBeginAllowThreads();
14583 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14584
14585 wxPyEndAllowThreads(__tstate);
14586 if (PyErr_Occurred()) SWIG_fail;
14587 }
14588 {
14589 wxPoint * resultptr;
14590 resultptr = new wxPoint((wxPoint &) result);
14591 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14592 }
14593 return resultobj;
14594 fail:
14595 return NULL;
14596 }
14597
14598
14599 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14600 PyObject *resultobj;
14601 wxDC *arg1 = (wxDC *) 0 ;
14602 int *arg2 = (int *) 0 ;
14603 int *arg3 = (int *) 0 ;
14604 int temp2 ;
14605 int temp3 ;
14606 PyObject * obj0 = 0 ;
14607 char *kwnames[] = {
14608 (char *) "self", NULL
14609 };
14610
14611 arg2 = &temp2;
14612 arg3 = &temp3;
14613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14616 {
14617 PyThreadState* __tstate = wxPyBeginAllowThreads();
14618 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14619
14620 wxPyEndAllowThreads(__tstate);
14621 if (PyErr_Occurred()) SWIG_fail;
14622 }
14623 Py_INCREF(Py_None); resultobj = Py_None;
14624 {
14625 PyObject *o = PyInt_FromLong((long) (*arg2));
14626 resultobj = t_output_helper(resultobj,o);
14627 }
14628 {
14629 PyObject *o = PyInt_FromLong((long) (*arg3));
14630 resultobj = t_output_helper(resultobj,o);
14631 }
14632 return resultobj;
14633 fail:
14634 return NULL;
14635 }
14636
14637
14638 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14639 PyObject *resultobj;
14640 wxDC *arg1 = (wxDC *) 0 ;
14641 int arg2 ;
14642 int arg3 ;
14643 PyObject * obj0 = 0 ;
14644 PyObject * obj1 = 0 ;
14645 PyObject * obj2 = 0 ;
14646 char *kwnames[] = {
14647 (char *) "self",(char *) "x",(char *) "y", NULL
14648 };
14649
14650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14653 arg2 = (int) SWIG_AsInt(obj1);
14654 if (PyErr_Occurred()) SWIG_fail;
14655 arg3 = (int) SWIG_AsInt(obj2);
14656 if (PyErr_Occurred()) SWIG_fail;
14657 {
14658 PyThreadState* __tstate = wxPyBeginAllowThreads();
14659 (arg1)->SetDeviceOrigin(arg2,arg3);
14660
14661 wxPyEndAllowThreads(__tstate);
14662 if (PyErr_Occurred()) SWIG_fail;
14663 }
14664 Py_INCREF(Py_None); resultobj = Py_None;
14665 return resultobj;
14666 fail:
14667 return NULL;
14668 }
14669
14670
14671 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14672 PyObject *resultobj;
14673 wxDC *arg1 = (wxDC *) 0 ;
14674 bool arg2 ;
14675 bool arg3 ;
14676 PyObject * obj0 = 0 ;
14677 PyObject * obj1 = 0 ;
14678 PyObject * obj2 = 0 ;
14679 char *kwnames[] = {
14680 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14681 };
14682
14683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14686 arg2 = (bool) SWIG_AsBool(obj1);
14687 if (PyErr_Occurred()) SWIG_fail;
14688 arg3 = (bool) SWIG_AsBool(obj2);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 {
14691 PyThreadState* __tstate = wxPyBeginAllowThreads();
14692 (arg1)->SetAxisOrientation(arg2,arg3);
14693
14694 wxPyEndAllowThreads(__tstate);
14695 if (PyErr_Occurred()) SWIG_fail;
14696 }
14697 Py_INCREF(Py_None); resultobj = Py_None;
14698 return resultobj;
14699 fail:
14700 return NULL;
14701 }
14702
14703
14704 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14705 PyObject *resultobj;
14706 wxDC *arg1 = (wxDC *) 0 ;
14707 int result;
14708 PyObject * obj0 = 0 ;
14709 char *kwnames[] = {
14710 (char *) "self", NULL
14711 };
14712
14713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14716 {
14717 PyThreadState* __tstate = wxPyBeginAllowThreads();
14718 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14719
14720 wxPyEndAllowThreads(__tstate);
14721 if (PyErr_Occurred()) SWIG_fail;
14722 }
14723 resultobj = SWIG_FromInt((int)result);
14724 return resultobj;
14725 fail:
14726 return NULL;
14727 }
14728
14729
14730 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14731 PyObject *resultobj;
14732 wxDC *arg1 = (wxDC *) 0 ;
14733 int arg2 ;
14734 PyObject * obj0 = 0 ;
14735 PyObject * obj1 = 0 ;
14736 char *kwnames[] = {
14737 (char *) "self",(char *) "function", NULL
14738 };
14739
14740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14743 arg2 = (int) SWIG_AsInt(obj1);
14744 if (PyErr_Occurred()) SWIG_fail;
14745 {
14746 PyThreadState* __tstate = wxPyBeginAllowThreads();
14747 (arg1)->SetLogicalFunction(arg2);
14748
14749 wxPyEndAllowThreads(__tstate);
14750 if (PyErr_Occurred()) SWIG_fail;
14751 }
14752 Py_INCREF(Py_None); resultobj = Py_None;
14753 return resultobj;
14754 fail:
14755 return NULL;
14756 }
14757
14758
14759 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14760 PyObject *resultobj;
14761 wxDC *arg1 = (wxDC *) 0 ;
14762 bool arg2 ;
14763 PyObject * obj0 = 0 ;
14764 PyObject * obj1 = 0 ;
14765 char *kwnames[] = {
14766 (char *) "self",(char *) "opt", NULL
14767 };
14768
14769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14772 arg2 = (bool) SWIG_AsBool(obj1);
14773 if (PyErr_Occurred()) SWIG_fail;
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 (arg1)->SetOptimization(arg2);
14777
14778 wxPyEndAllowThreads(__tstate);
14779 if (PyErr_Occurred()) SWIG_fail;
14780 }
14781 Py_INCREF(Py_None); resultobj = Py_None;
14782 return resultobj;
14783 fail:
14784 return NULL;
14785 }
14786
14787
14788 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14789 PyObject *resultobj;
14790 wxDC *arg1 = (wxDC *) 0 ;
14791 bool result;
14792 PyObject * obj0 = 0 ;
14793 char *kwnames[] = {
14794 (char *) "self", NULL
14795 };
14796
14797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = (bool)(arg1)->GetOptimization();
14803
14804 wxPyEndAllowThreads(__tstate);
14805 if (PyErr_Occurred()) SWIG_fail;
14806 }
14807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14808 return resultobj;
14809 fail:
14810 return NULL;
14811 }
14812
14813
14814 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14815 PyObject *resultobj;
14816 wxDC *arg1 = (wxDC *) 0 ;
14817 int arg2 ;
14818 int arg3 ;
14819 PyObject * obj0 = 0 ;
14820 PyObject * obj1 = 0 ;
14821 PyObject * obj2 = 0 ;
14822 char *kwnames[] = {
14823 (char *) "self",(char *) "x",(char *) "y", NULL
14824 };
14825
14826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14829 arg2 = (int) SWIG_AsInt(obj1);
14830 if (PyErr_Occurred()) SWIG_fail;
14831 arg3 = (int) SWIG_AsInt(obj2);
14832 if (PyErr_Occurred()) SWIG_fail;
14833 {
14834 PyThreadState* __tstate = wxPyBeginAllowThreads();
14835 (arg1)->CalcBoundingBox(arg2,arg3);
14836
14837 wxPyEndAllowThreads(__tstate);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 Py_INCREF(Py_None); resultobj = Py_None;
14841 return resultobj;
14842 fail:
14843 return NULL;
14844 }
14845
14846
14847 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14848 PyObject *resultobj;
14849 wxDC *arg1 = (wxDC *) 0 ;
14850 PyObject * obj0 = 0 ;
14851 char *kwnames[] = {
14852 (char *) "self", NULL
14853 };
14854
14855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14858 {
14859 PyThreadState* __tstate = wxPyBeginAllowThreads();
14860 (arg1)->ResetBoundingBox();
14861
14862 wxPyEndAllowThreads(__tstate);
14863 if (PyErr_Occurred()) SWIG_fail;
14864 }
14865 Py_INCREF(Py_None); resultobj = Py_None;
14866 return resultobj;
14867 fail:
14868 return NULL;
14869 }
14870
14871
14872 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14873 PyObject *resultobj;
14874 wxDC *arg1 = (wxDC *) 0 ;
14875 int result;
14876 PyObject * obj0 = 0 ;
14877 char *kwnames[] = {
14878 (char *) "self", NULL
14879 };
14880
14881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14884 {
14885 PyThreadState* __tstate = wxPyBeginAllowThreads();
14886 result = (int)((wxDC const *)arg1)->MinX();
14887
14888 wxPyEndAllowThreads(__tstate);
14889 if (PyErr_Occurred()) SWIG_fail;
14890 }
14891 resultobj = SWIG_FromInt((int)result);
14892 return resultobj;
14893 fail:
14894 return NULL;
14895 }
14896
14897
14898 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14899 PyObject *resultobj;
14900 wxDC *arg1 = (wxDC *) 0 ;
14901 int result;
14902 PyObject * obj0 = 0 ;
14903 char *kwnames[] = {
14904 (char *) "self", NULL
14905 };
14906
14907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14910 {
14911 PyThreadState* __tstate = wxPyBeginAllowThreads();
14912 result = (int)((wxDC const *)arg1)->MaxX();
14913
14914 wxPyEndAllowThreads(__tstate);
14915 if (PyErr_Occurred()) SWIG_fail;
14916 }
14917 resultobj = SWIG_FromInt((int)result);
14918 return resultobj;
14919 fail:
14920 return NULL;
14921 }
14922
14923
14924 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14925 PyObject *resultobj;
14926 wxDC *arg1 = (wxDC *) 0 ;
14927 int result;
14928 PyObject * obj0 = 0 ;
14929 char *kwnames[] = {
14930 (char *) "self", NULL
14931 };
14932
14933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 result = (int)((wxDC const *)arg1)->MinY();
14939
14940 wxPyEndAllowThreads(__tstate);
14941 if (PyErr_Occurred()) SWIG_fail;
14942 }
14943 resultobj = SWIG_FromInt((int)result);
14944 return resultobj;
14945 fail:
14946 return NULL;
14947 }
14948
14949
14950 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14951 PyObject *resultobj;
14952 wxDC *arg1 = (wxDC *) 0 ;
14953 int result;
14954 PyObject * obj0 = 0 ;
14955 char *kwnames[] = {
14956 (char *) "self", NULL
14957 };
14958
14959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14962 {
14963 PyThreadState* __tstate = wxPyBeginAllowThreads();
14964 result = (int)((wxDC const *)arg1)->MaxY();
14965
14966 wxPyEndAllowThreads(__tstate);
14967 if (PyErr_Occurred()) SWIG_fail;
14968 }
14969 resultobj = SWIG_FromInt((int)result);
14970 return resultobj;
14971 fail:
14972 return NULL;
14973 }
14974
14975
14976 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14977 PyObject *resultobj;
14978 wxDC *arg1 = (wxDC *) 0 ;
14979 int *arg2 = (int *) 0 ;
14980 int *arg3 = (int *) 0 ;
14981 int *arg4 = (int *) 0 ;
14982 int *arg5 = (int *) 0 ;
14983 int temp2 ;
14984 int temp3 ;
14985 int temp4 ;
14986 int temp5 ;
14987 PyObject * obj0 = 0 ;
14988 char *kwnames[] = {
14989 (char *) "self", NULL
14990 };
14991
14992 arg2 = &temp2;
14993 arg3 = &temp3;
14994 arg4 = &temp4;
14995 arg5 = &temp5;
14996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14999 {
15000 PyThreadState* __tstate = wxPyBeginAllowThreads();
15001 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15002
15003 wxPyEndAllowThreads(__tstate);
15004 if (PyErr_Occurred()) SWIG_fail;
15005 }
15006 Py_INCREF(Py_None); resultobj = Py_None;
15007 {
15008 PyObject *o = PyInt_FromLong((long) (*arg2));
15009 resultobj = t_output_helper(resultobj,o);
15010 }
15011 {
15012 PyObject *o = PyInt_FromLong((long) (*arg3));
15013 resultobj = t_output_helper(resultobj,o);
15014 }
15015 {
15016 PyObject *o = PyInt_FromLong((long) (*arg4));
15017 resultobj = t_output_helper(resultobj,o);
15018 }
15019 {
15020 PyObject *o = PyInt_FromLong((long) (*arg5));
15021 resultobj = t_output_helper(resultobj,o);
15022 }
15023 return resultobj;
15024 fail:
15025 return NULL;
15026 }
15027
15028
15029 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
15030 PyObject *resultobj;
15031 wxDC *arg1 = (wxDC *) 0 ;
15032 PyObject *arg2 = (PyObject *) 0 ;
15033 PyObject *arg3 = (PyObject *) 0 ;
15034 PyObject *arg4 = (PyObject *) 0 ;
15035 PyObject *result;
15036 PyObject * obj0 = 0 ;
15037 PyObject * obj1 = 0 ;
15038 PyObject * obj2 = 0 ;
15039 PyObject * obj3 = 0 ;
15040 char *kwnames[] = {
15041 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15042 };
15043
15044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15047 arg2 = obj1;
15048 arg3 = obj2;
15049 arg4 = obj3;
15050 {
15051 PyThreadState* __tstate = wxPyBeginAllowThreads();
15052 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15053
15054 wxPyEndAllowThreads(__tstate);
15055 if (PyErr_Occurred()) SWIG_fail;
15056 }
15057 resultobj = result;
15058 return resultobj;
15059 fail:
15060 return NULL;
15061 }
15062
15063
15064 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
15065 PyObject *resultobj;
15066 wxDC *arg1 = (wxDC *) 0 ;
15067 PyObject *arg2 = (PyObject *) 0 ;
15068 PyObject *arg3 = (PyObject *) 0 ;
15069 PyObject *arg4 = (PyObject *) 0 ;
15070 PyObject *result;
15071 PyObject * obj0 = 0 ;
15072 PyObject * obj1 = 0 ;
15073 PyObject * obj2 = 0 ;
15074 PyObject * obj3 = 0 ;
15075 char *kwnames[] = {
15076 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15077 };
15078
15079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15082 arg2 = obj1;
15083 arg3 = obj2;
15084 arg4 = obj3;
15085 {
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
15087 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15088
15089 wxPyEndAllowThreads(__tstate);
15090 if (PyErr_Occurred()) SWIG_fail;
15091 }
15092 resultobj = result;
15093 return resultobj;
15094 fail:
15095 return NULL;
15096 }
15097
15098
15099 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
15100 PyObject *resultobj;
15101 wxDC *arg1 = (wxDC *) 0 ;
15102 PyObject *arg2 = (PyObject *) 0 ;
15103 PyObject *arg3 = (PyObject *) 0 ;
15104 PyObject *arg4 = (PyObject *) 0 ;
15105 PyObject *result;
15106 PyObject * obj0 = 0 ;
15107 PyObject * obj1 = 0 ;
15108 PyObject * obj2 = 0 ;
15109 PyObject * obj3 = 0 ;
15110 char *kwnames[] = {
15111 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15112 };
15113
15114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15117 arg2 = obj1;
15118 arg3 = obj2;
15119 arg4 = obj3;
15120 {
15121 PyThreadState* __tstate = wxPyBeginAllowThreads();
15122 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15123
15124 wxPyEndAllowThreads(__tstate);
15125 if (PyErr_Occurred()) SWIG_fail;
15126 }
15127 resultobj = result;
15128 return resultobj;
15129 fail:
15130 return NULL;
15131 }
15132
15133
15134 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
15135 PyObject *resultobj;
15136 wxDC *arg1 = (wxDC *) 0 ;
15137 PyObject *arg2 = (PyObject *) 0 ;
15138 PyObject *arg3 = (PyObject *) 0 ;
15139 PyObject *arg4 = (PyObject *) 0 ;
15140 PyObject *result;
15141 PyObject * obj0 = 0 ;
15142 PyObject * obj1 = 0 ;
15143 PyObject * obj2 = 0 ;
15144 PyObject * obj3 = 0 ;
15145 char *kwnames[] = {
15146 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15147 };
15148
15149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15152 arg2 = obj1;
15153 arg3 = obj2;
15154 arg4 = obj3;
15155 {
15156 PyThreadState* __tstate = wxPyBeginAllowThreads();
15157 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15158
15159 wxPyEndAllowThreads(__tstate);
15160 if (PyErr_Occurred()) SWIG_fail;
15161 }
15162 resultobj = result;
15163 return resultobj;
15164 fail:
15165 return NULL;
15166 }
15167
15168
15169 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15170 PyObject *resultobj;
15171 wxDC *arg1 = (wxDC *) 0 ;
15172 PyObject *arg2 = (PyObject *) 0 ;
15173 PyObject *arg3 = (PyObject *) 0 ;
15174 PyObject *arg4 = (PyObject *) 0 ;
15175 PyObject *result;
15176 PyObject * obj0 = 0 ;
15177 PyObject * obj1 = 0 ;
15178 PyObject * obj2 = 0 ;
15179 PyObject * obj3 = 0 ;
15180 char *kwnames[] = {
15181 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15182 };
15183
15184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15187 arg2 = obj1;
15188 arg3 = obj2;
15189 arg4 = obj3;
15190 {
15191 PyThreadState* __tstate = wxPyBeginAllowThreads();
15192 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15193
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 resultobj = result;
15198 return resultobj;
15199 fail:
15200 return NULL;
15201 }
15202
15203
15204 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15205 PyObject *resultobj;
15206 wxDC *arg1 = (wxDC *) 0 ;
15207 PyObject *arg2 = (PyObject *) 0 ;
15208 PyObject *arg3 = (PyObject *) 0 ;
15209 PyObject *arg4 = (PyObject *) 0 ;
15210 PyObject *arg5 = (PyObject *) 0 ;
15211 PyObject *result;
15212 PyObject * obj0 = 0 ;
15213 PyObject * obj1 = 0 ;
15214 PyObject * obj2 = 0 ;
15215 PyObject * obj3 = 0 ;
15216 PyObject * obj4 = 0 ;
15217 char *kwnames[] = {
15218 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15219 };
15220
15221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15224 arg2 = obj1;
15225 arg3 = obj2;
15226 arg4 = obj3;
15227 arg5 = obj4;
15228 {
15229 PyThreadState* __tstate = wxPyBeginAllowThreads();
15230 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15231
15232 wxPyEndAllowThreads(__tstate);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 resultobj = result;
15236 return resultobj;
15237 fail:
15238 return NULL;
15239 }
15240
15241
15242 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15243 PyObject *obj;
15244 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15245 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15246 Py_INCREF(obj);
15247 return Py_BuildValue((char *)"");
15248 }
15249 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15250 PyObject *resultobj;
15251 wxMemoryDC *result;
15252 char *kwnames[] = {
15253 NULL
15254 };
15255
15256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15257 {
15258 PyThreadState* __tstate = wxPyBeginAllowThreads();
15259 result = (wxMemoryDC *)new wxMemoryDC();
15260
15261 wxPyEndAllowThreads(__tstate);
15262 if (PyErr_Occurred()) SWIG_fail;
15263 }
15264 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15265 return resultobj;
15266 fail:
15267 return NULL;
15268 }
15269
15270
15271 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15272 PyObject *resultobj;
15273 wxDC *arg1 = (wxDC *) 0 ;
15274 wxMemoryDC *result;
15275 PyObject * obj0 = 0 ;
15276 char *kwnames[] = {
15277 (char *) "oldDC", NULL
15278 };
15279
15280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15283 {
15284 PyThreadState* __tstate = wxPyBeginAllowThreads();
15285 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15286
15287 wxPyEndAllowThreads(__tstate);
15288 if (PyErr_Occurred()) SWIG_fail;
15289 }
15290 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15291 return resultobj;
15292 fail:
15293 return NULL;
15294 }
15295
15296
15297 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15298 PyObject *resultobj;
15299 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15300 wxBitmap *arg2 = 0 ;
15301 PyObject * obj0 = 0 ;
15302 PyObject * obj1 = 0 ;
15303 char *kwnames[] = {
15304 (char *) "self",(char *) "bitmap", NULL
15305 };
15306
15307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15310 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15311 SWIG_POINTER_EXCEPTION | 0)) == -1)
15312 SWIG_fail;
15313 if (arg2 == NULL) {
15314 PyErr_SetString(PyExc_TypeError,"null reference");
15315 SWIG_fail;
15316 }
15317 {
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
15319 (arg1)->SelectObject((wxBitmap const &)*arg2);
15320
15321 wxPyEndAllowThreads(__tstate);
15322 if (PyErr_Occurred()) SWIG_fail;
15323 }
15324 Py_INCREF(Py_None); resultobj = Py_None;
15325 return resultobj;
15326 fail:
15327 return NULL;
15328 }
15329
15330
15331 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15332 PyObject *obj;
15333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15334 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15335 Py_INCREF(obj);
15336 return Py_BuildValue((char *)"");
15337 }
15338 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15339 PyObject *resultobj;
15340 wxDC *arg1 = (wxDC *) 0 ;
15341 wxBitmap *arg2 = 0 ;
15342 wxBufferedDC *result;
15343 PyObject * obj0 = 0 ;
15344 PyObject * obj1 = 0 ;
15345
15346 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15350 SWIG_POINTER_EXCEPTION | 0)) == -1)
15351 SWIG_fail;
15352 if (arg2 == NULL) {
15353 PyErr_SetString(PyExc_TypeError,"null reference");
15354 SWIG_fail;
15355 }
15356 {
15357 PyThreadState* __tstate = wxPyBeginAllowThreads();
15358 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15359
15360 wxPyEndAllowThreads(__tstate);
15361 if (PyErr_Occurred()) SWIG_fail;
15362 }
15363 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15364 return resultobj;
15365 fail:
15366 return NULL;
15367 }
15368
15369
15370 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15371 PyObject *resultobj;
15372 wxDC *arg1 = (wxDC *) 0 ;
15373 wxSize *arg2 = 0 ;
15374 wxBufferedDC *result;
15375 wxSize temp2 ;
15376 PyObject * obj0 = 0 ;
15377 PyObject * obj1 = 0 ;
15378
15379 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15382 {
15383 arg2 = &temp2;
15384 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15385 }
15386 {
15387 PyThreadState* __tstate = wxPyBeginAllowThreads();
15388 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15389
15390 wxPyEndAllowThreads(__tstate);
15391 if (PyErr_Occurred()) SWIG_fail;
15392 }
15393 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15394 return resultobj;
15395 fail:
15396 return NULL;
15397 }
15398
15399
15400 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15401 int argc;
15402 PyObject *argv[3];
15403 int ii;
15404
15405 argc = PyObject_Length(args);
15406 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15407 argv[ii] = PyTuple_GetItem(args,ii);
15408 }
15409 if (argc == 2) {
15410 int _v;
15411 {
15412 void *ptr;
15413 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15414 _v = 0;
15415 PyErr_Clear();
15416 } else {
15417 _v = 1;
15418 }
15419 }
15420 if (_v) {
15421 {
15422 void *ptr;
15423 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15424 _v = 0;
15425 PyErr_Clear();
15426 } else {
15427 _v = 1;
15428 }
15429 }
15430 if (_v) {
15431 return _wrap_new_BufferedDC__SWIG_0(self,args);
15432 }
15433 }
15434 }
15435 if (argc == 2) {
15436 int _v;
15437 {
15438 void *ptr;
15439 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15440 _v = 0;
15441 PyErr_Clear();
15442 } else {
15443 _v = 1;
15444 }
15445 }
15446 if (_v) {
15447 {
15448 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15449 }
15450 if (_v) {
15451 return _wrap_new_BufferedDC__SWIG_1(self,args);
15452 }
15453 }
15454 }
15455
15456 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15457 return NULL;
15458 }
15459
15460
15461 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15462 PyObject *resultobj;
15463 wxDC *arg1 = (wxDC *) 0 ;
15464 wxSize *arg2 = 0 ;
15465 wxBufferedDC *result;
15466 wxSize temp2 ;
15467 PyObject * obj0 = 0 ;
15468 PyObject * obj1 = 0 ;
15469
15470 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15473 {
15474 arg2 = &temp2;
15475 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15476 }
15477 {
15478 PyThreadState* __tstate = wxPyBeginAllowThreads();
15479 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15480
15481 wxPyEndAllowThreads(__tstate);
15482 if (PyErr_Occurred()) SWIG_fail;
15483 }
15484 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15485 return resultobj;
15486 fail:
15487 return NULL;
15488 }
15489
15490
15491 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15492 PyObject *resultobj;
15493 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15494 PyObject * obj0 = 0 ;
15495 char *kwnames[] = {
15496 (char *) "self", NULL
15497 };
15498
15499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15502 {
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 delete arg1;
15505
15506 wxPyEndAllowThreads(__tstate);
15507 if (PyErr_Occurred()) SWIG_fail;
15508 }
15509 Py_INCREF(Py_None); resultobj = Py_None;
15510 return resultobj;
15511 fail:
15512 return NULL;
15513 }
15514
15515
15516 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj;
15518 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15519 PyObject * obj0 = 0 ;
15520 char *kwnames[] = {
15521 (char *) "self", NULL
15522 };
15523
15524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15527 {
15528 PyThreadState* __tstate = wxPyBeginAllowThreads();
15529 (arg1)->UnMask();
15530
15531 wxPyEndAllowThreads(__tstate);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 Py_INCREF(Py_None); resultobj = Py_None;
15535 return resultobj;
15536 fail:
15537 return NULL;
15538 }
15539
15540
15541 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15542 PyObject *obj;
15543 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15544 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15545 Py_INCREF(obj);
15546 return Py_BuildValue((char *)"");
15547 }
15548 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15549 PyObject *resultobj;
15550 wxWindow *arg1 = (wxWindow *) 0 ;
15551 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15552 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15553 wxBufferedPaintDC *result;
15554 PyObject * obj0 = 0 ;
15555 PyObject * obj1 = 0 ;
15556 char *kwnames[] = {
15557 (char *) "window",(char *) "buffer", NULL
15558 };
15559
15560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15563 if (obj1) {
15564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15565 SWIG_POINTER_EXCEPTION | 0)) == -1)
15566 SWIG_fail;
15567 if (arg2 == NULL) {
15568 PyErr_SetString(PyExc_TypeError,"null reference");
15569 SWIG_fail;
15570 }
15571 }
15572 {
15573 PyThreadState* __tstate = wxPyBeginAllowThreads();
15574 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15575
15576 wxPyEndAllowThreads(__tstate);
15577 if (PyErr_Occurred()) SWIG_fail;
15578 }
15579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15580 return resultobj;
15581 fail:
15582 return NULL;
15583 }
15584
15585
15586 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15587 PyObject *obj;
15588 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15589 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15590 Py_INCREF(obj);
15591 return Py_BuildValue((char *)"");
15592 }
15593 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15594 PyObject *resultobj;
15595 wxScreenDC *result;
15596 char *kwnames[] = {
15597 NULL
15598 };
15599
15600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15601 {
15602 PyThreadState* __tstate = wxPyBeginAllowThreads();
15603 result = (wxScreenDC *)new wxScreenDC();
15604
15605 wxPyEndAllowThreads(__tstate);
15606 if (PyErr_Occurred()) SWIG_fail;
15607 }
15608 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15609 return resultobj;
15610 fail:
15611 return NULL;
15612 }
15613
15614
15615 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15616 PyObject *resultobj;
15617 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15618 wxWindow *arg2 = (wxWindow *) 0 ;
15619 bool result;
15620 PyObject * obj0 = 0 ;
15621 PyObject * obj1 = 0 ;
15622 char *kwnames[] = {
15623 (char *) "self",(char *) "window", NULL
15624 };
15625
15626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15629 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15631 {
15632 PyThreadState* __tstate = wxPyBeginAllowThreads();
15633 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15634
15635 wxPyEndAllowThreads(__tstate);
15636 if (PyErr_Occurred()) SWIG_fail;
15637 }
15638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15639 return resultobj;
15640 fail:
15641 return NULL;
15642 }
15643
15644
15645 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15646 PyObject *resultobj;
15647 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15648 wxRect *arg2 = (wxRect *) NULL ;
15649 bool result;
15650 PyObject * obj0 = 0 ;
15651 PyObject * obj1 = 0 ;
15652 char *kwnames[] = {
15653 (char *) "self",(char *) "rect", NULL
15654 };
15655
15656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15659 if (obj1) {
15660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15662 }
15663 {
15664 PyThreadState* __tstate = wxPyBeginAllowThreads();
15665 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15666
15667 wxPyEndAllowThreads(__tstate);
15668 if (PyErr_Occurred()) SWIG_fail;
15669 }
15670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15671 return resultobj;
15672 fail:
15673 return NULL;
15674 }
15675
15676
15677 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15678 PyObject *resultobj;
15679 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15680 bool result;
15681 PyObject * obj0 = 0 ;
15682 char *kwnames[] = {
15683 (char *) "self", NULL
15684 };
15685
15686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15689 {
15690 PyThreadState* __tstate = wxPyBeginAllowThreads();
15691 result = (bool)(arg1)->EndDrawingOnTop();
15692
15693 wxPyEndAllowThreads(__tstate);
15694 if (PyErr_Occurred()) SWIG_fail;
15695 }
15696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15697 return resultobj;
15698 fail:
15699 return NULL;
15700 }
15701
15702
15703 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15704 PyObject *obj;
15705 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15706 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15707 Py_INCREF(obj);
15708 return Py_BuildValue((char *)"");
15709 }
15710 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15711 PyObject *resultobj;
15712 wxWindow *arg1 = (wxWindow *) 0 ;
15713 wxClientDC *result;
15714 PyObject * obj0 = 0 ;
15715 char *kwnames[] = {
15716 (char *) "win", NULL
15717 };
15718
15719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15722 {
15723 PyThreadState* __tstate = wxPyBeginAllowThreads();
15724 result = (wxClientDC *)new wxClientDC(arg1);
15725
15726 wxPyEndAllowThreads(__tstate);
15727 if (PyErr_Occurred()) SWIG_fail;
15728 }
15729 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15730 return resultobj;
15731 fail:
15732 return NULL;
15733 }
15734
15735
15736 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15737 PyObject *obj;
15738 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15739 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15740 Py_INCREF(obj);
15741 return Py_BuildValue((char *)"");
15742 }
15743 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15744 PyObject *resultobj;
15745 wxWindow *arg1 = (wxWindow *) 0 ;
15746 wxPaintDC *result;
15747 PyObject * obj0 = 0 ;
15748 char *kwnames[] = {
15749 (char *) "win", NULL
15750 };
15751
15752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15755 {
15756 PyThreadState* __tstate = wxPyBeginAllowThreads();
15757 result = (wxPaintDC *)new wxPaintDC(arg1);
15758
15759 wxPyEndAllowThreads(__tstate);
15760 if (PyErr_Occurred()) SWIG_fail;
15761 }
15762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15763 return resultobj;
15764 fail:
15765 return NULL;
15766 }
15767
15768
15769 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15770 PyObject *obj;
15771 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15772 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15773 Py_INCREF(obj);
15774 return Py_BuildValue((char *)"");
15775 }
15776 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15777 PyObject *resultobj;
15778 wxWindow *arg1 = (wxWindow *) 0 ;
15779 wxWindowDC *result;
15780 PyObject * obj0 = 0 ;
15781 char *kwnames[] = {
15782 (char *) "win", NULL
15783 };
15784
15785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15788 {
15789 PyThreadState* __tstate = wxPyBeginAllowThreads();
15790 result = (wxWindowDC *)new wxWindowDC(arg1);
15791
15792 wxPyEndAllowThreads(__tstate);
15793 if (PyErr_Occurred()) SWIG_fail;
15794 }
15795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15796 return resultobj;
15797 fail:
15798 return NULL;
15799 }
15800
15801
15802 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15803 PyObject *obj;
15804 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15805 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15806 Py_INCREF(obj);
15807 return Py_BuildValue((char *)"");
15808 }
15809 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15810 PyObject *resultobj;
15811 wxDC *arg1 = 0 ;
15812 bool arg2 ;
15813 wxMirrorDC *result;
15814 PyObject * obj0 = 0 ;
15815 PyObject * obj1 = 0 ;
15816 char *kwnames[] = {
15817 (char *) "dc",(char *) "mirror", NULL
15818 };
15819
15820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15822 SWIG_POINTER_EXCEPTION | 0)) == -1)
15823 SWIG_fail;
15824 if (arg1 == NULL) {
15825 PyErr_SetString(PyExc_TypeError,"null reference");
15826 SWIG_fail;
15827 }
15828 arg2 = (bool) SWIG_AsBool(obj1);
15829 if (PyErr_Occurred()) SWIG_fail;
15830 {
15831 PyThreadState* __tstate = wxPyBeginAllowThreads();
15832 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15833
15834 wxPyEndAllowThreads(__tstate);
15835 if (PyErr_Occurred()) SWIG_fail;
15836 }
15837 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15838 return resultobj;
15839 fail:
15840 return NULL;
15841 }
15842
15843
15844 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15845 PyObject *obj;
15846 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15847 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15848 Py_INCREF(obj);
15849 return Py_BuildValue((char *)"");
15850 }
15851 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15852 PyObject *resultobj;
15853 wxPrintData *arg1 = 0 ;
15854 wxPostScriptDC *result;
15855 PyObject * obj0 = 0 ;
15856 char *kwnames[] = {
15857 (char *) "printData", NULL
15858 };
15859
15860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15862 SWIG_POINTER_EXCEPTION | 0)) == -1)
15863 SWIG_fail;
15864 if (arg1 == NULL) {
15865 PyErr_SetString(PyExc_TypeError,"null reference");
15866 SWIG_fail;
15867 }
15868 {
15869 PyThreadState* __tstate = wxPyBeginAllowThreads();
15870 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15871
15872 wxPyEndAllowThreads(__tstate);
15873 if (PyErr_Occurred()) SWIG_fail;
15874 }
15875 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15876 return resultobj;
15877 fail:
15878 return NULL;
15879 }
15880
15881
15882 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15883 PyObject *resultobj;
15884 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15885 wxPrintData *result;
15886 PyObject * obj0 = 0 ;
15887 char *kwnames[] = {
15888 (char *) "self", NULL
15889 };
15890
15891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15894 {
15895 PyThreadState* __tstate = wxPyBeginAllowThreads();
15896 {
15897 wxPrintData &_result_ref = (arg1)->GetPrintData();
15898 result = (wxPrintData *) &_result_ref;
15899 }
15900
15901 wxPyEndAllowThreads(__tstate);
15902 if (PyErr_Occurred()) SWIG_fail;
15903 }
15904 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15905 return resultobj;
15906 fail:
15907 return NULL;
15908 }
15909
15910
15911 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15912 PyObject *resultobj;
15913 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15914 wxPrintData *arg2 = 0 ;
15915 PyObject * obj0 = 0 ;
15916 PyObject * obj1 = 0 ;
15917 char *kwnames[] = {
15918 (char *) "self",(char *) "data", NULL
15919 };
15920
15921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15924 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15925 SWIG_POINTER_EXCEPTION | 0)) == -1)
15926 SWIG_fail;
15927 if (arg2 == NULL) {
15928 PyErr_SetString(PyExc_TypeError,"null reference");
15929 SWIG_fail;
15930 }
15931 {
15932 PyThreadState* __tstate = wxPyBeginAllowThreads();
15933 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15934
15935 wxPyEndAllowThreads(__tstate);
15936 if (PyErr_Occurred()) SWIG_fail;
15937 }
15938 Py_INCREF(Py_None); resultobj = Py_None;
15939 return resultobj;
15940 fail:
15941 return NULL;
15942 }
15943
15944
15945 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15946 PyObject *resultobj;
15947 int arg1 ;
15948 PyObject * obj0 = 0 ;
15949 char *kwnames[] = {
15950 (char *) "ppi", NULL
15951 };
15952
15953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15954 arg1 = (int) SWIG_AsInt(obj0);
15955 if (PyErr_Occurred()) SWIG_fail;
15956 {
15957 PyThreadState* __tstate = wxPyBeginAllowThreads();
15958 wxPostScriptDC::SetResolution(arg1);
15959
15960 wxPyEndAllowThreads(__tstate);
15961 if (PyErr_Occurred()) SWIG_fail;
15962 }
15963 Py_INCREF(Py_None); resultobj = Py_None;
15964 return resultobj;
15965 fail:
15966 return NULL;
15967 }
15968
15969
15970 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15971 PyObject *resultobj;
15972 int result;
15973 char *kwnames[] = {
15974 NULL
15975 };
15976
15977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15978 {
15979 PyThreadState* __tstate = wxPyBeginAllowThreads();
15980 result = (int)wxPostScriptDC::GetResolution();
15981
15982 wxPyEndAllowThreads(__tstate);
15983 if (PyErr_Occurred()) SWIG_fail;
15984 }
15985 resultobj = SWIG_FromInt((int)result);
15986 return resultobj;
15987 fail:
15988 return NULL;
15989 }
15990
15991
15992 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15993 PyObject *obj;
15994 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15995 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15996 Py_INCREF(obj);
15997 return Py_BuildValue((char *)"");
15998 }
15999 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16000 PyObject *resultobj;
16001 wxString const &arg1_defvalue = wxPyEmptyString ;
16002 wxString *arg1 = (wxString *) &arg1_defvalue ;
16003 wxMetaFile *result;
16004 bool temp1 = False ;
16005 PyObject * obj0 = 0 ;
16006 char *kwnames[] = {
16007 (char *) "filename", NULL
16008 };
16009
16010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16011 if (obj0) {
16012 {
16013 arg1 = wxString_in_helper(obj0);
16014 if (arg1 == NULL) SWIG_fail;
16015 temp1 = True;
16016 }
16017 }
16018 {
16019 PyThreadState* __tstate = wxPyBeginAllowThreads();
16020 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16021
16022 wxPyEndAllowThreads(__tstate);
16023 if (PyErr_Occurred()) SWIG_fail;
16024 }
16025 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16026 {
16027 if (temp1)
16028 delete arg1;
16029 }
16030 return resultobj;
16031 fail:
16032 {
16033 if (temp1)
16034 delete arg1;
16035 }
16036 return NULL;
16037 }
16038
16039
16040 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16041 PyObject *resultobj;
16042 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16043 PyObject * obj0 = 0 ;
16044 char *kwnames[] = {
16045 (char *) "self", NULL
16046 };
16047
16048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16051 {
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 delete arg1;
16054
16055 wxPyEndAllowThreads(__tstate);
16056 if (PyErr_Occurred()) SWIG_fail;
16057 }
16058 Py_INCREF(Py_None); resultobj = Py_None;
16059 return resultobj;
16060 fail:
16061 return NULL;
16062 }
16063
16064
16065 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
16066 PyObject *resultobj;
16067 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16068 bool result;
16069 PyObject * obj0 = 0 ;
16070 char *kwnames[] = {
16071 (char *) "self", NULL
16072 };
16073
16074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16077 {
16078 PyThreadState* __tstate = wxPyBeginAllowThreads();
16079 result = (bool)(arg1)->Ok();
16080
16081 wxPyEndAllowThreads(__tstate);
16082 if (PyErr_Occurred()) SWIG_fail;
16083 }
16084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16085 return resultobj;
16086 fail:
16087 return NULL;
16088 }
16089
16090
16091 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
16092 PyObject *resultobj;
16093 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16094 int arg2 = (int) 0 ;
16095 int arg3 = (int) 0 ;
16096 bool result;
16097 PyObject * obj0 = 0 ;
16098 PyObject * obj1 = 0 ;
16099 PyObject * obj2 = 0 ;
16100 char *kwnames[] = {
16101 (char *) "self",(char *) "width",(char *) "height", NULL
16102 };
16103
16104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16107 if (obj1) {
16108 arg2 = (int) SWIG_AsInt(obj1);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 if (obj2) {
16112 arg3 = (int) SWIG_AsInt(obj2);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 }
16115 {
16116 PyThreadState* __tstate = wxPyBeginAllowThreads();
16117 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16118
16119 wxPyEndAllowThreads(__tstate);
16120 if (PyErr_Occurred()) SWIG_fail;
16121 }
16122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16123 return resultobj;
16124 fail:
16125 return NULL;
16126 }
16127
16128
16129 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16130 PyObject *resultobj;
16131 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16132 wxSize result;
16133 PyObject * obj0 = 0 ;
16134 char *kwnames[] = {
16135 (char *) "self", NULL
16136 };
16137
16138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16141 {
16142 PyThreadState* __tstate = wxPyBeginAllowThreads();
16143 result = (arg1)->GetSize();
16144
16145 wxPyEndAllowThreads(__tstate);
16146 if (PyErr_Occurred()) SWIG_fail;
16147 }
16148 {
16149 wxSize * resultptr;
16150 resultptr = new wxSize((wxSize &) result);
16151 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16152 }
16153 return resultobj;
16154 fail:
16155 return NULL;
16156 }
16157
16158
16159 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16160 PyObject *resultobj;
16161 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16162 int result;
16163 PyObject * obj0 = 0 ;
16164 char *kwnames[] = {
16165 (char *) "self", NULL
16166 };
16167
16168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 result = (int)(arg1)->GetWidth();
16174
16175 wxPyEndAllowThreads(__tstate);
16176 if (PyErr_Occurred()) SWIG_fail;
16177 }
16178 resultobj = SWIG_FromInt((int)result);
16179 return resultobj;
16180 fail:
16181 return NULL;
16182 }
16183
16184
16185 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16186 PyObject *resultobj;
16187 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16188 int result;
16189 PyObject * obj0 = 0 ;
16190 char *kwnames[] = {
16191 (char *) "self", NULL
16192 };
16193
16194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16197 {
16198 PyThreadState* __tstate = wxPyBeginAllowThreads();
16199 result = (int)(arg1)->GetHeight();
16200
16201 wxPyEndAllowThreads(__tstate);
16202 if (PyErr_Occurred()) SWIG_fail;
16203 }
16204 resultobj = SWIG_FromInt((int)result);
16205 return resultobj;
16206 fail:
16207 return NULL;
16208 }
16209
16210
16211 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16212 PyObject *resultobj;
16213 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16214 wxString *result;
16215 PyObject * obj0 = 0 ;
16216 char *kwnames[] = {
16217 (char *) "self", NULL
16218 };
16219
16220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16223 {
16224 PyThreadState* __tstate = wxPyBeginAllowThreads();
16225 {
16226 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16227 result = (wxString *) &_result_ref;
16228 }
16229
16230 wxPyEndAllowThreads(__tstate);
16231 if (PyErr_Occurred()) SWIG_fail;
16232 }
16233 {
16234 #if wxUSE_UNICODE
16235 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16236 #else
16237 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16238 #endif
16239 }
16240 return resultobj;
16241 fail:
16242 return NULL;
16243 }
16244
16245
16246 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16247 PyObject *obj;
16248 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16249 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16250 Py_INCREF(obj);
16251 return Py_BuildValue((char *)"");
16252 }
16253 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16254 PyObject *resultobj;
16255 wxString const &arg1_defvalue = wxPyEmptyString ;
16256 wxString *arg1 = (wxString *) &arg1_defvalue ;
16257 int arg2 = (int) 0 ;
16258 int arg3 = (int) 0 ;
16259 wxString const &arg4_defvalue = wxPyEmptyString ;
16260 wxString *arg4 = (wxString *) &arg4_defvalue ;
16261 wxMetaFileDC *result;
16262 bool temp1 = False ;
16263 bool temp4 = False ;
16264 PyObject * obj0 = 0 ;
16265 PyObject * obj1 = 0 ;
16266 PyObject * obj2 = 0 ;
16267 PyObject * obj3 = 0 ;
16268 char *kwnames[] = {
16269 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16270 };
16271
16272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16273 if (obj0) {
16274 {
16275 arg1 = wxString_in_helper(obj0);
16276 if (arg1 == NULL) SWIG_fail;
16277 temp1 = True;
16278 }
16279 }
16280 if (obj1) {
16281 arg2 = (int) SWIG_AsInt(obj1);
16282 if (PyErr_Occurred()) SWIG_fail;
16283 }
16284 if (obj2) {
16285 arg3 = (int) SWIG_AsInt(obj2);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
16288 if (obj3) {
16289 {
16290 arg4 = wxString_in_helper(obj3);
16291 if (arg4 == NULL) SWIG_fail;
16292 temp4 = True;
16293 }
16294 }
16295 {
16296 PyThreadState* __tstate = wxPyBeginAllowThreads();
16297 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16298
16299 wxPyEndAllowThreads(__tstate);
16300 if (PyErr_Occurred()) SWIG_fail;
16301 }
16302 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16303 {
16304 if (temp1)
16305 delete arg1;
16306 }
16307 {
16308 if (temp4)
16309 delete arg4;
16310 }
16311 return resultobj;
16312 fail:
16313 {
16314 if (temp1)
16315 delete arg1;
16316 }
16317 {
16318 if (temp4)
16319 delete arg4;
16320 }
16321 return NULL;
16322 }
16323
16324
16325 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16326 PyObject *resultobj;
16327 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16328 wxMetaFile *result;
16329 PyObject * obj0 = 0 ;
16330 char *kwnames[] = {
16331 (char *) "self", NULL
16332 };
16333
16334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16337 {
16338 PyThreadState* __tstate = wxPyBeginAllowThreads();
16339 result = (wxMetaFile *)(arg1)->Close();
16340
16341 wxPyEndAllowThreads(__tstate);
16342 if (PyErr_Occurred()) SWIG_fail;
16343 }
16344 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16345 return resultobj;
16346 fail:
16347 return NULL;
16348 }
16349
16350
16351 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16352 PyObject *obj;
16353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16354 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16355 Py_INCREF(obj);
16356 return Py_BuildValue((char *)"");
16357 }
16358 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16359 PyObject *resultobj;
16360 wxPrintData *arg1 = 0 ;
16361 wxPrinterDC *result;
16362 PyObject * obj0 = 0 ;
16363 char *kwnames[] = {
16364 (char *) "printData", NULL
16365 };
16366
16367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16369 SWIG_POINTER_EXCEPTION | 0)) == -1)
16370 SWIG_fail;
16371 if (arg1 == NULL) {
16372 PyErr_SetString(PyExc_TypeError,"null reference");
16373 SWIG_fail;
16374 }
16375 {
16376 PyThreadState* __tstate = wxPyBeginAllowThreads();
16377 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16378
16379 wxPyEndAllowThreads(__tstate);
16380 if (PyErr_Occurred()) SWIG_fail;
16381 }
16382 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16383 return resultobj;
16384 fail:
16385 return NULL;
16386 }
16387
16388
16389 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16390 PyObject *obj;
16391 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16392 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16393 Py_INCREF(obj);
16394 return Py_BuildValue((char *)"");
16395 }
16396 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16397 PyObject *resultobj;
16398 int arg1 ;
16399 int arg2 ;
16400 int arg3 = (int) True ;
16401 int arg4 = (int) 1 ;
16402 wxImageList *result;
16403 PyObject * obj0 = 0 ;
16404 PyObject * obj1 = 0 ;
16405 PyObject * obj2 = 0 ;
16406 PyObject * obj3 = 0 ;
16407 char *kwnames[] = {
16408 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16409 };
16410
16411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16412 arg1 = (int) SWIG_AsInt(obj0);
16413 if (PyErr_Occurred()) SWIG_fail;
16414 arg2 = (int) SWIG_AsInt(obj1);
16415 if (PyErr_Occurred()) SWIG_fail;
16416 if (obj2) {
16417 arg3 = (int) SWIG_AsInt(obj2);
16418 if (PyErr_Occurred()) SWIG_fail;
16419 }
16420 if (obj3) {
16421 arg4 = (int) SWIG_AsInt(obj3);
16422 if (PyErr_Occurred()) SWIG_fail;
16423 }
16424 {
16425 PyThreadState* __tstate = wxPyBeginAllowThreads();
16426 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16427
16428 wxPyEndAllowThreads(__tstate);
16429 if (PyErr_Occurred()) SWIG_fail;
16430 }
16431 {
16432 resultobj = wxPyMake_wxObject(result);
16433 }
16434 return resultobj;
16435 fail:
16436 return NULL;
16437 }
16438
16439
16440 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16441 PyObject *resultobj;
16442 wxImageList *arg1 = (wxImageList *) 0 ;
16443 PyObject * obj0 = 0 ;
16444 char *kwnames[] = {
16445 (char *) "self", NULL
16446 };
16447
16448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16451 {
16452 PyThreadState* __tstate = wxPyBeginAllowThreads();
16453 delete arg1;
16454
16455 wxPyEndAllowThreads(__tstate);
16456 if (PyErr_Occurred()) SWIG_fail;
16457 }
16458 Py_INCREF(Py_None); resultobj = Py_None;
16459 return resultobj;
16460 fail:
16461 return NULL;
16462 }
16463
16464
16465 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16466 PyObject *resultobj;
16467 wxImageList *arg1 = (wxImageList *) 0 ;
16468 wxBitmap *arg2 = 0 ;
16469 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16470 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16471 int result;
16472 PyObject * obj0 = 0 ;
16473 PyObject * obj1 = 0 ;
16474 PyObject * obj2 = 0 ;
16475 char *kwnames[] = {
16476 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16477 };
16478
16479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16482 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16483 SWIG_POINTER_EXCEPTION | 0)) == -1)
16484 SWIG_fail;
16485 if (arg2 == NULL) {
16486 PyErr_SetString(PyExc_TypeError,"null reference");
16487 SWIG_fail;
16488 }
16489 if (obj2) {
16490 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16491 SWIG_POINTER_EXCEPTION | 0)) == -1)
16492 SWIG_fail;
16493 if (arg3 == NULL) {
16494 PyErr_SetString(PyExc_TypeError,"null reference");
16495 SWIG_fail;
16496 }
16497 }
16498 {
16499 PyThreadState* __tstate = wxPyBeginAllowThreads();
16500 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16501
16502 wxPyEndAllowThreads(__tstate);
16503 if (PyErr_Occurred()) SWIG_fail;
16504 }
16505 resultobj = SWIG_FromInt((int)result);
16506 return resultobj;
16507 fail:
16508 return NULL;
16509 }
16510
16511
16512 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16513 PyObject *resultobj;
16514 wxImageList *arg1 = (wxImageList *) 0 ;
16515 wxBitmap *arg2 = 0 ;
16516 wxColour *arg3 = 0 ;
16517 int result;
16518 wxColour temp3 ;
16519 PyObject * obj0 = 0 ;
16520 PyObject * obj1 = 0 ;
16521 PyObject * obj2 = 0 ;
16522 char *kwnames[] = {
16523 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16524 };
16525
16526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16529 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16530 SWIG_POINTER_EXCEPTION | 0)) == -1)
16531 SWIG_fail;
16532 if (arg2 == NULL) {
16533 PyErr_SetString(PyExc_TypeError,"null reference");
16534 SWIG_fail;
16535 }
16536 {
16537 arg3 = &temp3;
16538 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16539 }
16540 {
16541 PyThreadState* __tstate = wxPyBeginAllowThreads();
16542 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16543
16544 wxPyEndAllowThreads(__tstate);
16545 if (PyErr_Occurred()) SWIG_fail;
16546 }
16547 resultobj = SWIG_FromInt((int)result);
16548 return resultobj;
16549 fail:
16550 return NULL;
16551 }
16552
16553
16554 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16555 PyObject *resultobj;
16556 wxImageList *arg1 = (wxImageList *) 0 ;
16557 wxIcon *arg2 = 0 ;
16558 int result;
16559 PyObject * obj0 = 0 ;
16560 PyObject * obj1 = 0 ;
16561 char *kwnames[] = {
16562 (char *) "self",(char *) "icon", NULL
16563 };
16564
16565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16568 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16569 SWIG_POINTER_EXCEPTION | 0)) == -1)
16570 SWIG_fail;
16571 if (arg2 == NULL) {
16572 PyErr_SetString(PyExc_TypeError,"null reference");
16573 SWIG_fail;
16574 }
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16578
16579 wxPyEndAllowThreads(__tstate);
16580 if (PyErr_Occurred()) SWIG_fail;
16581 }
16582 resultobj = SWIG_FromInt((int)result);
16583 return resultobj;
16584 fail:
16585 return NULL;
16586 }
16587
16588
16589 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16590 PyObject *resultobj;
16591 wxImageList *arg1 = (wxImageList *) 0 ;
16592 int arg2 ;
16593 wxBitmap *arg3 = 0 ;
16594 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16595 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16596 bool result;
16597 PyObject * obj0 = 0 ;
16598 PyObject * obj1 = 0 ;
16599 PyObject * obj2 = 0 ;
16600 PyObject * obj3 = 0 ;
16601 char *kwnames[] = {
16602 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16603 };
16604
16605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16608 arg2 = (int) SWIG_AsInt(obj1);
16609 if (PyErr_Occurred()) SWIG_fail;
16610 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16611 SWIG_POINTER_EXCEPTION | 0)) == -1)
16612 SWIG_fail;
16613 if (arg3 == NULL) {
16614 PyErr_SetString(PyExc_TypeError,"null reference");
16615 SWIG_fail;
16616 }
16617 if (obj3) {
16618 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16619 SWIG_POINTER_EXCEPTION | 0)) == -1)
16620 SWIG_fail;
16621 if (arg4 == NULL) {
16622 PyErr_SetString(PyExc_TypeError,"null reference");
16623 SWIG_fail;
16624 }
16625 }
16626 {
16627 PyThreadState* __tstate = wxPyBeginAllowThreads();
16628 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16629
16630 wxPyEndAllowThreads(__tstate);
16631 if (PyErr_Occurred()) SWIG_fail;
16632 }
16633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16634 return resultobj;
16635 fail:
16636 return NULL;
16637 }
16638
16639
16640 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16641 PyObject *resultobj;
16642 wxImageList *arg1 = (wxImageList *) 0 ;
16643 int arg2 ;
16644 wxDC *arg3 = 0 ;
16645 int arg4 ;
16646 int arg5 ;
16647 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16648 bool arg7 = (bool) (bool)False ;
16649 bool result;
16650 PyObject * obj0 = 0 ;
16651 PyObject * obj1 = 0 ;
16652 PyObject * obj2 = 0 ;
16653 PyObject * obj3 = 0 ;
16654 PyObject * obj4 = 0 ;
16655 PyObject * obj5 = 0 ;
16656 PyObject * obj6 = 0 ;
16657 char *kwnames[] = {
16658 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16659 };
16660
16661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16664 arg2 = (int) SWIG_AsInt(obj1);
16665 if (PyErr_Occurred()) SWIG_fail;
16666 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16667 SWIG_POINTER_EXCEPTION | 0)) == -1)
16668 SWIG_fail;
16669 if (arg3 == NULL) {
16670 PyErr_SetString(PyExc_TypeError,"null reference");
16671 SWIG_fail;
16672 }
16673 arg4 = (int) SWIG_AsInt(obj3);
16674 if (PyErr_Occurred()) SWIG_fail;
16675 arg5 = (int) SWIG_AsInt(obj4);
16676 if (PyErr_Occurred()) SWIG_fail;
16677 if (obj5) {
16678 arg6 = (int) SWIG_AsInt(obj5);
16679 if (PyErr_Occurred()) SWIG_fail;
16680 }
16681 if (obj6) {
16682 arg7 = (bool const) SWIG_AsBool(obj6);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 }
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16688
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16693 return resultobj;
16694 fail:
16695 return NULL;
16696 }
16697
16698
16699 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16700 PyObject *resultobj;
16701 wxImageList *arg1 = (wxImageList *) 0 ;
16702 int result;
16703 PyObject * obj0 = 0 ;
16704 char *kwnames[] = {
16705 (char *) "self", NULL
16706 };
16707
16708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 result = (int)(arg1)->GetImageCount();
16714
16715 wxPyEndAllowThreads(__tstate);
16716 if (PyErr_Occurred()) SWIG_fail;
16717 }
16718 resultobj = SWIG_FromInt((int)result);
16719 return resultobj;
16720 fail:
16721 return NULL;
16722 }
16723
16724
16725 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16726 PyObject *resultobj;
16727 wxImageList *arg1 = (wxImageList *) 0 ;
16728 int arg2 ;
16729 bool result;
16730 PyObject * obj0 = 0 ;
16731 PyObject * obj1 = 0 ;
16732 char *kwnames[] = {
16733 (char *) "self",(char *) "index", NULL
16734 };
16735
16736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16739 arg2 = (int) SWIG_AsInt(obj1);
16740 if (PyErr_Occurred()) SWIG_fail;
16741 {
16742 PyThreadState* __tstate = wxPyBeginAllowThreads();
16743 result = (bool)(arg1)->Remove(arg2);
16744
16745 wxPyEndAllowThreads(__tstate);
16746 if (PyErr_Occurred()) SWIG_fail;
16747 }
16748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16749 return resultobj;
16750 fail:
16751 return NULL;
16752 }
16753
16754
16755 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16756 PyObject *resultobj;
16757 wxImageList *arg1 = (wxImageList *) 0 ;
16758 bool result;
16759 PyObject * obj0 = 0 ;
16760 char *kwnames[] = {
16761 (char *) "self", NULL
16762 };
16763
16764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16767 {
16768 PyThreadState* __tstate = wxPyBeginAllowThreads();
16769 result = (bool)(arg1)->RemoveAll();
16770
16771 wxPyEndAllowThreads(__tstate);
16772 if (PyErr_Occurred()) SWIG_fail;
16773 }
16774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16775 return resultobj;
16776 fail:
16777 return NULL;
16778 }
16779
16780
16781 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16782 PyObject *resultobj;
16783 wxImageList *arg1 = (wxImageList *) 0 ;
16784 int arg2 ;
16785 int *arg3 = 0 ;
16786 int *arg4 = 0 ;
16787 int temp3 ;
16788 int temp4 ;
16789 PyObject * obj0 = 0 ;
16790 PyObject * obj1 = 0 ;
16791 char *kwnames[] = {
16792 (char *) "self",(char *) "index", NULL
16793 };
16794
16795 arg3 = &temp3;
16796 arg4 = &temp4;
16797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16800 arg2 = (int) SWIG_AsInt(obj1);
16801 if (PyErr_Occurred()) SWIG_fail;
16802 {
16803 PyThreadState* __tstate = wxPyBeginAllowThreads();
16804 (arg1)->GetSize(arg2,*arg3,*arg4);
16805
16806 wxPyEndAllowThreads(__tstate);
16807 if (PyErr_Occurred()) SWIG_fail;
16808 }
16809 Py_INCREF(Py_None); resultobj = Py_None;
16810 {
16811 PyObject *o = PyInt_FromLong((long) (*arg3));
16812 resultobj = t_output_helper(resultobj,o);
16813 }
16814 {
16815 PyObject *o = PyInt_FromLong((long) (*arg4));
16816 resultobj = t_output_helper(resultobj,o);
16817 }
16818 return resultobj;
16819 fail:
16820 return NULL;
16821 }
16822
16823
16824 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16825 PyObject *obj;
16826 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16827 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16828 Py_INCREF(obj);
16829 return Py_BuildValue((char *)"");
16830 }
16831 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16832 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16833 return 1;
16834 }
16835
16836
16837 static PyObject *_wrap_NORMAL_FONT_get() {
16838 PyObject *pyobj;
16839
16840 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16841 return pyobj;
16842 }
16843
16844
16845 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16846 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16847 return 1;
16848 }
16849
16850
16851 static PyObject *_wrap_SMALL_FONT_get() {
16852 PyObject *pyobj;
16853
16854 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16855 return pyobj;
16856 }
16857
16858
16859 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16860 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16861 return 1;
16862 }
16863
16864
16865 static PyObject *_wrap_ITALIC_FONT_get() {
16866 PyObject *pyobj;
16867
16868 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16869 return pyobj;
16870 }
16871
16872
16873 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16874 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16875 return 1;
16876 }
16877
16878
16879 static PyObject *_wrap_SWISS_FONT_get() {
16880 PyObject *pyobj;
16881
16882 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16883 return pyobj;
16884 }
16885
16886
16887 static int _wrap_RED_PEN_set(PyObject *_val) {
16888 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16889 return 1;
16890 }
16891
16892
16893 static PyObject *_wrap_RED_PEN_get() {
16894 PyObject *pyobj;
16895
16896 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16897 return pyobj;
16898 }
16899
16900
16901 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16902 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16903 return 1;
16904 }
16905
16906
16907 static PyObject *_wrap_CYAN_PEN_get() {
16908 PyObject *pyobj;
16909
16910 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16911 return pyobj;
16912 }
16913
16914
16915 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16916 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16917 return 1;
16918 }
16919
16920
16921 static PyObject *_wrap_GREEN_PEN_get() {
16922 PyObject *pyobj;
16923
16924 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16925 return pyobj;
16926 }
16927
16928
16929 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16930 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16931 return 1;
16932 }
16933
16934
16935 static PyObject *_wrap_BLACK_PEN_get() {
16936 PyObject *pyobj;
16937
16938 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16939 return pyobj;
16940 }
16941
16942
16943 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16944 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16945 return 1;
16946 }
16947
16948
16949 static PyObject *_wrap_WHITE_PEN_get() {
16950 PyObject *pyobj;
16951
16952 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16953 return pyobj;
16954 }
16955
16956
16957 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16958 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16959 return 1;
16960 }
16961
16962
16963 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16964 PyObject *pyobj;
16965
16966 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16967 return pyobj;
16968 }
16969
16970
16971 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16972 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16973 return 1;
16974 }
16975
16976
16977 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16978 PyObject *pyobj;
16979
16980 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16981 return pyobj;
16982 }
16983
16984
16985 static int _wrap_GREY_PEN_set(PyObject *_val) {
16986 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16987 return 1;
16988 }
16989
16990
16991 static PyObject *_wrap_GREY_PEN_get() {
16992 PyObject *pyobj;
16993
16994 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16995 return pyobj;
16996 }
16997
16998
16999 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
17000 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17001 return 1;
17002 }
17003
17004
17005 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17006 PyObject *pyobj;
17007
17008 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17009 return pyobj;
17010 }
17011
17012
17013 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
17014 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17015 return 1;
17016 }
17017
17018
17019 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17020 PyObject *pyobj;
17021
17022 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17023 return pyobj;
17024 }
17025
17026
17027 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
17028 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17029 return 1;
17030 }
17031
17032
17033 static PyObject *_wrap_BLUE_BRUSH_get() {
17034 PyObject *pyobj;
17035
17036 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17037 return pyobj;
17038 }
17039
17040
17041 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
17042 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17043 return 1;
17044 }
17045
17046
17047 static PyObject *_wrap_GREEN_BRUSH_get() {
17048 PyObject *pyobj;
17049
17050 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17051 return pyobj;
17052 }
17053
17054
17055 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
17056 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17057 return 1;
17058 }
17059
17060
17061 static PyObject *_wrap_WHITE_BRUSH_get() {
17062 PyObject *pyobj;
17063
17064 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17065 return pyobj;
17066 }
17067
17068
17069 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
17070 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17071 return 1;
17072 }
17073
17074
17075 static PyObject *_wrap_BLACK_BRUSH_get() {
17076 PyObject *pyobj;
17077
17078 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17079 return pyobj;
17080 }
17081
17082
17083 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
17084 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17085 return 1;
17086 }
17087
17088
17089 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17090 PyObject *pyobj;
17091
17092 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17093 return pyobj;
17094 }
17095
17096
17097 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
17098 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17099 return 1;
17100 }
17101
17102
17103 static PyObject *_wrap_CYAN_BRUSH_get() {
17104 PyObject *pyobj;
17105
17106 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17107 return pyobj;
17108 }
17109
17110
17111 static int _wrap_RED_BRUSH_set(PyObject *_val) {
17112 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17113 return 1;
17114 }
17115
17116
17117 static PyObject *_wrap_RED_BRUSH_get() {
17118 PyObject *pyobj;
17119
17120 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17121 return pyobj;
17122 }
17123
17124
17125 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
17126 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17127 return 1;
17128 }
17129
17130
17131 static PyObject *_wrap_GREY_BRUSH_get() {
17132 PyObject *pyobj;
17133
17134 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17135 return pyobj;
17136 }
17137
17138
17139 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
17140 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17141 return 1;
17142 }
17143
17144
17145 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17146 PyObject *pyobj;
17147
17148 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17149 return pyobj;
17150 }
17151
17152
17153 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
17154 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17155 return 1;
17156 }
17157
17158
17159 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17160 PyObject *pyobj;
17161
17162 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17163 return pyobj;
17164 }
17165
17166
17167 static int _wrap_BLACK_set(PyObject *_val) {
17168 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17169 return 1;
17170 }
17171
17172
17173 static PyObject *_wrap_BLACK_get() {
17174 PyObject *pyobj;
17175
17176 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17177 return pyobj;
17178 }
17179
17180
17181 static int _wrap_WHITE_set(PyObject *_val) {
17182 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17183 return 1;
17184 }
17185
17186
17187 static PyObject *_wrap_WHITE_get() {
17188 PyObject *pyobj;
17189
17190 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17191 return pyobj;
17192 }
17193
17194
17195 static int _wrap_RED_set(PyObject *_val) {
17196 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17197 return 1;
17198 }
17199
17200
17201 static PyObject *_wrap_RED_get() {
17202 PyObject *pyobj;
17203
17204 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17205 return pyobj;
17206 }
17207
17208
17209 static int _wrap_BLUE_set(PyObject *_val) {
17210 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17211 return 1;
17212 }
17213
17214
17215 static PyObject *_wrap_BLUE_get() {
17216 PyObject *pyobj;
17217
17218 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17219 return pyobj;
17220 }
17221
17222
17223 static int _wrap_GREEN_set(PyObject *_val) {
17224 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17225 return 1;
17226 }
17227
17228
17229 static PyObject *_wrap_GREEN_get() {
17230 PyObject *pyobj;
17231
17232 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17233 return pyobj;
17234 }
17235
17236
17237 static int _wrap_CYAN_set(PyObject *_val) {
17238 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17239 return 1;
17240 }
17241
17242
17243 static PyObject *_wrap_CYAN_get() {
17244 PyObject *pyobj;
17245
17246 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17247 return pyobj;
17248 }
17249
17250
17251 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
17252 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17253 return 1;
17254 }
17255
17256
17257 static PyObject *_wrap_LIGHT_GREY_get() {
17258 PyObject *pyobj;
17259
17260 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17261 return pyobj;
17262 }
17263
17264
17265 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17266 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17267 return 1;
17268 }
17269
17270
17271 static PyObject *_wrap_STANDARD_CURSOR_get() {
17272 PyObject *pyobj;
17273
17274 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17275 return pyobj;
17276 }
17277
17278
17279 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17280 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17281 return 1;
17282 }
17283
17284
17285 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17286 PyObject *pyobj;
17287
17288 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17289 return pyobj;
17290 }
17291
17292
17293 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17294 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17295 return 1;
17296 }
17297
17298
17299 static PyObject *_wrap_CROSS_CURSOR_get() {
17300 PyObject *pyobj;
17301
17302 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17303 return pyobj;
17304 }
17305
17306
17307 static int _wrap_NullBitmap_set(PyObject *_val) {
17308 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17309 return 1;
17310 }
17311
17312
17313 static PyObject *_wrap_NullBitmap_get() {
17314 PyObject *pyobj;
17315
17316 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17317 return pyobj;
17318 }
17319
17320
17321 static int _wrap_NullIcon_set(PyObject *_val) {
17322 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17323 return 1;
17324 }
17325
17326
17327 static PyObject *_wrap_NullIcon_get() {
17328 PyObject *pyobj;
17329
17330 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17331 return pyobj;
17332 }
17333
17334
17335 static int _wrap_NullCursor_set(PyObject *_val) {
17336 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17337 return 1;
17338 }
17339
17340
17341 static PyObject *_wrap_NullCursor_get() {
17342 PyObject *pyobj;
17343
17344 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17345 return pyobj;
17346 }
17347
17348
17349 static int _wrap_NullPen_set(PyObject *_val) {
17350 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17351 return 1;
17352 }
17353
17354
17355 static PyObject *_wrap_NullPen_get() {
17356 PyObject *pyobj;
17357
17358 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17359 return pyobj;
17360 }
17361
17362
17363 static int _wrap_NullBrush_set(PyObject *_val) {
17364 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17365 return 1;
17366 }
17367
17368
17369 static PyObject *_wrap_NullBrush_get() {
17370 PyObject *pyobj;
17371
17372 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17373 return pyobj;
17374 }
17375
17376
17377 static int _wrap_NullPalette_set(PyObject *_val) {
17378 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17379 return 1;
17380 }
17381
17382
17383 static PyObject *_wrap_NullPalette_get() {
17384 PyObject *pyobj;
17385
17386 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17387 return pyobj;
17388 }
17389
17390
17391 static int _wrap_NullFont_set(PyObject *_val) {
17392 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17393 return 1;
17394 }
17395
17396
17397 static PyObject *_wrap_NullFont_get() {
17398 PyObject *pyobj;
17399
17400 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17401 return pyobj;
17402 }
17403
17404
17405 static int _wrap_NullColour_set(PyObject *_val) {
17406 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17407 return 1;
17408 }
17409
17410
17411 static PyObject *_wrap_NullColour_get() {
17412 PyObject *pyobj;
17413
17414 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17415 return pyobj;
17416 }
17417
17418
17419 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17420 PyObject *resultobj;
17421 wxPenList *arg1 = (wxPenList *) 0 ;
17422 wxPen *arg2 = (wxPen *) 0 ;
17423 PyObject * obj0 = 0 ;
17424 PyObject * obj1 = 0 ;
17425 char *kwnames[] = {
17426 (char *) "self",(char *) "pen", NULL
17427 };
17428
17429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17432 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17434 {
17435 PyThreadState* __tstate = wxPyBeginAllowThreads();
17436 (arg1)->AddPen(arg2);
17437
17438 wxPyEndAllowThreads(__tstate);
17439 if (PyErr_Occurred()) SWIG_fail;
17440 }
17441 Py_INCREF(Py_None); resultobj = Py_None;
17442 return resultobj;
17443 fail:
17444 return NULL;
17445 }
17446
17447
17448 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17449 PyObject *resultobj;
17450 wxPenList *arg1 = (wxPenList *) 0 ;
17451 wxColour *arg2 = 0 ;
17452 int arg3 ;
17453 int arg4 ;
17454 wxPen *result;
17455 wxColour temp2 ;
17456 PyObject * obj0 = 0 ;
17457 PyObject * obj1 = 0 ;
17458 PyObject * obj2 = 0 ;
17459 PyObject * obj3 = 0 ;
17460 char *kwnames[] = {
17461 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17462 };
17463
17464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17467 {
17468 arg2 = &temp2;
17469 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17470 }
17471 arg3 = (int) SWIG_AsInt(obj2);
17472 if (PyErr_Occurred()) SWIG_fail;
17473 arg4 = (int) SWIG_AsInt(obj3);
17474 if (PyErr_Occurred()) SWIG_fail;
17475 {
17476 PyThreadState* __tstate = wxPyBeginAllowThreads();
17477 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17478
17479 wxPyEndAllowThreads(__tstate);
17480 if (PyErr_Occurred()) SWIG_fail;
17481 }
17482 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17483 return resultobj;
17484 fail:
17485 return NULL;
17486 }
17487
17488
17489 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17490 PyObject *resultobj;
17491 wxPenList *arg1 = (wxPenList *) 0 ;
17492 wxPen *arg2 = (wxPen *) 0 ;
17493 PyObject * obj0 = 0 ;
17494 PyObject * obj1 = 0 ;
17495 char *kwnames[] = {
17496 (char *) "self",(char *) "pen", NULL
17497 };
17498
17499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17502 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17504 {
17505 PyThreadState* __tstate = wxPyBeginAllowThreads();
17506 (arg1)->RemovePen(arg2);
17507
17508 wxPyEndAllowThreads(__tstate);
17509 if (PyErr_Occurred()) SWIG_fail;
17510 }
17511 Py_INCREF(Py_None); resultobj = Py_None;
17512 return resultobj;
17513 fail:
17514 return NULL;
17515 }
17516
17517
17518 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17519 PyObject *resultobj;
17520 wxPenList *arg1 = (wxPenList *) 0 ;
17521 int result;
17522 PyObject * obj0 = 0 ;
17523 char *kwnames[] = {
17524 (char *) "self", NULL
17525 };
17526
17527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17530 {
17531 PyThreadState* __tstate = wxPyBeginAllowThreads();
17532 result = (int)(arg1)->GetCount();
17533
17534 wxPyEndAllowThreads(__tstate);
17535 if (PyErr_Occurred()) SWIG_fail;
17536 }
17537 resultobj = SWIG_FromInt((int)result);
17538 return resultobj;
17539 fail:
17540 return NULL;
17541 }
17542
17543
17544 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17545 PyObject *obj;
17546 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17547 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17548 Py_INCREF(obj);
17549 return Py_BuildValue((char *)"");
17550 }
17551 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17552 PyObject *resultobj;
17553 wxBrushList *arg1 = (wxBrushList *) 0 ;
17554 wxBrush *arg2 = (wxBrush *) 0 ;
17555 PyObject * obj0 = 0 ;
17556 PyObject * obj1 = 0 ;
17557 char *kwnames[] = {
17558 (char *) "self",(char *) "brush", NULL
17559 };
17560
17561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17566 {
17567 PyThreadState* __tstate = wxPyBeginAllowThreads();
17568 (arg1)->AddBrush(arg2);
17569
17570 wxPyEndAllowThreads(__tstate);
17571 if (PyErr_Occurred()) SWIG_fail;
17572 }
17573 Py_INCREF(Py_None); resultobj = Py_None;
17574 return resultobj;
17575 fail:
17576 return NULL;
17577 }
17578
17579
17580 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17581 PyObject *resultobj;
17582 wxBrushList *arg1 = (wxBrushList *) 0 ;
17583 wxColour *arg2 = 0 ;
17584 int arg3 ;
17585 wxBrush *result;
17586 wxColour temp2 ;
17587 PyObject * obj0 = 0 ;
17588 PyObject * obj1 = 0 ;
17589 PyObject * obj2 = 0 ;
17590 char *kwnames[] = {
17591 (char *) "self",(char *) "colour",(char *) "style", NULL
17592 };
17593
17594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17597 {
17598 arg2 = &temp2;
17599 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17600 }
17601 arg3 = (int) SWIG_AsInt(obj2);
17602 if (PyErr_Occurred()) SWIG_fail;
17603 {
17604 PyThreadState* __tstate = wxPyBeginAllowThreads();
17605 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17606
17607 wxPyEndAllowThreads(__tstate);
17608 if (PyErr_Occurred()) SWIG_fail;
17609 }
17610 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17611 return resultobj;
17612 fail:
17613 return NULL;
17614 }
17615
17616
17617 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17618 PyObject *resultobj;
17619 wxBrushList *arg1 = (wxBrushList *) 0 ;
17620 wxBrush *arg2 = (wxBrush *) 0 ;
17621 PyObject * obj0 = 0 ;
17622 PyObject * obj1 = 0 ;
17623 char *kwnames[] = {
17624 (char *) "self",(char *) "brush", NULL
17625 };
17626
17627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17630 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17632 {
17633 PyThreadState* __tstate = wxPyBeginAllowThreads();
17634 (arg1)->RemoveBrush(arg2);
17635
17636 wxPyEndAllowThreads(__tstate);
17637 if (PyErr_Occurred()) SWIG_fail;
17638 }
17639 Py_INCREF(Py_None); resultobj = Py_None;
17640 return resultobj;
17641 fail:
17642 return NULL;
17643 }
17644
17645
17646 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17647 PyObject *resultobj;
17648 wxBrushList *arg1 = (wxBrushList *) 0 ;
17649 int result;
17650 PyObject * obj0 = 0 ;
17651 char *kwnames[] = {
17652 (char *) "self", NULL
17653 };
17654
17655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17658 {
17659 PyThreadState* __tstate = wxPyBeginAllowThreads();
17660 result = (int)(arg1)->GetCount();
17661
17662 wxPyEndAllowThreads(__tstate);
17663 if (PyErr_Occurred()) SWIG_fail;
17664 }
17665 resultobj = SWIG_FromInt((int)result);
17666 return resultobj;
17667 fail:
17668 return NULL;
17669 }
17670
17671
17672 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17673 PyObject *obj;
17674 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17675 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17676 Py_INCREF(obj);
17677 return Py_BuildValue((char *)"");
17678 }
17679 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17680 PyObject *resultobj;
17681 wxColourDatabase *result;
17682 char *kwnames[] = {
17683 NULL
17684 };
17685
17686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17687 {
17688 PyThreadState* __tstate = wxPyBeginAllowThreads();
17689 result = (wxColourDatabase *)new wxColourDatabase();
17690
17691 wxPyEndAllowThreads(__tstate);
17692 if (PyErr_Occurred()) SWIG_fail;
17693 }
17694 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17695 return resultobj;
17696 fail:
17697 return NULL;
17698 }
17699
17700
17701 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17702 PyObject *resultobj;
17703 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17704 PyObject * obj0 = 0 ;
17705 char *kwnames[] = {
17706 (char *) "self", NULL
17707 };
17708
17709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17712 {
17713 PyThreadState* __tstate = wxPyBeginAllowThreads();
17714 delete arg1;
17715
17716 wxPyEndAllowThreads(__tstate);
17717 if (PyErr_Occurred()) SWIG_fail;
17718 }
17719 Py_INCREF(Py_None); resultobj = Py_None;
17720 return resultobj;
17721 fail:
17722 return NULL;
17723 }
17724
17725
17726 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17727 PyObject *resultobj;
17728 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17729 wxString *arg2 = 0 ;
17730 wxColour result;
17731 bool temp2 = False ;
17732 PyObject * obj0 = 0 ;
17733 PyObject * obj1 = 0 ;
17734 char *kwnames[] = {
17735 (char *) "self",(char *) "name", NULL
17736 };
17737
17738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17741 {
17742 arg2 = wxString_in_helper(obj1);
17743 if (arg2 == NULL) SWIG_fail;
17744 temp2 = True;
17745 }
17746 {
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17749
17750 wxPyEndAllowThreads(__tstate);
17751 if (PyErr_Occurred()) SWIG_fail;
17752 }
17753 {
17754 wxColour * resultptr;
17755 resultptr = new wxColour((wxColour &) result);
17756 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17757 }
17758 {
17759 if (temp2)
17760 delete arg2;
17761 }
17762 return resultobj;
17763 fail:
17764 {
17765 if (temp2)
17766 delete arg2;
17767 }
17768 return NULL;
17769 }
17770
17771
17772 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17773 PyObject *resultobj;
17774 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17775 wxColour *arg2 = 0 ;
17776 wxString result;
17777 wxColour temp2 ;
17778 PyObject * obj0 = 0 ;
17779 PyObject * obj1 = 0 ;
17780 char *kwnames[] = {
17781 (char *) "self",(char *) "colour", NULL
17782 };
17783
17784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17787 {
17788 arg2 = &temp2;
17789 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17790 }
17791 {
17792 PyThreadState* __tstate = wxPyBeginAllowThreads();
17793 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17794
17795 wxPyEndAllowThreads(__tstate);
17796 if (PyErr_Occurred()) SWIG_fail;
17797 }
17798 {
17799 #if wxUSE_UNICODE
17800 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17801 #else
17802 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17803 #endif
17804 }
17805 return resultobj;
17806 fail:
17807 return NULL;
17808 }
17809
17810
17811 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17812 PyObject *resultobj;
17813 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17814 wxString *arg2 = 0 ;
17815 wxColour *arg3 = 0 ;
17816 bool temp2 = False ;
17817 wxColour temp3 ;
17818 PyObject * obj0 = 0 ;
17819 PyObject * obj1 = 0 ;
17820 PyObject * obj2 = 0 ;
17821 char *kwnames[] = {
17822 (char *) "self",(char *) "name",(char *) "colour", NULL
17823 };
17824
17825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17828 {
17829 arg2 = wxString_in_helper(obj1);
17830 if (arg2 == NULL) SWIG_fail;
17831 temp2 = True;
17832 }
17833 {
17834 arg3 = &temp3;
17835 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17836 }
17837 {
17838 PyThreadState* __tstate = wxPyBeginAllowThreads();
17839 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17840
17841 wxPyEndAllowThreads(__tstate);
17842 if (PyErr_Occurred()) SWIG_fail;
17843 }
17844 Py_INCREF(Py_None); resultobj = Py_None;
17845 {
17846 if (temp2)
17847 delete arg2;
17848 }
17849 return resultobj;
17850 fail:
17851 {
17852 if (temp2)
17853 delete arg2;
17854 }
17855 return NULL;
17856 }
17857
17858
17859 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17860 PyObject *resultobj;
17861 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17862 wxString *arg2 = 0 ;
17863 int arg3 ;
17864 int arg4 ;
17865 int arg5 ;
17866 bool temp2 = False ;
17867 PyObject * obj0 = 0 ;
17868 PyObject * obj1 = 0 ;
17869 PyObject * obj2 = 0 ;
17870 PyObject * obj3 = 0 ;
17871 PyObject * obj4 = 0 ;
17872 char *kwnames[] = {
17873 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17874 };
17875
17876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17879 {
17880 arg2 = wxString_in_helper(obj1);
17881 if (arg2 == NULL) SWIG_fail;
17882 temp2 = True;
17883 }
17884 arg3 = (int) SWIG_AsInt(obj2);
17885 if (PyErr_Occurred()) SWIG_fail;
17886 arg4 = (int) SWIG_AsInt(obj3);
17887 if (PyErr_Occurred()) SWIG_fail;
17888 arg5 = (int) SWIG_AsInt(obj4);
17889 if (PyErr_Occurred()) SWIG_fail;
17890 {
17891 PyThreadState* __tstate = wxPyBeginAllowThreads();
17892 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17893
17894 wxPyEndAllowThreads(__tstate);
17895 if (PyErr_Occurred()) SWIG_fail;
17896 }
17897 Py_INCREF(Py_None); resultobj = Py_None;
17898 {
17899 if (temp2)
17900 delete arg2;
17901 }
17902 return resultobj;
17903 fail:
17904 {
17905 if (temp2)
17906 delete arg2;
17907 }
17908 return NULL;
17909 }
17910
17911
17912 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17913 PyObject *obj;
17914 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17915 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17916 Py_INCREF(obj);
17917 return Py_BuildValue((char *)"");
17918 }
17919 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17920 PyObject *resultobj;
17921 wxFontList *arg1 = (wxFontList *) 0 ;
17922 wxFont *arg2 = (wxFont *) 0 ;
17923 PyObject * obj0 = 0 ;
17924 PyObject * obj1 = 0 ;
17925 char *kwnames[] = {
17926 (char *) "self",(char *) "font", NULL
17927 };
17928
17929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17932 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17934 {
17935 PyThreadState* __tstate = wxPyBeginAllowThreads();
17936 (arg1)->AddFont(arg2);
17937
17938 wxPyEndAllowThreads(__tstate);
17939 if (PyErr_Occurred()) SWIG_fail;
17940 }
17941 Py_INCREF(Py_None); resultobj = Py_None;
17942 return resultobj;
17943 fail:
17944 return NULL;
17945 }
17946
17947
17948 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17949 PyObject *resultobj;
17950 wxFontList *arg1 = (wxFontList *) 0 ;
17951 int arg2 ;
17952 int arg3 ;
17953 int arg4 ;
17954 int arg5 ;
17955 bool arg6 = (bool) False ;
17956 wxString const &arg7_defvalue = wxPyEmptyString ;
17957 wxString *arg7 = (wxString *) &arg7_defvalue ;
17958 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17959 wxFont *result;
17960 bool temp7 = False ;
17961 PyObject * obj0 = 0 ;
17962 PyObject * obj1 = 0 ;
17963 PyObject * obj2 = 0 ;
17964 PyObject * obj3 = 0 ;
17965 PyObject * obj4 = 0 ;
17966 PyObject * obj5 = 0 ;
17967 PyObject * obj6 = 0 ;
17968 PyObject * obj7 = 0 ;
17969 char *kwnames[] = {
17970 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17971 };
17972
17973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17976 arg2 = (int) SWIG_AsInt(obj1);
17977 if (PyErr_Occurred()) SWIG_fail;
17978 arg3 = (int) SWIG_AsInt(obj2);
17979 if (PyErr_Occurred()) SWIG_fail;
17980 arg4 = (int) SWIG_AsInt(obj3);
17981 if (PyErr_Occurred()) SWIG_fail;
17982 arg5 = (int) SWIG_AsInt(obj4);
17983 if (PyErr_Occurred()) SWIG_fail;
17984 if (obj5) {
17985 arg6 = (bool) SWIG_AsBool(obj5);
17986 if (PyErr_Occurred()) SWIG_fail;
17987 }
17988 if (obj6) {
17989 {
17990 arg7 = wxString_in_helper(obj6);
17991 if (arg7 == NULL) SWIG_fail;
17992 temp7 = True;
17993 }
17994 }
17995 if (obj7) {
17996 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17997 if (PyErr_Occurred()) SWIG_fail;
17998 }
17999 {
18000 PyThreadState* __tstate = wxPyBeginAllowThreads();
18001 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18002
18003 wxPyEndAllowThreads(__tstate);
18004 if (PyErr_Occurred()) SWIG_fail;
18005 }
18006 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18007 {
18008 if (temp7)
18009 delete arg7;
18010 }
18011 return resultobj;
18012 fail:
18013 {
18014 if (temp7)
18015 delete arg7;
18016 }
18017 return NULL;
18018 }
18019
18020
18021 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18022 PyObject *resultobj;
18023 wxFontList *arg1 = (wxFontList *) 0 ;
18024 wxFont *arg2 = (wxFont *) 0 ;
18025 PyObject * obj0 = 0 ;
18026 PyObject * obj1 = 0 ;
18027 char *kwnames[] = {
18028 (char *) "self",(char *) "font", NULL
18029 };
18030
18031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18034 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18036 {
18037 PyThreadState* __tstate = wxPyBeginAllowThreads();
18038 (arg1)->RemoveFont(arg2);
18039
18040 wxPyEndAllowThreads(__tstate);
18041 if (PyErr_Occurred()) SWIG_fail;
18042 }
18043 Py_INCREF(Py_None); resultobj = Py_None;
18044 return resultobj;
18045 fail:
18046 return NULL;
18047 }
18048
18049
18050 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18051 PyObject *resultobj;
18052 wxFontList *arg1 = (wxFontList *) 0 ;
18053 int result;
18054 PyObject * obj0 = 0 ;
18055 char *kwnames[] = {
18056 (char *) "self", NULL
18057 };
18058
18059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18062 {
18063 PyThreadState* __tstate = wxPyBeginAllowThreads();
18064 result = (int)(arg1)->GetCount();
18065
18066 wxPyEndAllowThreads(__tstate);
18067 if (PyErr_Occurred()) SWIG_fail;
18068 }
18069 resultobj = SWIG_FromInt((int)result);
18070 return resultobj;
18071 fail:
18072 return NULL;
18073 }
18074
18075
18076 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
18077 PyObject *obj;
18078 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18079 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18080 Py_INCREF(obj);
18081 return Py_BuildValue((char *)"");
18082 }
18083 static int _wrap_TheFontList_set(PyObject *_val) {
18084 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18085 return 1;
18086 }
18087
18088
18089 static PyObject *_wrap_TheFontList_get() {
18090 PyObject *pyobj;
18091
18092 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18093 return pyobj;
18094 }
18095
18096
18097 static int _wrap_ThePenList_set(PyObject *_val) {
18098 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18099 return 1;
18100 }
18101
18102
18103 static PyObject *_wrap_ThePenList_get() {
18104 PyObject *pyobj;
18105
18106 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18107 return pyobj;
18108 }
18109
18110
18111 static int _wrap_TheBrushList_set(PyObject *_val) {
18112 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18113 return 1;
18114 }
18115
18116
18117 static PyObject *_wrap_TheBrushList_get() {
18118 PyObject *pyobj;
18119
18120 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18121 return pyobj;
18122 }
18123
18124
18125 static int _wrap_TheColourDatabase_set(PyObject *_val) {
18126 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18127 return 1;
18128 }
18129
18130
18131 static PyObject *_wrap_TheColourDatabase_get() {
18132 PyObject *pyobj;
18133
18134 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18135 return pyobj;
18136 }
18137
18138
18139 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
18140 PyObject *resultobj;
18141 wxEffects *result;
18142 char *kwnames[] = {
18143 NULL
18144 };
18145
18146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18147 {
18148 PyThreadState* __tstate = wxPyBeginAllowThreads();
18149 result = (wxEffects *)new wxEffects();
18150
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18155 return resultobj;
18156 fail:
18157 return NULL;
18158 }
18159
18160
18161 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18162 PyObject *resultobj;
18163 wxEffects *arg1 = (wxEffects *) 0 ;
18164 wxColour result;
18165 PyObject * obj0 = 0 ;
18166 char *kwnames[] = {
18167 (char *) "self", NULL
18168 };
18169
18170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 result = ((wxEffects const *)arg1)->GetHighlightColour();
18176
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 {
18181 wxColour * resultptr;
18182 resultptr = new wxColour((wxColour &) result);
18183 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18184 }
18185 return resultobj;
18186 fail:
18187 return NULL;
18188 }
18189
18190
18191 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18192 PyObject *resultobj;
18193 wxEffects *arg1 = (wxEffects *) 0 ;
18194 wxColour result;
18195 PyObject * obj0 = 0 ;
18196 char *kwnames[] = {
18197 (char *) "self", NULL
18198 };
18199
18200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18203 {
18204 PyThreadState* __tstate = wxPyBeginAllowThreads();
18205 result = ((wxEffects const *)arg1)->GetLightShadow();
18206
18207 wxPyEndAllowThreads(__tstate);
18208 if (PyErr_Occurred()) SWIG_fail;
18209 }
18210 {
18211 wxColour * resultptr;
18212 resultptr = new wxColour((wxColour &) result);
18213 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18214 }
18215 return resultobj;
18216 fail:
18217 return NULL;
18218 }
18219
18220
18221 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18222 PyObject *resultobj;
18223 wxEffects *arg1 = (wxEffects *) 0 ;
18224 wxColour result;
18225 PyObject * obj0 = 0 ;
18226 char *kwnames[] = {
18227 (char *) "self", NULL
18228 };
18229
18230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18233 {
18234 PyThreadState* __tstate = wxPyBeginAllowThreads();
18235 result = ((wxEffects const *)arg1)->GetFaceColour();
18236
18237 wxPyEndAllowThreads(__tstate);
18238 if (PyErr_Occurred()) SWIG_fail;
18239 }
18240 {
18241 wxColour * resultptr;
18242 resultptr = new wxColour((wxColour &) result);
18243 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18244 }
18245 return resultobj;
18246 fail:
18247 return NULL;
18248 }
18249
18250
18251 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18252 PyObject *resultobj;
18253 wxEffects *arg1 = (wxEffects *) 0 ;
18254 wxColour result;
18255 PyObject * obj0 = 0 ;
18256 char *kwnames[] = {
18257 (char *) "self", NULL
18258 };
18259
18260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18263 {
18264 PyThreadState* __tstate = wxPyBeginAllowThreads();
18265 result = ((wxEffects const *)arg1)->GetMediumShadow();
18266
18267 wxPyEndAllowThreads(__tstate);
18268 if (PyErr_Occurred()) SWIG_fail;
18269 }
18270 {
18271 wxColour * resultptr;
18272 resultptr = new wxColour((wxColour &) result);
18273 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18274 }
18275 return resultobj;
18276 fail:
18277 return NULL;
18278 }
18279
18280
18281 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18282 PyObject *resultobj;
18283 wxEffects *arg1 = (wxEffects *) 0 ;
18284 wxColour result;
18285 PyObject * obj0 = 0 ;
18286 char *kwnames[] = {
18287 (char *) "self", NULL
18288 };
18289
18290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18293 {
18294 PyThreadState* __tstate = wxPyBeginAllowThreads();
18295 result = ((wxEffects const *)arg1)->GetDarkShadow();
18296
18297 wxPyEndAllowThreads(__tstate);
18298 if (PyErr_Occurred()) SWIG_fail;
18299 }
18300 {
18301 wxColour * resultptr;
18302 resultptr = new wxColour((wxColour &) result);
18303 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18304 }
18305 return resultobj;
18306 fail:
18307 return NULL;
18308 }
18309
18310
18311 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18312 PyObject *resultobj;
18313 wxEffects *arg1 = (wxEffects *) 0 ;
18314 wxColour *arg2 = 0 ;
18315 wxColour temp2 ;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 char *kwnames[] = {
18319 (char *) "self",(char *) "c", NULL
18320 };
18321
18322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18325 {
18326 arg2 = &temp2;
18327 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18328 }
18329 {
18330 PyThreadState* __tstate = wxPyBeginAllowThreads();
18331 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18332
18333 wxPyEndAllowThreads(__tstate);
18334 if (PyErr_Occurred()) SWIG_fail;
18335 }
18336 Py_INCREF(Py_None); resultobj = Py_None;
18337 return resultobj;
18338 fail:
18339 return NULL;
18340 }
18341
18342
18343 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18344 PyObject *resultobj;
18345 wxEffects *arg1 = (wxEffects *) 0 ;
18346 wxColour *arg2 = 0 ;
18347 wxColour temp2 ;
18348 PyObject * obj0 = 0 ;
18349 PyObject * obj1 = 0 ;
18350 char *kwnames[] = {
18351 (char *) "self",(char *) "c", NULL
18352 };
18353
18354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18357 {
18358 arg2 = &temp2;
18359 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18360 }
18361 {
18362 PyThreadState* __tstate = wxPyBeginAllowThreads();
18363 (arg1)->SetLightShadow((wxColour const &)*arg2);
18364
18365 wxPyEndAllowThreads(__tstate);
18366 if (PyErr_Occurred()) SWIG_fail;
18367 }
18368 Py_INCREF(Py_None); resultobj = Py_None;
18369 return resultobj;
18370 fail:
18371 return NULL;
18372 }
18373
18374
18375 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18376 PyObject *resultobj;
18377 wxEffects *arg1 = (wxEffects *) 0 ;
18378 wxColour *arg2 = 0 ;
18379 wxColour temp2 ;
18380 PyObject * obj0 = 0 ;
18381 PyObject * obj1 = 0 ;
18382 char *kwnames[] = {
18383 (char *) "self",(char *) "c", NULL
18384 };
18385
18386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18389 {
18390 arg2 = &temp2;
18391 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18392 }
18393 {
18394 PyThreadState* __tstate = wxPyBeginAllowThreads();
18395 (arg1)->SetFaceColour((wxColour const &)*arg2);
18396
18397 wxPyEndAllowThreads(__tstate);
18398 if (PyErr_Occurred()) SWIG_fail;
18399 }
18400 Py_INCREF(Py_None); resultobj = Py_None;
18401 return resultobj;
18402 fail:
18403 return NULL;
18404 }
18405
18406
18407 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18408 PyObject *resultobj;
18409 wxEffects *arg1 = (wxEffects *) 0 ;
18410 wxColour *arg2 = 0 ;
18411 wxColour temp2 ;
18412 PyObject * obj0 = 0 ;
18413 PyObject * obj1 = 0 ;
18414 char *kwnames[] = {
18415 (char *) "self",(char *) "c", NULL
18416 };
18417
18418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18421 {
18422 arg2 = &temp2;
18423 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18424 }
18425 {
18426 PyThreadState* __tstate = wxPyBeginAllowThreads();
18427 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18428
18429 wxPyEndAllowThreads(__tstate);
18430 if (PyErr_Occurred()) SWIG_fail;
18431 }
18432 Py_INCREF(Py_None); resultobj = Py_None;
18433 return resultobj;
18434 fail:
18435 return NULL;
18436 }
18437
18438
18439 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18440 PyObject *resultobj;
18441 wxEffects *arg1 = (wxEffects *) 0 ;
18442 wxColour *arg2 = 0 ;
18443 wxColour temp2 ;
18444 PyObject * obj0 = 0 ;
18445 PyObject * obj1 = 0 ;
18446 char *kwnames[] = {
18447 (char *) "self",(char *) "c", NULL
18448 };
18449
18450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18453 {
18454 arg2 = &temp2;
18455 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18456 }
18457 {
18458 PyThreadState* __tstate = wxPyBeginAllowThreads();
18459 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18460
18461 wxPyEndAllowThreads(__tstate);
18462 if (PyErr_Occurred()) SWIG_fail;
18463 }
18464 Py_INCREF(Py_None); resultobj = Py_None;
18465 return resultobj;
18466 fail:
18467 return NULL;
18468 }
18469
18470
18471 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18472 PyObject *resultobj;
18473 wxEffects *arg1 = (wxEffects *) 0 ;
18474 wxColour *arg2 = 0 ;
18475 wxColour *arg3 = 0 ;
18476 wxColour *arg4 = 0 ;
18477 wxColour *arg5 = 0 ;
18478 wxColour *arg6 = 0 ;
18479 wxColour temp2 ;
18480 wxColour temp3 ;
18481 wxColour temp4 ;
18482 wxColour temp5 ;
18483 wxColour temp6 ;
18484 PyObject * obj0 = 0 ;
18485 PyObject * obj1 = 0 ;
18486 PyObject * obj2 = 0 ;
18487 PyObject * obj3 = 0 ;
18488 PyObject * obj4 = 0 ;
18489 PyObject * obj5 = 0 ;
18490 char *kwnames[] = {
18491 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18492 };
18493
18494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18497 {
18498 arg2 = &temp2;
18499 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18500 }
18501 {
18502 arg3 = &temp3;
18503 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18504 }
18505 {
18506 arg4 = &temp4;
18507 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18508 }
18509 {
18510 arg5 = &temp5;
18511 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18512 }
18513 {
18514 arg6 = &temp6;
18515 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18516 }
18517 {
18518 PyThreadState* __tstate = wxPyBeginAllowThreads();
18519 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18520
18521 wxPyEndAllowThreads(__tstate);
18522 if (PyErr_Occurred()) SWIG_fail;
18523 }
18524 Py_INCREF(Py_None); resultobj = Py_None;
18525 return resultobj;
18526 fail:
18527 return NULL;
18528 }
18529
18530
18531 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18532 PyObject *resultobj;
18533 wxEffects *arg1 = (wxEffects *) 0 ;
18534 wxDC *arg2 = 0 ;
18535 wxRect *arg3 = 0 ;
18536 int arg4 = (int) 1 ;
18537 wxRect temp3 ;
18538 PyObject * obj0 = 0 ;
18539 PyObject * obj1 = 0 ;
18540 PyObject * obj2 = 0 ;
18541 PyObject * obj3 = 0 ;
18542 char *kwnames[] = {
18543 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18544 };
18545
18546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18549 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18550 SWIG_POINTER_EXCEPTION | 0)) == -1)
18551 SWIG_fail;
18552 if (arg2 == NULL) {
18553 PyErr_SetString(PyExc_TypeError,"null reference");
18554 SWIG_fail;
18555 }
18556 {
18557 arg3 = &temp3;
18558 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18559 }
18560 if (obj3) {
18561 arg4 = (int) SWIG_AsInt(obj3);
18562 if (PyErr_Occurred()) SWIG_fail;
18563 }
18564 {
18565 PyThreadState* __tstate = wxPyBeginAllowThreads();
18566 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18567
18568 wxPyEndAllowThreads(__tstate);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 }
18571 Py_INCREF(Py_None); resultobj = Py_None;
18572 return resultobj;
18573 fail:
18574 return NULL;
18575 }
18576
18577
18578 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18579 PyObject *resultobj;
18580 wxEffects *arg1 = (wxEffects *) 0 ;
18581 wxRect *arg2 = 0 ;
18582 wxDC *arg3 = 0 ;
18583 wxBitmap *arg4 = 0 ;
18584 bool result;
18585 wxRect temp2 ;
18586 PyObject * obj0 = 0 ;
18587 PyObject * obj1 = 0 ;
18588 PyObject * obj2 = 0 ;
18589 PyObject * obj3 = 0 ;
18590 char *kwnames[] = {
18591 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18592 };
18593
18594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18597 {
18598 arg2 = &temp2;
18599 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18600 }
18601 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18602 SWIG_POINTER_EXCEPTION | 0)) == -1)
18603 SWIG_fail;
18604 if (arg3 == NULL) {
18605 PyErr_SetString(PyExc_TypeError,"null reference");
18606 SWIG_fail;
18607 }
18608 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18609 SWIG_POINTER_EXCEPTION | 0)) == -1)
18610 SWIG_fail;
18611 if (arg4 == NULL) {
18612 PyErr_SetString(PyExc_TypeError,"null reference");
18613 SWIG_fail;
18614 }
18615 {
18616 PyThreadState* __tstate = wxPyBeginAllowThreads();
18617 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18618
18619 wxPyEndAllowThreads(__tstate);
18620 if (PyErr_Occurred()) SWIG_fail;
18621 }
18622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18623 return resultobj;
18624 fail:
18625 return NULL;
18626 }
18627
18628
18629 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18630 PyObject *obj;
18631 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18632 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18633 Py_INCREF(obj);
18634 return Py_BuildValue((char *)"");
18635 }
18636 static PyMethodDef SwigMethods[] = {
18637 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18643 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18660 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18666 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18687 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18691 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18701 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18703 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18708 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
18710 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18730 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18732 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18751 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18759 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18760 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18761 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18764 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18767 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
18773 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
18775 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
18776 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
18777 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
18778 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
18779 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
18780 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18782 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18783 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18785 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18786 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18790 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18791 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18792 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18793 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18794 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18795 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18796 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18797 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18798 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18799 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18800 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18801 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18802 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18803 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18804 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18805 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18806 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18807 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18808 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18809 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18810 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18811 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18812 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18813 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18814 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18815 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18816 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18817 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18818 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18819 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18820 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18821 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18822 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18823 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18824 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18825 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18826 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18827 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18828 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18829 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18830 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18831 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18832 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18833 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18834 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18835 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18836 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18837 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18838 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18839 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18840 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18841 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18842 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18843 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18844 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18845 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18846 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18847 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18848 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18849 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18850 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18851 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18852 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18853 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18854 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18855 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18856 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18857 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18858 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18859 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18860 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18861 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18862 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18863 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18864 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18865 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18866 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18867 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18868 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18869 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18870 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18871 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18872 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18873 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18874 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18875 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18876 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18877 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18878 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18879 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18880 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18881 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18882 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18883 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18884 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18885 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18886 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18887 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18888 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18889 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18890 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18891 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18892 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18893 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18894 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18895 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18896 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18897 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18898 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18899 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18900 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18901 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18902 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18903 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18904 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18905 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18906 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18907 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18908 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18909 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18910 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18911 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18912 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18913 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18914 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18915 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18916 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18917 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18918 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18919 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18920 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18921 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18922 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18923 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18924 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18925 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18926 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18927 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18928 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18929 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18930 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18931 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18932 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18933 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18934 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18935 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18936 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18937 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18938 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18939 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18940 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18941 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18942 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18943 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18944 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18945 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18946 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18947 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18948 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18949 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18950 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18951 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18952 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18953 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18954 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18955 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18956 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18957 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18958 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18959 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18960 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18961 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18962 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18963 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18964 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18965 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18966 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18967 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18968 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18969 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18970 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18971 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18972 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18973 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18974 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18975 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18976 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18977 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18978 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18979 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18980 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18981 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18982 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18983 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18984 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18985 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18986 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18987 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18988 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18989 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18990 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18991 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18992 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18993 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18994 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18995 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18996 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18997 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18998 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18999 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
19000 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
19001 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
19002 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
19003 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
19004 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
19005 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
19006 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
19007 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
19008 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
19009 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
19010 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
19011 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
19012 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
19013 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19014 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
19015 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
19016 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
19017 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
19018 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
19019 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
19020 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
19021 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
19022 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
19023 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
19024 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
19025 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
19026 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
19027 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
19028 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
19029 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
19030 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
19031 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
19032 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
19033 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
19034 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
19035 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
19036 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
19037 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
19038 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
19039 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
19040 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
19041 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
19042 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
19043 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
19044 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
19045 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19046 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
19047 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
19048 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
19049 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
19050 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
19051 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
19052 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
19053 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
19054 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
19055 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
19056 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
19057 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
19058 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19059 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19060 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19061 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
19062 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19063 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19064 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
19065 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19066 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
19067 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19068 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19069 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
19070 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
19071 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
19072 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19073 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
19074 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
19075 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
19076 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
19077 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19078 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
19079 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
19080 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
19081 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
19082 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
19083 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
19084 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
19085 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
19086 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
19087 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
19088 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
19089 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
19090 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
19091 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
19092 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
19093 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
19094 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
19095 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
19096 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
19097 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
19098 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19099 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19100 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
19101 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
19102 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
19103 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
19104 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
19105 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
19106 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
19107 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
19108 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
19109 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
19110 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
19111 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
19112 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
19113 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
19114 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
19115 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
19116 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
19117 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
19118 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
19119 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
19120 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
19121 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
19122 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
19123 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
19124 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
19125 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
19126 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
19127 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
19128 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
19129 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
19130 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
19131 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
19132 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
19133 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
19134 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
19135 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
19136 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
19137 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19138 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19139 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19140 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19141 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19142 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19143 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19144 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19145 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19146 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19147 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19148 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19149 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19150 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19151 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19152 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19153 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19154 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19155 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19156 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19157 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19158 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19159 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19160 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19161 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19162 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
19163 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19164 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19165 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19166 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19167 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19168 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19169 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19170 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19171 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19172 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19173 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19174 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19175 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19176 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19177 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19178 { NULL, NULL }
19179 };
19180
19181
19182 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19183
19184 static void *_p_wxControlTo_p_wxWindow(void *x) {
19185 return (void *)((wxWindow *) ((wxControl *) x));
19186 }
19187 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19188 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19189 }
19190 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19191 return (void *)((wxWindow *) ((wxMenuBar *) x));
19192 }
19193 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19194 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19195 }
19196 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19197 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19198 }
19199 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19200 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19201 }
19202 static void *_p_wxPenTo_p_wxObject(void *x) {
19203 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19204 }
19205 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19206 return (void *)((wxObject *) ((wxRegionIterator *) x));
19207 }
19208 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19209 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19210 }
19211 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19212 return (void *)((wxObject *) ((wxSizerItem *) x));
19213 }
19214 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19215 return (void *)((wxObject *) ((wxColourDatabase *) x));
19216 }
19217 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19218 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19219 }
19220 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19221 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19222 }
19223 static void *_p_wxIconTo_p_wxObject(void *x) {
19224 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19225 }
19226 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19227 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19228 }
19229 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19230 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19231 }
19232 static void *_p_wxSizerTo_p_wxObject(void *x) {
19233 return (void *)((wxObject *) ((wxSizer *) x));
19234 }
19235 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19236 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19237 }
19238 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19239 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19240 }
19241 static void *_p_wxPenListTo_p_wxObject(void *x) {
19242 return (void *)((wxObject *) ((wxPenList *) x));
19243 }
19244 static void *_p_wxEventTo_p_wxObject(void *x) {
19245 return (void *)((wxObject *) ((wxEvent *) x));
19246 }
19247 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19248 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19249 }
19250 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19251 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19252 }
19253 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19254 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19255 }
19256 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19257 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19258 }
19259 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19260 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19261 }
19262 static void *_p_wxDCTo_p_wxObject(void *x) {
19263 return (void *)((wxObject *) ((wxDC *) x));
19264 }
19265 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19266 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19267 }
19268 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19269 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19270 }
19271 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19272 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19273 }
19274 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19275 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19276 }
19277 static void *_p_wxControlTo_p_wxObject(void *x) {
19278 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19279 }
19280 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19281 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19282 }
19283 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19284 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19285 }
19286 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19287 return (void *)((wxObject *) ((wxFSFile *) x));
19288 }
19289 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19290 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19291 }
19292 static void *_p_wxRegionTo_p_wxObject(void *x) {
19293 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19294 }
19295 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19296 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19297 }
19298 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19299 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19300 }
19301 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19302 return (void *)((wxObject *) ((wxGDIObject *) x));
19303 }
19304 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19305 return (void *)((wxObject *) ((wxEffects *) x));
19306 }
19307 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19308 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19309 }
19310 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19311 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19312 }
19313 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19314 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19315 }
19316 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19317 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19318 }
19319 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19320 return (void *)((wxObject *) ((wxMenuItem *) x));
19321 }
19322 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19323 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19324 }
19325 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19326 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19327 }
19328 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19329 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19330 }
19331 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19332 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19333 }
19334 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19335 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19336 }
19337 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19338 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19339 }
19340 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19341 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19342 }
19343 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19344 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19345 }
19346 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19347 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19348 }
19349 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19350 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19351 }
19352 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19353 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19354 }
19355 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19356 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19357 }
19358 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19359 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19360 }
19361 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19362 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19363 }
19364 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19365 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19366 }
19367 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19368 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19369 }
19370 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19371 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19372 }
19373 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19374 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19375 }
19376 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19377 return (void *)((wxObject *) ((wxImageHandler *) x));
19378 }
19379 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19380 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19381 }
19382 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19383 return (void *)((wxObject *) ((wxEvtHandler *) x));
19384 }
19385 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19386 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19387 }
19388 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19389 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19390 }
19391 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19392 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19393 }
19394 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19395 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19396 }
19397 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19398 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19399 }
19400 static void *_p_wxImageTo_p_wxObject(void *x) {
19401 return (void *)((wxObject *) ((wxImage *) x));
19402 }
19403 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19404 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19405 }
19406 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19407 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19408 }
19409 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19410 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19411 }
19412 static void *_p_wxImageListTo_p_wxObject(void *x) {
19413 return (void *)((wxObject *) ((wxImageList *) x));
19414 }
19415 static void *_p_wxCursorTo_p_wxObject(void *x) {
19416 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19417 }
19418 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19419 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19420 }
19421 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19422 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19423 }
19424 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19425 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19426 }
19427 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19428 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19429 }
19430 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19431 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19432 }
19433 static void *_p_wxWindowTo_p_wxObject(void *x) {
19434 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19435 }
19436 static void *_p_wxMenuTo_p_wxObject(void *x) {
19437 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19438 }
19439 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19440 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19441 }
19442 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19443 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19444 }
19445 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19446 return (void *)((wxObject *) ((wxBrushList *) x));
19447 }
19448 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19449 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19450 }
19451 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19452 return (void *)((wxObject *) ((wxFileSystem *) x));
19453 }
19454 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19455 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19456 }
19457 static void *_p_wxMaskTo_p_wxObject(void *x) {
19458 return (void *)((wxObject *) ((wxMask *) x));
19459 }
19460 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19461 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19462 }
19463 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19464 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19465 }
19466 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19467 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19468 }
19469 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19470 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19471 }
19472 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19473 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19474 }
19475 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19476 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19477 }
19478 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19479 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19480 }
19481 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19482 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19483 }
19484 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19485 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19486 }
19487 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19488 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19489 }
19490 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19491 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19492 }
19493 static void *_p_wxFontTo_p_wxObject(void *x) {
19494 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19495 }
19496 static void *_p_wxBrushTo_p_wxObject(void *x) {
19497 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19498 }
19499 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19500 return (void *)((wxObject *) ((wxMetaFile *) x));
19501 }
19502 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19503 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19504 }
19505 static void *_p_wxColourTo_p_wxObject(void *x) {
19506 return (void *)((wxObject *) ((wxColour *) x));
19507 }
19508 static void *_p_wxFontListTo_p_wxObject(void *x) {
19509 return (void *)((wxObject *) ((wxFontList *) x));
19510 }
19511 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19512 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19513 }
19514 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19515 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19516 }
19517 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19518 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19519 }
19520 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19521 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19522 }
19523 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19524 return (void *)((wxDC *) ((wxScreenDC *) x));
19525 }
19526 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19527 return (void *)((wxDC *) ((wxMirrorDC *) x));
19528 }
19529 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19530 return (void *)((wxDC *) ((wxMemoryDC *) x));
19531 }
19532 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19533 return (void *)((wxDC *) ((wxWindowDC *) x));
19534 }
19535 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19536 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19537 }
19538 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19539 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19540 }
19541 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19542 return (void *)((wxDC *) ((wxClientDC *) x));
19543 }
19544 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19545 return (void *)((wxDC *) ((wxPaintDC *) x));
19546 }
19547 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19548 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19549 }
19550 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19551 return (void *)((wxDC *) ((wxPrinterDC *) x));
19552 }
19553 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19554 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19555 }
19556 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19557 return (void *)((wxGDIObject *) ((wxIcon *) x));
19558 }
19559 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19560 return (void *)((wxGDIObject *) ((wxPalette *) x));
19561 }
19562 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19563 return (void *)((wxGDIObject *) ((wxPen *) x));
19564 }
19565 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19566 return (void *)((wxGDIObject *) ((wxFont *) x));
19567 }
19568 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19569 return (void *)((wxGDIObject *) ((wxCursor *) x));
19570 }
19571 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19572 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19573 }
19574 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19575 return (void *)((wxGDIObject *) ((wxRegion *) x));
19576 }
19577 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19578 return (void *)((wxGDIObject *) ((wxBrush *) x));
19579 }
19580 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19581 return (void *)((wxPen *) ((wxPyPen *) x));
19582 }
19583 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}};
19584 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}};
19585 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}};
19586 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}};
19587 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}};
19588 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}};
19589 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}};
19590 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}};
19591 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}};
19592 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}};
19593 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}};
19594 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}};
19595 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}};
19596 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}};
19597 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}};
19598 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}};
19599 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}};
19600 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}};
19601 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}};
19602 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}};
19603 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}};
19604 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}};
19605 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}};
19606 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}};
19607 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}};
19608 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}};
19609 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}};
19610 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}};
19611 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}};
19612 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}};
19613 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}};
19614 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}};
19615 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}};
19616 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}};
19617 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}};
19618 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}};
19619 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}};
19620 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}};
19621 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}};
19622 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}};
19623 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}};
19624 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}};
19625 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}};
19626 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}};
19627 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}};
19628 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}};
19629 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}};
19630 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}};
19631 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}};
19632 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}};
19633 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}};
19634 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}};
19635 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}};
19636 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}};
19637 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}};
19638 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}};
19639
19640 static swig_type_info *swig_types_initial[] = {
19641 _swigt__p_wxPostScriptDC,
19642 _swigt__p_wxBrush,
19643 _swigt__p_wxColour,
19644 _swigt__p_wxDC,
19645 _swigt__p_wxMirrorDC,
19646 _swigt__p_byte,
19647 _swigt__p_wxPyFontEnumerator,
19648 _swigt__p_char,
19649 _swigt__p_wxIconLocation,
19650 _swigt__p_wxImage,
19651 _swigt__p_wxMetaFileDC,
19652 _swigt__p_wxMask,
19653 _swigt__p_wxFont,
19654 _swigt__p_wxWindow,
19655 _swigt__p_wxSize,
19656 _swigt__p_double,
19657 _swigt__p_wxMemoryDC,
19658 _swigt__p_wxFontMapper,
19659 _swigt__p_wxEffects,
19660 _swigt__p_wxNativeEncodingInfo,
19661 _swigt__p_wxPalette,
19662 _swigt__p_wxBitmap,
19663 _swigt__p_wxObject,
19664 _swigt__p_wxRegionIterator,
19665 _swigt__p_wxRect,
19666 _swigt__p_wxString,
19667 _swigt__p_wxPrinterDC,
19668 _swigt__p_wxIconBundle,
19669 _swigt__p_wxPoint,
19670 _swigt__p_wxDash,
19671 _swigt__p_wxScreenDC,
19672 _swigt__p_wxCursor,
19673 _swigt__p_wxClientDC,
19674 _swigt__p_wxBufferedDC,
19675 _swigt__p_wxImageList,
19676 _swigt__p_unsigned_char,
19677 _swigt__p_wxGDIObject,
19678 _swigt__p_wxIcon,
19679 _swigt__p_wxLocale,
19680 _swigt__p_wxRegion,
19681 _swigt__p_wxLanguageInfo,
19682 _swigt__p_wxConfigBase,
19683 _swigt__p_wxWindowDC,
19684 _swigt__p_wxPrintData,
19685 _swigt__p_wxBrushList,
19686 _swigt__p_wxFontList,
19687 _swigt__p_wxPen,
19688 _swigt__p_wxBufferedPaintDC,
19689 _swigt__p_wxPaintDC,
19690 _swigt__p_wxPenList,
19691 _swigt__p_wxPyPen,
19692 _swigt__p_int,
19693 _swigt__p_wxMetaFile,
19694 _swigt__p_wxNativeFontInfo,
19695 _swigt__p_wxEncodingConverter,
19696 _swigt__p_wxColourDatabase,
19697 0
19698 };
19699
19700
19701 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19702
19703 static swig_const_info swig_const_table[] = {
19704 {0}};
19705
19706 #ifdef __cplusplus
19707 }
19708 #endif
19709
19710 #ifdef __cplusplus
19711 extern "C"
19712 #endif
19713 SWIGEXPORT(void) SWIG_init(void) {
19714 static PyObject *SWIG_globals = 0;
19715 static int typeinit = 0;
19716 PyObject *m, *d;
19717 int i;
19718 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19719 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19720 d = PyModule_GetDict(m);
19721
19722 if (!typeinit) {
19723 for (i = 0; swig_types_initial[i]; i++) {
19724 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19725 }
19726 typeinit = 1;
19727 }
19728 SWIG_InstallConstants(d,swig_const_table);
19729
19730 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19731 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19732 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19733 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19734 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19735 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19736 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19737 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19738 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19739 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19740 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19741 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19742 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19743 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19744 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19745 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19746 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19747 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19748 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19749 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19750 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19751 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19752 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19753 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19754 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19755 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19756 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19757 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19758 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19759 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19760 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19761 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19762 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19763 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19764 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19765 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19766 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19767 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19768 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19769 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19770 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19771 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19772 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19773 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19774 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19775 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19776 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19777 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19778 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19779 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19780 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19781 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19782 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19783 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19784 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19785 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19786 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19787 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19788 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19789 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19790 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19791 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19792 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19793 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19794 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19795 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19796 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19797 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19798 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19799 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19800 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19801 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19802 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19803 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19804 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19805 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19806 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19807 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19808 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19809 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19810 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19811 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19812 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19813 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19814 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19815 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19816 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19817 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19818 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19819 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19820 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19821 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19822 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19823 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19824 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19825 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19826 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19827 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19828 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19829 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19830 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19831 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19832 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19833 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19834 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19835 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19836 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19837 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19838 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19839 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19840 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19841 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19842 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19843 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19844 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19845 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19846 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19847 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19848 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19849 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19850 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19851 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19852 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19853 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19854 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19855 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19856
19857 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19858
19859 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19860 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19861 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19862 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19863 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19864 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19865 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19866 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19867 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19868 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19869 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19870 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19871 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19872 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19873 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19874 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19875 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19876 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19877 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19878 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19879 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19880 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19881 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19882 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19883 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19884 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19885 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19886 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19887 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19888 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19889 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19890 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19891 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19892 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19893 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19894 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19895 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19896 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19897 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19898 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19899 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19900 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19901 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19902 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19903 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19904 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19905 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19906 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19907 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19908 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19909 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19910 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19911 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19912 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19913 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19914 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19915 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19916 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19917 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19918 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19919 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19920 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19921 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19922 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19923 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19924 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19925 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19926 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19927 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19928 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19929 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19930 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19931 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19932 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19933 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19934 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19935 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19936 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19937 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19938 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19939 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19940 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19941 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19942 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19943 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19944 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19945 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19946 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19947 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19948 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19949 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19950 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19951 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19952 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19953 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19954 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19955 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19956 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19957 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19958 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19959 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19960 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19961 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19962 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19963 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19964 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19965 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19966 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19967 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19968 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19969 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19970 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19971 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19972 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19973 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19974 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19975 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19976 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19977 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19978 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19979 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19980 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19981 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19982 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19983 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19984 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19985 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19986 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19987 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19988 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19989 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19990 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19991 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19992 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19993 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19994 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19995 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19996 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19997 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19998 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19999 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
20000 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
20001 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
20002 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20003 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20004 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
20005 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
20006 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
20007 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
20008 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
20009 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
20010 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20011 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
20012 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
20013 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
20014 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
20015 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
20016 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20017 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
20018 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
20019 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
20020 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
20021 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
20022 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20023 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
20024 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
20025 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
20026 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
20027 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
20028 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
20029 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
20030 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
20031 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
20032 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
20033 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
20034 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
20035 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
20036 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
20037 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
20038 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
20039 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20040 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20041 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
20042 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20043 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
20044 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
20045 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
20046 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
20047 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
20048 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
20049 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
20050 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
20051 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20052 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
20053 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
20054 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
20055 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
20056 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
20057 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
20058 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
20059 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
20060 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
20061 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
20062 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
20063 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
20064 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
20065 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
20066 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
20067 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
20068 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
20069 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
20070 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
20071 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
20072 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
20073 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
20074 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
20075 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
20076 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
20077 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
20078 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
20079 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
20080 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
20081 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
20082 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
20083 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
20084 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
20085 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
20086 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
20087 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
20088 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
20089 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
20090 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
20091 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
20092 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
20093 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
20094 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
20095 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
20096 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
20097 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
20098 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
20099 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
20100 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
20101 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
20102 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
20103 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
20104 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
20105 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
20106 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
20107 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
20108 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
20109 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
20110 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
20111 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
20112 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20113 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20114 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20115 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20116 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20117 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20118 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20119 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20120 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20121 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20122 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20123 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20124 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20125 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20126 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20127 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20128 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20129 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20130 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20131 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20132 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20133 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20134 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20135 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20136 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20137 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20138 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20139 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20140 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20141 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20142 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20143 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20144 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20145 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20146 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20147 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20148 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20149 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20150 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20151 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20152 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20153 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20154 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20155 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20156 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20157 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20158 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20159
20160 // Work around a chicken/egg problem in drawlist.cpp
20161 wxPyDrawList_SetAPIPtr();
20162
20163 }
20164