]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi_wrap.cpp
docstring patch has been submitted to SF
[wxWidgets.git] / wxPython / src / gtk / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124
125 #endif
126
127
128 /***********************************************************************
129 * pyrun.swg for wxPython
130 *
131 * Include only the function prototypes and such from SWIG's pyrun.swg,
132 * but not the runtime functions themselves. This helps keep the
133 * wrapper files clean of unnecessary stuff that is in the libpy.c file
134 * anyway.
135 *
136 ************************************************************************/
137
138 #include "Python.h"
139
140 #include <limits.h>
141 #include <float.h>
142
143 #ifdef __cplusplus
144 #define SWIG_STATIC_INLINE static inline
145 #else
146 #define SWIG_STATIC_INLINE static
147 #endif
148
149 SWIG_STATIC_INLINE long
150 SPyObj_AsLong(PyObject * obj)
151 {
152 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
153 }
154
155 SWIG_STATIC_INLINE unsigned long
156 SPyObj_AsUnsignedLong(PyObject * obj)
157 {
158 if (PyLong_Check(obj)) {
159 return PyLong_AsUnsignedLong(obj);
160 } else {
161 long i = PyInt_AsLong(obj);
162 if ( !PyErr_Occurred() && (i < 0)) {
163 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
164 }
165 return i;
166 }
167 }
168
169 #if !defined(_MSC_VER)
170 SWIG_STATIC_INLINE PyObject*
171 SPyObj_FromLongLong(long long value)
172 {
173 return (value > (long)(LONG_MAX)) ?
174 PyLong_FromLongLong(value) : PyInt_FromLong((long)value);
175 }
176 #endif
177
178 SWIG_STATIC_INLINE PyObject*
179 SPyObj_FromUnsignedLong(unsigned long value)
180 {
181 return (value > (unsigned long)(LONG_MAX)) ?
182 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
183 }
184
185 #if !defined(_MSC_VER)
186 SWIG_STATIC_INLINE PyObject*
187 SPyObj_FromUnsignedLongLong(unsigned long long value)
188 {
189 return (value > (unsigned long long)(LONG_MAX)) ?
190 PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)value);
191 }
192 #endif
193
194 SWIG_STATIC_INLINE long
195 SPyObj_AsLongInRange(PyObject * obj, long min_value, long max_value)
196 {
197 long value = SPyObj_AsLong(obj);
198 if (!PyErr_Occurred()) {
199 if (value < min_value) {
200 PyErr_SetString(PyExc_OverflowError,"value is smaller than type minimum");
201 } else if (value > max_value) {
202 PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum");
203 }
204 }
205 return value;
206 }
207
208 SWIG_STATIC_INLINE unsigned long
209 SPyObj_AsUnsignedLongInRange(PyObject *obj, unsigned long max_value)
210 {
211 unsigned long value = SPyObj_AsUnsignedLong(obj);
212 if (!PyErr_Occurred()) {
213 if (value > max_value) {
214 PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum");
215 }
216 }
217 return value;
218 }
219
220 SWIG_STATIC_INLINE signed char
221 SPyObj_AsSignedChar(PyObject *obj) {
222 return (signed char)SPyObj_AsLongInRange(obj, SCHAR_MIN, SCHAR_MAX);
223 }
224
225 SWIG_STATIC_INLINE short
226 SPyObj_AsShort(PyObject *obj) {
227 return (short)SPyObj_AsLongInRange(obj, SHRT_MIN, SHRT_MAX);
228 }
229
230 SWIG_STATIC_INLINE int
231 SPyObj_AsInt(PyObject *obj) {
232 return SPyObj_AsLongInRange(obj, INT_MIN, INT_MAX);
233 }
234
235 SWIG_STATIC_INLINE unsigned char
236 SPyObj_AsUnsignedChar(PyObject *obj) {
237 return (unsigned char)SPyObj_AsUnsignedLongInRange(obj, UCHAR_MAX);
238 }
239
240 SWIG_STATIC_INLINE unsigned short
241 SPyObj_AsUnsignedShort(PyObject *obj) {
242 return (unsigned short)SPyObj_AsUnsignedLongInRange(obj, USHRT_MAX);
243 }
244
245 SWIG_STATIC_INLINE unsigned int
246 SPyObj_AsUnsignedInt(PyObject *obj) {
247 return SPyObj_AsUnsignedLongInRange(obj, UINT_MAX);
248 }
249
250 #if !defined(_MSC_VER)
251 SWIG_STATIC_INLINE long long
252 SPyObj_AsLongLong(PyObject *obj) {
253 return PyInt_Check(obj) ?
254 PyInt_AsLong(obj) : PyLong_AsLongLong(obj);
255 }
256
257 SWIG_STATIC_INLINE unsigned long long
258 SPyObj_AsUnsignedLongLong(PyObject *obj) {
259 return PyLong_Check(obj) ?
260 PyLong_AsUnsignedLongLong(obj) : SPyObj_AsUnsignedLong(obj);
261 }
262 #endif
263
264 SWIG_STATIC_INLINE double
265 SPyObj_AsDouble(PyObject *obj) {
266 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
267 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
268 }
269
270 SWIG_STATIC_INLINE float
271 SPyObj_AsFloat(PyObject *obj) {
272 double value = SPyObj_AsDouble(obj);
273 if (!PyErr_Occurred()) {
274 if (value < FLT_MIN) {
275 PyErr_SetString(PyExc_OverflowError,"float is smaller than flt_min");
276 } else if (value > FLT_MAX) {
277 PyErr_SetString(PyExc_OverflowError,"float is greater than flt_max");
278 }
279 }
280 return (float) value;
281 }
282
283 SWIG_STATIC_INLINE char
284 SPyObj_AsChar(PyObject *obj) {
285 char c = (PyString_Check(obj) && PyString_Size(obj) == 1) ?
286 PyString_AsString(obj)[0]
287 : (char) SPyObj_AsLongInRange(obj, CHAR_MIN, CHAR_MAX);
288 if (PyErr_Occurred()) {
289 PyErr_Clear();
290 PyErr_SetString(PyExc_TypeError, "a char is required");
291 }
292 return c;
293 }
294
295 SWIG_STATIC_INLINE PyObject *
296 SPyObj_FromChar(char c) {
297 return PyString_FromStringAndSize(&c,1);
298 }
299
300 SWIG_STATIC_INLINE PyObject *
301 SPyObj_FromCharPtr(const char* cptr) {
302 return cptr ? PyString_FromString(cptr) : Py_BuildValue((char*)"");
303 }
304
305 SWIG_STATIC_INLINE int
306 SPyObj_AsBool(PyObject *obj) {
307 return SPyObj_AsLong/*Long*/(obj) ? 1 : 0;
308 }
309
310
311
312 #ifdef __cplusplus
313 extern "C" {
314 #endif
315
316 #define SWIG_PY_INT 1
317 #define SWIG_PY_FLOAT 2
318 #define SWIG_PY_STRING 3
319 #define SWIG_PY_POINTER 4
320 #define SWIG_PY_BINARY 5
321
322 /* Flags for pointer conversion */
323
324 #define SWIG_POINTER_EXCEPTION 0x1
325 #define SWIG_POINTER_DISOWN 0x2
326
327 /* Exception handling in wrappers */
328 #define SWIG_fail goto fail
329
330 /* Constant information structure */
331 typedef struct swig_const_info {
332 int type;
333 char *name;
334 long lvalue;
335 double dvalue;
336 void *pvalue;
337 swig_type_info **ptype;
338 } swig_const_info;
339
340 /* Common SWIG API */
341 #define SWIG_ConvertPtr(obj, pp, type, flags) \
342 SWIG_Python_ConvertPtr(obj, pp, type, flags)
343 #define SWIG_NewPointerObj(p, type, flags) \
344 SWIG_Python_NewPointerObj(p, type, flags)
345 #define SWIG_MustGetPtr(p, type, argnum, flags) \
346 SWIG_Python_MustGetPtr(p, type, argnum, flags)
347
348 /* Python-specific SWIG API */
349 #define SWIG_newvarlink() \
350 SWIG_Python_newvarlink()
351 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
352 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
353 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
354 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
355 #define SWIG_NewPackedObj(ptr, sz, type) \
356 SWIG_Python_NewPackedObj(ptr, sz, type)
357 #define SWIG_InstallConstants(d, constants) \
358 SWIG_Python_InstallConstants(d, constants)
359
360
361 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
362 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
363 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
364 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
365 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
366 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
367 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
368 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
369
370
371
372 /* Contract support */
373
374 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
375
376 #ifdef __cplusplus
377 }
378 #endif
379
380
381
382 /* -------- TYPES TABLE (BEGIN) -------- */
383
384 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
385 #define SWIGTYPE_p_wxBrush swig_types[1]
386 #define SWIGTYPE_p_wxColour swig_types[2]
387 #define SWIGTYPE_p_wxDC swig_types[3]
388 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
389 #define SWIGTYPE_p_byte swig_types[5]
390 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
391 #define SWIGTYPE_p_wxIconLocation swig_types[7]
392 #define SWIGTYPE_p_wxImage swig_types[8]
393 #define SWIGTYPE_p_wxMetaFileDC swig_types[9]
394 #define SWIGTYPE_p_wxMask swig_types[10]
395 #define SWIGTYPE_p_wxFont swig_types[11]
396 #define SWIGTYPE_p_wxWindow swig_types[12]
397 #define SWIGTYPE_p_wxSize swig_types[13]
398 #define SWIGTYPE_p_double swig_types[14]
399 #define SWIGTYPE_p_wxMemoryDC swig_types[15]
400 #define SWIGTYPE_p_wxFontMapper swig_types[16]
401 #define SWIGTYPE_p_wxEffects swig_types[17]
402 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[18]
403 #define SWIGTYPE_p_wxPalette swig_types[19]
404 #define SWIGTYPE_p_wxBitmap swig_types[20]
405 #define SWIGTYPE_p_wxObject swig_types[21]
406 #define SWIGTYPE_p_wxRegionIterator swig_types[22]
407 #define SWIGTYPE_p_wxRect swig_types[23]
408 #define SWIGTYPE_p_wxString swig_types[24]
409 #define SWIGTYPE_p_wxPrinterDC swig_types[25]
410 #define SWIGTYPE_p_wxIconBundle swig_types[26]
411 #define SWIGTYPE_p_wxPoint swig_types[27]
412 #define SWIGTYPE_p_wxDash swig_types[28]
413 #define SWIGTYPE_p_wxScreenDC swig_types[29]
414 #define SWIGTYPE_p_wxCursor swig_types[30]
415 #define SWIGTYPE_p_wxClientDC swig_types[31]
416 #define SWIGTYPE_p_wxBufferedDC swig_types[32]
417 #define SWIGTYPE_p_wxImageList swig_types[33]
418 #define SWIGTYPE_p_unsigned_char swig_types[34]
419 #define SWIGTYPE_p_wxGDIObject swig_types[35]
420 #define SWIGTYPE_p_wxLocale swig_types[36]
421 #define SWIGTYPE_p_wxIcon swig_types[37]
422 #define SWIGTYPE_p_wxRegion swig_types[38]
423 #define SWIGTYPE_p_wxLanguageInfo swig_types[39]
424 #define SWIGTYPE_p_wxConfigBase swig_types[40]
425 #define SWIGTYPE_p_wxWindowDC swig_types[41]
426 #define SWIGTYPE_p_wxPrintData swig_types[42]
427 #define SWIGTYPE_p_wxBrushList swig_types[43]
428 #define SWIGTYPE_p_wxFontList swig_types[44]
429 #define SWIGTYPE_p_wxPen swig_types[45]
430 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[46]
431 #define SWIGTYPE_p_wxPaintDC swig_types[47]
432 #define SWIGTYPE_p_wxPenList swig_types[48]
433 #define SWIGTYPE_p_wxPyPen swig_types[49]
434 #define SWIGTYPE_p_int swig_types[50]
435 #define SWIGTYPE_p_wxMetaFile swig_types[51]
436 #define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
437 #define SWIGTYPE_p_wxEncodingConverter swig_types[53]
438 #define SWIGTYPE_p_wxColourDatabase swig_types[54]
439 static swig_type_info *swig_types[56];
440
441 /* -------- TYPES TABLE (END) -------- */
442
443
444 /*-----------------------------------------------
445 @(target):= _gdi.so
446 ------------------------------------------------*/
447 #define SWIG_init init_gdi
448
449 #define SWIG_name "_gdi"
450
451 #include "wx/wxPython/wxPython.h"
452 #include "wx/wxPython/pyclasses.h"
453
454
455 static const wxString wxPyEmptyString(wxEmptyString);
456 PyObject *wxColour_Get(wxColour *self){
457 PyObject* rv = PyTuple_New(3);
458 int red = -1;
459 int green = -1;
460 int blue = -1;
461 if (self->Ok()) {
462 red = self->Red();
463 green = self->Green();
464 blue = self->Blue();
465 }
466 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
467 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
468 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
469 return rv;
470 }
471
472 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
473 PyObject* o2;
474 PyObject* o3;
475
476 if (!target) {
477 target = o;
478 } else if (target == Py_None) {
479 Py_DECREF(Py_None);
480 target = o;
481 } else {
482 if (!PyTuple_Check(target)) {
483 o2 = target;
484 target = PyTuple_New(1);
485 PyTuple_SetItem(target, 0, o2);
486 }
487 o3 = PyTuple_New(1);
488 PyTuple_SetItem(o3, 0, o);
489
490 o2 = target;
491 target = PySequence_Concat(o2, o3);
492 Py_DECREF(o2);
493 Py_DECREF(o3);
494 }
495 return target;
496 }
497
498 PyObject *wxPen_GetDashes(wxPen *self){
499 wxDash* dashes;
500 int count = self->GetDashes(&dashes);
501 wxPyBeginBlockThreads();
502 PyObject* retval = PyList_New(0);
503 for (int x=0; x<count; x++)
504 PyList_Append(retval, PyInt_FromLong(dashes[x]));
505 wxPyEndBlockThreads();
506 return retval;
507 }
508
509 wxPyPen::~wxPyPen()
510 {
511 if (m_dash)
512 delete [] m_dash;
513 }
514
515 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
516 {
517 if (m_dash)
518 delete [] m_dash;
519 m_dash = new wxDash[nb_dashes];
520 for (int i=0; i<nb_dashes; i++) {
521 m_dash[i] = dash[i];
522 }
523 wxPen::SetDashes(nb_dashes, m_dash);
524 }
525
526
527 #include <wx/image.h>
528
529 static char** ConvertListOfStrings(PyObject* listOfStrings) {
530 char** cArray = NULL;
531 int count;
532
533 if (!PyList_Check(listOfStrings)) {
534 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
535 return NULL;
536 }
537 count = PyList_Size(listOfStrings);
538 cArray = new char*[count];
539
540 for(int x=0; x<count; x++) {
541 // TODO: Need some validation and error checking here
542 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
543 }
544 return cArray;
545 }
546
547
548 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
549 char** cArray = NULL;
550 wxBitmap* bmp;
551
552 cArray = ConvertListOfStrings(listOfStrings);
553 if (! cArray)
554 return NULL;
555 bmp = new wxBitmap(cArray);
556 delete [] cArray;
557 return bmp;
558 }
559 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
560 char* buf;
561 int length;
562 PyString_AsStringAndSize(bits, &buf, &length);
563 return new wxBitmap(buf, width, height, depth);
564 }
565 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
566 wxMask *mask = new wxMask(*self, colour);
567 self->SetMask(mask);
568 }
569
570 #include <wx/iconbndl.h>
571
572 wxIcon *new_wxIcon(wxBitmap const &bmp){
573 wxIcon* icon = new wxIcon();
574 icon->CopyFromBitmap(bmp);
575 return icon;
576 }
577 wxIcon *new_wxIcon(PyObject *listOfStrings){
578 char** cArray = NULL;
579 wxIcon* icon;
580
581 cArray = ConvertListOfStrings(listOfStrings);
582 if (! cArray)
583 return NULL;
584 icon = new wxIcon(cArray);
585 delete [] cArray;
586 return icon;
587 }
588 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
589
590
591
592 return new wxIconLocation(*filename);
593
594 }
595 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
596
597
598
599 // do nothing
600
601 }
602 int wxIconLocation_GetIndex(wxIconLocation *self){
603
604
605
606 return -1;
607
608 }
609 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
610
611 wxCHECK_MSG(False, NULL,
612 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
613
614
615
616 }
617 wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
618 char* bitsbuf;
619 char* maskbuf = NULL;
620 int length;
621 PyString_AsStringAndSize(bits, &bitsbuf, &length);
622 if (maskBits)
623 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
624 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
625 }
626
627
628 void wxRegionIterator_Next(wxRegionIterator *self){
629 (*self) ++;
630 }
631 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
632 return self->operator bool();
633 }
634
635 #include <wx/fontutil.h>
636 #include <wx/fontmap.h>
637 #include <wx/fontenum.h>
638
639 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
640 return self->ToString();
641 }
642
643 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
644 static wxNativeEncodingInfo info;
645 if ( wxGetNativeFontEncoding(encoding, &info) )
646 return &info;
647 else
648 return NULL;
649 }
650
651 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
652 wxFontEncoding alt_enc;
653 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
654 return PyInt_FromLong(alt_enc);
655 else {
656 Py_INCREF(Py_None);
657 return Py_None;
658 }
659 }
660 wxFont *new_wxFont(wxString const &info){
661 wxNativeFontInfo nfi;
662 nfi.FromString(info);
663 return new wxFont(nfi);
664 }
665 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
666 return wxFont::New(pointSize, family, flags, face, encoding);
667 }
668
669 class wxPyFontEnumerator : public wxFontEnumerator {
670 public:
671 wxPyFontEnumerator() {}
672 ~wxPyFontEnumerator() {}
673
674 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
675 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
676
677 PYPRIVATE;
678 };
679
680 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
681 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
682
683
684 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
685 wxArrayString* arr = self->GetEncodings();
686 return wxArrayString2PyList_helper(*arr);
687 }
688 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
689 wxArrayString* arr = self->GetFacenames();
690 return wxArrayString2PyList_helper(*arr);
691 }
692
693
694
695 #include "wx/wxPython/pydrawxxx.h"
696
697 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
698 wxColour col;
699 self->GetPixel(x, y, &col);
700 return col;
701 }
702 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
703 wxColour col;
704 self->GetPixel(pt, &col);
705 return col;
706 }
707 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
708 wxRect rv;
709 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
710 return rv;
711 }
712 wxRect wxDC_GetClippingRect(wxDC *self){
713 wxRect rect;
714 self->GetClippingBox(rect);
715 return rect;
716 }
717 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
718 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
719 }
720 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
721 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
722 }
723 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
724 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
725 }
726 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
727 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
728 }
729 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
730 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
731 }
732 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
733 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
734 }
735
736 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
737 *x1 = dc->MinX();
738 *y1 = dc->MinY();
739 *x2 = dc->MaxX();
740 *y2 = dc->MaxY();
741 }
742
743
744 #include <wx/dcps.h>
745
746
747 class wxMetaFile : public wxObject {
748 public:
749 wxMetaFile(const wxString&)
750 { wxPyRaiseNotImplemented(); }
751 };
752
753 class wxMetaFileDC : public wxClientDC {
754 public:
755 wxMetaFileDC(const wxString&, int, int, const wxString&)
756 { wxPyRaiseNotImplemented(); }
757 };
758
759
760
761 class wxPrinterDC : public wxClientDC {
762 public:
763 wxPrinterDC(const wxPrintData&)
764 { wxPyRaiseNotImplemented(); }
765
766 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
767 // { wxPyRaiseNotImplemented(); }
768 };
769
770
771
772 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
773 self->AddColour(name, wxColour(red, green, blue));
774 }
775
776 #include <wx/effects.h>
777
778 #ifdef __cplusplus
779 extern "C" {
780 #endif
781 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
782 PyObject *resultobj;
783 wxGDIObject *result;
784 char *kwnames[] = {
785 NULL
786 };
787
788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
789 {
790 PyThreadState* __tstate = wxPyBeginAllowThreads();
791 result = (wxGDIObject *)new wxGDIObject();
792
793 wxPyEndAllowThreads(__tstate);
794 if (PyErr_Occurred()) SWIG_fail;
795 }
796 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
797 return resultobj;
798 fail:
799 return NULL;
800 }
801
802
803 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
804 PyObject *resultobj;
805 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
806 PyObject * obj0 = 0 ;
807 char *kwnames[] = {
808 (char *) "self", NULL
809 };
810
811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
813 {
814 PyThreadState* __tstate = wxPyBeginAllowThreads();
815 delete arg1;
816
817 wxPyEndAllowThreads(__tstate);
818 if (PyErr_Occurred()) SWIG_fail;
819 }
820 Py_INCREF(Py_None); resultobj = Py_None;
821 return resultobj;
822 fail:
823 return NULL;
824 }
825
826
827 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
828 PyObject *resultobj;
829 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
830 bool result;
831 PyObject * obj0 = 0 ;
832 char *kwnames[] = {
833 (char *) "self", NULL
834 };
835
836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
838 {
839 PyThreadState* __tstate = wxPyBeginAllowThreads();
840 result = (bool)(arg1)->GetVisible();
841
842 wxPyEndAllowThreads(__tstate);
843 if (PyErr_Occurred()) SWIG_fail;
844 }
845 resultobj = PyInt_FromLong((long)result);
846 return resultobj;
847 fail:
848 return NULL;
849 }
850
851
852 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
853 PyObject *resultobj;
854 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
855 bool arg2 ;
856 PyObject * obj0 = 0 ;
857 PyObject * obj1 = 0 ;
858 char *kwnames[] = {
859 (char *) "self",(char *) "visible", NULL
860 };
861
862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
864 {
865 arg2 = (bool) SPyObj_AsBool(obj1);
866 if (PyErr_Occurred()) SWIG_fail;
867 }
868 {
869 PyThreadState* __tstate = wxPyBeginAllowThreads();
870 (arg1)->SetVisible(arg2);
871
872 wxPyEndAllowThreads(__tstate);
873 if (PyErr_Occurred()) SWIG_fail;
874 }
875 Py_INCREF(Py_None); resultobj = Py_None;
876 return resultobj;
877 fail:
878 return NULL;
879 }
880
881
882 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
883 PyObject *resultobj;
884 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
885 bool result;
886 PyObject * obj0 = 0 ;
887 char *kwnames[] = {
888 (char *) "self", NULL
889 };
890
891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
893 {
894 PyThreadState* __tstate = wxPyBeginAllowThreads();
895 result = (bool)(arg1)->IsNull();
896
897 wxPyEndAllowThreads(__tstate);
898 if (PyErr_Occurred()) SWIG_fail;
899 }
900 resultobj = PyInt_FromLong((long)result);
901 return resultobj;
902 fail:
903 return NULL;
904 }
905
906
907 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
908 PyObject *obj;
909 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
910 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
911 Py_INCREF(obj);
912 return Py_BuildValue((char *)"");
913 }
914 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
915 PyObject *resultobj;
916 unsigned char arg1 = (unsigned char) 0 ;
917 unsigned char arg2 = (unsigned char) 0 ;
918 unsigned char arg3 = (unsigned char) 0 ;
919 wxColour *result;
920 PyObject * obj0 = 0 ;
921 PyObject * obj1 = 0 ;
922 PyObject * obj2 = 0 ;
923 char *kwnames[] = {
924 (char *) "red",(char *) "green",(char *) "blue", NULL
925 };
926
927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
928 if (obj0) {
929 {
930 arg1 = (unsigned char) SPyObj_AsUnsignedChar(obj0);
931 if (PyErr_Occurred()) SWIG_fail;
932 }
933 }
934 if (obj1) {
935 {
936 arg2 = (unsigned char) SPyObj_AsUnsignedChar(obj1);
937 if (PyErr_Occurred()) SWIG_fail;
938 }
939 }
940 if (obj2) {
941 {
942 arg3 = (unsigned char) SPyObj_AsUnsignedChar(obj2);
943 if (PyErr_Occurred()) SWIG_fail;
944 }
945 }
946 {
947 PyThreadState* __tstate = wxPyBeginAllowThreads();
948 result = (wxColour *)new wxColour(arg1,arg2,arg3);
949
950 wxPyEndAllowThreads(__tstate);
951 if (PyErr_Occurred()) SWIG_fail;
952 }
953 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
954 return resultobj;
955 fail:
956 return NULL;
957 }
958
959
960 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
961 PyObject *resultobj;
962 wxColour *arg1 = (wxColour *) 0 ;
963 PyObject * obj0 = 0 ;
964 char *kwnames[] = {
965 (char *) "self", NULL
966 };
967
968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
970 {
971 PyThreadState* __tstate = wxPyBeginAllowThreads();
972 delete arg1;
973
974 wxPyEndAllowThreads(__tstate);
975 if (PyErr_Occurred()) SWIG_fail;
976 }
977 Py_INCREF(Py_None); resultobj = Py_None;
978 return resultobj;
979 fail:
980 return NULL;
981 }
982
983
984 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
985 PyObject *resultobj;
986 wxString *arg1 = 0 ;
987 wxColour *result;
988 bool temp1 = False ;
989 PyObject * obj0 = 0 ;
990 char *kwnames[] = {
991 (char *) "colorName", NULL
992 };
993
994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
995 {
996 arg1 = wxString_in_helper(obj0);
997 if (arg1 == NULL) SWIG_fail;
998 temp1 = True;
999 }
1000 {
1001 PyThreadState* __tstate = wxPyBeginAllowThreads();
1002 result = (wxColour *)new wxColour((wxString const &)*arg1);
1003
1004 wxPyEndAllowThreads(__tstate);
1005 if (PyErr_Occurred()) SWIG_fail;
1006 }
1007 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
1008 {
1009 if (temp1)
1010 delete arg1;
1011 }
1012 return resultobj;
1013 fail:
1014 {
1015 if (temp1)
1016 delete arg1;
1017 }
1018 return NULL;
1019 }
1020
1021
1022 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1023 PyObject *resultobj;
1024 unsigned long arg1 ;
1025 wxColour *result;
1026 PyObject * obj0 = 0 ;
1027 char *kwnames[] = {
1028 (char *) "colRGB", NULL
1029 };
1030
1031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1032 {
1033 arg1 = (unsigned long) SPyObj_AsUnsignedLong(obj0);
1034 if (PyErr_Occurred()) SWIG_fail;
1035 }
1036 {
1037 PyThreadState* __tstate = wxPyBeginAllowThreads();
1038 result = (wxColour *)new wxColour(arg1);
1039
1040 wxPyEndAllowThreads(__tstate);
1041 if (PyErr_Occurred()) SWIG_fail;
1042 }
1043 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
1044 return resultobj;
1045 fail:
1046 return NULL;
1047 }
1048
1049
1050 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1051 PyObject *resultobj;
1052 wxColour *arg1 = (wxColour *) 0 ;
1053 unsigned char result;
1054 PyObject * obj0 = 0 ;
1055 char *kwnames[] = {
1056 (char *) "self", NULL
1057 };
1058
1059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1061 {
1062 PyThreadState* __tstate = wxPyBeginAllowThreads();
1063 result = (unsigned char)(arg1)->Red();
1064
1065 wxPyEndAllowThreads(__tstate);
1066 if (PyErr_Occurred()) SWIG_fail;
1067 }
1068 resultobj = PyInt_FromLong((long)result);
1069 return resultobj;
1070 fail:
1071 return NULL;
1072 }
1073
1074
1075 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1076 PyObject *resultobj;
1077 wxColour *arg1 = (wxColour *) 0 ;
1078 unsigned char result;
1079 PyObject * obj0 = 0 ;
1080 char *kwnames[] = {
1081 (char *) "self", NULL
1082 };
1083
1084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1086 {
1087 PyThreadState* __tstate = wxPyBeginAllowThreads();
1088 result = (unsigned char)(arg1)->Green();
1089
1090 wxPyEndAllowThreads(__tstate);
1091 if (PyErr_Occurred()) SWIG_fail;
1092 }
1093 resultobj = PyInt_FromLong((long)result);
1094 return resultobj;
1095 fail:
1096 return NULL;
1097 }
1098
1099
1100 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1101 PyObject *resultobj;
1102 wxColour *arg1 = (wxColour *) 0 ;
1103 unsigned char result;
1104 PyObject * obj0 = 0 ;
1105 char *kwnames[] = {
1106 (char *) "self", NULL
1107 };
1108
1109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1111 {
1112 PyThreadState* __tstate = wxPyBeginAllowThreads();
1113 result = (unsigned char)(arg1)->Blue();
1114
1115 wxPyEndAllowThreads(__tstate);
1116 if (PyErr_Occurred()) SWIG_fail;
1117 }
1118 resultobj = PyInt_FromLong((long)result);
1119 return resultobj;
1120 fail:
1121 return NULL;
1122 }
1123
1124
1125 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1126 PyObject *resultobj;
1127 wxColour *arg1 = (wxColour *) 0 ;
1128 bool result;
1129 PyObject * obj0 = 0 ;
1130 char *kwnames[] = {
1131 (char *) "self", NULL
1132 };
1133
1134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1136 {
1137 PyThreadState* __tstate = wxPyBeginAllowThreads();
1138 result = (bool)(arg1)->Ok();
1139
1140 wxPyEndAllowThreads(__tstate);
1141 if (PyErr_Occurred()) SWIG_fail;
1142 }
1143 resultobj = PyInt_FromLong((long)result);
1144 return resultobj;
1145 fail:
1146 return NULL;
1147 }
1148
1149
1150 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1151 PyObject *resultobj;
1152 wxColour *arg1 = (wxColour *) 0 ;
1153 unsigned char arg2 ;
1154 unsigned char arg3 ;
1155 unsigned char arg4 ;
1156 PyObject * obj0 = 0 ;
1157 PyObject * obj1 = 0 ;
1158 PyObject * obj2 = 0 ;
1159 PyObject * obj3 = 0 ;
1160 char *kwnames[] = {
1161 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1162 };
1163
1164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1166 {
1167 arg2 = (unsigned char) SPyObj_AsUnsignedChar(obj1);
1168 if (PyErr_Occurred()) SWIG_fail;
1169 }
1170 {
1171 arg3 = (unsigned char) SPyObj_AsUnsignedChar(obj2);
1172 if (PyErr_Occurred()) SWIG_fail;
1173 }
1174 {
1175 arg4 = (unsigned char) SPyObj_AsUnsignedChar(obj3);
1176 if (PyErr_Occurred()) SWIG_fail;
1177 }
1178 {
1179 PyThreadState* __tstate = wxPyBeginAllowThreads();
1180 (arg1)->Set(arg2,arg3,arg4);
1181
1182 wxPyEndAllowThreads(__tstate);
1183 if (PyErr_Occurred()) SWIG_fail;
1184 }
1185 Py_INCREF(Py_None); resultobj = Py_None;
1186 return resultobj;
1187 fail:
1188 return NULL;
1189 }
1190
1191
1192 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1193 PyObject *resultobj;
1194 wxColour *arg1 = (wxColour *) 0 ;
1195 unsigned long arg2 ;
1196 PyObject * obj0 = 0 ;
1197 PyObject * obj1 = 0 ;
1198 char *kwnames[] = {
1199 (char *) "self",(char *) "colRGB", NULL
1200 };
1201
1202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1204 {
1205 arg2 = (unsigned long) SPyObj_AsUnsignedLong(obj1);
1206 if (PyErr_Occurred()) SWIG_fail;
1207 }
1208 {
1209 PyThreadState* __tstate = wxPyBeginAllowThreads();
1210 (arg1)->Set(arg2);
1211
1212 wxPyEndAllowThreads(__tstate);
1213 if (PyErr_Occurred()) SWIG_fail;
1214 }
1215 Py_INCREF(Py_None); resultobj = Py_None;
1216 return resultobj;
1217 fail:
1218 return NULL;
1219 }
1220
1221
1222 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1223 PyObject *resultobj;
1224 wxColour *arg1 = (wxColour *) 0 ;
1225 wxColour *arg2 = 0 ;
1226 bool result;
1227 wxColour temp2 ;
1228 PyObject * obj0 = 0 ;
1229 PyObject * obj1 = 0 ;
1230 char *kwnames[] = {
1231 (char *) "self",(char *) "colour", NULL
1232 };
1233
1234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1236 {
1237 arg2 = &temp2;
1238 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1239 }
1240 {
1241 PyThreadState* __tstate = wxPyBeginAllowThreads();
1242 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1243
1244 wxPyEndAllowThreads(__tstate);
1245 if (PyErr_Occurred()) SWIG_fail;
1246 }
1247 resultobj = PyInt_FromLong((long)result);
1248 return resultobj;
1249 fail:
1250 return NULL;
1251 }
1252
1253
1254 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1255 PyObject *resultobj;
1256 wxColour *arg1 = (wxColour *) 0 ;
1257 wxColour *arg2 = 0 ;
1258 bool result;
1259 wxColour temp2 ;
1260 PyObject * obj0 = 0 ;
1261 PyObject * obj1 = 0 ;
1262 char *kwnames[] = {
1263 (char *) "self",(char *) "colour", NULL
1264 };
1265
1266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1268 {
1269 arg2 = &temp2;
1270 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1271 }
1272 {
1273 PyThreadState* __tstate = wxPyBeginAllowThreads();
1274 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1275
1276 wxPyEndAllowThreads(__tstate);
1277 if (PyErr_Occurred()) SWIG_fail;
1278 }
1279 resultobj = PyInt_FromLong((long)result);
1280 return resultobj;
1281 fail:
1282 return NULL;
1283 }
1284
1285
1286 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1287 PyObject *resultobj;
1288 wxColour *arg1 = (wxColour *) 0 ;
1289 wxString *arg2 = 0 ;
1290 bool temp2 = False ;
1291 PyObject * obj0 = 0 ;
1292 PyObject * obj1 = 0 ;
1293 char *kwnames[] = {
1294 (char *) "self",(char *) "colourName", NULL
1295 };
1296
1297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1299 {
1300 arg2 = wxString_in_helper(obj1);
1301 if (arg2 == NULL) SWIG_fail;
1302 temp2 = True;
1303 }
1304 {
1305 PyThreadState* __tstate = wxPyBeginAllowThreads();
1306 (arg1)->InitFromName((wxString const &)*arg2);
1307
1308 wxPyEndAllowThreads(__tstate);
1309 if (PyErr_Occurred()) SWIG_fail;
1310 }
1311 Py_INCREF(Py_None); resultobj = Py_None;
1312 {
1313 if (temp2)
1314 delete arg2;
1315 }
1316 return resultobj;
1317 fail:
1318 {
1319 if (temp2)
1320 delete arg2;
1321 }
1322 return NULL;
1323 }
1324
1325
1326 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1327 PyObject *resultobj;
1328 wxColour *arg1 = (wxColour *) 0 ;
1329 PyObject *result;
1330 PyObject * obj0 = 0 ;
1331 char *kwnames[] = {
1332 (char *) "self", NULL
1333 };
1334
1335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1337 {
1338 PyThreadState* __tstate = wxPyBeginAllowThreads();
1339 result = (PyObject *)wxColour_Get(arg1);
1340
1341 wxPyEndAllowThreads(__tstate);
1342 if (PyErr_Occurred()) SWIG_fail;
1343 }
1344 resultobj = result;
1345 return resultobj;
1346 fail:
1347 return NULL;
1348 }
1349
1350
1351 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1352 PyObject *obj;
1353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1354 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1355 Py_INCREF(obj);
1356 return Py_BuildValue((char *)"");
1357 }
1358 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1359 PyObject *resultobj;
1360 int arg1 ;
1361 unsigned char *arg2 = (unsigned char *) 0 ;
1362 unsigned char *arg3 = (unsigned char *) 0 ;
1363 unsigned char *arg4 = (unsigned char *) 0 ;
1364 wxPalette *result;
1365 PyObject * obj1 = 0 ;
1366 PyObject * obj2 = 0 ;
1367 PyObject * obj3 = 0 ;
1368 char *kwnames[] = {
1369 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1370 };
1371
1372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail;
1373 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1374 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1375 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1376 {
1377 PyThreadState* __tstate = wxPyBeginAllowThreads();
1378 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1379
1380 wxPyEndAllowThreads(__tstate);
1381 if (PyErr_Occurred()) SWIG_fail;
1382 }
1383 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1384 return resultobj;
1385 fail:
1386 return NULL;
1387 }
1388
1389
1390 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1391 PyObject *resultobj;
1392 wxPalette *arg1 = (wxPalette *) 0 ;
1393 PyObject * obj0 = 0 ;
1394 char *kwnames[] = {
1395 (char *) "self", NULL
1396 };
1397
1398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1400 {
1401 PyThreadState* __tstate = wxPyBeginAllowThreads();
1402 delete arg1;
1403
1404 wxPyEndAllowThreads(__tstate);
1405 if (PyErr_Occurred()) SWIG_fail;
1406 }
1407 Py_INCREF(Py_None); resultobj = Py_None;
1408 return resultobj;
1409 fail:
1410 return NULL;
1411 }
1412
1413
1414 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1415 PyObject *resultobj;
1416 wxPalette *arg1 = (wxPalette *) 0 ;
1417 byte arg2 ;
1418 byte arg3 ;
1419 byte arg4 ;
1420 int result;
1421 PyObject * obj0 = 0 ;
1422 PyObject * obj1 = 0 ;
1423 PyObject * obj2 = 0 ;
1424 PyObject * obj3 = 0 ;
1425 char *kwnames[] = {
1426 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1427 };
1428
1429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1431 {
1432 arg2 = (byte) SPyObj_AsUnsignedChar(obj1);
1433 if (PyErr_Occurred()) SWIG_fail;
1434 }
1435 {
1436 arg3 = (byte) SPyObj_AsUnsignedChar(obj2);
1437 if (PyErr_Occurred()) SWIG_fail;
1438 }
1439 {
1440 arg4 = (byte) SPyObj_AsUnsignedChar(obj3);
1441 if (PyErr_Occurred()) SWIG_fail;
1442 }
1443 {
1444 PyThreadState* __tstate = wxPyBeginAllowThreads();
1445 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1446
1447 wxPyEndAllowThreads(__tstate);
1448 if (PyErr_Occurred()) SWIG_fail;
1449 }
1450 resultobj = PyInt_FromLong((long)result);
1451 return resultobj;
1452 fail:
1453 return NULL;
1454 }
1455
1456
1457 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1458 PyObject *resultobj;
1459 wxPalette *arg1 = (wxPalette *) 0 ;
1460 int arg2 ;
1461 byte *arg3 = (byte *) 0 ;
1462 byte *arg4 = (byte *) 0 ;
1463 byte *arg5 = (byte *) 0 ;
1464 bool result;
1465 byte temp3 ;
1466 byte temp4 ;
1467 byte temp5 ;
1468 PyObject * obj0 = 0 ;
1469 char *kwnames[] = {
1470 (char *) "self",(char *) "pixel", NULL
1471 };
1472
1473 arg3 = &temp3;
1474 arg4 = &temp4;
1475 arg5 = &temp5;
1476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail;
1477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1478 {
1479 PyThreadState* __tstate = wxPyBeginAllowThreads();
1480 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1481
1482 wxPyEndAllowThreads(__tstate);
1483 if (PyErr_Occurred()) SWIG_fail;
1484 }
1485 resultobj = PyInt_FromLong((long)result);
1486 {
1487 PyObject *o = PyInt_FromLong((long) (*arg3));
1488 resultobj = t_output_helper(resultobj,o);
1489 }
1490 {
1491 PyObject *o = PyInt_FromLong((long) (*arg4));
1492 resultobj = t_output_helper(resultobj,o);
1493 }
1494 {
1495 PyObject *o = PyInt_FromLong((long) (*arg5));
1496 resultobj = t_output_helper(resultobj,o);
1497 }
1498 return resultobj;
1499 fail:
1500 return NULL;
1501 }
1502
1503
1504 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1505 PyObject *resultobj;
1506 wxPalette *arg1 = (wxPalette *) 0 ;
1507 bool result;
1508 PyObject * obj0 = 0 ;
1509 char *kwnames[] = {
1510 (char *) "self", NULL
1511 };
1512
1513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1515 {
1516 PyThreadState* __tstate = wxPyBeginAllowThreads();
1517 result = (bool)(arg1)->Ok();
1518
1519 wxPyEndAllowThreads(__tstate);
1520 if (PyErr_Occurred()) SWIG_fail;
1521 }
1522 resultobj = PyInt_FromLong((long)result);
1523 return resultobj;
1524 fail:
1525 return NULL;
1526 }
1527
1528
1529 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1530 PyObject *obj;
1531 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1532 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1533 Py_INCREF(obj);
1534 return Py_BuildValue((char *)"");
1535 }
1536 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1537 PyObject *resultobj;
1538 wxColour *arg1 = 0 ;
1539 int arg2 = (int) 1 ;
1540 int arg3 = (int) wxSOLID ;
1541 wxPen *result;
1542 wxColour temp1 ;
1543 PyObject * obj0 = 0 ;
1544 char *kwnames[] = {
1545 (char *) "colour",(char *) "width",(char *) "style", NULL
1546 };
1547
1548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1549 {
1550 arg1 = &temp1;
1551 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1552 }
1553 {
1554 PyThreadState* __tstate = wxPyBeginAllowThreads();
1555 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1556
1557 wxPyEndAllowThreads(__tstate);
1558 if (PyErr_Occurred()) SWIG_fail;
1559 }
1560 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1561 return resultobj;
1562 fail:
1563 return NULL;
1564 }
1565
1566
1567 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1568 PyObject *resultobj;
1569 wxPen *arg1 = (wxPen *) 0 ;
1570 PyObject * obj0 = 0 ;
1571 char *kwnames[] = {
1572 (char *) "self", NULL
1573 };
1574
1575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1577 {
1578 PyThreadState* __tstate = wxPyBeginAllowThreads();
1579 delete arg1;
1580
1581 wxPyEndAllowThreads(__tstate);
1582 if (PyErr_Occurred()) SWIG_fail;
1583 }
1584 Py_INCREF(Py_None); resultobj = Py_None;
1585 return resultobj;
1586 fail:
1587 return NULL;
1588 }
1589
1590
1591 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1592 PyObject *resultobj;
1593 wxPen *arg1 = (wxPen *) 0 ;
1594 int result;
1595 PyObject * obj0 = 0 ;
1596 char *kwnames[] = {
1597 (char *) "self", NULL
1598 };
1599
1600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1602 {
1603 PyThreadState* __tstate = wxPyBeginAllowThreads();
1604 result = (int)(arg1)->GetCap();
1605
1606 wxPyEndAllowThreads(__tstate);
1607 if (PyErr_Occurred()) SWIG_fail;
1608 }
1609 resultobj = PyInt_FromLong((long)result);
1610 return resultobj;
1611 fail:
1612 return NULL;
1613 }
1614
1615
1616 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1617 PyObject *resultobj;
1618 wxPen *arg1 = (wxPen *) 0 ;
1619 wxColour result;
1620 PyObject * obj0 = 0 ;
1621 char *kwnames[] = {
1622 (char *) "self", NULL
1623 };
1624
1625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1627 {
1628 PyThreadState* __tstate = wxPyBeginAllowThreads();
1629 result = (arg1)->GetColour();
1630
1631 wxPyEndAllowThreads(__tstate);
1632 if (PyErr_Occurred()) SWIG_fail;
1633 }
1634 {
1635 wxColour * resultptr;
1636 resultptr = new wxColour((wxColour &) result);
1637 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1638 }
1639 return resultobj;
1640 fail:
1641 return NULL;
1642 }
1643
1644
1645 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1646 PyObject *resultobj;
1647 wxPen *arg1 = (wxPen *) 0 ;
1648 int result;
1649 PyObject * obj0 = 0 ;
1650 char *kwnames[] = {
1651 (char *) "self", NULL
1652 };
1653
1654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1656 {
1657 PyThreadState* __tstate = wxPyBeginAllowThreads();
1658 result = (int)(arg1)->GetJoin();
1659
1660 wxPyEndAllowThreads(__tstate);
1661 if (PyErr_Occurred()) SWIG_fail;
1662 }
1663 resultobj = PyInt_FromLong((long)result);
1664 return resultobj;
1665 fail:
1666 return NULL;
1667 }
1668
1669
1670 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1671 PyObject *resultobj;
1672 wxPen *arg1 = (wxPen *) 0 ;
1673 int result;
1674 PyObject * obj0 = 0 ;
1675 char *kwnames[] = {
1676 (char *) "self", NULL
1677 };
1678
1679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1681 {
1682 PyThreadState* __tstate = wxPyBeginAllowThreads();
1683 result = (int)(arg1)->GetStyle();
1684
1685 wxPyEndAllowThreads(__tstate);
1686 if (PyErr_Occurred()) SWIG_fail;
1687 }
1688 resultobj = PyInt_FromLong((long)result);
1689 return resultobj;
1690 fail:
1691 return NULL;
1692 }
1693
1694
1695 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1696 PyObject *resultobj;
1697 wxPen *arg1 = (wxPen *) 0 ;
1698 int result;
1699 PyObject * obj0 = 0 ;
1700 char *kwnames[] = {
1701 (char *) "self", NULL
1702 };
1703
1704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1706 {
1707 PyThreadState* __tstate = wxPyBeginAllowThreads();
1708 result = (int)(arg1)->GetWidth();
1709
1710 wxPyEndAllowThreads(__tstate);
1711 if (PyErr_Occurred()) SWIG_fail;
1712 }
1713 resultobj = PyInt_FromLong((long)result);
1714 return resultobj;
1715 fail:
1716 return NULL;
1717 }
1718
1719
1720 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1721 PyObject *resultobj;
1722 wxPen *arg1 = (wxPen *) 0 ;
1723 bool result;
1724 PyObject * obj0 = 0 ;
1725 char *kwnames[] = {
1726 (char *) "self", NULL
1727 };
1728
1729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1731 {
1732 PyThreadState* __tstate = wxPyBeginAllowThreads();
1733 result = (bool)(arg1)->Ok();
1734
1735 wxPyEndAllowThreads(__tstate);
1736 if (PyErr_Occurred()) SWIG_fail;
1737 }
1738 resultobj = PyInt_FromLong((long)result);
1739 return resultobj;
1740 fail:
1741 return NULL;
1742 }
1743
1744
1745 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1746 PyObject *resultobj;
1747 wxPen *arg1 = (wxPen *) 0 ;
1748 int arg2 ;
1749 PyObject * obj0 = 0 ;
1750 char *kwnames[] = {
1751 (char *) "self",(char *) "cap_style", NULL
1752 };
1753
1754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail;
1755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1756 {
1757 PyThreadState* __tstate = wxPyBeginAllowThreads();
1758 (arg1)->SetCap(arg2);
1759
1760 wxPyEndAllowThreads(__tstate);
1761 if (PyErr_Occurred()) SWIG_fail;
1762 }
1763 Py_INCREF(Py_None); resultobj = Py_None;
1764 return resultobj;
1765 fail:
1766 return NULL;
1767 }
1768
1769
1770 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1771 PyObject *resultobj;
1772 wxPen *arg1 = (wxPen *) 0 ;
1773 wxColour *arg2 = 0 ;
1774 wxColour temp2 ;
1775 PyObject * obj0 = 0 ;
1776 PyObject * obj1 = 0 ;
1777 char *kwnames[] = {
1778 (char *) "self",(char *) "colour", NULL
1779 };
1780
1781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1783 {
1784 arg2 = &temp2;
1785 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1786 }
1787 {
1788 PyThreadState* __tstate = wxPyBeginAllowThreads();
1789 (arg1)->SetColour(*arg2);
1790
1791 wxPyEndAllowThreads(__tstate);
1792 if (PyErr_Occurred()) SWIG_fail;
1793 }
1794 Py_INCREF(Py_None); resultobj = Py_None;
1795 return resultobj;
1796 fail:
1797 return NULL;
1798 }
1799
1800
1801 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1802 PyObject *resultobj;
1803 wxPen *arg1 = (wxPen *) 0 ;
1804 int arg2 ;
1805 PyObject * obj0 = 0 ;
1806 char *kwnames[] = {
1807 (char *) "self",(char *) "join_style", NULL
1808 };
1809
1810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail;
1811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1812 {
1813 PyThreadState* __tstate = wxPyBeginAllowThreads();
1814 (arg1)->SetJoin(arg2);
1815
1816 wxPyEndAllowThreads(__tstate);
1817 if (PyErr_Occurred()) SWIG_fail;
1818 }
1819 Py_INCREF(Py_None); resultobj = Py_None;
1820 return resultobj;
1821 fail:
1822 return NULL;
1823 }
1824
1825
1826 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1827 PyObject *resultobj;
1828 wxPen *arg1 = (wxPen *) 0 ;
1829 int arg2 ;
1830 PyObject * obj0 = 0 ;
1831 char *kwnames[] = {
1832 (char *) "self",(char *) "style", NULL
1833 };
1834
1835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1837 {
1838 PyThreadState* __tstate = wxPyBeginAllowThreads();
1839 (arg1)->SetStyle(arg2);
1840
1841 wxPyEndAllowThreads(__tstate);
1842 if (PyErr_Occurred()) SWIG_fail;
1843 }
1844 Py_INCREF(Py_None); resultobj = Py_None;
1845 return resultobj;
1846 fail:
1847 return NULL;
1848 }
1849
1850
1851 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1852 PyObject *resultobj;
1853 wxPen *arg1 = (wxPen *) 0 ;
1854 int arg2 ;
1855 PyObject * obj0 = 0 ;
1856 char *kwnames[] = {
1857 (char *) "self",(char *) "width", NULL
1858 };
1859
1860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1861 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1862 {
1863 PyThreadState* __tstate = wxPyBeginAllowThreads();
1864 (arg1)->SetWidth(arg2);
1865
1866 wxPyEndAllowThreads(__tstate);
1867 if (PyErr_Occurred()) SWIG_fail;
1868 }
1869 Py_INCREF(Py_None); resultobj = Py_None;
1870 return resultobj;
1871 fail:
1872 return NULL;
1873 }
1874
1875
1876 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1877 PyObject *resultobj;
1878 wxPen *arg1 = (wxPen *) 0 ;
1879 int arg2 ;
1880 wxDash *arg3 = (wxDash *) 0 ;
1881 PyObject * obj0 = 0 ;
1882 PyObject * obj1 = 0 ;
1883 char *kwnames[] = {
1884 (char *) "self",(char *) "dashes", NULL
1885 };
1886
1887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1889 {
1890 arg2 = PyList_Size(obj1);
1891 arg3 = (wxDash*)byte_LIST_helper(obj1);
1892 if (arg3 == NULL) SWIG_fail;
1893 }
1894 {
1895 PyThreadState* __tstate = wxPyBeginAllowThreads();
1896 (arg1)->SetDashes(arg2,arg3);
1897
1898 wxPyEndAllowThreads(__tstate);
1899 if (PyErr_Occurred()) SWIG_fail;
1900 }
1901 Py_INCREF(Py_None); resultobj = Py_None;
1902 {
1903 if (arg3) delete [] arg3;
1904 }
1905 return resultobj;
1906 fail:
1907 {
1908 if (arg3) delete [] arg3;
1909 }
1910 return NULL;
1911 }
1912
1913
1914 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1915 PyObject *resultobj;
1916 wxPen *arg1 = (wxPen *) 0 ;
1917 PyObject *result;
1918 PyObject * obj0 = 0 ;
1919 char *kwnames[] = {
1920 (char *) "self", NULL
1921 };
1922
1923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1925 {
1926 PyThreadState* __tstate = wxPyBeginAllowThreads();
1927 result = (PyObject *)wxPen_GetDashes(arg1);
1928
1929 wxPyEndAllowThreads(__tstate);
1930 if (PyErr_Occurred()) SWIG_fail;
1931 }
1932 resultobj = result;
1933 return resultobj;
1934 fail:
1935 return NULL;
1936 }
1937
1938
1939 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1940 PyObject *resultobj;
1941 wxPen *arg1 = (wxPen *) 0 ;
1942 int result;
1943 PyObject * obj0 = 0 ;
1944 char *kwnames[] = {
1945 (char *) "self", NULL
1946 };
1947
1948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
1949 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1950 {
1951 PyThreadState* __tstate = wxPyBeginAllowThreads();
1952 result = (int)((wxPen const *)arg1)->GetDashCount();
1953
1954 wxPyEndAllowThreads(__tstate);
1955 if (PyErr_Occurred()) SWIG_fail;
1956 }
1957 resultobj = PyInt_FromLong((long)result);
1958 return resultobj;
1959 fail:
1960 return NULL;
1961 }
1962
1963
1964 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1965 PyObject *obj;
1966 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1967 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1968 Py_INCREF(obj);
1969 return Py_BuildValue((char *)"");
1970 }
1971 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1972 PyObject *resultobj;
1973 wxColour *arg1 = 0 ;
1974 int arg2 = (int) 1 ;
1975 int arg3 = (int) wxSOLID ;
1976 wxPyPen *result;
1977 wxColour temp1 ;
1978 PyObject * obj0 = 0 ;
1979 char *kwnames[] = {
1980 (char *) "colour",(char *) "width",(char *) "style", NULL
1981 };
1982
1983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1984 {
1985 arg1 = &temp1;
1986 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1987 }
1988 {
1989 PyThreadState* __tstate = wxPyBeginAllowThreads();
1990 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1991
1992 wxPyEndAllowThreads(__tstate);
1993 if (PyErr_Occurred()) SWIG_fail;
1994 }
1995 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1996 return resultobj;
1997 fail:
1998 return NULL;
1999 }
2000
2001
2002 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2003 PyObject *resultobj;
2004 wxPyPen *arg1 = (wxPyPen *) 0 ;
2005 PyObject * obj0 = 0 ;
2006 char *kwnames[] = {
2007 (char *) "self", NULL
2008 };
2009
2010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2012 {
2013 PyThreadState* __tstate = wxPyBeginAllowThreads();
2014 delete arg1;
2015
2016 wxPyEndAllowThreads(__tstate);
2017 if (PyErr_Occurred()) SWIG_fail;
2018 }
2019 Py_INCREF(Py_None); resultobj = Py_None;
2020 return resultobj;
2021 fail:
2022 return NULL;
2023 }
2024
2025
2026 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2027 PyObject *resultobj;
2028 wxPyPen *arg1 = (wxPyPen *) 0 ;
2029 int arg2 ;
2030 wxDash *arg3 = (wxDash *) 0 ;
2031 PyObject * obj0 = 0 ;
2032 PyObject * obj1 = 0 ;
2033 char *kwnames[] = {
2034 (char *) "self",(char *) "dashes", NULL
2035 };
2036
2037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2039 {
2040 arg2 = PyList_Size(obj1);
2041 arg3 = (wxDash*)byte_LIST_helper(obj1);
2042 if (arg3 == NULL) SWIG_fail;
2043 }
2044 {
2045 PyThreadState* __tstate = wxPyBeginAllowThreads();
2046 (arg1)->SetDashes(arg2,arg3);
2047
2048 wxPyEndAllowThreads(__tstate);
2049 if (PyErr_Occurred()) SWIG_fail;
2050 }
2051 Py_INCREF(Py_None); resultobj = Py_None;
2052 {
2053 if (arg3) delete [] arg3;
2054 }
2055 return resultobj;
2056 fail:
2057 {
2058 if (arg3) delete [] arg3;
2059 }
2060 return NULL;
2061 }
2062
2063
2064 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2065 PyObject *obj;
2066 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2067 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2068 Py_INCREF(obj);
2069 return Py_BuildValue((char *)"");
2070 }
2071 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2072 PyObject *resultobj;
2073 wxColour *arg1 = 0 ;
2074 int arg2 = (int) wxSOLID ;
2075 wxBrush *result;
2076 wxColour temp1 ;
2077 PyObject * obj0 = 0 ;
2078 char *kwnames[] = {
2079 (char *) "colour",(char *) "style", NULL
2080 };
2081
2082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail;
2083 {
2084 arg1 = &temp1;
2085 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2086 }
2087 {
2088 PyThreadState* __tstate = wxPyBeginAllowThreads();
2089 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2090
2091 wxPyEndAllowThreads(__tstate);
2092 if (PyErr_Occurred()) SWIG_fail;
2093 }
2094 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2095 return resultobj;
2096 fail:
2097 return NULL;
2098 }
2099
2100
2101 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2102 PyObject *resultobj;
2103 wxBrush *arg1 = (wxBrush *) 0 ;
2104 PyObject * obj0 = 0 ;
2105 char *kwnames[] = {
2106 (char *) "self", NULL
2107 };
2108
2109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2111 {
2112 PyThreadState* __tstate = wxPyBeginAllowThreads();
2113 delete arg1;
2114
2115 wxPyEndAllowThreads(__tstate);
2116 if (PyErr_Occurred()) SWIG_fail;
2117 }
2118 Py_INCREF(Py_None); resultobj = Py_None;
2119 return resultobj;
2120 fail:
2121 return NULL;
2122 }
2123
2124
2125 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2126 PyObject *resultobj;
2127 wxBrush *arg1 = (wxBrush *) 0 ;
2128 wxColour *arg2 = 0 ;
2129 wxColour temp2 ;
2130 PyObject * obj0 = 0 ;
2131 PyObject * obj1 = 0 ;
2132 char *kwnames[] = {
2133 (char *) "self",(char *) "col", NULL
2134 };
2135
2136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2138 {
2139 arg2 = &temp2;
2140 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2141 }
2142 {
2143 PyThreadState* __tstate = wxPyBeginAllowThreads();
2144 (arg1)->SetColour((wxColour const &)*arg2);
2145
2146 wxPyEndAllowThreads(__tstate);
2147 if (PyErr_Occurred()) SWIG_fail;
2148 }
2149 Py_INCREF(Py_None); resultobj = Py_None;
2150 return resultobj;
2151 fail:
2152 return NULL;
2153 }
2154
2155
2156 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2157 PyObject *resultobj;
2158 wxBrush *arg1 = (wxBrush *) 0 ;
2159 int arg2 ;
2160 PyObject * obj0 = 0 ;
2161 char *kwnames[] = {
2162 (char *) "self",(char *) "style", NULL
2163 };
2164
2165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail;
2166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2167 {
2168 PyThreadState* __tstate = wxPyBeginAllowThreads();
2169 (arg1)->SetStyle(arg2);
2170
2171 wxPyEndAllowThreads(__tstate);
2172 if (PyErr_Occurred()) SWIG_fail;
2173 }
2174 Py_INCREF(Py_None); resultobj = Py_None;
2175 return resultobj;
2176 fail:
2177 return NULL;
2178 }
2179
2180
2181 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2182 PyObject *resultobj;
2183 wxBrush *arg1 = (wxBrush *) 0 ;
2184 wxBitmap *arg2 = 0 ;
2185 PyObject * obj0 = 0 ;
2186 PyObject * obj1 = 0 ;
2187 char *kwnames[] = {
2188 (char *) "self",(char *) "stipple", NULL
2189 };
2190
2191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2193 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2194 if (arg2 == NULL) {
2195 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2196 }
2197 {
2198 PyThreadState* __tstate = wxPyBeginAllowThreads();
2199 (arg1)->SetStipple((wxBitmap const &)*arg2);
2200
2201 wxPyEndAllowThreads(__tstate);
2202 if (PyErr_Occurred()) SWIG_fail;
2203 }
2204 Py_INCREF(Py_None); resultobj = Py_None;
2205 return resultobj;
2206 fail:
2207 return NULL;
2208 }
2209
2210
2211 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2212 PyObject *resultobj;
2213 wxBrush *arg1 = (wxBrush *) 0 ;
2214 wxColour result;
2215 PyObject * obj0 = 0 ;
2216 char *kwnames[] = {
2217 (char *) "self", NULL
2218 };
2219
2220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2222 {
2223 PyThreadState* __tstate = wxPyBeginAllowThreads();
2224 result = ((wxBrush const *)arg1)->GetColour();
2225
2226 wxPyEndAllowThreads(__tstate);
2227 if (PyErr_Occurred()) SWIG_fail;
2228 }
2229 {
2230 wxColour * resultptr;
2231 resultptr = new wxColour((wxColour &) result);
2232 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2233 }
2234 return resultobj;
2235 fail:
2236 return NULL;
2237 }
2238
2239
2240 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2241 PyObject *resultobj;
2242 wxBrush *arg1 = (wxBrush *) 0 ;
2243 int result;
2244 PyObject * obj0 = 0 ;
2245 char *kwnames[] = {
2246 (char *) "self", NULL
2247 };
2248
2249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2251 {
2252 PyThreadState* __tstate = wxPyBeginAllowThreads();
2253 result = (int)((wxBrush const *)arg1)->GetStyle();
2254
2255 wxPyEndAllowThreads(__tstate);
2256 if (PyErr_Occurred()) SWIG_fail;
2257 }
2258 resultobj = PyInt_FromLong((long)result);
2259 return resultobj;
2260 fail:
2261 return NULL;
2262 }
2263
2264
2265 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject *resultobj;
2267 wxBrush *arg1 = (wxBrush *) 0 ;
2268 wxBitmap *result;
2269 PyObject * obj0 = 0 ;
2270 char *kwnames[] = {
2271 (char *) "self", NULL
2272 };
2273
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2276 {
2277 PyThreadState* __tstate = wxPyBeginAllowThreads();
2278 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2279
2280 wxPyEndAllowThreads(__tstate);
2281 if (PyErr_Occurred()) SWIG_fail;
2282 }
2283 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2284 return resultobj;
2285 fail:
2286 return NULL;
2287 }
2288
2289
2290 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2291 PyObject *resultobj;
2292 wxBrush *arg1 = (wxBrush *) 0 ;
2293 bool result;
2294 PyObject * obj0 = 0 ;
2295 char *kwnames[] = {
2296 (char *) "self", NULL
2297 };
2298
2299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2301 {
2302 PyThreadState* __tstate = wxPyBeginAllowThreads();
2303 result = (bool)(arg1)->Ok();
2304
2305 wxPyEndAllowThreads(__tstate);
2306 if (PyErr_Occurred()) SWIG_fail;
2307 }
2308 resultobj = PyInt_FromLong((long)result);
2309 return resultobj;
2310 fail:
2311 return NULL;
2312 }
2313
2314
2315 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2316 PyObject *obj;
2317 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2318 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2319 Py_INCREF(obj);
2320 return Py_BuildValue((char *)"");
2321 }
2322 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2323 PyObject *resultobj;
2324 wxString *arg1 = 0 ;
2325 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2326 wxBitmap *result;
2327 bool temp1 = False ;
2328 PyObject * obj0 = 0 ;
2329 char *kwnames[] = {
2330 (char *) "name",(char *) "type", NULL
2331 };
2332
2333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail;
2334 {
2335 arg1 = wxString_in_helper(obj0);
2336 if (arg1 == NULL) SWIG_fail;
2337 temp1 = True;
2338 }
2339 {
2340 PyThreadState* __tstate = wxPyBeginAllowThreads();
2341 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2342
2343 wxPyEndAllowThreads(__tstate);
2344 if (PyErr_Occurred()) SWIG_fail;
2345 }
2346 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2347 {
2348 if (temp1)
2349 delete arg1;
2350 }
2351 return resultobj;
2352 fail:
2353 {
2354 if (temp1)
2355 delete arg1;
2356 }
2357 return NULL;
2358 }
2359
2360
2361 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2362 PyObject *resultobj;
2363 wxBitmap *arg1 = (wxBitmap *) 0 ;
2364 PyObject * obj0 = 0 ;
2365 char *kwnames[] = {
2366 (char *) "self", NULL
2367 };
2368
2369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2370 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2371 {
2372 PyThreadState* __tstate = wxPyBeginAllowThreads();
2373 delete arg1;
2374
2375 wxPyEndAllowThreads(__tstate);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 }
2378 Py_INCREF(Py_None); resultobj = Py_None;
2379 return resultobj;
2380 fail:
2381 return NULL;
2382 }
2383
2384
2385 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2386 PyObject *resultobj;
2387 int arg1 ;
2388 int arg2 ;
2389 int arg3 = (int) -1 ;
2390 wxBitmap *result;
2391 char *kwnames[] = {
2392 (char *) "width",(char *) "height",(char *) "depth", NULL
2393 };
2394
2395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail;
2396 {
2397 PyThreadState* __tstate = wxPyBeginAllowThreads();
2398 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2399
2400 wxPyEndAllowThreads(__tstate);
2401 if (PyErr_Occurred()) SWIG_fail;
2402 }
2403 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2404 return resultobj;
2405 fail:
2406 return NULL;
2407 }
2408
2409
2410 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2411 PyObject *resultobj;
2412 wxIcon *arg1 = 0 ;
2413 wxBitmap *result;
2414 PyObject * obj0 = 0 ;
2415 char *kwnames[] = {
2416 (char *) "icon", NULL
2417 };
2418
2419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2421 if (arg1 == NULL) {
2422 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2423 }
2424 {
2425 PyThreadState* __tstate = wxPyBeginAllowThreads();
2426 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2427
2428 wxPyEndAllowThreads(__tstate);
2429 if (PyErr_Occurred()) SWIG_fail;
2430 }
2431 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2432 return resultobj;
2433 fail:
2434 return NULL;
2435 }
2436
2437
2438 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2439 PyObject *resultobj;
2440 wxImage *arg1 = 0 ;
2441 int arg2 = (int) -1 ;
2442 wxBitmap *result;
2443 PyObject * obj0 = 0 ;
2444 char *kwnames[] = {
2445 (char *) "image",(char *) "depth", NULL
2446 };
2447
2448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail;
2449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2450 if (arg1 == NULL) {
2451 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2452 }
2453 {
2454 PyThreadState* __tstate = wxPyBeginAllowThreads();
2455 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2456
2457 wxPyEndAllowThreads(__tstate);
2458 if (PyErr_Occurred()) SWIG_fail;
2459 }
2460 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2461 return resultobj;
2462 fail:
2463 return NULL;
2464 }
2465
2466
2467 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2468 PyObject *resultobj;
2469 PyObject *arg1 = (PyObject *) 0 ;
2470 wxBitmap *result;
2471 PyObject * obj0 = 0 ;
2472 char *kwnames[] = {
2473 (char *) "listOfStrings", NULL
2474 };
2475
2476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2477 arg1 = obj0;
2478 {
2479 PyThreadState* __tstate = wxPyBeginAllowThreads();
2480 result = (wxBitmap *)new_wxBitmap(arg1);
2481
2482 wxPyEndAllowThreads(__tstate);
2483 if (PyErr_Occurred()) SWIG_fail;
2484 }
2485 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2486 return resultobj;
2487 fail:
2488 return NULL;
2489 }
2490
2491
2492 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2493 PyObject *resultobj;
2494 PyObject *arg1 = (PyObject *) 0 ;
2495 int arg2 ;
2496 int arg3 ;
2497 int arg4 = (int) 1 ;
2498 wxBitmap *result;
2499 PyObject * obj0 = 0 ;
2500 char *kwnames[] = {
2501 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2502 };
2503
2504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2505 arg1 = obj0;
2506 {
2507 PyThreadState* __tstate = wxPyBeginAllowThreads();
2508 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2509
2510 wxPyEndAllowThreads(__tstate);
2511 if (PyErr_Occurred()) SWIG_fail;
2512 }
2513 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2514 return resultobj;
2515 fail:
2516 return NULL;
2517 }
2518
2519
2520 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2521 PyObject *resultobj;
2522 wxBitmap *arg1 = (wxBitmap *) 0 ;
2523 bool result;
2524 PyObject * obj0 = 0 ;
2525 char *kwnames[] = {
2526 (char *) "self", NULL
2527 };
2528
2529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2531 {
2532 PyThreadState* __tstate = wxPyBeginAllowThreads();
2533 result = (bool)(arg1)->Ok();
2534
2535 wxPyEndAllowThreads(__tstate);
2536 if (PyErr_Occurred()) SWIG_fail;
2537 }
2538 resultobj = PyInt_FromLong((long)result);
2539 return resultobj;
2540 fail:
2541 return NULL;
2542 }
2543
2544
2545 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2546 PyObject *resultobj;
2547 wxBitmap *arg1 = (wxBitmap *) 0 ;
2548 int result;
2549 PyObject * obj0 = 0 ;
2550 char *kwnames[] = {
2551 (char *) "self", NULL
2552 };
2553
2554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2556 {
2557 PyThreadState* __tstate = wxPyBeginAllowThreads();
2558 result = (int)(arg1)->GetWidth();
2559
2560 wxPyEndAllowThreads(__tstate);
2561 if (PyErr_Occurred()) SWIG_fail;
2562 }
2563 resultobj = PyInt_FromLong((long)result);
2564 return resultobj;
2565 fail:
2566 return NULL;
2567 }
2568
2569
2570 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2571 PyObject *resultobj;
2572 wxBitmap *arg1 = (wxBitmap *) 0 ;
2573 int result;
2574 PyObject * obj0 = 0 ;
2575 char *kwnames[] = {
2576 (char *) "self", NULL
2577 };
2578
2579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2581 {
2582 PyThreadState* __tstate = wxPyBeginAllowThreads();
2583 result = (int)(arg1)->GetHeight();
2584
2585 wxPyEndAllowThreads(__tstate);
2586 if (PyErr_Occurred()) SWIG_fail;
2587 }
2588 resultobj = PyInt_FromLong((long)result);
2589 return resultobj;
2590 fail:
2591 return NULL;
2592 }
2593
2594
2595 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2596 PyObject *resultobj;
2597 wxBitmap *arg1 = (wxBitmap *) 0 ;
2598 int result;
2599 PyObject * obj0 = 0 ;
2600 char *kwnames[] = {
2601 (char *) "self", NULL
2602 };
2603
2604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2606 {
2607 PyThreadState* __tstate = wxPyBeginAllowThreads();
2608 result = (int)(arg1)->GetDepth();
2609
2610 wxPyEndAllowThreads(__tstate);
2611 if (PyErr_Occurred()) SWIG_fail;
2612 }
2613 resultobj = PyInt_FromLong((long)result);
2614 return resultobj;
2615 fail:
2616 return NULL;
2617 }
2618
2619
2620 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2621 PyObject *resultobj;
2622 wxBitmap *arg1 = (wxBitmap *) 0 ;
2623 SwigValueWrapper< wxImage > result;
2624 PyObject * obj0 = 0 ;
2625 char *kwnames[] = {
2626 (char *) "self", NULL
2627 };
2628
2629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2631 {
2632 PyThreadState* __tstate = wxPyBeginAllowThreads();
2633 result = ((wxBitmap const *)arg1)->ConvertToImage();
2634
2635 wxPyEndAllowThreads(__tstate);
2636 if (PyErr_Occurred()) SWIG_fail;
2637 }
2638 {
2639 wxImage * resultptr;
2640 resultptr = new wxImage((wxImage &) result);
2641 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2642 }
2643 return resultobj;
2644 fail:
2645 return NULL;
2646 }
2647
2648
2649 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2650 PyObject *resultobj;
2651 wxBitmap *arg1 = (wxBitmap *) 0 ;
2652 wxMask *result;
2653 PyObject * obj0 = 0 ;
2654 char *kwnames[] = {
2655 (char *) "self", NULL
2656 };
2657
2658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2660 {
2661 PyThreadState* __tstate = wxPyBeginAllowThreads();
2662 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2663
2664 wxPyEndAllowThreads(__tstate);
2665 if (PyErr_Occurred()) SWIG_fail;
2666 }
2667 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2668 return resultobj;
2669 fail:
2670 return NULL;
2671 }
2672
2673
2674 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2675 PyObject *resultobj;
2676 wxBitmap *arg1 = (wxBitmap *) 0 ;
2677 wxMask *arg2 = (wxMask *) 0 ;
2678 PyObject * obj0 = 0 ;
2679 PyObject * obj1 = 0 ;
2680 char *kwnames[] = {
2681 (char *) "self",(char *) "mask", NULL
2682 };
2683
2684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2686 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2687 {
2688 PyThreadState* __tstate = wxPyBeginAllowThreads();
2689 (arg1)->SetMask(arg2);
2690
2691 wxPyEndAllowThreads(__tstate);
2692 if (PyErr_Occurred()) SWIG_fail;
2693 }
2694 Py_INCREF(Py_None); resultobj = Py_None;
2695 return resultobj;
2696 fail:
2697 return NULL;
2698 }
2699
2700
2701 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2702 PyObject *resultobj;
2703 wxBitmap *arg1 = (wxBitmap *) 0 ;
2704 wxColour *arg2 = 0 ;
2705 wxColour temp2 ;
2706 PyObject * obj0 = 0 ;
2707 PyObject * obj1 = 0 ;
2708 char *kwnames[] = {
2709 (char *) "self",(char *) "colour", NULL
2710 };
2711
2712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2714 {
2715 arg2 = &temp2;
2716 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2717 }
2718 {
2719 PyThreadState* __tstate = wxPyBeginAllowThreads();
2720 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2721
2722 wxPyEndAllowThreads(__tstate);
2723 if (PyErr_Occurred()) SWIG_fail;
2724 }
2725 Py_INCREF(Py_None); resultobj = Py_None;
2726 return resultobj;
2727 fail:
2728 return NULL;
2729 }
2730
2731
2732 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2733 PyObject *resultobj;
2734 wxBitmap *arg1 = (wxBitmap *) 0 ;
2735 wxRect *arg2 = 0 ;
2736 SwigValueWrapper< wxBitmap > result;
2737 wxRect temp2 ;
2738 PyObject * obj0 = 0 ;
2739 PyObject * obj1 = 0 ;
2740 char *kwnames[] = {
2741 (char *) "self",(char *) "rect", NULL
2742 };
2743
2744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2746 {
2747 arg2 = &temp2;
2748 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2749 }
2750 {
2751 PyThreadState* __tstate = wxPyBeginAllowThreads();
2752 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2753
2754 wxPyEndAllowThreads(__tstate);
2755 if (PyErr_Occurred()) SWIG_fail;
2756 }
2757 {
2758 wxBitmap * resultptr;
2759 resultptr = new wxBitmap((wxBitmap &) result);
2760 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2761 }
2762 return resultobj;
2763 fail:
2764 return NULL;
2765 }
2766
2767
2768 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2769 PyObject *resultobj;
2770 wxBitmap *arg1 = (wxBitmap *) 0 ;
2771 wxString *arg2 = 0 ;
2772 int arg3 ;
2773 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2774 bool result;
2775 bool temp2 = False ;
2776 PyObject * obj0 = 0 ;
2777 PyObject * obj1 = 0 ;
2778 PyObject * obj3 = 0 ;
2779 char *kwnames[] = {
2780 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2781 };
2782
2783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2785 {
2786 arg2 = wxString_in_helper(obj1);
2787 if (arg2 == NULL) SWIG_fail;
2788 temp2 = True;
2789 }
2790 if (obj3) {
2791 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2792 }
2793 {
2794 PyThreadState* __tstate = wxPyBeginAllowThreads();
2795 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2796
2797 wxPyEndAllowThreads(__tstate);
2798 if (PyErr_Occurred()) SWIG_fail;
2799 }
2800 resultobj = PyInt_FromLong((long)result);
2801 {
2802 if (temp2)
2803 delete arg2;
2804 }
2805 return resultobj;
2806 fail:
2807 {
2808 if (temp2)
2809 delete arg2;
2810 }
2811 return NULL;
2812 }
2813
2814
2815 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2816 PyObject *resultobj;
2817 wxBitmap *arg1 = (wxBitmap *) 0 ;
2818 wxString *arg2 = 0 ;
2819 int arg3 ;
2820 bool result;
2821 bool temp2 = False ;
2822 PyObject * obj0 = 0 ;
2823 PyObject * obj1 = 0 ;
2824 char *kwnames[] = {
2825 (char *) "self",(char *) "name",(char *) "type", NULL
2826 };
2827
2828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2830 {
2831 arg2 = wxString_in_helper(obj1);
2832 if (arg2 == NULL) SWIG_fail;
2833 temp2 = True;
2834 }
2835 {
2836 PyThreadState* __tstate = wxPyBeginAllowThreads();
2837 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2838
2839 wxPyEndAllowThreads(__tstate);
2840 if (PyErr_Occurred()) SWIG_fail;
2841 }
2842 resultobj = PyInt_FromLong((long)result);
2843 {
2844 if (temp2)
2845 delete arg2;
2846 }
2847 return resultobj;
2848 fail:
2849 {
2850 if (temp2)
2851 delete arg2;
2852 }
2853 return NULL;
2854 }
2855
2856
2857 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2858 PyObject *resultobj;
2859 wxBitmap *arg1 = (wxBitmap *) 0 ;
2860 wxIcon *arg2 = 0 ;
2861 bool result;
2862 PyObject * obj0 = 0 ;
2863 PyObject * obj1 = 0 ;
2864 char *kwnames[] = {
2865 (char *) "self",(char *) "icon", NULL
2866 };
2867
2868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2870 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2871 if (arg2 == NULL) {
2872 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2873 }
2874 {
2875 PyThreadState* __tstate = wxPyBeginAllowThreads();
2876 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2877
2878 wxPyEndAllowThreads(__tstate);
2879 if (PyErr_Occurred()) SWIG_fail;
2880 }
2881 resultobj = PyInt_FromLong((long)result);
2882 return resultobj;
2883 fail:
2884 return NULL;
2885 }
2886
2887
2888 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2889 PyObject *resultobj;
2890 wxBitmap *arg1 = (wxBitmap *) 0 ;
2891 int arg2 ;
2892 PyObject * obj0 = 0 ;
2893 char *kwnames[] = {
2894 (char *) "self",(char *) "height", NULL
2895 };
2896
2897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail;
2898 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2899 {
2900 PyThreadState* __tstate = wxPyBeginAllowThreads();
2901 (arg1)->SetHeight(arg2);
2902
2903 wxPyEndAllowThreads(__tstate);
2904 if (PyErr_Occurred()) SWIG_fail;
2905 }
2906 Py_INCREF(Py_None); resultobj = Py_None;
2907 return resultobj;
2908 fail:
2909 return NULL;
2910 }
2911
2912
2913 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2914 PyObject *resultobj;
2915 wxBitmap *arg1 = (wxBitmap *) 0 ;
2916 int arg2 ;
2917 PyObject * obj0 = 0 ;
2918 char *kwnames[] = {
2919 (char *) "self",(char *) "width", NULL
2920 };
2921
2922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail;
2923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2924 {
2925 PyThreadState* __tstate = wxPyBeginAllowThreads();
2926 (arg1)->SetWidth(arg2);
2927
2928 wxPyEndAllowThreads(__tstate);
2929 if (PyErr_Occurred()) SWIG_fail;
2930 }
2931 Py_INCREF(Py_None); resultobj = Py_None;
2932 return resultobj;
2933 fail:
2934 return NULL;
2935 }
2936
2937
2938 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2939 PyObject *resultobj;
2940 wxBitmap *arg1 = (wxBitmap *) 0 ;
2941 int arg2 ;
2942 PyObject * obj0 = 0 ;
2943 char *kwnames[] = {
2944 (char *) "self",(char *) "depth", NULL
2945 };
2946
2947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail;
2948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2949 {
2950 PyThreadState* __tstate = wxPyBeginAllowThreads();
2951 (arg1)->SetDepth(arg2);
2952
2953 wxPyEndAllowThreads(__tstate);
2954 if (PyErr_Occurred()) SWIG_fail;
2955 }
2956 Py_INCREF(Py_None); resultobj = Py_None;
2957 return resultobj;
2958 fail:
2959 return NULL;
2960 }
2961
2962
2963 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
2964 PyObject *obj;
2965 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2966 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
2967 Py_INCREF(obj);
2968 return Py_BuildValue((char *)"");
2969 }
2970 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
2971 PyObject *resultobj;
2972 wxBitmap *arg1 = 0 ;
2973 wxMask *result;
2974 PyObject * obj0 = 0 ;
2975 char *kwnames[] = {
2976 (char *) "bitmap", NULL
2977 };
2978
2979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
2980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2981 if (arg1 == NULL) {
2982 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2983 }
2984 {
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
2986 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2992 return resultobj;
2993 fail:
2994 return NULL;
2995 }
2996
2997
2998 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2999 PyObject *resultobj;
3000 wxBitmap *arg1 = 0 ;
3001 wxColour *arg2 = 0 ;
3002 wxMask *result;
3003 wxColour temp2 ;
3004 PyObject * obj0 = 0 ;
3005 PyObject * obj1 = 0 ;
3006 char *kwnames[] = {
3007 (char *) "bitmap",(char *) "colour", NULL
3008 };
3009
3010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
3011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3012 if (arg1 == NULL) {
3013 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3014 }
3015 {
3016 arg2 = &temp2;
3017 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3018 }
3019 {
3020 PyThreadState* __tstate = wxPyBeginAllowThreads();
3021 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3022
3023 wxPyEndAllowThreads(__tstate);
3024 if (PyErr_Occurred()) SWIG_fail;
3025 }
3026 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3027 return resultobj;
3028 fail:
3029 return NULL;
3030 }
3031
3032
3033 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3034 PyObject *obj;
3035 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3036 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3037 Py_INCREF(obj);
3038 return Py_BuildValue((char *)"");
3039 }
3040 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3041 PyObject *resultobj;
3042 wxString *arg1 = 0 ;
3043 int arg2 ;
3044 int arg3 = (int) -1 ;
3045 int arg4 = (int) -1 ;
3046 wxIcon *result;
3047 bool temp1 = False ;
3048 PyObject * obj0 = 0 ;
3049 char *kwnames[] = {
3050 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3051 };
3052
3053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3054 {
3055 arg1 = wxString_in_helper(obj0);
3056 if (arg1 == NULL) SWIG_fail;
3057 temp1 = True;
3058 }
3059 {
3060 PyThreadState* __tstate = wxPyBeginAllowThreads();
3061 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3062
3063 wxPyEndAllowThreads(__tstate);
3064 if (PyErr_Occurred()) SWIG_fail;
3065 }
3066 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3067 {
3068 if (temp1)
3069 delete arg1;
3070 }
3071 return resultobj;
3072 fail:
3073 {
3074 if (temp1)
3075 delete arg1;
3076 }
3077 return NULL;
3078 }
3079
3080
3081 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3082 PyObject *resultobj;
3083 wxIcon *arg1 = (wxIcon *) 0 ;
3084 PyObject * obj0 = 0 ;
3085 char *kwnames[] = {
3086 (char *) "self", NULL
3087 };
3088
3089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3090 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3091 {
3092 PyThreadState* __tstate = wxPyBeginAllowThreads();
3093 delete arg1;
3094
3095 wxPyEndAllowThreads(__tstate);
3096 if (PyErr_Occurred()) SWIG_fail;
3097 }
3098 Py_INCREF(Py_None); resultobj = Py_None;
3099 return resultobj;
3100 fail:
3101 return NULL;
3102 }
3103
3104
3105 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3106 PyObject *resultobj;
3107 wxIcon *result;
3108 char *kwnames[] = {
3109 NULL
3110 };
3111
3112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3113 {
3114 PyThreadState* __tstate = wxPyBeginAllowThreads();
3115 result = (wxIcon *)new wxIcon();
3116
3117 wxPyEndAllowThreads(__tstate);
3118 if (PyErr_Occurred()) SWIG_fail;
3119 }
3120 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3121 return resultobj;
3122 fail:
3123 return NULL;
3124 }
3125
3126
3127 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3128 PyObject *resultobj;
3129 wxIconLocation *arg1 = 0 ;
3130 wxIcon *result;
3131 PyObject * obj0 = 0 ;
3132 char *kwnames[] = {
3133 (char *) "loc", NULL
3134 };
3135
3136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3138 if (arg1 == NULL) {
3139 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3140 }
3141 {
3142 PyThreadState* __tstate = wxPyBeginAllowThreads();
3143 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3144
3145 wxPyEndAllowThreads(__tstate);
3146 if (PyErr_Occurred()) SWIG_fail;
3147 }
3148 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3149 return resultobj;
3150 fail:
3151 return NULL;
3152 }
3153
3154
3155 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3156 PyObject *resultobj;
3157 wxBitmap *arg1 = 0 ;
3158 wxIcon *result;
3159 PyObject * obj0 = 0 ;
3160 char *kwnames[] = {
3161 (char *) "bmp", NULL
3162 };
3163
3164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3166 if (arg1 == NULL) {
3167 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3168 }
3169 {
3170 PyThreadState* __tstate = wxPyBeginAllowThreads();
3171 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3172
3173 wxPyEndAllowThreads(__tstate);
3174 if (PyErr_Occurred()) SWIG_fail;
3175 }
3176 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3177 return resultobj;
3178 fail:
3179 return NULL;
3180 }
3181
3182
3183 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3184 PyObject *resultobj;
3185 PyObject *arg1 = (PyObject *) 0 ;
3186 wxIcon *result;
3187 PyObject * obj0 = 0 ;
3188 char *kwnames[] = {
3189 (char *) "listOfStrings", NULL
3190 };
3191
3192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3193 arg1 = obj0;
3194 {
3195 PyThreadState* __tstate = wxPyBeginAllowThreads();
3196 result = (wxIcon *)new_wxIcon(arg1);
3197
3198 wxPyEndAllowThreads(__tstate);
3199 if (PyErr_Occurred()) SWIG_fail;
3200 }
3201 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3202 return resultobj;
3203 fail:
3204 return NULL;
3205 }
3206
3207
3208 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3209 PyObject *resultobj;
3210 wxIcon *arg1 = (wxIcon *) 0 ;
3211 wxString *arg2 = 0 ;
3212 int arg3 ;
3213 bool result;
3214 bool temp2 = False ;
3215 PyObject * obj0 = 0 ;
3216 PyObject * obj1 = 0 ;
3217 char *kwnames[] = {
3218 (char *) "self",(char *) "name",(char *) "type", NULL
3219 };
3220
3221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Icon_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3222 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3223 {
3224 arg2 = wxString_in_helper(obj1);
3225 if (arg2 == NULL) SWIG_fail;
3226 temp2 = True;
3227 }
3228 {
3229 PyThreadState* __tstate = wxPyBeginAllowThreads();
3230 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3231
3232 wxPyEndAllowThreads(__tstate);
3233 if (PyErr_Occurred()) SWIG_fail;
3234 }
3235 resultobj = PyInt_FromLong((long)result);
3236 {
3237 if (temp2)
3238 delete arg2;
3239 }
3240 return resultobj;
3241 fail:
3242 {
3243 if (temp2)
3244 delete arg2;
3245 }
3246 return NULL;
3247 }
3248
3249
3250 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3251 PyObject *resultobj;
3252 wxIcon *arg1 = (wxIcon *) 0 ;
3253 bool result;
3254 PyObject * obj0 = 0 ;
3255 char *kwnames[] = {
3256 (char *) "self", NULL
3257 };
3258
3259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3261 {
3262 PyThreadState* __tstate = wxPyBeginAllowThreads();
3263 result = (bool)(arg1)->Ok();
3264
3265 wxPyEndAllowThreads(__tstate);
3266 if (PyErr_Occurred()) SWIG_fail;
3267 }
3268 resultobj = PyInt_FromLong((long)result);
3269 return resultobj;
3270 fail:
3271 return NULL;
3272 }
3273
3274
3275 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3276 PyObject *resultobj;
3277 wxIcon *arg1 = (wxIcon *) 0 ;
3278 int result;
3279 PyObject * obj0 = 0 ;
3280 char *kwnames[] = {
3281 (char *) "self", NULL
3282 };
3283
3284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3286 {
3287 PyThreadState* __tstate = wxPyBeginAllowThreads();
3288 result = (int)(arg1)->GetWidth();
3289
3290 wxPyEndAllowThreads(__tstate);
3291 if (PyErr_Occurred()) SWIG_fail;
3292 }
3293 resultobj = PyInt_FromLong((long)result);
3294 return resultobj;
3295 fail:
3296 return NULL;
3297 }
3298
3299
3300 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3301 PyObject *resultobj;
3302 wxIcon *arg1 = (wxIcon *) 0 ;
3303 int result;
3304 PyObject * obj0 = 0 ;
3305 char *kwnames[] = {
3306 (char *) "self", NULL
3307 };
3308
3309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3311 {
3312 PyThreadState* __tstate = wxPyBeginAllowThreads();
3313 result = (int)(arg1)->GetHeight();
3314
3315 wxPyEndAllowThreads(__tstate);
3316 if (PyErr_Occurred()) SWIG_fail;
3317 }
3318 resultobj = PyInt_FromLong((long)result);
3319 return resultobj;
3320 fail:
3321 return NULL;
3322 }
3323
3324
3325 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3326 PyObject *resultobj;
3327 wxIcon *arg1 = (wxIcon *) 0 ;
3328 int result;
3329 PyObject * obj0 = 0 ;
3330 char *kwnames[] = {
3331 (char *) "self", NULL
3332 };
3333
3334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3336 {
3337 PyThreadState* __tstate = wxPyBeginAllowThreads();
3338 result = (int)(arg1)->GetDepth();
3339
3340 wxPyEndAllowThreads(__tstate);
3341 if (PyErr_Occurred()) SWIG_fail;
3342 }
3343 resultobj = PyInt_FromLong((long)result);
3344 return resultobj;
3345 fail:
3346 return NULL;
3347 }
3348
3349
3350 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3351 PyObject *resultobj;
3352 wxIcon *arg1 = (wxIcon *) 0 ;
3353 int arg2 ;
3354 PyObject * obj0 = 0 ;
3355 char *kwnames[] = {
3356 (char *) "self",(char *) "w", NULL
3357 };
3358
3359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail;
3360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3361 {
3362 PyThreadState* __tstate = wxPyBeginAllowThreads();
3363 (arg1)->SetWidth(arg2);
3364
3365 wxPyEndAllowThreads(__tstate);
3366 if (PyErr_Occurred()) SWIG_fail;
3367 }
3368 Py_INCREF(Py_None); resultobj = Py_None;
3369 return resultobj;
3370 fail:
3371 return NULL;
3372 }
3373
3374
3375 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3376 PyObject *resultobj;
3377 wxIcon *arg1 = (wxIcon *) 0 ;
3378 int arg2 ;
3379 PyObject * obj0 = 0 ;
3380 char *kwnames[] = {
3381 (char *) "self",(char *) "h", NULL
3382 };
3383
3384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail;
3385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3386 {
3387 PyThreadState* __tstate = wxPyBeginAllowThreads();
3388 (arg1)->SetHeight(arg2);
3389
3390 wxPyEndAllowThreads(__tstate);
3391 if (PyErr_Occurred()) SWIG_fail;
3392 }
3393 Py_INCREF(Py_None); resultobj = Py_None;
3394 return resultobj;
3395 fail:
3396 return NULL;
3397 }
3398
3399
3400 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3401 PyObject *resultobj;
3402 wxIcon *arg1 = (wxIcon *) 0 ;
3403 int arg2 ;
3404 PyObject * obj0 = 0 ;
3405 char *kwnames[] = {
3406 (char *) "self",(char *) "d", NULL
3407 };
3408
3409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail;
3410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3411 {
3412 PyThreadState* __tstate = wxPyBeginAllowThreads();
3413 (arg1)->SetDepth(arg2);
3414
3415 wxPyEndAllowThreads(__tstate);
3416 if (PyErr_Occurred()) SWIG_fail;
3417 }
3418 Py_INCREF(Py_None); resultobj = Py_None;
3419 return resultobj;
3420 fail:
3421 return NULL;
3422 }
3423
3424
3425 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3426 PyObject *resultobj;
3427 wxIcon *arg1 = (wxIcon *) 0 ;
3428 wxBitmap *arg2 = 0 ;
3429 PyObject * obj0 = 0 ;
3430 PyObject * obj1 = 0 ;
3431 char *kwnames[] = {
3432 (char *) "self",(char *) "bmp", NULL
3433 };
3434
3435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3437 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3438 if (arg2 == NULL) {
3439 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3440 }
3441 {
3442 PyThreadState* __tstate = wxPyBeginAllowThreads();
3443 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3444
3445 wxPyEndAllowThreads(__tstate);
3446 if (PyErr_Occurred()) SWIG_fail;
3447 }
3448 Py_INCREF(Py_None); resultobj = Py_None;
3449 return resultobj;
3450 fail:
3451 return NULL;
3452 }
3453
3454
3455 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3456 PyObject *obj;
3457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3458 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3459 Py_INCREF(obj);
3460 return Py_BuildValue((char *)"");
3461 }
3462 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3463 PyObject *resultobj;
3464 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3465 int arg2 = (int) 0 ;
3466 wxIconLocation *result;
3467 bool temp1 = False ;
3468 PyObject * obj0 = 0 ;
3469 char *kwnames[] = {
3470 (char *) "filename",(char *) "num", NULL
3471 };
3472
3473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail;
3474 if (obj0) {
3475 {
3476 arg1 = wxString_in_helper(obj0);
3477 if (arg1 == NULL) SWIG_fail;
3478 temp1 = True;
3479 }
3480 }
3481 {
3482 PyThreadState* __tstate = wxPyBeginAllowThreads();
3483 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3484
3485 wxPyEndAllowThreads(__tstate);
3486 if (PyErr_Occurred()) SWIG_fail;
3487 }
3488 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3489 {
3490 if (temp1)
3491 delete arg1;
3492 }
3493 return resultobj;
3494 fail:
3495 {
3496 if (temp1)
3497 delete arg1;
3498 }
3499 return NULL;
3500 }
3501
3502
3503 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3504 PyObject *resultobj;
3505 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3506 PyObject * obj0 = 0 ;
3507 char *kwnames[] = {
3508 (char *) "self", NULL
3509 };
3510
3511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3513 {
3514 PyThreadState* __tstate = wxPyBeginAllowThreads();
3515 delete arg1;
3516
3517 wxPyEndAllowThreads(__tstate);
3518 if (PyErr_Occurred()) SWIG_fail;
3519 }
3520 Py_INCREF(Py_None); resultobj = Py_None;
3521 return resultobj;
3522 fail:
3523 return NULL;
3524 }
3525
3526
3527 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3528 PyObject *resultobj;
3529 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3530 bool result;
3531 PyObject * obj0 = 0 ;
3532 char *kwnames[] = {
3533 (char *) "self", NULL
3534 };
3535
3536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3538 {
3539 PyThreadState* __tstate = wxPyBeginAllowThreads();
3540 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3541
3542 wxPyEndAllowThreads(__tstate);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 }
3545 resultobj = PyInt_FromLong((long)result);
3546 return resultobj;
3547 fail:
3548 return NULL;
3549 }
3550
3551
3552 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3553 PyObject *resultobj;
3554 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3555 wxString *arg2 = 0 ;
3556 bool temp2 = False ;
3557 PyObject * obj0 = 0 ;
3558 PyObject * obj1 = 0 ;
3559 char *kwnames[] = {
3560 (char *) "self",(char *) "filename", NULL
3561 };
3562
3563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3565 {
3566 arg2 = wxString_in_helper(obj1);
3567 if (arg2 == NULL) SWIG_fail;
3568 temp2 = True;
3569 }
3570 {
3571 PyThreadState* __tstate = wxPyBeginAllowThreads();
3572 (arg1)->SetFileName((wxString const &)*arg2);
3573
3574 wxPyEndAllowThreads(__tstate);
3575 if (PyErr_Occurred()) SWIG_fail;
3576 }
3577 Py_INCREF(Py_None); resultobj = Py_None;
3578 {
3579 if (temp2)
3580 delete arg2;
3581 }
3582 return resultobj;
3583 fail:
3584 {
3585 if (temp2)
3586 delete arg2;
3587 }
3588 return NULL;
3589 }
3590
3591
3592 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3593 PyObject *resultobj;
3594 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3595 wxString *result;
3596 PyObject * obj0 = 0 ;
3597 char *kwnames[] = {
3598 (char *) "self", NULL
3599 };
3600
3601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 {
3606 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3607 result = (wxString *) &_result_ref;
3608 }
3609
3610 wxPyEndAllowThreads(__tstate);
3611 if (PyErr_Occurred()) SWIG_fail;
3612 }
3613 {
3614 #if wxUSE_UNICODE
3615 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3616 #else
3617 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3618 #endif
3619 }
3620 return resultobj;
3621 fail:
3622 return NULL;
3623 }
3624
3625
3626 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3627 PyObject *resultobj;
3628 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3629 int arg2 ;
3630 PyObject * obj0 = 0 ;
3631 char *kwnames[] = {
3632 (char *) "self",(char *) "num", NULL
3633 };
3634
3635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail;
3636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3637 {
3638 PyThreadState* __tstate = wxPyBeginAllowThreads();
3639 wxIconLocation_SetIndex(arg1,arg2);
3640
3641 wxPyEndAllowThreads(__tstate);
3642 if (PyErr_Occurred()) SWIG_fail;
3643 }
3644 Py_INCREF(Py_None); resultobj = Py_None;
3645 return resultobj;
3646 fail:
3647 return NULL;
3648 }
3649
3650
3651 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3652 PyObject *resultobj;
3653 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3654 int result;
3655 PyObject * obj0 = 0 ;
3656 char *kwnames[] = {
3657 (char *) "self", NULL
3658 };
3659
3660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3662 {
3663 PyThreadState* __tstate = wxPyBeginAllowThreads();
3664 result = (int)wxIconLocation_GetIndex(arg1);
3665
3666 wxPyEndAllowThreads(__tstate);
3667 if (PyErr_Occurred()) SWIG_fail;
3668 }
3669 resultobj = PyInt_FromLong((long)result);
3670 return resultobj;
3671 fail:
3672 return NULL;
3673 }
3674
3675
3676 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3677 PyObject *obj;
3678 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3679 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3680 Py_INCREF(obj);
3681 return Py_BuildValue((char *)"");
3682 }
3683 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3684 PyObject *resultobj;
3685 wxIconBundle *result;
3686 char *kwnames[] = {
3687 NULL
3688 };
3689
3690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3691 {
3692 PyThreadState* __tstate = wxPyBeginAllowThreads();
3693 result = (wxIconBundle *)new wxIconBundle();
3694
3695 wxPyEndAllowThreads(__tstate);
3696 if (PyErr_Occurred()) SWIG_fail;
3697 }
3698 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3699 return resultobj;
3700 fail:
3701 return NULL;
3702 }
3703
3704
3705 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3706 PyObject *resultobj;
3707 wxString *arg1 = 0 ;
3708 long arg2 ;
3709 wxIconBundle *result;
3710 bool temp1 = False ;
3711 PyObject * obj0 = 0 ;
3712 char *kwnames[] = {
3713 (char *) "file",(char *) "type", NULL
3714 };
3715
3716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail;
3717 {
3718 arg1 = wxString_in_helper(obj0);
3719 if (arg1 == NULL) SWIG_fail;
3720 temp1 = True;
3721 }
3722 {
3723 PyThreadState* __tstate = wxPyBeginAllowThreads();
3724 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3725
3726 wxPyEndAllowThreads(__tstate);
3727 if (PyErr_Occurred()) SWIG_fail;
3728 }
3729 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3730 {
3731 if (temp1)
3732 delete arg1;
3733 }
3734 return resultobj;
3735 fail:
3736 {
3737 if (temp1)
3738 delete arg1;
3739 }
3740 return NULL;
3741 }
3742
3743
3744 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3745 PyObject *resultobj;
3746 wxIcon *arg1 = 0 ;
3747 wxIconBundle *result;
3748 PyObject * obj0 = 0 ;
3749 char *kwnames[] = {
3750 (char *) "icon", NULL
3751 };
3752
3753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3755 if (arg1 == NULL) {
3756 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3757 }
3758 {
3759 PyThreadState* __tstate = wxPyBeginAllowThreads();
3760 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3761
3762 wxPyEndAllowThreads(__tstate);
3763 if (PyErr_Occurred()) SWIG_fail;
3764 }
3765 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3766 return resultobj;
3767 fail:
3768 return NULL;
3769 }
3770
3771
3772 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3773 PyObject *resultobj;
3774 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3775 PyObject * obj0 = 0 ;
3776 char *kwnames[] = {
3777 (char *) "self", NULL
3778 };
3779
3780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3782 {
3783 PyThreadState* __tstate = wxPyBeginAllowThreads();
3784 delete arg1;
3785
3786 wxPyEndAllowThreads(__tstate);
3787 if (PyErr_Occurred()) SWIG_fail;
3788 }
3789 Py_INCREF(Py_None); resultobj = Py_None;
3790 return resultobj;
3791 fail:
3792 return NULL;
3793 }
3794
3795
3796 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3797 PyObject *resultobj;
3798 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3799 wxIcon *arg2 = 0 ;
3800 PyObject * obj0 = 0 ;
3801 PyObject * obj1 = 0 ;
3802 char *kwnames[] = {
3803 (char *) "self",(char *) "icon", NULL
3804 };
3805
3806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3808 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3809 if (arg2 == NULL) {
3810 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3811 }
3812 {
3813 PyThreadState* __tstate = wxPyBeginAllowThreads();
3814 (arg1)->AddIcon((wxIcon const &)*arg2);
3815
3816 wxPyEndAllowThreads(__tstate);
3817 if (PyErr_Occurred()) SWIG_fail;
3818 }
3819 Py_INCREF(Py_None); resultobj = Py_None;
3820 return resultobj;
3821 fail:
3822 return NULL;
3823 }
3824
3825
3826 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3827 PyObject *resultobj;
3828 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3829 wxString *arg2 = 0 ;
3830 long arg3 ;
3831 bool temp2 = False ;
3832 PyObject * obj0 = 0 ;
3833 PyObject * obj1 = 0 ;
3834 char *kwnames[] = {
3835 (char *) "self",(char *) "file",(char *) "type", NULL
3836 };
3837
3838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3840 {
3841 arg2 = wxString_in_helper(obj1);
3842 if (arg2 == NULL) SWIG_fail;
3843 temp2 = True;
3844 }
3845 {
3846 PyThreadState* __tstate = wxPyBeginAllowThreads();
3847 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3848
3849 wxPyEndAllowThreads(__tstate);
3850 if (PyErr_Occurred()) SWIG_fail;
3851 }
3852 Py_INCREF(Py_None); resultobj = Py_None;
3853 {
3854 if (temp2)
3855 delete arg2;
3856 }
3857 return resultobj;
3858 fail:
3859 {
3860 if (temp2)
3861 delete arg2;
3862 }
3863 return NULL;
3864 }
3865
3866
3867 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3868 PyObject *resultobj;
3869 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3870 wxSize *arg2 = 0 ;
3871 wxIcon *result;
3872 wxSize temp2 ;
3873 PyObject * obj0 = 0 ;
3874 PyObject * obj1 = 0 ;
3875 char *kwnames[] = {
3876 (char *) "self",(char *) "size", NULL
3877 };
3878
3879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
3880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3881 {
3882 arg2 = &temp2;
3883 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3884 }
3885 {
3886 PyThreadState* __tstate = wxPyBeginAllowThreads();
3887 {
3888 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
3889 result = (wxIcon *) &_result_ref;
3890 }
3891
3892 wxPyEndAllowThreads(__tstate);
3893 if (PyErr_Occurred()) SWIG_fail;
3894 }
3895 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
3896 return resultobj;
3897 fail:
3898 return NULL;
3899 }
3900
3901
3902 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
3903 PyObject *obj;
3904 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3905 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
3906 Py_INCREF(obj);
3907 return Py_BuildValue((char *)"");
3908 }
3909 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj;
3911 wxString *arg1 = (wxString *) 0 ;
3912 long arg2 ;
3913 int arg3 = (int) 0 ;
3914 int arg4 = (int) 0 ;
3915 wxCursor *result;
3916 bool temp1 = False ;
3917 PyObject * obj0 = 0 ;
3918 char *kwnames[] = {
3919 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
3920 };
3921
3922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3923 {
3924 arg1 = wxString_in_helper(obj0);
3925 if (arg1 == NULL) SWIG_fail;
3926 temp1 = True;
3927 }
3928 {
3929 PyThreadState* __tstate = wxPyBeginAllowThreads();
3930 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
3931
3932 wxPyEndAllowThreads(__tstate);
3933 if (PyErr_Occurred()) SWIG_fail;
3934 }
3935 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3936 {
3937 if (temp1)
3938 delete arg1;
3939 }
3940 return resultobj;
3941 fail:
3942 {
3943 if (temp1)
3944 delete arg1;
3945 }
3946 return NULL;
3947 }
3948
3949
3950 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3951 PyObject *resultobj;
3952 wxCursor *arg1 = (wxCursor *) 0 ;
3953 PyObject * obj0 = 0 ;
3954 char *kwnames[] = {
3955 (char *) "self", NULL
3956 };
3957
3958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
3959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3960 {
3961 PyThreadState* __tstate = wxPyBeginAllowThreads();
3962 delete arg1;
3963
3964 wxPyEndAllowThreads(__tstate);
3965 if (PyErr_Occurred()) SWIG_fail;
3966 }
3967 Py_INCREF(Py_None); resultobj = Py_None;
3968 return resultobj;
3969 fail:
3970 return NULL;
3971 }
3972
3973
3974 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3975 PyObject *resultobj;
3976 int arg1 ;
3977 wxCursor *result;
3978 char *kwnames[] = {
3979 (char *) "id", NULL
3980 };
3981
3982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail;
3983 {
3984 PyThreadState* __tstate = wxPyBeginAllowThreads();
3985 result = (wxCursor *)new wxCursor(arg1);
3986
3987 wxPyEndAllowThreads(__tstate);
3988 if (PyErr_Occurred()) SWIG_fail;
3989 }
3990 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3991 return resultobj;
3992 fail:
3993 return NULL;
3994 }
3995
3996
3997 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3998 PyObject *resultobj;
3999 wxImage *arg1 = 0 ;
4000 wxCursor *result;
4001 PyObject * obj0 = 0 ;
4002 char *kwnames[] = {
4003 (char *) "image", NULL
4004 };
4005
4006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4008 if (arg1 == NULL) {
4009 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4010 }
4011 {
4012 PyThreadState* __tstate = wxPyBeginAllowThreads();
4013 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4014
4015 wxPyEndAllowThreads(__tstate);
4016 if (PyErr_Occurred()) SWIG_fail;
4017 }
4018 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4019 return resultobj;
4020 fail:
4021 return NULL;
4022 }
4023
4024
4025 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4026 PyObject *resultobj;
4027 PyObject *arg1 = (PyObject *) 0 ;
4028 int arg2 ;
4029 int arg3 ;
4030 int arg4 = (int) -1 ;
4031 int arg5 = (int) -1 ;
4032 PyObject *arg6 = (PyObject *) 0 ;
4033 wxCursor *result;
4034 PyObject * obj0 = 0 ;
4035 PyObject * obj5 = 0 ;
4036 char *kwnames[] = {
4037 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4038 };
4039
4040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
4041 arg1 = obj0;
4042 if (obj5) {
4043 arg6 = obj5;
4044 }
4045 {
4046 PyThreadState* __tstate = wxPyBeginAllowThreads();
4047 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4048
4049 wxPyEndAllowThreads(__tstate);
4050 if (PyErr_Occurred()) SWIG_fail;
4051 }
4052 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4053 return resultobj;
4054 fail:
4055 return NULL;
4056 }
4057
4058
4059 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4060 PyObject *resultobj;
4061 wxCursor *arg1 = (wxCursor *) 0 ;
4062 bool result;
4063 PyObject * obj0 = 0 ;
4064 char *kwnames[] = {
4065 (char *) "self", NULL
4066 };
4067
4068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4069 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4070 {
4071 PyThreadState* __tstate = wxPyBeginAllowThreads();
4072 result = (bool)(arg1)->Ok();
4073
4074 wxPyEndAllowThreads(__tstate);
4075 if (PyErr_Occurred()) SWIG_fail;
4076 }
4077 resultobj = PyInt_FromLong((long)result);
4078 return resultobj;
4079 fail:
4080 return NULL;
4081 }
4082
4083
4084 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4085 PyObject *obj;
4086 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4087 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4088 Py_INCREF(obj);
4089 return Py_BuildValue((char *)"");
4090 }
4091 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4092 PyObject *resultobj;
4093 int arg1 = (int) 0 ;
4094 int arg2 = (int) 0 ;
4095 int arg3 = (int) 0 ;
4096 int arg4 = (int) 0 ;
4097 wxRegion *result;
4098 char *kwnames[] = {
4099 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4100 };
4101
4102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
4103 {
4104 PyThreadState* __tstate = wxPyBeginAllowThreads();
4105 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4106
4107 wxPyEndAllowThreads(__tstate);
4108 if (PyErr_Occurred()) SWIG_fail;
4109 }
4110 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4111 return resultobj;
4112 fail:
4113 return NULL;
4114 }
4115
4116
4117 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4118 PyObject *resultobj;
4119 wxBitmap *arg1 = 0 ;
4120 wxColour const &arg2_defvalue = wxNullColour ;
4121 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4122 int arg3 = (int) 0 ;
4123 wxRegion *result;
4124 wxColour temp2 ;
4125 PyObject * obj0 = 0 ;
4126 PyObject * obj1 = 0 ;
4127 char *kwnames[] = {
4128 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4129 };
4130
4131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail;
4132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4133 if (arg1 == NULL) {
4134 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4135 }
4136 if (obj1) {
4137 {
4138 arg2 = &temp2;
4139 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4140 }
4141 }
4142 {
4143 PyThreadState* __tstate = wxPyBeginAllowThreads();
4144 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4145
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4150 return resultobj;
4151 fail:
4152 return NULL;
4153 }
4154
4155
4156 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4157 PyObject *resultobj;
4158 int arg1 ;
4159 wxPoint *arg2 = (wxPoint *) 0 ;
4160 int arg3 = (int) wxWINDING_RULE ;
4161 wxRegion *result;
4162 PyObject * obj0 = 0 ;
4163 char *kwnames[] = {
4164 (char *) "points",(char *) "fillStyle", NULL
4165 };
4166
4167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail;
4168 {
4169 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4170 if (arg2 == NULL) SWIG_fail;
4171 }
4172 {
4173 PyThreadState* __tstate = wxPyBeginAllowThreads();
4174 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4175
4176 wxPyEndAllowThreads(__tstate);
4177 if (PyErr_Occurred()) SWIG_fail;
4178 }
4179 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4180 {
4181 if (arg2) delete [] arg2;
4182 }
4183 return resultobj;
4184 fail:
4185 {
4186 if (arg2) delete [] arg2;
4187 }
4188 return NULL;
4189 }
4190
4191
4192 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4193 PyObject *resultobj;
4194 wxRegion *arg1 = (wxRegion *) 0 ;
4195 PyObject * obj0 = 0 ;
4196 char *kwnames[] = {
4197 (char *) "self", NULL
4198 };
4199
4200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4202 {
4203 PyThreadState* __tstate = wxPyBeginAllowThreads();
4204 delete arg1;
4205
4206 wxPyEndAllowThreads(__tstate);
4207 if (PyErr_Occurred()) SWIG_fail;
4208 }
4209 Py_INCREF(Py_None); resultobj = Py_None;
4210 return resultobj;
4211 fail:
4212 return NULL;
4213 }
4214
4215
4216 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4217 PyObject *resultobj;
4218 wxRegion *arg1 = (wxRegion *) 0 ;
4219 PyObject * obj0 = 0 ;
4220 char *kwnames[] = {
4221 (char *) "self", NULL
4222 };
4223
4224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4226 {
4227 PyThreadState* __tstate = wxPyBeginAllowThreads();
4228 (arg1)->Clear();
4229
4230 wxPyEndAllowThreads(__tstate);
4231 if (PyErr_Occurred()) SWIG_fail;
4232 }
4233 Py_INCREF(Py_None); resultobj = Py_None;
4234 return resultobj;
4235 fail:
4236 return NULL;
4237 }
4238
4239
4240 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4241 PyObject *resultobj;
4242 wxRegion *arg1 = (wxRegion *) 0 ;
4243 int arg2 ;
4244 int arg3 ;
4245 bool result;
4246 PyObject * obj0 = 0 ;
4247 char *kwnames[] = {
4248 (char *) "self",(char *) "x",(char *) "y", NULL
4249 };
4250
4251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail;
4252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4253 {
4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4255 result = (bool)(arg1)->Offset(arg2,arg3);
4256
4257 wxPyEndAllowThreads(__tstate);
4258 if (PyErr_Occurred()) SWIG_fail;
4259 }
4260 resultobj = PyInt_FromLong((long)result);
4261 return resultobj;
4262 fail:
4263 return NULL;
4264 }
4265
4266
4267 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4268 PyObject *resultobj;
4269 wxRegion *arg1 = (wxRegion *) 0 ;
4270 int arg2 ;
4271 int arg3 ;
4272 int result;
4273 PyObject * obj0 = 0 ;
4274 char *kwnames[] = {
4275 (char *) "self",(char *) "x",(char *) "y", NULL
4276 };
4277
4278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail;
4279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4280 {
4281 PyThreadState* __tstate = wxPyBeginAllowThreads();
4282 result = (int)(arg1)->Contains(arg2,arg3);
4283
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 resultobj = PyInt_FromLong((long)result);
4288 return resultobj;
4289 fail:
4290 return NULL;
4291 }
4292
4293
4294 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4295 PyObject *resultobj;
4296 wxRegion *arg1 = (wxRegion *) 0 ;
4297 wxPoint *arg2 = 0 ;
4298 int result;
4299 wxPoint temp2 ;
4300 PyObject * obj0 = 0 ;
4301 PyObject * obj1 = 0 ;
4302 char *kwnames[] = {
4303 (char *) "self",(char *) "pt", NULL
4304 };
4305
4306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4308 {
4309 arg2 = &temp2;
4310 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4311 }
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4315
4316 wxPyEndAllowThreads(__tstate);
4317 if (PyErr_Occurred()) SWIG_fail;
4318 }
4319 resultobj = PyInt_FromLong((long)result);
4320 return resultobj;
4321 fail:
4322 return NULL;
4323 }
4324
4325
4326 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4327 PyObject *resultobj;
4328 wxRegion *arg1 = (wxRegion *) 0 ;
4329 wxRect *arg2 = 0 ;
4330 int result;
4331 wxRect temp2 ;
4332 PyObject * obj0 = 0 ;
4333 PyObject * obj1 = 0 ;
4334 char *kwnames[] = {
4335 (char *) "self",(char *) "rect", NULL
4336 };
4337
4338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4340 {
4341 arg2 = &temp2;
4342 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4343 }
4344 {
4345 PyThreadState* __tstate = wxPyBeginAllowThreads();
4346 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4347
4348 wxPyEndAllowThreads(__tstate);
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 resultobj = PyInt_FromLong((long)result);
4352 return resultobj;
4353 fail:
4354 return NULL;
4355 }
4356
4357
4358 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4359 PyObject *resultobj;
4360 wxRegion *arg1 = (wxRegion *) 0 ;
4361 int arg2 ;
4362 int arg3 ;
4363 int arg4 ;
4364 int arg5 ;
4365 int result;
4366 PyObject * obj0 = 0 ;
4367 char *kwnames[] = {
4368 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4369 };
4370
4371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4376
4377 wxPyEndAllowThreads(__tstate);
4378 if (PyErr_Occurred()) SWIG_fail;
4379 }
4380 resultobj = PyInt_FromLong((long)result);
4381 return resultobj;
4382 fail:
4383 return NULL;
4384 }
4385
4386
4387 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4388 PyObject *resultobj;
4389 wxRegion *arg1 = (wxRegion *) 0 ;
4390 wxRect result;
4391 PyObject * obj0 = 0 ;
4392 char *kwnames[] = {
4393 (char *) "self", NULL
4394 };
4395
4396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4398 {
4399 PyThreadState* __tstate = wxPyBeginAllowThreads();
4400 result = (arg1)->GetBox();
4401
4402 wxPyEndAllowThreads(__tstate);
4403 if (PyErr_Occurred()) SWIG_fail;
4404 }
4405 {
4406 wxRect * resultptr;
4407 resultptr = new wxRect((wxRect &) result);
4408 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4409 }
4410 return resultobj;
4411 fail:
4412 return NULL;
4413 }
4414
4415
4416 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4417 PyObject *resultobj;
4418 wxRegion *arg1 = (wxRegion *) 0 ;
4419 int arg2 ;
4420 int arg3 ;
4421 int arg4 ;
4422 int arg5 ;
4423 bool result;
4424 PyObject * obj0 = 0 ;
4425 char *kwnames[] = {
4426 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4427 };
4428
4429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4431 {
4432 PyThreadState* __tstate = wxPyBeginAllowThreads();
4433 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4434
4435 wxPyEndAllowThreads(__tstate);
4436 if (PyErr_Occurred()) SWIG_fail;
4437 }
4438 resultobj = PyInt_FromLong((long)result);
4439 return resultobj;
4440 fail:
4441 return NULL;
4442 }
4443
4444
4445 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4446 PyObject *resultobj;
4447 wxRegion *arg1 = (wxRegion *) 0 ;
4448 wxRect *arg2 = 0 ;
4449 bool result;
4450 wxRect temp2 ;
4451 PyObject * obj0 = 0 ;
4452 PyObject * obj1 = 0 ;
4453 char *kwnames[] = {
4454 (char *) "self",(char *) "rect", NULL
4455 };
4456
4457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4458 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4459 {
4460 arg2 = &temp2;
4461 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4462 }
4463 {
4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
4465 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4466
4467 wxPyEndAllowThreads(__tstate);
4468 if (PyErr_Occurred()) SWIG_fail;
4469 }
4470 resultobj = PyInt_FromLong((long)result);
4471 return resultobj;
4472 fail:
4473 return NULL;
4474 }
4475
4476
4477 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4478 PyObject *resultobj;
4479 wxRegion *arg1 = (wxRegion *) 0 ;
4480 wxRegion *arg2 = 0 ;
4481 bool result;
4482 PyObject * obj0 = 0 ;
4483 PyObject * obj1 = 0 ;
4484 char *kwnames[] = {
4485 (char *) "self",(char *) "region", NULL
4486 };
4487
4488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4490 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4491 if (arg2 == NULL) {
4492 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4493 }
4494 {
4495 PyThreadState* __tstate = wxPyBeginAllowThreads();
4496 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4497
4498 wxPyEndAllowThreads(__tstate);
4499 if (PyErr_Occurred()) SWIG_fail;
4500 }
4501 resultobj = PyInt_FromLong((long)result);
4502 return resultobj;
4503 fail:
4504 return NULL;
4505 }
4506
4507
4508 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4509 PyObject *resultobj;
4510 wxRegion *arg1 = (wxRegion *) 0 ;
4511 bool result;
4512 PyObject * obj0 = 0 ;
4513 char *kwnames[] = {
4514 (char *) "self", NULL
4515 };
4516
4517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4519 {
4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
4521 result = (bool)(arg1)->IsEmpty();
4522
4523 wxPyEndAllowThreads(__tstate);
4524 if (PyErr_Occurred()) SWIG_fail;
4525 }
4526 resultobj = PyInt_FromLong((long)result);
4527 return resultobj;
4528 fail:
4529 return NULL;
4530 }
4531
4532
4533 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4534 PyObject *resultobj;
4535 wxRegion *arg1 = (wxRegion *) 0 ;
4536 int arg2 ;
4537 int arg3 ;
4538 int arg4 ;
4539 int arg5 ;
4540 bool result;
4541 PyObject * obj0 = 0 ;
4542 char *kwnames[] = {
4543 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4544 };
4545
4546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4548 {
4549 PyThreadState* __tstate = wxPyBeginAllowThreads();
4550 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4551
4552 wxPyEndAllowThreads(__tstate);
4553 if (PyErr_Occurred()) SWIG_fail;
4554 }
4555 resultobj = PyInt_FromLong((long)result);
4556 return resultobj;
4557 fail:
4558 return NULL;
4559 }
4560
4561
4562 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4563 PyObject *resultobj;
4564 wxRegion *arg1 = (wxRegion *) 0 ;
4565 wxRect *arg2 = 0 ;
4566 bool result;
4567 wxRect temp2 ;
4568 PyObject * obj0 = 0 ;
4569 PyObject * obj1 = 0 ;
4570 char *kwnames[] = {
4571 (char *) "self",(char *) "rect", NULL
4572 };
4573
4574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4576 {
4577 arg2 = &temp2;
4578 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4579 }
4580 {
4581 PyThreadState* __tstate = wxPyBeginAllowThreads();
4582 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4583
4584 wxPyEndAllowThreads(__tstate);
4585 if (PyErr_Occurred()) SWIG_fail;
4586 }
4587 resultobj = PyInt_FromLong((long)result);
4588 return resultobj;
4589 fail:
4590 return NULL;
4591 }
4592
4593
4594 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4595 PyObject *resultobj;
4596 wxRegion *arg1 = (wxRegion *) 0 ;
4597 wxRegion *arg2 = 0 ;
4598 bool result;
4599 PyObject * obj0 = 0 ;
4600 PyObject * obj1 = 0 ;
4601 char *kwnames[] = {
4602 (char *) "self",(char *) "region", NULL
4603 };
4604
4605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4607 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4608 if (arg2 == NULL) {
4609 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4610 }
4611 {
4612 PyThreadState* __tstate = wxPyBeginAllowThreads();
4613 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4614
4615 wxPyEndAllowThreads(__tstate);
4616 if (PyErr_Occurred()) SWIG_fail;
4617 }
4618 resultobj = PyInt_FromLong((long)result);
4619 return resultobj;
4620 fail:
4621 return NULL;
4622 }
4623
4624
4625 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4626 PyObject *resultobj;
4627 wxRegion *arg1 = (wxRegion *) 0 ;
4628 int arg2 ;
4629 int arg3 ;
4630 int arg4 ;
4631 int arg5 ;
4632 bool result;
4633 PyObject * obj0 = 0 ;
4634 char *kwnames[] = {
4635 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4636 };
4637
4638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4640 {
4641 PyThreadState* __tstate = wxPyBeginAllowThreads();
4642 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4643
4644 wxPyEndAllowThreads(__tstate);
4645 if (PyErr_Occurred()) SWIG_fail;
4646 }
4647 resultobj = PyInt_FromLong((long)result);
4648 return resultobj;
4649 fail:
4650 return NULL;
4651 }
4652
4653
4654 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4655 PyObject *resultobj;
4656 wxRegion *arg1 = (wxRegion *) 0 ;
4657 wxRect *arg2 = 0 ;
4658 bool result;
4659 wxRect temp2 ;
4660 PyObject * obj0 = 0 ;
4661 PyObject * obj1 = 0 ;
4662 char *kwnames[] = {
4663 (char *) "self",(char *) "rect", NULL
4664 };
4665
4666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4667 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4668 {
4669 arg2 = &temp2;
4670 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4671 }
4672 {
4673 PyThreadState* __tstate = wxPyBeginAllowThreads();
4674 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4675
4676 wxPyEndAllowThreads(__tstate);
4677 if (PyErr_Occurred()) SWIG_fail;
4678 }
4679 resultobj = PyInt_FromLong((long)result);
4680 return resultobj;
4681 fail:
4682 return NULL;
4683 }
4684
4685
4686 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4687 PyObject *resultobj;
4688 wxRegion *arg1 = (wxRegion *) 0 ;
4689 wxRegion *arg2 = 0 ;
4690 bool result;
4691 PyObject * obj0 = 0 ;
4692 PyObject * obj1 = 0 ;
4693 char *kwnames[] = {
4694 (char *) "self",(char *) "region", NULL
4695 };
4696
4697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4699 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4700 if (arg2 == NULL) {
4701 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4702 }
4703 {
4704 PyThreadState* __tstate = wxPyBeginAllowThreads();
4705 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4706
4707 wxPyEndAllowThreads(__tstate);
4708 if (PyErr_Occurred()) SWIG_fail;
4709 }
4710 resultobj = PyInt_FromLong((long)result);
4711 return resultobj;
4712 fail:
4713 return NULL;
4714 }
4715
4716
4717 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
4718 PyObject *resultobj;
4719 wxRegion *arg1 = (wxRegion *) 0 ;
4720 int arg2 ;
4721 int arg3 ;
4722 int arg4 ;
4723 int arg5 ;
4724 bool result;
4725 PyObject * obj0 = 0 ;
4726 char *kwnames[] = {
4727 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4728 };
4729
4730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4732 {
4733 PyThreadState* __tstate = wxPyBeginAllowThreads();
4734 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
4735
4736 wxPyEndAllowThreads(__tstate);
4737 if (PyErr_Occurred()) SWIG_fail;
4738 }
4739 resultobj = PyInt_FromLong((long)result);
4740 return resultobj;
4741 fail:
4742 return NULL;
4743 }
4744
4745
4746 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4747 PyObject *resultobj;
4748 wxRegion *arg1 = (wxRegion *) 0 ;
4749 wxRect *arg2 = 0 ;
4750 bool result;
4751 wxRect temp2 ;
4752 PyObject * obj0 = 0 ;
4753 PyObject * obj1 = 0 ;
4754 char *kwnames[] = {
4755 (char *) "self",(char *) "rect", NULL
4756 };
4757
4758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
4759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4760 {
4761 arg2 = &temp2;
4762 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4763 }
4764 {
4765 PyThreadState* __tstate = wxPyBeginAllowThreads();
4766 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
4767
4768 wxPyEndAllowThreads(__tstate);
4769 if (PyErr_Occurred()) SWIG_fail;
4770 }
4771 resultobj = PyInt_FromLong((long)result);
4772 return resultobj;
4773 fail:
4774 return NULL;
4775 }
4776
4777
4778 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4779 PyObject *resultobj;
4780 wxRegion *arg1 = (wxRegion *) 0 ;
4781 wxRegion *arg2 = 0 ;
4782 bool result;
4783 PyObject * obj0 = 0 ;
4784 PyObject * obj1 = 0 ;
4785 char *kwnames[] = {
4786 (char *) "self",(char *) "region", NULL
4787 };
4788
4789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
4790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4791 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4792 if (arg2 == NULL) {
4793 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4794 }
4795 {
4796 PyThreadState* __tstate = wxPyBeginAllowThreads();
4797 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
4798
4799 wxPyEndAllowThreads(__tstate);
4800 if (PyErr_Occurred()) SWIG_fail;
4801 }
4802 resultobj = PyInt_FromLong((long)result);
4803 return resultobj;
4804 fail:
4805 return NULL;
4806 }
4807
4808
4809 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4810 PyObject *resultobj;
4811 wxRegion *arg1 = (wxRegion *) 0 ;
4812 SwigValueWrapper< wxBitmap > result;
4813 PyObject * obj0 = 0 ;
4814 char *kwnames[] = {
4815 (char *) "self", NULL
4816 };
4817
4818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
4819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4820 {
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (arg1)->ConvertToBitmap();
4823
4824 wxPyEndAllowThreads(__tstate);
4825 if (PyErr_Occurred()) SWIG_fail;
4826 }
4827 {
4828 wxBitmap * resultptr;
4829 resultptr = new wxBitmap((wxBitmap &) result);
4830 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
4831 }
4832 return resultobj;
4833 fail:
4834 return NULL;
4835 }
4836
4837
4838 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4839 PyObject *resultobj;
4840 wxRegion *arg1 = (wxRegion *) 0 ;
4841 wxBitmap *arg2 = 0 ;
4842 wxColour const &arg3_defvalue = wxNullColour ;
4843 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
4844 int arg4 = (int) 0 ;
4845 bool result;
4846 wxColour temp3 ;
4847 PyObject * obj0 = 0 ;
4848 PyObject * obj1 = 0 ;
4849 PyObject * obj2 = 0 ;
4850 char *kwnames[] = {
4851 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4852 };
4853
4854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
4855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4856 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4857 if (arg2 == NULL) {
4858 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4859 }
4860 if (obj2) {
4861 {
4862 arg3 = &temp3;
4863 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
4864 }
4865 }
4866 {
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
4869
4870 wxPyEndAllowThreads(__tstate);
4871 if (PyErr_Occurred()) SWIG_fail;
4872 }
4873 resultobj = PyInt_FromLong((long)result);
4874 return resultobj;
4875 fail:
4876 return NULL;
4877 }
4878
4879
4880 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
4881 PyObject *obj;
4882 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4883 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
4884 Py_INCREF(obj);
4885 return Py_BuildValue((char *)"");
4886 }
4887 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4888 PyObject *resultobj;
4889 wxRegion *arg1 = 0 ;
4890 wxRegionIterator *result;
4891 PyObject * obj0 = 0 ;
4892 char *kwnames[] = {
4893 (char *) "region", NULL
4894 };
4895
4896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
4897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4898 if (arg1 == NULL) {
4899 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4900 }
4901 {
4902 PyThreadState* __tstate = wxPyBeginAllowThreads();
4903 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
4904
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
4909 return resultobj;
4910 fail:
4911 return NULL;
4912 }
4913
4914
4915 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4916 PyObject *resultobj;
4917 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4918 PyObject * obj0 = 0 ;
4919 char *kwnames[] = {
4920 (char *) "self", NULL
4921 };
4922
4923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
4924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4925 {
4926 PyThreadState* __tstate = wxPyBeginAllowThreads();
4927 delete arg1;
4928
4929 wxPyEndAllowThreads(__tstate);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 }
4932 Py_INCREF(Py_None); resultobj = Py_None;
4933 return resultobj;
4934 fail:
4935 return NULL;
4936 }
4937
4938
4939 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
4940 PyObject *resultobj;
4941 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4942 int result;
4943 PyObject * obj0 = 0 ;
4944 char *kwnames[] = {
4945 (char *) "self", NULL
4946 };
4947
4948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
4949 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4950 {
4951 PyThreadState* __tstate = wxPyBeginAllowThreads();
4952 result = (int)(arg1)->GetX();
4953
4954 wxPyEndAllowThreads(__tstate);
4955 if (PyErr_Occurred()) SWIG_fail;
4956 }
4957 resultobj = PyInt_FromLong((long)result);
4958 return resultobj;
4959 fail:
4960 return NULL;
4961 }
4962
4963
4964 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
4965 PyObject *resultobj;
4966 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4967 int result;
4968 PyObject * obj0 = 0 ;
4969 char *kwnames[] = {
4970 (char *) "self", NULL
4971 };
4972
4973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
4974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4975 {
4976 PyThreadState* __tstate = wxPyBeginAllowThreads();
4977 result = (int)(arg1)->GetY();
4978
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 resultobj = PyInt_FromLong((long)result);
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
4990 PyObject *resultobj;
4991 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4992 int result;
4993 PyObject * obj0 = 0 ;
4994 char *kwnames[] = {
4995 (char *) "self", NULL
4996 };
4997
4998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
4999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5000 {
5001 PyThreadState* __tstate = wxPyBeginAllowThreads();
5002 result = (int)(arg1)->GetW();
5003
5004 wxPyEndAllowThreads(__tstate);
5005 if (PyErr_Occurred()) SWIG_fail;
5006 }
5007 resultobj = PyInt_FromLong((long)result);
5008 return resultobj;
5009 fail:
5010 return NULL;
5011 }
5012
5013
5014 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5015 PyObject *resultobj;
5016 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5017 int result;
5018 PyObject * obj0 = 0 ;
5019 char *kwnames[] = {
5020 (char *) "self", NULL
5021 };
5022
5023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5025 {
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 result = (int)(arg1)->GetWidth();
5028
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 resultobj = PyInt_FromLong((long)result);
5033 return resultobj;
5034 fail:
5035 return NULL;
5036 }
5037
5038
5039 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5040 PyObject *resultobj;
5041 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5042 int result;
5043 PyObject * obj0 = 0 ;
5044 char *kwnames[] = {
5045 (char *) "self", NULL
5046 };
5047
5048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5050 {
5051 PyThreadState* __tstate = wxPyBeginAllowThreads();
5052 result = (int)(arg1)->GetH();
5053
5054 wxPyEndAllowThreads(__tstate);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 }
5057 resultobj = PyInt_FromLong((long)result);
5058 return resultobj;
5059 fail:
5060 return NULL;
5061 }
5062
5063
5064 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5065 PyObject *resultobj;
5066 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5067 int result;
5068 PyObject * obj0 = 0 ;
5069 char *kwnames[] = {
5070 (char *) "self", NULL
5071 };
5072
5073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5075 {
5076 PyThreadState* __tstate = wxPyBeginAllowThreads();
5077 result = (int)(arg1)->GetHeight();
5078
5079 wxPyEndAllowThreads(__tstate);
5080 if (PyErr_Occurred()) SWIG_fail;
5081 }
5082 resultobj = PyInt_FromLong((long)result);
5083 return resultobj;
5084 fail:
5085 return NULL;
5086 }
5087
5088
5089 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj;
5091 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5092 wxRect result;
5093 PyObject * obj0 = 0 ;
5094 char *kwnames[] = {
5095 (char *) "self", NULL
5096 };
5097
5098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5100 {
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 result = (arg1)->GetRect();
5103
5104 wxPyEndAllowThreads(__tstate);
5105 if (PyErr_Occurred()) SWIG_fail;
5106 }
5107 {
5108 wxRect * resultptr;
5109 resultptr = new wxRect((wxRect &) result);
5110 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5111 }
5112 return resultobj;
5113 fail:
5114 return NULL;
5115 }
5116
5117
5118 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5119 PyObject *resultobj;
5120 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5121 bool result;
5122 PyObject * obj0 = 0 ;
5123 char *kwnames[] = {
5124 (char *) "self", NULL
5125 };
5126
5127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5129 {
5130 PyThreadState* __tstate = wxPyBeginAllowThreads();
5131 result = (bool)(arg1)->HaveRects();
5132
5133 wxPyEndAllowThreads(__tstate);
5134 if (PyErr_Occurred()) SWIG_fail;
5135 }
5136 resultobj = PyInt_FromLong((long)result);
5137 return resultobj;
5138 fail:
5139 return NULL;
5140 }
5141
5142
5143 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5144 PyObject *resultobj;
5145 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5146 PyObject * obj0 = 0 ;
5147 char *kwnames[] = {
5148 (char *) "self", NULL
5149 };
5150
5151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 (arg1)->Reset();
5156
5157 wxPyEndAllowThreads(__tstate);
5158 if (PyErr_Occurred()) SWIG_fail;
5159 }
5160 Py_INCREF(Py_None); resultobj = Py_None;
5161 return resultobj;
5162 fail:
5163 return NULL;
5164 }
5165
5166
5167 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5168 PyObject *resultobj;
5169 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5170 PyObject * obj0 = 0 ;
5171 char *kwnames[] = {
5172 (char *) "self", NULL
5173 };
5174
5175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5177 {
5178 PyThreadState* __tstate = wxPyBeginAllowThreads();
5179 wxRegionIterator_Next(arg1);
5180
5181 wxPyEndAllowThreads(__tstate);
5182 if (PyErr_Occurred()) SWIG_fail;
5183 }
5184 Py_INCREF(Py_None); resultobj = Py_None;
5185 return resultobj;
5186 fail:
5187 return NULL;
5188 }
5189
5190
5191 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5192 PyObject *resultobj;
5193 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5194 bool result;
5195 PyObject * obj0 = 0 ;
5196 char *kwnames[] = {
5197 (char *) "self", NULL
5198 };
5199
5200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5202 {
5203 PyThreadState* __tstate = wxPyBeginAllowThreads();
5204 result = (bool)wxRegionIterator___nonzero__(arg1);
5205
5206 wxPyEndAllowThreads(__tstate);
5207 if (PyErr_Occurred()) SWIG_fail;
5208 }
5209 resultobj = PyInt_FromLong((long)result);
5210 return resultobj;
5211 fail:
5212 return NULL;
5213 }
5214
5215
5216 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5217 PyObject *obj;
5218 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5219 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5220 Py_INCREF(obj);
5221 return Py_BuildValue((char *)"");
5222 }
5223 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5224 PyObject *resultobj;
5225 wxNativeFontInfo *result;
5226 char *kwnames[] = {
5227 NULL
5228 };
5229
5230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5231 {
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5234
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5246 PyObject *resultobj;
5247 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5248 PyObject * obj0 = 0 ;
5249 char *kwnames[] = {
5250 (char *) "self", NULL
5251 };
5252
5253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5255 {
5256 PyThreadState* __tstate = wxPyBeginAllowThreads();
5257 delete arg1;
5258
5259 wxPyEndAllowThreads(__tstate);
5260 if (PyErr_Occurred()) SWIG_fail;
5261 }
5262 Py_INCREF(Py_None); resultobj = Py_None;
5263 return resultobj;
5264 fail:
5265 return NULL;
5266 }
5267
5268
5269 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5270 PyObject *resultobj;
5271 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5272 PyObject * obj0 = 0 ;
5273 char *kwnames[] = {
5274 (char *) "self", NULL
5275 };
5276
5277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5279 {
5280 PyThreadState* __tstate = wxPyBeginAllowThreads();
5281 (arg1)->Init();
5282
5283 wxPyEndAllowThreads(__tstate);
5284 if (PyErr_Occurred()) SWIG_fail;
5285 }
5286 Py_INCREF(Py_None); resultobj = Py_None;
5287 return resultobj;
5288 fail:
5289 return NULL;
5290 }
5291
5292
5293 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5294 PyObject *resultobj;
5295 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5296 wxFont *arg2 = 0 ;
5297 PyObject * obj0 = 0 ;
5298 PyObject * obj1 = 0 ;
5299 char *kwnames[] = {
5300 (char *) "self",(char *) "font", NULL
5301 };
5302
5303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5305 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5306 if (arg2 == NULL) {
5307 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5308 }
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 (arg1)->InitFromFont((wxFont const &)*arg2);
5312
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 Py_INCREF(Py_None); resultobj = Py_None;
5317 return resultobj;
5318 fail:
5319 return NULL;
5320 }
5321
5322
5323 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5324 PyObject *resultobj;
5325 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5326 int result;
5327 PyObject * obj0 = 0 ;
5328 char *kwnames[] = {
5329 (char *) "self", NULL
5330 };
5331
5332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5337
5338 wxPyEndAllowThreads(__tstate);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 resultobj = PyInt_FromLong((long)result);
5342 return resultobj;
5343 fail:
5344 return NULL;
5345 }
5346
5347
5348 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5349 PyObject *resultobj;
5350 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5351 int result;
5352 PyObject * obj0 = 0 ;
5353 char *kwnames[] = {
5354 (char *) "self", NULL
5355 };
5356
5357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5359 {
5360 PyThreadState* __tstate = wxPyBeginAllowThreads();
5361 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5362
5363 wxPyEndAllowThreads(__tstate);
5364 if (PyErr_Occurred()) SWIG_fail;
5365 }
5366 resultobj = PyInt_FromLong((long)result);
5367 return resultobj;
5368 fail:
5369 return NULL;
5370 }
5371
5372
5373 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5374 PyObject *resultobj;
5375 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5376 int result;
5377 PyObject * obj0 = 0 ;
5378 char *kwnames[] = {
5379 (char *) "self", NULL
5380 };
5381
5382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5384 {
5385 PyThreadState* __tstate = wxPyBeginAllowThreads();
5386 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5387
5388 wxPyEndAllowThreads(__tstate);
5389 if (PyErr_Occurred()) SWIG_fail;
5390 }
5391 resultobj = PyInt_FromLong((long)result);
5392 return resultobj;
5393 fail:
5394 return NULL;
5395 }
5396
5397
5398 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj;
5400 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5401 bool result;
5402 PyObject * obj0 = 0 ;
5403 char *kwnames[] = {
5404 (char *) "self", NULL
5405 };
5406
5407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5409 {
5410 PyThreadState* __tstate = wxPyBeginAllowThreads();
5411 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5412
5413 wxPyEndAllowThreads(__tstate);
5414 if (PyErr_Occurred()) SWIG_fail;
5415 }
5416 resultobj = PyInt_FromLong((long)result);
5417 return resultobj;
5418 fail:
5419 return NULL;
5420 }
5421
5422
5423 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5424 PyObject *resultobj;
5425 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5426 wxString result;
5427 PyObject * obj0 = 0 ;
5428 char *kwnames[] = {
5429 (char *) "self", NULL
5430 };
5431
5432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5434 {
5435 PyThreadState* __tstate = wxPyBeginAllowThreads();
5436 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5437
5438 wxPyEndAllowThreads(__tstate);
5439 if (PyErr_Occurred()) SWIG_fail;
5440 }
5441 {
5442 #if wxUSE_UNICODE
5443 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5444 #else
5445 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5446 #endif
5447 }
5448 return resultobj;
5449 fail:
5450 return NULL;
5451 }
5452
5453
5454 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5455 PyObject *resultobj;
5456 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5457 int result;
5458 PyObject * obj0 = 0 ;
5459 char *kwnames[] = {
5460 (char *) "self", NULL
5461 };
5462
5463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5465 {
5466 PyThreadState* __tstate = wxPyBeginAllowThreads();
5467 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5468
5469 wxPyEndAllowThreads(__tstate);
5470 if (PyErr_Occurred()) SWIG_fail;
5471 }
5472 resultobj = PyInt_FromLong((long)result);
5473 return resultobj;
5474 fail:
5475 return NULL;
5476 }
5477
5478
5479 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5480 PyObject *resultobj;
5481 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5482 int result;
5483 PyObject * obj0 = 0 ;
5484 char *kwnames[] = {
5485 (char *) "self", NULL
5486 };
5487
5488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5490 {
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5493
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 resultobj = PyInt_FromLong((long)result);
5498 return resultobj;
5499 fail:
5500 return NULL;
5501 }
5502
5503
5504 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5505 PyObject *resultobj;
5506 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5507 int arg2 ;
5508 PyObject * obj0 = 0 ;
5509 char *kwnames[] = {
5510 (char *) "self",(char *) "pointsize", NULL
5511 };
5512
5513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
5514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5515 {
5516 PyThreadState* __tstate = wxPyBeginAllowThreads();
5517 (arg1)->SetPointSize(arg2);
5518
5519 wxPyEndAllowThreads(__tstate);
5520 if (PyErr_Occurred()) SWIG_fail;
5521 }
5522 Py_INCREF(Py_None); resultobj = Py_None;
5523 return resultobj;
5524 fail:
5525 return NULL;
5526 }
5527
5528
5529 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5530 PyObject *resultobj;
5531 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5532 int arg2 ;
5533 PyObject * obj0 = 0 ;
5534 char *kwnames[] = {
5535 (char *) "self",(char *) "style", NULL
5536 };
5537
5538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail;
5539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 (arg1)->SetStyle((wxFontStyle )arg2);
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 Py_INCREF(Py_None); resultobj = Py_None;
5548 return resultobj;
5549 fail:
5550 return NULL;
5551 }
5552
5553
5554 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5555 PyObject *resultobj;
5556 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5557 int arg2 ;
5558 PyObject * obj0 = 0 ;
5559 char *kwnames[] = {
5560 (char *) "self",(char *) "weight", NULL
5561 };
5562
5563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail;
5564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5565 {
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 (arg1)->SetWeight((wxFontWeight )arg2);
5568
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 Py_INCREF(Py_None); resultobj = Py_None;
5573 return resultobj;
5574 fail:
5575 return NULL;
5576 }
5577
5578
5579 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5580 PyObject *resultobj;
5581 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5582 bool arg2 ;
5583 PyObject * obj0 = 0 ;
5584 PyObject * obj1 = 0 ;
5585 char *kwnames[] = {
5586 (char *) "self",(char *) "underlined", NULL
5587 };
5588
5589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5591 {
5592 arg2 = (bool) SPyObj_AsBool(obj1);
5593 if (PyErr_Occurred()) SWIG_fail;
5594 }
5595 {
5596 PyThreadState* __tstate = wxPyBeginAllowThreads();
5597 (arg1)->SetUnderlined(arg2);
5598
5599 wxPyEndAllowThreads(__tstate);
5600 if (PyErr_Occurred()) SWIG_fail;
5601 }
5602 Py_INCREF(Py_None); resultobj = Py_None;
5603 return resultobj;
5604 fail:
5605 return NULL;
5606 }
5607
5608
5609 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5610 PyObject *resultobj;
5611 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5612 wxString arg2 ;
5613 PyObject * obj0 = 0 ;
5614 PyObject * obj1 = 0 ;
5615 char *kwnames[] = {
5616 (char *) "self",(char *) "facename", NULL
5617 };
5618
5619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5621 {
5622 wxString* sptr = wxString_in_helper(obj1);
5623 if (sptr == NULL) SWIG_fail;
5624 arg2 = *sptr;
5625 delete sptr;
5626 }
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 (arg1)->SetFaceName(arg2);
5630
5631 wxPyEndAllowThreads(__tstate);
5632 if (PyErr_Occurred()) SWIG_fail;
5633 }
5634 Py_INCREF(Py_None); resultobj = Py_None;
5635 return resultobj;
5636 fail:
5637 return NULL;
5638 }
5639
5640
5641 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5642 PyObject *resultobj;
5643 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5644 int arg2 ;
5645 PyObject * obj0 = 0 ;
5646 char *kwnames[] = {
5647 (char *) "self",(char *) "family", NULL
5648 };
5649
5650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail;
5651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5652 {
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 (arg1)->SetFamily((wxFontFamily )arg2);
5655
5656 wxPyEndAllowThreads(__tstate);
5657 if (PyErr_Occurred()) SWIG_fail;
5658 }
5659 Py_INCREF(Py_None); resultobj = Py_None;
5660 return resultobj;
5661 fail:
5662 return NULL;
5663 }
5664
5665
5666 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5667 PyObject *resultobj;
5668 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5669 int arg2 ;
5670 PyObject * obj0 = 0 ;
5671 char *kwnames[] = {
5672 (char *) "self",(char *) "encoding", NULL
5673 };
5674
5675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
5676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5677 {
5678 PyThreadState* __tstate = wxPyBeginAllowThreads();
5679 (arg1)->SetEncoding((wxFontEncoding )arg2);
5680
5681 wxPyEndAllowThreads(__tstate);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 }
5684 Py_INCREF(Py_None); resultobj = Py_None;
5685 return resultobj;
5686 fail:
5687 return NULL;
5688 }
5689
5690
5691 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5692 PyObject *resultobj;
5693 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5694 wxString *arg2 = 0 ;
5695 bool result;
5696 bool temp2 = False ;
5697 PyObject * obj0 = 0 ;
5698 PyObject * obj1 = 0 ;
5699 char *kwnames[] = {
5700 (char *) "self",(char *) "s", NULL
5701 };
5702
5703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5704 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5705 {
5706 arg2 = wxString_in_helper(obj1);
5707 if (arg2 == NULL) SWIG_fail;
5708 temp2 = True;
5709 }
5710 {
5711 PyThreadState* __tstate = wxPyBeginAllowThreads();
5712 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5713
5714 wxPyEndAllowThreads(__tstate);
5715 if (PyErr_Occurred()) SWIG_fail;
5716 }
5717 resultobj = PyInt_FromLong((long)result);
5718 {
5719 if (temp2)
5720 delete arg2;
5721 }
5722 return resultobj;
5723 fail:
5724 {
5725 if (temp2)
5726 delete arg2;
5727 }
5728 return NULL;
5729 }
5730
5731
5732 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5733 PyObject *resultobj;
5734 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5735 wxString result;
5736 PyObject * obj0 = 0 ;
5737 char *kwnames[] = {
5738 (char *) "self", NULL
5739 };
5740
5741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
5742 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5743 {
5744 PyThreadState* __tstate = wxPyBeginAllowThreads();
5745 result = ((wxNativeFontInfo const *)arg1)->ToString();
5746
5747 wxPyEndAllowThreads(__tstate);
5748 if (PyErr_Occurred()) SWIG_fail;
5749 }
5750 {
5751 #if wxUSE_UNICODE
5752 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5753 #else
5754 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5755 #endif
5756 }
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5766 wxString result;
5767 PyObject * obj0 = 0 ;
5768 char *kwnames[] = {
5769 (char *) "self", NULL
5770 };
5771
5772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
5773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 result = wxNativeFontInfo___str__(arg1);
5777
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 {
5782 #if wxUSE_UNICODE
5783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5784 #else
5785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5786 #endif
5787 }
5788 return resultobj;
5789 fail:
5790 return NULL;
5791 }
5792
5793
5794 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5795 PyObject *resultobj;
5796 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5797 wxString *arg2 = 0 ;
5798 bool result;
5799 bool temp2 = False ;
5800 PyObject * obj0 = 0 ;
5801 PyObject * obj1 = 0 ;
5802 char *kwnames[] = {
5803 (char *) "self",(char *) "s", NULL
5804 };
5805
5806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
5807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5808 {
5809 arg2 = wxString_in_helper(obj1);
5810 if (arg2 == NULL) SWIG_fail;
5811 temp2 = True;
5812 }
5813 {
5814 PyThreadState* __tstate = wxPyBeginAllowThreads();
5815 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
5816
5817 wxPyEndAllowThreads(__tstate);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 }
5820 resultobj = PyInt_FromLong((long)result);
5821 {
5822 if (temp2)
5823 delete arg2;
5824 }
5825 return resultobj;
5826 fail:
5827 {
5828 if (temp2)
5829 delete arg2;
5830 }
5831 return NULL;
5832 }
5833
5834
5835 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj;
5837 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5838 wxString result;
5839 PyObject * obj0 = 0 ;
5840 char *kwnames[] = {
5841 (char *) "self", NULL
5842 };
5843
5844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
5845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5846 {
5847 PyThreadState* __tstate = wxPyBeginAllowThreads();
5848 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
5849
5850 wxPyEndAllowThreads(__tstate);
5851 if (PyErr_Occurred()) SWIG_fail;
5852 }
5853 {
5854 #if wxUSE_UNICODE
5855 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5856 #else
5857 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5858 #endif
5859 }
5860 return resultobj;
5861 fail:
5862 return NULL;
5863 }
5864
5865
5866 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
5867 PyObject *obj;
5868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5869 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
5870 Py_INCREF(obj);
5871 return Py_BuildValue((char *)"");
5872 }
5873 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5874 PyObject *resultobj;
5875 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5876 wxString *arg2 = (wxString *) 0 ;
5877 bool temp2 = False ;
5878 PyObject * obj0 = 0 ;
5879 PyObject * obj1 = 0 ;
5880 char *kwnames[] = {
5881 (char *) "self",(char *) "facename", NULL
5882 };
5883
5884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
5885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5886 {
5887 arg2 = wxString_in_helper(obj1);
5888 if (arg2 == NULL) SWIG_fail;
5889 temp2 = True;
5890 }
5891 if (arg1) (arg1)->facename = *arg2;
5892
5893 Py_INCREF(Py_None); resultobj = Py_None;
5894 {
5895 if (temp2)
5896 delete arg2;
5897 }
5898 return resultobj;
5899 fail:
5900 {
5901 if (temp2)
5902 delete arg2;
5903 }
5904 return NULL;
5905 }
5906
5907
5908 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5909 PyObject *resultobj;
5910 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5911 wxString *result;
5912 PyObject * obj0 = 0 ;
5913 char *kwnames[] = {
5914 (char *) "self", NULL
5915 };
5916
5917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
5918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5919 result = (wxString *)& ((arg1)->facename);
5920
5921 {
5922 #if wxUSE_UNICODE
5923 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5924 #else
5925 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5926 #endif
5927 }
5928 return resultobj;
5929 fail:
5930 return NULL;
5931 }
5932
5933
5934 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5935 PyObject *resultobj;
5936 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5937 int arg2 ;
5938 PyObject * obj0 = 0 ;
5939 char *kwnames[] = {
5940 (char *) "self",(char *) "encoding", NULL
5941 };
5942
5943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
5944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5945 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
5946
5947 Py_INCREF(Py_None); resultobj = Py_None;
5948 return resultobj;
5949 fail:
5950 return NULL;
5951 }
5952
5953
5954 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5955 PyObject *resultobj;
5956 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5957 int result;
5958 PyObject * obj0 = 0 ;
5959 char *kwnames[] = {
5960 (char *) "self", NULL
5961 };
5962
5963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
5964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5965 result = (int) ((arg1)->encoding);
5966
5967 resultobj = PyInt_FromLong((long)result);
5968 return resultobj;
5969 fail:
5970 return NULL;
5971 }
5972
5973
5974 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5975 PyObject *resultobj;
5976 wxNativeEncodingInfo *result;
5977 char *kwnames[] = {
5978 NULL
5979 };
5980
5981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
5982 {
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
5985
5986 wxPyEndAllowThreads(__tstate);
5987 if (PyErr_Occurred()) SWIG_fail;
5988 }
5989 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
5990 return resultobj;
5991 fail:
5992 return NULL;
5993 }
5994
5995
5996 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5997 PyObject *resultobj;
5998 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5999 PyObject * obj0 = 0 ;
6000 char *kwnames[] = {
6001 (char *) "self", NULL
6002 };
6003
6004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 delete arg1;
6009
6010 wxPyEndAllowThreads(__tstate);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 Py_INCREF(Py_None); resultobj = Py_None;
6014 return resultobj;
6015 fail:
6016 return NULL;
6017 }
6018
6019
6020 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6021 PyObject *resultobj;
6022 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6023 wxString *arg2 = 0 ;
6024 bool result;
6025 bool temp2 = False ;
6026 PyObject * obj0 = 0 ;
6027 PyObject * obj1 = 0 ;
6028 char *kwnames[] = {
6029 (char *) "self",(char *) "s", NULL
6030 };
6031
6032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6034 {
6035 arg2 = wxString_in_helper(obj1);
6036 if (arg2 == NULL) SWIG_fail;
6037 temp2 = True;
6038 }
6039 {
6040 PyThreadState* __tstate = wxPyBeginAllowThreads();
6041 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6042
6043 wxPyEndAllowThreads(__tstate);
6044 if (PyErr_Occurred()) SWIG_fail;
6045 }
6046 resultobj = PyInt_FromLong((long)result);
6047 {
6048 if (temp2)
6049 delete arg2;
6050 }
6051 return resultobj;
6052 fail:
6053 {
6054 if (temp2)
6055 delete arg2;
6056 }
6057 return NULL;
6058 }
6059
6060
6061 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6062 PyObject *resultobj;
6063 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6064 wxString result;
6065 PyObject * obj0 = 0 ;
6066 char *kwnames[] = {
6067 (char *) "self", NULL
6068 };
6069
6070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6072 {
6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
6074 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6075
6076 wxPyEndAllowThreads(__tstate);
6077 if (PyErr_Occurred()) SWIG_fail;
6078 }
6079 {
6080 #if wxUSE_UNICODE
6081 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6082 #else
6083 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6084 #endif
6085 }
6086 return resultobj;
6087 fail:
6088 return NULL;
6089 }
6090
6091
6092 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6093 PyObject *obj;
6094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6095 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6096 Py_INCREF(obj);
6097 return Py_BuildValue((char *)"");
6098 }
6099 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6100 PyObject *resultobj;
6101 int arg1 ;
6102 wxNativeEncodingInfo *result;
6103 char *kwnames[] = {
6104 (char *) "encoding", NULL
6105 };
6106
6107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
6108 {
6109 PyThreadState* __tstate = wxPyBeginAllowThreads();
6110 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6111
6112 wxPyEndAllowThreads(__tstate);
6113 if (PyErr_Occurred()) SWIG_fail;
6114 }
6115 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
6116 return resultobj;
6117 fail:
6118 return NULL;
6119 }
6120
6121
6122 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6123 PyObject *resultobj;
6124 wxNativeEncodingInfo *arg1 = 0 ;
6125 bool result;
6126 PyObject * obj0 = 0 ;
6127 char *kwnames[] = {
6128 (char *) "info", NULL
6129 };
6130
6131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6133 if (arg1 == NULL) {
6134 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6135 }
6136 {
6137 PyThreadState* __tstate = wxPyBeginAllowThreads();
6138 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6139
6140 wxPyEndAllowThreads(__tstate);
6141 if (PyErr_Occurred()) SWIG_fail;
6142 }
6143 resultobj = PyInt_FromLong((long)result);
6144 return resultobj;
6145 fail:
6146 return NULL;
6147 }
6148
6149
6150 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6151 PyObject *resultobj;
6152 wxFontMapper *result;
6153 char *kwnames[] = {
6154 NULL
6155 };
6156
6157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6158 {
6159 PyThreadState* __tstate = wxPyBeginAllowThreads();
6160 result = (wxFontMapper *)new wxFontMapper();
6161
6162 wxPyEndAllowThreads(__tstate);
6163 if (PyErr_Occurred()) SWIG_fail;
6164 }
6165 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
6166 return resultobj;
6167 fail:
6168 return NULL;
6169 }
6170
6171
6172 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6173 PyObject *resultobj;
6174 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6175 PyObject * obj0 = 0 ;
6176 char *kwnames[] = {
6177 (char *) "self", NULL
6178 };
6179
6180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6181 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6182 {
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 delete arg1;
6185
6186 wxPyEndAllowThreads(__tstate);
6187 if (PyErr_Occurred()) SWIG_fail;
6188 }
6189 Py_INCREF(Py_None); resultobj = Py_None;
6190 return resultobj;
6191 fail:
6192 return NULL;
6193 }
6194
6195
6196 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6197 PyObject *resultobj;
6198 wxFontMapper *result;
6199 char *kwnames[] = {
6200 NULL
6201 };
6202
6203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6204 {
6205 PyThreadState* __tstate = wxPyBeginAllowThreads();
6206 result = (wxFontMapper *)wxFontMapper::Get();
6207
6208 wxPyEndAllowThreads(__tstate);
6209 if (PyErr_Occurred()) SWIG_fail;
6210 }
6211 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6212 return resultobj;
6213 fail:
6214 return NULL;
6215 }
6216
6217
6218 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6219 PyObject *resultobj;
6220 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6221 wxFontMapper *result;
6222 PyObject * obj0 = 0 ;
6223 char *kwnames[] = {
6224 (char *) "mapper", NULL
6225 };
6226
6227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6229 {
6230 PyThreadState* __tstate = wxPyBeginAllowThreads();
6231 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6232
6233 wxPyEndAllowThreads(__tstate);
6234 if (PyErr_Occurred()) SWIG_fail;
6235 }
6236 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6237 return resultobj;
6238 fail:
6239 return NULL;
6240 }
6241
6242
6243 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6244 PyObject *resultobj;
6245 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6246 wxString *arg2 = 0 ;
6247 bool arg3 = (bool) True ;
6248 int result;
6249 bool temp2 = False ;
6250 PyObject * obj0 = 0 ;
6251 PyObject * obj1 = 0 ;
6252 PyObject * obj2 = 0 ;
6253 char *kwnames[] = {
6254 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6255 };
6256
6257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6259 {
6260 arg2 = wxString_in_helper(obj1);
6261 if (arg2 == NULL) SWIG_fail;
6262 temp2 = True;
6263 }
6264 if (obj2) {
6265 {
6266 arg3 = (bool) SPyObj_AsBool(obj2);
6267 if (PyErr_Occurred()) SWIG_fail;
6268 }
6269 }
6270 {
6271 PyThreadState* __tstate = wxPyBeginAllowThreads();
6272 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6273
6274 wxPyEndAllowThreads(__tstate);
6275 if (PyErr_Occurred()) SWIG_fail;
6276 }
6277 resultobj = PyInt_FromLong((long)result);
6278 {
6279 if (temp2)
6280 delete arg2;
6281 }
6282 return resultobj;
6283 fail:
6284 {
6285 if (temp2)
6286 delete arg2;
6287 }
6288 return NULL;
6289 }
6290
6291
6292 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj;
6294 size_t result;
6295 char *kwnames[] = {
6296 NULL
6297 };
6298
6299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6300 {
6301 PyThreadState* __tstate = wxPyBeginAllowThreads();
6302 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6303
6304 wxPyEndAllowThreads(__tstate);
6305 if (PyErr_Occurred()) SWIG_fail;
6306 }
6307 resultobj = SPyObj_FromUnsignedLong((unsigned long)result);
6308 return resultobj;
6309 fail:
6310 return NULL;
6311 }
6312
6313
6314 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6315 PyObject *resultobj;
6316 size_t arg1 ;
6317 int result;
6318 PyObject * obj0 = 0 ;
6319 char *kwnames[] = {
6320 (char *) "n", NULL
6321 };
6322
6323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6324 {
6325 arg1 = (size_t) SPyObj_AsUnsignedLong(obj0);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 {
6329 PyThreadState* __tstate = wxPyBeginAllowThreads();
6330 result = (int)wxFontMapper::GetEncoding(arg1);
6331
6332 wxPyEndAllowThreads(__tstate);
6333 if (PyErr_Occurred()) SWIG_fail;
6334 }
6335 resultobj = PyInt_FromLong((long)result);
6336 return resultobj;
6337 fail:
6338 return NULL;
6339 }
6340
6341
6342 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6343 PyObject *resultobj;
6344 int arg1 ;
6345 wxString result;
6346 char *kwnames[] = {
6347 (char *) "encoding", NULL
6348 };
6349
6350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6351 {
6352 PyThreadState* __tstate = wxPyBeginAllowThreads();
6353 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6354
6355 wxPyEndAllowThreads(__tstate);
6356 if (PyErr_Occurred()) SWIG_fail;
6357 }
6358 {
6359 #if wxUSE_UNICODE
6360 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6361 #else
6362 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6363 #endif
6364 }
6365 return resultobj;
6366 fail:
6367 return NULL;
6368 }
6369
6370
6371 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6372 PyObject *resultobj;
6373 int arg1 ;
6374 wxString result;
6375 char *kwnames[] = {
6376 (char *) "encoding", NULL
6377 };
6378
6379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6380 {
6381 PyThreadState* __tstate = wxPyBeginAllowThreads();
6382 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6383
6384 wxPyEndAllowThreads(__tstate);
6385 if (PyErr_Occurred()) SWIG_fail;
6386 }
6387 {
6388 #if wxUSE_UNICODE
6389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6390 #else
6391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6392 #endif
6393 }
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6401 PyObject *resultobj;
6402 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6403 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6404 PyObject * obj0 = 0 ;
6405 PyObject * obj1 = 0 ;
6406 char *kwnames[] = {
6407 (char *) "self",(char *) "config", NULL
6408 };
6409
6410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6412 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 (arg1)->SetConfig(arg2);
6416
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 Py_INCREF(Py_None); resultobj = Py_None;
6421 return resultobj;
6422 fail:
6423 return NULL;
6424 }
6425
6426
6427 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj;
6429 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6430 wxString *arg2 = 0 ;
6431 bool temp2 = False ;
6432 PyObject * obj0 = 0 ;
6433 PyObject * obj1 = 0 ;
6434 char *kwnames[] = {
6435 (char *) "self",(char *) "prefix", NULL
6436 };
6437
6438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6440 {
6441 arg2 = wxString_in_helper(obj1);
6442 if (arg2 == NULL) SWIG_fail;
6443 temp2 = True;
6444 }
6445 {
6446 PyThreadState* __tstate = wxPyBeginAllowThreads();
6447 (arg1)->SetConfigPath((wxString const &)*arg2);
6448
6449 wxPyEndAllowThreads(__tstate);
6450 if (PyErr_Occurred()) SWIG_fail;
6451 }
6452 Py_INCREF(Py_None); resultobj = Py_None;
6453 {
6454 if (temp2)
6455 delete arg2;
6456 }
6457 return resultobj;
6458 fail:
6459 {
6460 if (temp2)
6461 delete arg2;
6462 }
6463 return NULL;
6464 }
6465
6466
6467 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6468 PyObject *resultobj;
6469 wxString result;
6470 char *kwnames[] = {
6471 NULL
6472 };
6473
6474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6475 {
6476 PyThreadState* __tstate = wxPyBeginAllowThreads();
6477 result = wxFontMapper::GetDefaultConfigPath();
6478
6479 wxPyEndAllowThreads(__tstate);
6480 if (PyErr_Occurred()) SWIG_fail;
6481 }
6482 {
6483 #if wxUSE_UNICODE
6484 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6485 #else
6486 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6487 #endif
6488 }
6489 return resultobj;
6490 fail:
6491 return NULL;
6492 }
6493
6494
6495 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6496 PyObject *resultobj;
6497 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6498 int arg2 ;
6499 wxString const &arg3_defvalue = wxPyEmptyString ;
6500 wxString *arg3 = (wxString *) &arg3_defvalue ;
6501 bool arg4 = (bool) True ;
6502 PyObject *result;
6503 bool temp3 = False ;
6504 PyObject * obj0 = 0 ;
6505 PyObject * obj2 = 0 ;
6506 PyObject * obj3 = 0 ;
6507 char *kwnames[] = {
6508 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6509 };
6510
6511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6513 if (obj2) {
6514 {
6515 arg3 = wxString_in_helper(obj2);
6516 if (arg3 == NULL) SWIG_fail;
6517 temp3 = True;
6518 }
6519 }
6520 if (obj3) {
6521 {
6522 arg4 = (bool) SPyObj_AsBool(obj3);
6523 if (PyErr_Occurred()) SWIG_fail;
6524 }
6525 }
6526 {
6527 PyThreadState* __tstate = wxPyBeginAllowThreads();
6528 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6529
6530 wxPyEndAllowThreads(__tstate);
6531 if (PyErr_Occurred()) SWIG_fail;
6532 }
6533 resultobj = result;
6534 {
6535 if (temp3)
6536 delete arg3;
6537 }
6538 return resultobj;
6539 fail:
6540 {
6541 if (temp3)
6542 delete arg3;
6543 }
6544 return NULL;
6545 }
6546
6547
6548 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6549 PyObject *resultobj;
6550 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6551 int arg2 ;
6552 wxString const &arg3_defvalue = wxPyEmptyString ;
6553 wxString *arg3 = (wxString *) &arg3_defvalue ;
6554 bool result;
6555 bool temp3 = False ;
6556 PyObject * obj0 = 0 ;
6557 PyObject * obj2 = 0 ;
6558 char *kwnames[] = {
6559 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6560 };
6561
6562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6564 if (obj2) {
6565 {
6566 arg3 = wxString_in_helper(obj2);
6567 if (arg3 == NULL) SWIG_fail;
6568 temp3 = True;
6569 }
6570 }
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6574
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = PyInt_FromLong((long)result);
6579 {
6580 if (temp3)
6581 delete arg3;
6582 }
6583 return resultobj;
6584 fail:
6585 {
6586 if (temp3)
6587 delete arg3;
6588 }
6589 return NULL;
6590 }
6591
6592
6593 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6594 PyObject *resultobj;
6595 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6596 wxWindow *arg2 = (wxWindow *) 0 ;
6597 PyObject * obj0 = 0 ;
6598 PyObject * obj1 = 0 ;
6599 char *kwnames[] = {
6600 (char *) "self",(char *) "parent", NULL
6601 };
6602
6603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6605 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6606 {
6607 PyThreadState* __tstate = wxPyBeginAllowThreads();
6608 (arg1)->SetDialogParent(arg2);
6609
6610 wxPyEndAllowThreads(__tstate);
6611 if (PyErr_Occurred()) SWIG_fail;
6612 }
6613 Py_INCREF(Py_None); resultobj = Py_None;
6614 return resultobj;
6615 fail:
6616 return NULL;
6617 }
6618
6619
6620 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6621 PyObject *resultobj;
6622 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6623 wxString *arg2 = 0 ;
6624 bool temp2 = False ;
6625 PyObject * obj0 = 0 ;
6626 PyObject * obj1 = 0 ;
6627 char *kwnames[] = {
6628 (char *) "self",(char *) "title", NULL
6629 };
6630
6631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6633 {
6634 arg2 = wxString_in_helper(obj1);
6635 if (arg2 == NULL) SWIG_fail;
6636 temp2 = True;
6637 }
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 (arg1)->SetDialogTitle((wxString const &)*arg2);
6641
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 Py_INCREF(Py_None); resultobj = Py_None;
6646 {
6647 if (temp2)
6648 delete arg2;
6649 }
6650 return resultobj;
6651 fail:
6652 {
6653 if (temp2)
6654 delete arg2;
6655 }
6656 return NULL;
6657 }
6658
6659
6660 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6661 PyObject *obj;
6662 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6663 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6664 Py_INCREF(obj);
6665 return Py_BuildValue((char *)"");
6666 }
6667 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6668 PyObject *resultobj;
6669 int arg1 ;
6670 int arg2 ;
6671 int arg3 ;
6672 int arg4 ;
6673 bool arg5 = (bool) False ;
6674 wxString const &arg6_defvalue = wxPyEmptyString ;
6675 wxString *arg6 = (wxString *) &arg6_defvalue ;
6676 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6677 wxFont *result;
6678 bool temp6 = False ;
6679 PyObject * obj4 = 0 ;
6680 PyObject * obj5 = 0 ;
6681 char *kwnames[] = {
6682 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6683 };
6684
6685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6686 if (obj4) {
6687 {
6688 arg5 = (bool) SPyObj_AsBool(obj4);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 }
6691 }
6692 if (obj5) {
6693 {
6694 arg6 = wxString_in_helper(obj5);
6695 if (arg6 == NULL) SWIG_fail;
6696 temp6 = True;
6697 }
6698 }
6699 {
6700 PyThreadState* __tstate = wxPyBeginAllowThreads();
6701 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
6702
6703 wxPyEndAllowThreads(__tstate);
6704 if (PyErr_Occurred()) SWIG_fail;
6705 }
6706 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6707 {
6708 if (temp6)
6709 delete arg6;
6710 }
6711 return resultobj;
6712 fail:
6713 {
6714 if (temp6)
6715 delete arg6;
6716 }
6717 return NULL;
6718 }
6719
6720
6721 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6722 PyObject *resultobj;
6723 wxFont *arg1 = (wxFont *) 0 ;
6724 PyObject * obj0 = 0 ;
6725 char *kwnames[] = {
6726 (char *) "self", NULL
6727 };
6728
6729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
6730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6731 {
6732 PyThreadState* __tstate = wxPyBeginAllowThreads();
6733 delete arg1;
6734
6735 wxPyEndAllowThreads(__tstate);
6736 if (PyErr_Occurred()) SWIG_fail;
6737 }
6738 Py_INCREF(Py_None); resultobj = Py_None;
6739 return resultobj;
6740 fail:
6741 return NULL;
6742 }
6743
6744
6745 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6746 PyObject *resultobj;
6747 wxNativeFontInfo *arg1 = 0 ;
6748 wxFont *result;
6749 PyObject * obj0 = 0 ;
6750 char *kwnames[] = {
6751 (char *) "info", NULL
6752 };
6753
6754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
6755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6756 if (arg1 == NULL) {
6757 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6758 }
6759 {
6760 PyThreadState* __tstate = wxPyBeginAllowThreads();
6761 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
6762
6763 wxPyEndAllowThreads(__tstate);
6764 if (PyErr_Occurred()) SWIG_fail;
6765 }
6766 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6767 return resultobj;
6768 fail:
6769 return NULL;
6770 }
6771
6772
6773 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj;
6775 wxString *arg1 = 0 ;
6776 wxFont *result;
6777 bool temp1 = False ;
6778 PyObject * obj0 = 0 ;
6779 char *kwnames[] = {
6780 (char *) "info", NULL
6781 };
6782
6783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
6784 {
6785 arg1 = wxString_in_helper(obj0);
6786 if (arg1 == NULL) SWIG_fail;
6787 temp1 = True;
6788 }
6789 {
6790 PyThreadState* __tstate = wxPyBeginAllowThreads();
6791 result = (wxFont *)new_wxFont((wxString const &)*arg1);
6792
6793 wxPyEndAllowThreads(__tstate);
6794 if (PyErr_Occurred()) SWIG_fail;
6795 }
6796 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6797 {
6798 if (temp1)
6799 delete arg1;
6800 }
6801 return resultobj;
6802 fail:
6803 {
6804 if (temp1)
6805 delete arg1;
6806 }
6807 return NULL;
6808 }
6809
6810
6811 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
6812 PyObject *resultobj;
6813 int arg1 ;
6814 int arg2 ;
6815 int arg3 = (int) wxFONTFLAG_DEFAULT ;
6816 wxString const &arg4_defvalue = wxPyEmptyString ;
6817 wxString *arg4 = (wxString *) &arg4_defvalue ;
6818 int arg5 = (int) wxFONTENCODING_DEFAULT ;
6819 wxFont *result;
6820 bool temp4 = False ;
6821 PyObject * obj3 = 0 ;
6822 char *kwnames[] = {
6823 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
6824 };
6825
6826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
6827 if (obj3) {
6828 {
6829 arg4 = wxString_in_helper(obj3);
6830 if (arg4 == NULL) SWIG_fail;
6831 temp4 = True;
6832 }
6833 }
6834 {
6835 PyThreadState* __tstate = wxPyBeginAllowThreads();
6836 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
6837
6838 wxPyEndAllowThreads(__tstate);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6842 {
6843 if (temp4)
6844 delete arg4;
6845 }
6846 return resultobj;
6847 fail:
6848 {
6849 if (temp4)
6850 delete arg4;
6851 }
6852 return NULL;
6853 }
6854
6855
6856 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6857 PyObject *resultobj;
6858 wxFont *arg1 = (wxFont *) 0 ;
6859 bool result;
6860 PyObject * obj0 = 0 ;
6861 char *kwnames[] = {
6862 (char *) "self", NULL
6863 };
6864
6865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
6866 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6867 {
6868 PyThreadState* __tstate = wxPyBeginAllowThreads();
6869 result = (bool)((wxFont const *)arg1)->Ok();
6870
6871 wxPyEndAllowThreads(__tstate);
6872 if (PyErr_Occurred()) SWIG_fail;
6873 }
6874 resultobj = PyInt_FromLong((long)result);
6875 return resultobj;
6876 fail:
6877 return NULL;
6878 }
6879
6880
6881 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
6882 PyObject *resultobj;
6883 wxFont *arg1 = (wxFont *) 0 ;
6884 wxFont *arg2 = 0 ;
6885 bool result;
6886 PyObject * obj0 = 0 ;
6887 PyObject * obj1 = 0 ;
6888 char *kwnames[] = {
6889 (char *) "self",(char *) "font", NULL
6890 };
6891
6892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
6893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6894 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6895 if (arg2 == NULL) {
6896 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6897 }
6898 {
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
6901
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 resultobj = PyInt_FromLong((long)result);
6906 return resultobj;
6907 fail:
6908 return NULL;
6909 }
6910
6911
6912 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
6913 PyObject *resultobj;
6914 wxFont *arg1 = (wxFont *) 0 ;
6915 wxFont *arg2 = 0 ;
6916 bool result;
6917 PyObject * obj0 = 0 ;
6918 PyObject * obj1 = 0 ;
6919 char *kwnames[] = {
6920 (char *) "self",(char *) "font", NULL
6921 };
6922
6923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
6924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6925 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6926 if (arg2 == NULL) {
6927 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6928 }
6929 {
6930 PyThreadState* __tstate = wxPyBeginAllowThreads();
6931 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
6932
6933 wxPyEndAllowThreads(__tstate);
6934 if (PyErr_Occurred()) SWIG_fail;
6935 }
6936 resultobj = PyInt_FromLong((long)result);
6937 return resultobj;
6938 fail:
6939 return NULL;
6940 }
6941
6942
6943 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6944 PyObject *resultobj;
6945 wxFont *arg1 = (wxFont *) 0 ;
6946 int result;
6947 PyObject * obj0 = 0 ;
6948 char *kwnames[] = {
6949 (char *) "self", NULL
6950 };
6951
6952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
6953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6954 {
6955 PyThreadState* __tstate = wxPyBeginAllowThreads();
6956 result = (int)((wxFont const *)arg1)->GetPointSize();
6957
6958 wxPyEndAllowThreads(__tstate);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = PyInt_FromLong((long)result);
6962 return resultobj;
6963 fail:
6964 return NULL;
6965 }
6966
6967
6968 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6969 PyObject *resultobj;
6970 wxFont *arg1 = (wxFont *) 0 ;
6971 int result;
6972 PyObject * obj0 = 0 ;
6973 char *kwnames[] = {
6974 (char *) "self", NULL
6975 };
6976
6977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
6978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6979 {
6980 PyThreadState* __tstate = wxPyBeginAllowThreads();
6981 result = (int)((wxFont const *)arg1)->GetFamily();
6982
6983 wxPyEndAllowThreads(__tstate);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 }
6986 resultobj = PyInt_FromLong((long)result);
6987 return resultobj;
6988 fail:
6989 return NULL;
6990 }
6991
6992
6993 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6994 PyObject *resultobj;
6995 wxFont *arg1 = (wxFont *) 0 ;
6996 int result;
6997 PyObject * obj0 = 0 ;
6998 char *kwnames[] = {
6999 (char *) "self", NULL
7000 };
7001
7002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7004 {
7005 PyThreadState* __tstate = wxPyBeginAllowThreads();
7006 result = (int)((wxFont const *)arg1)->GetStyle();
7007
7008 wxPyEndAllowThreads(__tstate);
7009 if (PyErr_Occurred()) SWIG_fail;
7010 }
7011 resultobj = PyInt_FromLong((long)result);
7012 return resultobj;
7013 fail:
7014 return NULL;
7015 }
7016
7017
7018 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7019 PyObject *resultobj;
7020 wxFont *arg1 = (wxFont *) 0 ;
7021 int result;
7022 PyObject * obj0 = 0 ;
7023 char *kwnames[] = {
7024 (char *) "self", NULL
7025 };
7026
7027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7028 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7029 {
7030 PyThreadState* __tstate = wxPyBeginAllowThreads();
7031 result = (int)((wxFont const *)arg1)->GetWeight();
7032
7033 wxPyEndAllowThreads(__tstate);
7034 if (PyErr_Occurred()) SWIG_fail;
7035 }
7036 resultobj = PyInt_FromLong((long)result);
7037 return resultobj;
7038 fail:
7039 return NULL;
7040 }
7041
7042
7043 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7044 PyObject *resultobj;
7045 wxFont *arg1 = (wxFont *) 0 ;
7046 bool result;
7047 PyObject * obj0 = 0 ;
7048 char *kwnames[] = {
7049 (char *) "self", NULL
7050 };
7051
7052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7054 {
7055 PyThreadState* __tstate = wxPyBeginAllowThreads();
7056 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7057
7058 wxPyEndAllowThreads(__tstate);
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 resultobj = PyInt_FromLong((long)result);
7062 return resultobj;
7063 fail:
7064 return NULL;
7065 }
7066
7067
7068 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7069 PyObject *resultobj;
7070 wxFont *arg1 = (wxFont *) 0 ;
7071 wxString result;
7072 PyObject * obj0 = 0 ;
7073 char *kwnames[] = {
7074 (char *) "self", NULL
7075 };
7076
7077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7079 {
7080 PyThreadState* __tstate = wxPyBeginAllowThreads();
7081 result = ((wxFont const *)arg1)->GetFaceName();
7082
7083 wxPyEndAllowThreads(__tstate);
7084 if (PyErr_Occurred()) SWIG_fail;
7085 }
7086 {
7087 #if wxUSE_UNICODE
7088 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7089 #else
7090 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7091 #endif
7092 }
7093 return resultobj;
7094 fail:
7095 return NULL;
7096 }
7097
7098
7099 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7100 PyObject *resultobj;
7101 wxFont *arg1 = (wxFont *) 0 ;
7102 int result;
7103 PyObject * obj0 = 0 ;
7104 char *kwnames[] = {
7105 (char *) "self", NULL
7106 };
7107
7108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7110 {
7111 PyThreadState* __tstate = wxPyBeginAllowThreads();
7112 result = (int)((wxFont const *)arg1)->GetEncoding();
7113
7114 wxPyEndAllowThreads(__tstate);
7115 if (PyErr_Occurred()) SWIG_fail;
7116 }
7117 resultobj = PyInt_FromLong((long)result);
7118 return resultobj;
7119 fail:
7120 return NULL;
7121 }
7122
7123
7124 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7125 PyObject *resultobj;
7126 wxFont *arg1 = (wxFont *) 0 ;
7127 wxNativeFontInfo *result;
7128 PyObject * obj0 = 0 ;
7129 char *kwnames[] = {
7130 (char *) "self", NULL
7131 };
7132
7133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7135 {
7136 PyThreadState* __tstate = wxPyBeginAllowThreads();
7137 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7138
7139 wxPyEndAllowThreads(__tstate);
7140 if (PyErr_Occurred()) SWIG_fail;
7141 }
7142 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
7143 return resultobj;
7144 fail:
7145 return NULL;
7146 }
7147
7148
7149 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7150 PyObject *resultobj;
7151 wxFont *arg1 = (wxFont *) 0 ;
7152 bool result;
7153 PyObject * obj0 = 0 ;
7154 char *kwnames[] = {
7155 (char *) "self", NULL
7156 };
7157
7158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7160 {
7161 PyThreadState* __tstate = wxPyBeginAllowThreads();
7162 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7163
7164 wxPyEndAllowThreads(__tstate);
7165 if (PyErr_Occurred()) SWIG_fail;
7166 }
7167 resultobj = PyInt_FromLong((long)result);
7168 return resultobj;
7169 fail:
7170 return NULL;
7171 }
7172
7173
7174 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7175 PyObject *resultobj;
7176 wxFont *arg1 = (wxFont *) 0 ;
7177 wxString result;
7178 PyObject * obj0 = 0 ;
7179 char *kwnames[] = {
7180 (char *) "self", NULL
7181 };
7182
7183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
7184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7185 {
7186 PyThreadState* __tstate = wxPyBeginAllowThreads();
7187 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7188
7189 wxPyEndAllowThreads(__tstate);
7190 if (PyErr_Occurred()) SWIG_fail;
7191 }
7192 {
7193 #if wxUSE_UNICODE
7194 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7195 #else
7196 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7197 #endif
7198 }
7199 return resultobj;
7200 fail:
7201 return NULL;
7202 }
7203
7204
7205 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7206 PyObject *resultobj;
7207 wxFont *arg1 = (wxFont *) 0 ;
7208 wxString result;
7209 PyObject * obj0 = 0 ;
7210 char *kwnames[] = {
7211 (char *) "self", NULL
7212 };
7213
7214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7216 {
7217 PyThreadState* __tstate = wxPyBeginAllowThreads();
7218 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7219
7220 wxPyEndAllowThreads(__tstate);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 {
7224 #if wxUSE_UNICODE
7225 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7226 #else
7227 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7228 #endif
7229 }
7230 return resultobj;
7231 fail:
7232 return NULL;
7233 }
7234
7235
7236 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7237 PyObject *resultobj;
7238 wxFont *arg1 = (wxFont *) 0 ;
7239 int arg2 ;
7240 PyObject * obj0 = 0 ;
7241 char *kwnames[] = {
7242 (char *) "self",(char *) "pointSize", NULL
7243 };
7244
7245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
7246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7247 {
7248 PyThreadState* __tstate = wxPyBeginAllowThreads();
7249 (arg1)->SetPointSize(arg2);
7250
7251 wxPyEndAllowThreads(__tstate);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 Py_INCREF(Py_None); resultobj = Py_None;
7255 return resultobj;
7256 fail:
7257 return NULL;
7258 }
7259
7260
7261 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7262 PyObject *resultobj;
7263 wxFont *arg1 = (wxFont *) 0 ;
7264 int arg2 ;
7265 PyObject * obj0 = 0 ;
7266 char *kwnames[] = {
7267 (char *) "self",(char *) "family", NULL
7268 };
7269
7270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
7271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 (arg1)->SetFamily(arg2);
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 }
7279 Py_INCREF(Py_None); resultobj = Py_None;
7280 return resultobj;
7281 fail:
7282 return NULL;
7283 }
7284
7285
7286 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7287 PyObject *resultobj;
7288 wxFont *arg1 = (wxFont *) 0 ;
7289 int arg2 ;
7290 PyObject * obj0 = 0 ;
7291 char *kwnames[] = {
7292 (char *) "self",(char *) "style", NULL
7293 };
7294
7295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail;
7296 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7297 {
7298 PyThreadState* __tstate = wxPyBeginAllowThreads();
7299 (arg1)->SetStyle(arg2);
7300
7301 wxPyEndAllowThreads(__tstate);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 }
7304 Py_INCREF(Py_None); resultobj = Py_None;
7305 return resultobj;
7306 fail:
7307 return NULL;
7308 }
7309
7310
7311 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7312 PyObject *resultobj;
7313 wxFont *arg1 = (wxFont *) 0 ;
7314 int arg2 ;
7315 PyObject * obj0 = 0 ;
7316 char *kwnames[] = {
7317 (char *) "self",(char *) "weight", NULL
7318 };
7319
7320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail;
7321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7322 {
7323 PyThreadState* __tstate = wxPyBeginAllowThreads();
7324 (arg1)->SetWeight(arg2);
7325
7326 wxPyEndAllowThreads(__tstate);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 Py_INCREF(Py_None); resultobj = Py_None;
7330 return resultobj;
7331 fail:
7332 return NULL;
7333 }
7334
7335
7336 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7337 PyObject *resultobj;
7338 wxFont *arg1 = (wxFont *) 0 ;
7339 wxString *arg2 = 0 ;
7340 bool temp2 = False ;
7341 PyObject * obj0 = 0 ;
7342 PyObject * obj1 = 0 ;
7343 char *kwnames[] = {
7344 (char *) "self",(char *) "faceName", NULL
7345 };
7346
7347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7349 {
7350 arg2 = wxString_in_helper(obj1);
7351 if (arg2 == NULL) SWIG_fail;
7352 temp2 = True;
7353 }
7354 {
7355 PyThreadState* __tstate = wxPyBeginAllowThreads();
7356 (arg1)->SetFaceName((wxString const &)*arg2);
7357
7358 wxPyEndAllowThreads(__tstate);
7359 if (PyErr_Occurred()) SWIG_fail;
7360 }
7361 Py_INCREF(Py_None); resultobj = Py_None;
7362 {
7363 if (temp2)
7364 delete arg2;
7365 }
7366 return resultobj;
7367 fail:
7368 {
7369 if (temp2)
7370 delete arg2;
7371 }
7372 return NULL;
7373 }
7374
7375
7376 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7377 PyObject *resultobj;
7378 wxFont *arg1 = (wxFont *) 0 ;
7379 bool arg2 ;
7380 PyObject * obj0 = 0 ;
7381 PyObject * obj1 = 0 ;
7382 char *kwnames[] = {
7383 (char *) "self",(char *) "underlined", NULL
7384 };
7385
7386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7388 {
7389 arg2 = (bool) SPyObj_AsBool(obj1);
7390 if (PyErr_Occurred()) SWIG_fail;
7391 }
7392 {
7393 PyThreadState* __tstate = wxPyBeginAllowThreads();
7394 (arg1)->SetUnderlined(arg2);
7395
7396 wxPyEndAllowThreads(__tstate);
7397 if (PyErr_Occurred()) SWIG_fail;
7398 }
7399 Py_INCREF(Py_None); resultobj = Py_None;
7400 return resultobj;
7401 fail:
7402 return NULL;
7403 }
7404
7405
7406 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7407 PyObject *resultobj;
7408 wxFont *arg1 = (wxFont *) 0 ;
7409 int arg2 ;
7410 PyObject * obj0 = 0 ;
7411 char *kwnames[] = {
7412 (char *) "self",(char *) "encoding", NULL
7413 };
7414
7415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7416 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7417 {
7418 PyThreadState* __tstate = wxPyBeginAllowThreads();
7419 (arg1)->SetEncoding((wxFontEncoding )arg2);
7420
7421 wxPyEndAllowThreads(__tstate);
7422 if (PyErr_Occurred()) SWIG_fail;
7423 }
7424 Py_INCREF(Py_None); resultobj = Py_None;
7425 return resultobj;
7426 fail:
7427 return NULL;
7428 }
7429
7430
7431 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7432 PyObject *resultobj;
7433 wxFont *arg1 = (wxFont *) 0 ;
7434 wxNativeFontInfo *arg2 = 0 ;
7435 PyObject * obj0 = 0 ;
7436 PyObject * obj1 = 0 ;
7437 char *kwnames[] = {
7438 (char *) "self",(char *) "info", NULL
7439 };
7440
7441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7443 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7444 if (arg2 == NULL) {
7445 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7446 }
7447 {
7448 PyThreadState* __tstate = wxPyBeginAllowThreads();
7449 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7450
7451 wxPyEndAllowThreads(__tstate);
7452 if (PyErr_Occurred()) SWIG_fail;
7453 }
7454 Py_INCREF(Py_None); resultobj = Py_None;
7455 return resultobj;
7456 fail:
7457 return NULL;
7458 }
7459
7460
7461 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7462 PyObject *resultobj;
7463 wxFont *arg1 = (wxFont *) 0 ;
7464 wxString *arg2 = 0 ;
7465 bool temp2 = False ;
7466 PyObject * obj0 = 0 ;
7467 PyObject * obj1 = 0 ;
7468 char *kwnames[] = {
7469 (char *) "self",(char *) "info", NULL
7470 };
7471
7472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7474 {
7475 arg2 = wxString_in_helper(obj1);
7476 if (arg2 == NULL) SWIG_fail;
7477 temp2 = True;
7478 }
7479 {
7480 PyThreadState* __tstate = wxPyBeginAllowThreads();
7481 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7482
7483 wxPyEndAllowThreads(__tstate);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 Py_INCREF(Py_None); resultobj = Py_None;
7487 {
7488 if (temp2)
7489 delete arg2;
7490 }
7491 return resultobj;
7492 fail:
7493 {
7494 if (temp2)
7495 delete arg2;
7496 }
7497 return NULL;
7498 }
7499
7500
7501 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7502 PyObject *resultobj;
7503 wxFont *arg1 = (wxFont *) 0 ;
7504 wxString *arg2 = 0 ;
7505 bool temp2 = False ;
7506 PyObject * obj0 = 0 ;
7507 PyObject * obj1 = 0 ;
7508 char *kwnames[] = {
7509 (char *) "self",(char *) "info", NULL
7510 };
7511
7512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7514 {
7515 arg2 = wxString_in_helper(obj1);
7516 if (arg2 == NULL) SWIG_fail;
7517 temp2 = True;
7518 }
7519 {
7520 PyThreadState* __tstate = wxPyBeginAllowThreads();
7521 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7522
7523 wxPyEndAllowThreads(__tstate);
7524 if (PyErr_Occurred()) SWIG_fail;
7525 }
7526 Py_INCREF(Py_None); resultobj = Py_None;
7527 {
7528 if (temp2)
7529 delete arg2;
7530 }
7531 return resultobj;
7532 fail:
7533 {
7534 if (temp2)
7535 delete arg2;
7536 }
7537 return NULL;
7538 }
7539
7540
7541 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7542 PyObject *resultobj;
7543 wxFont *arg1 = (wxFont *) 0 ;
7544 wxString result;
7545 PyObject * obj0 = 0 ;
7546 char *kwnames[] = {
7547 (char *) "self", NULL
7548 };
7549
7550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7552 {
7553 PyThreadState* __tstate = wxPyBeginAllowThreads();
7554 result = ((wxFont const *)arg1)->GetFamilyString();
7555
7556 wxPyEndAllowThreads(__tstate);
7557 if (PyErr_Occurred()) SWIG_fail;
7558 }
7559 {
7560 #if wxUSE_UNICODE
7561 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7562 #else
7563 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7564 #endif
7565 }
7566 return resultobj;
7567 fail:
7568 return NULL;
7569 }
7570
7571
7572 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7573 PyObject *resultobj;
7574 wxFont *arg1 = (wxFont *) 0 ;
7575 wxString result;
7576 PyObject * obj0 = 0 ;
7577 char *kwnames[] = {
7578 (char *) "self", NULL
7579 };
7580
7581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7583 {
7584 PyThreadState* __tstate = wxPyBeginAllowThreads();
7585 result = ((wxFont const *)arg1)->GetStyleString();
7586
7587 wxPyEndAllowThreads(__tstate);
7588 if (PyErr_Occurred()) SWIG_fail;
7589 }
7590 {
7591 #if wxUSE_UNICODE
7592 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7593 #else
7594 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7595 #endif
7596 }
7597 return resultobj;
7598 fail:
7599 return NULL;
7600 }
7601
7602
7603 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7604 PyObject *resultobj;
7605 wxFont *arg1 = (wxFont *) 0 ;
7606 wxString result;
7607 PyObject * obj0 = 0 ;
7608 char *kwnames[] = {
7609 (char *) "self", NULL
7610 };
7611
7612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7614 {
7615 PyThreadState* __tstate = wxPyBeginAllowThreads();
7616 result = ((wxFont const *)arg1)->GetWeightString();
7617
7618 wxPyEndAllowThreads(__tstate);
7619 if (PyErr_Occurred()) SWIG_fail;
7620 }
7621 {
7622 #if wxUSE_UNICODE
7623 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7624 #else
7625 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7626 #endif
7627 }
7628 return resultobj;
7629 fail:
7630 return NULL;
7631 }
7632
7633
7634 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7635 PyObject *resultobj;
7636 wxFont *arg1 = (wxFont *) 0 ;
7637 bool arg2 = (bool) True ;
7638 PyObject * obj0 = 0 ;
7639 PyObject * obj1 = 0 ;
7640 char *kwnames[] = {
7641 (char *) "self",(char *) "no", NULL
7642 };
7643
7644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7645 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7646 if (obj1) {
7647 {
7648 arg2 = (bool) SPyObj_AsBool(obj1);
7649 if (PyErr_Occurred()) SWIG_fail;
7650 }
7651 }
7652 {
7653 PyThreadState* __tstate = wxPyBeginAllowThreads();
7654 (arg1)->SetNoAntiAliasing(arg2);
7655
7656 wxPyEndAllowThreads(__tstate);
7657 if (PyErr_Occurred()) SWIG_fail;
7658 }
7659 Py_INCREF(Py_None); resultobj = Py_None;
7660 return resultobj;
7661 fail:
7662 return NULL;
7663 }
7664
7665
7666 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7667 PyObject *resultobj;
7668 wxFont *arg1 = (wxFont *) 0 ;
7669 bool result;
7670 PyObject * obj0 = 0 ;
7671 char *kwnames[] = {
7672 (char *) "self", NULL
7673 };
7674
7675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7677 {
7678 PyThreadState* __tstate = wxPyBeginAllowThreads();
7679 result = (bool)(arg1)->GetNoAntiAliasing();
7680
7681 wxPyEndAllowThreads(__tstate);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 }
7684 resultobj = PyInt_FromLong((long)result);
7685 return resultobj;
7686 fail:
7687 return NULL;
7688 }
7689
7690
7691 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7692 PyObject *resultobj;
7693 int result;
7694 char *kwnames[] = {
7695 NULL
7696 };
7697
7698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7699 {
7700 PyThreadState* __tstate = wxPyBeginAllowThreads();
7701 result = (int)wxFont::GetDefaultEncoding();
7702
7703 wxPyEndAllowThreads(__tstate);
7704 if (PyErr_Occurred()) SWIG_fail;
7705 }
7706 resultobj = PyInt_FromLong((long)result);
7707 return resultobj;
7708 fail:
7709 return NULL;
7710 }
7711
7712
7713 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7714 PyObject *resultobj;
7715 int arg1 ;
7716 char *kwnames[] = {
7717 (char *) "encoding", NULL
7718 };
7719
7720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
7721 {
7722 PyThreadState* __tstate = wxPyBeginAllowThreads();
7723 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
7724
7725 wxPyEndAllowThreads(__tstate);
7726 if (PyErr_Occurred()) SWIG_fail;
7727 }
7728 Py_INCREF(Py_None); resultobj = Py_None;
7729 return resultobj;
7730 fail:
7731 return NULL;
7732 }
7733
7734
7735 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
7736 PyObject *obj;
7737 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7738 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
7739 Py_INCREF(obj);
7740 return Py_BuildValue((char *)"");
7741 }
7742 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7743 PyObject *resultobj;
7744 wxPyFontEnumerator *result;
7745 char *kwnames[] = {
7746 NULL
7747 };
7748
7749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
7750 {
7751 PyThreadState* __tstate = wxPyBeginAllowThreads();
7752 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
7753
7754 wxPyEndAllowThreads(__tstate);
7755 if (PyErr_Occurred()) SWIG_fail;
7756 }
7757 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
7758 return resultobj;
7759 fail:
7760 return NULL;
7761 }
7762
7763
7764 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7765 PyObject *resultobj;
7766 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7767 PyObject * obj0 = 0 ;
7768 char *kwnames[] = {
7769 (char *) "self", NULL
7770 };
7771
7772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
7773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7774 {
7775 PyThreadState* __tstate = wxPyBeginAllowThreads();
7776 delete arg1;
7777
7778 wxPyEndAllowThreads(__tstate);
7779 if (PyErr_Occurred()) SWIG_fail;
7780 }
7781 Py_INCREF(Py_None); resultobj = Py_None;
7782 return resultobj;
7783 fail:
7784 return NULL;
7785 }
7786
7787
7788 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7789 PyObject *resultobj;
7790 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7791 PyObject *arg2 = (PyObject *) 0 ;
7792 PyObject *arg3 = (PyObject *) 0 ;
7793 bool arg4 ;
7794 PyObject * obj0 = 0 ;
7795 PyObject * obj1 = 0 ;
7796 PyObject * obj2 = 0 ;
7797 PyObject * obj3 = 0 ;
7798 char *kwnames[] = {
7799 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
7800 };
7801
7802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7804 arg2 = obj1;
7805 arg3 = obj2;
7806 {
7807 arg4 = (bool) SPyObj_AsBool(obj3);
7808 if (PyErr_Occurred()) SWIG_fail;
7809 }
7810 {
7811 PyThreadState* __tstate = wxPyBeginAllowThreads();
7812 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
7813
7814 wxPyEndAllowThreads(__tstate);
7815 if (PyErr_Occurred()) SWIG_fail;
7816 }
7817 Py_INCREF(Py_None); resultobj = Py_None;
7818 return resultobj;
7819 fail:
7820 return NULL;
7821 }
7822
7823
7824 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7825 PyObject *resultobj;
7826 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7827 int arg2 = (int) wxFONTENCODING_SYSTEM ;
7828 bool arg3 = (bool) False ;
7829 bool result;
7830 PyObject * obj0 = 0 ;
7831 PyObject * obj2 = 0 ;
7832 char *kwnames[] = {
7833 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
7834 };
7835
7836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
7837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7838 if (obj2) {
7839 {
7840 arg3 = (bool) SPyObj_AsBool(obj2);
7841 if (PyErr_Occurred()) SWIG_fail;
7842 }
7843 }
7844 {
7845 PyThreadState* __tstate = wxPyBeginAllowThreads();
7846 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
7847
7848 wxPyEndAllowThreads(__tstate);
7849 if (PyErr_Occurred()) SWIG_fail;
7850 }
7851 resultobj = PyInt_FromLong((long)result);
7852 return resultobj;
7853 fail:
7854 return NULL;
7855 }
7856
7857
7858 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7859 PyObject *resultobj;
7860 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7861 wxString const &arg2_defvalue = wxPyEmptyString ;
7862 wxString *arg2 = (wxString *) &arg2_defvalue ;
7863 bool result;
7864 bool temp2 = False ;
7865 PyObject * obj0 = 0 ;
7866 PyObject * obj1 = 0 ;
7867 char *kwnames[] = {
7868 (char *) "self",(char *) "facename", NULL
7869 };
7870
7871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
7872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7873 if (obj1) {
7874 {
7875 arg2 = wxString_in_helper(obj1);
7876 if (arg2 == NULL) SWIG_fail;
7877 temp2 = True;
7878 }
7879 }
7880 {
7881 PyThreadState* __tstate = wxPyBeginAllowThreads();
7882 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
7883
7884 wxPyEndAllowThreads(__tstate);
7885 if (PyErr_Occurred()) SWIG_fail;
7886 }
7887 resultobj = PyInt_FromLong((long)result);
7888 {
7889 if (temp2)
7890 delete arg2;
7891 }
7892 return resultobj;
7893 fail:
7894 {
7895 if (temp2)
7896 delete arg2;
7897 }
7898 return NULL;
7899 }
7900
7901
7902 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7903 PyObject *resultobj;
7904 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7905 PyObject *result;
7906 PyObject * obj0 = 0 ;
7907 char *kwnames[] = {
7908 (char *) "self", NULL
7909 };
7910
7911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
7912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7913 {
7914 PyThreadState* __tstate = wxPyBeginAllowThreads();
7915 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
7916
7917 wxPyEndAllowThreads(__tstate);
7918 if (PyErr_Occurred()) SWIG_fail;
7919 }
7920 resultobj = result;
7921 return resultobj;
7922 fail:
7923 return NULL;
7924 }
7925
7926
7927 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7928 PyObject *resultobj;
7929 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7930 PyObject *result;
7931 PyObject * obj0 = 0 ;
7932 char *kwnames[] = {
7933 (char *) "self", NULL
7934 };
7935
7936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
7937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
7941
7942 wxPyEndAllowThreads(__tstate);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = result;
7946 return resultobj;
7947 fail:
7948 return NULL;
7949 }
7950
7951
7952 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
7953 PyObject *obj;
7954 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7955 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
7956 Py_INCREF(obj);
7957 return Py_BuildValue((char *)"");
7958 }
7959 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7960 PyObject *resultobj;
7961 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7962 int arg2 ;
7963 PyObject * obj0 = 0 ;
7964 char *kwnames[] = {
7965 (char *) "self",(char *) "Language", NULL
7966 };
7967
7968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
7969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7970 if (arg1) (arg1)->Language = arg2;
7971
7972 Py_INCREF(Py_None); resultobj = Py_None;
7973 return resultobj;
7974 fail:
7975 return NULL;
7976 }
7977
7978
7979 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7980 PyObject *resultobj;
7981 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7982 int result;
7983 PyObject * obj0 = 0 ;
7984 char *kwnames[] = {
7985 (char *) "self", NULL
7986 };
7987
7988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
7989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7990 result = (int) ((arg1)->Language);
7991
7992 resultobj = PyInt_FromLong((long)result);
7993 return resultobj;
7994 fail:
7995 return NULL;
7996 }
7997
7998
7999 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8000 PyObject *resultobj;
8001 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8002 wxString *arg2 = (wxString *) 0 ;
8003 bool temp2 = False ;
8004 PyObject * obj0 = 0 ;
8005 PyObject * obj1 = 0 ;
8006 char *kwnames[] = {
8007 (char *) "self",(char *) "CanonicalName", NULL
8008 };
8009
8010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8012 {
8013 arg2 = wxString_in_helper(obj1);
8014 if (arg2 == NULL) SWIG_fail;
8015 temp2 = True;
8016 }
8017 if (arg1) (arg1)->CanonicalName = *arg2;
8018
8019 Py_INCREF(Py_None); resultobj = Py_None;
8020 {
8021 if (temp2)
8022 delete arg2;
8023 }
8024 return resultobj;
8025 fail:
8026 {
8027 if (temp2)
8028 delete arg2;
8029 }
8030 return NULL;
8031 }
8032
8033
8034 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8035 PyObject *resultobj;
8036 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8037 wxString *result;
8038 PyObject * obj0 = 0 ;
8039 char *kwnames[] = {
8040 (char *) "self", NULL
8041 };
8042
8043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8045 result = (wxString *)& ((arg1)->CanonicalName);
8046
8047 {
8048 #if wxUSE_UNICODE
8049 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8050 #else
8051 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8052 #endif
8053 }
8054 return resultobj;
8055 fail:
8056 return NULL;
8057 }
8058
8059
8060 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8061 PyObject *resultobj;
8062 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8063 wxString *arg2 = (wxString *) 0 ;
8064 bool temp2 = False ;
8065 PyObject * obj0 = 0 ;
8066 PyObject * obj1 = 0 ;
8067 char *kwnames[] = {
8068 (char *) "self",(char *) "Description", NULL
8069 };
8070
8071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8073 {
8074 arg2 = wxString_in_helper(obj1);
8075 if (arg2 == NULL) SWIG_fail;
8076 temp2 = True;
8077 }
8078 if (arg1) (arg1)->Description = *arg2;
8079
8080 Py_INCREF(Py_None); resultobj = Py_None;
8081 {
8082 if (temp2)
8083 delete arg2;
8084 }
8085 return resultobj;
8086 fail:
8087 {
8088 if (temp2)
8089 delete arg2;
8090 }
8091 return NULL;
8092 }
8093
8094
8095 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8096 PyObject *resultobj;
8097 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8098 wxString *result;
8099 PyObject * obj0 = 0 ;
8100 char *kwnames[] = {
8101 (char *) "self", NULL
8102 };
8103
8104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8106 result = (wxString *)& ((arg1)->Description);
8107
8108 {
8109 #if wxUSE_UNICODE
8110 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8111 #else
8112 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8113 #endif
8114 }
8115 return resultobj;
8116 fail:
8117 return NULL;
8118 }
8119
8120
8121 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8122 PyObject *obj;
8123 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8124 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8125 Py_INCREF(obj);
8126 return Py_BuildValue((char *)"");
8127 }
8128 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8129 PyObject *resultobj;
8130 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8131 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8132 wxLocale *result;
8133 char *kwnames[] = {
8134 (char *) "language",(char *) "flags", NULL
8135 };
8136
8137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
8138 {
8139 PyThreadState* __tstate = wxPyBeginAllowThreads();
8140 result = (wxLocale *)new wxLocale(arg1,arg2);
8141
8142 wxPyEndAllowThreads(__tstate);
8143 if (PyErr_Occurred()) SWIG_fail;
8144 }
8145 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
8146 return resultobj;
8147 fail:
8148 return NULL;
8149 }
8150
8151
8152 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8153 PyObject *resultobj;
8154 wxLocale *arg1 = (wxLocale *) 0 ;
8155 PyObject * obj0 = 0 ;
8156 char *kwnames[] = {
8157 (char *) "self", NULL
8158 };
8159
8160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
8161 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8162 {
8163 PyThreadState* __tstate = wxPyBeginAllowThreads();
8164 delete arg1;
8165
8166 wxPyEndAllowThreads(__tstate);
8167 if (PyErr_Occurred()) SWIG_fail;
8168 }
8169 Py_INCREF(Py_None); resultobj = Py_None;
8170 return resultobj;
8171 fail:
8172 return NULL;
8173 }
8174
8175
8176 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
8177 PyObject *resultobj;
8178 wxLocale *arg1 = (wxLocale *) 0 ;
8179 wxString *arg2 = 0 ;
8180 wxString const &arg3_defvalue = wxPyEmptyString ;
8181 wxString *arg3 = (wxString *) &arg3_defvalue ;
8182 wxString const &arg4_defvalue = wxPyEmptyString ;
8183 wxString *arg4 = (wxString *) &arg4_defvalue ;
8184 bool arg5 = (bool) True ;
8185 bool arg6 = (bool) False ;
8186 bool result;
8187 bool temp2 = False ;
8188 bool temp3 = False ;
8189 bool temp4 = False ;
8190 PyObject * obj0 = 0 ;
8191 PyObject * obj1 = 0 ;
8192 PyObject * obj2 = 0 ;
8193 PyObject * obj3 = 0 ;
8194 PyObject * obj4 = 0 ;
8195 PyObject * obj5 = 0 ;
8196 char *kwnames[] = {
8197 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
8198 };
8199
8200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8202 {
8203 arg2 = wxString_in_helper(obj1);
8204 if (arg2 == NULL) SWIG_fail;
8205 temp2 = True;
8206 }
8207 if (obj2) {
8208 {
8209 arg3 = wxString_in_helper(obj2);
8210 if (arg3 == NULL) SWIG_fail;
8211 temp3 = True;
8212 }
8213 }
8214 if (obj3) {
8215 {
8216 arg4 = wxString_in_helper(obj3);
8217 if (arg4 == NULL) SWIG_fail;
8218 temp4 = True;
8219 }
8220 }
8221 if (obj4) {
8222 {
8223 arg5 = (bool) SPyObj_AsBool(obj4);
8224 if (PyErr_Occurred()) SWIG_fail;
8225 }
8226 }
8227 if (obj5) {
8228 {
8229 arg6 = (bool) SPyObj_AsBool(obj5);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 }
8233 {
8234 PyThreadState* __tstate = wxPyBeginAllowThreads();
8235 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
8236
8237 wxPyEndAllowThreads(__tstate);
8238 if (PyErr_Occurred()) SWIG_fail;
8239 }
8240 resultobj = PyInt_FromLong((long)result);
8241 {
8242 if (temp2)
8243 delete arg2;
8244 }
8245 {
8246 if (temp3)
8247 delete arg3;
8248 }
8249 {
8250 if (temp4)
8251 delete arg4;
8252 }
8253 return resultobj;
8254 fail:
8255 {
8256 if (temp2)
8257 delete arg2;
8258 }
8259 {
8260 if (temp3)
8261 delete arg3;
8262 }
8263 {
8264 if (temp4)
8265 delete arg4;
8266 }
8267 return NULL;
8268 }
8269
8270
8271 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8272 PyObject *resultobj;
8273 wxLocale *arg1 = (wxLocale *) 0 ;
8274 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8275 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8276 bool result;
8277 PyObject * obj0 = 0 ;
8278 char *kwnames[] = {
8279 (char *) "self",(char *) "language",(char *) "flags", NULL
8280 };
8281
8282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
8283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8284 {
8285 PyThreadState* __tstate = wxPyBeginAllowThreads();
8286 result = (bool)(arg1)->Init(arg2,arg3);
8287
8288 wxPyEndAllowThreads(__tstate);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 resultobj = PyInt_FromLong((long)result);
8292 return resultobj;
8293 fail:
8294 return NULL;
8295 }
8296
8297
8298 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8299 PyObject *resultobj;
8300 int result;
8301 char *kwnames[] = {
8302 NULL
8303 };
8304
8305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8306 {
8307 PyThreadState* __tstate = wxPyBeginAllowThreads();
8308 result = (int)wxLocale::GetSystemLanguage();
8309
8310 wxPyEndAllowThreads(__tstate);
8311 if (PyErr_Occurred()) SWIG_fail;
8312 }
8313 resultobj = PyInt_FromLong((long)result);
8314 return resultobj;
8315 fail:
8316 return NULL;
8317 }
8318
8319
8320 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8321 PyObject *resultobj;
8322 int result;
8323 char *kwnames[] = {
8324 NULL
8325 };
8326
8327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8328 {
8329 PyThreadState* __tstate = wxPyBeginAllowThreads();
8330 result = (int)wxLocale::GetSystemEncoding();
8331
8332 wxPyEndAllowThreads(__tstate);
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 resultobj = PyInt_FromLong((long)result);
8336 return resultobj;
8337 fail:
8338 return NULL;
8339 }
8340
8341
8342 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8343 PyObject *resultobj;
8344 wxString result;
8345 char *kwnames[] = {
8346 NULL
8347 };
8348
8349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8350 {
8351 PyThreadState* __tstate = wxPyBeginAllowThreads();
8352 result = wxLocale::GetSystemEncodingName();
8353
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 {
8358 #if wxUSE_UNICODE
8359 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8360 #else
8361 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8362 #endif
8363 }
8364 return resultobj;
8365 fail:
8366 return NULL;
8367 }
8368
8369
8370 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8371 PyObject *resultobj;
8372 wxLocale *arg1 = (wxLocale *) 0 ;
8373 bool result;
8374 PyObject * obj0 = 0 ;
8375 char *kwnames[] = {
8376 (char *) "self", NULL
8377 };
8378
8379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8381 {
8382 PyThreadState* __tstate = wxPyBeginAllowThreads();
8383 result = (bool)((wxLocale const *)arg1)->IsOk();
8384
8385 wxPyEndAllowThreads(__tstate);
8386 if (PyErr_Occurred()) SWIG_fail;
8387 }
8388 resultobj = PyInt_FromLong((long)result);
8389 return resultobj;
8390 fail:
8391 return NULL;
8392 }
8393
8394
8395 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8396 PyObject *resultobj;
8397 wxLocale *arg1 = (wxLocale *) 0 ;
8398 wxString result;
8399 PyObject * obj0 = 0 ;
8400 char *kwnames[] = {
8401 (char *) "self", NULL
8402 };
8403
8404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8406 {
8407 PyThreadState* __tstate = wxPyBeginAllowThreads();
8408 result = ((wxLocale const *)arg1)->GetLocale();
8409
8410 wxPyEndAllowThreads(__tstate);
8411 if (PyErr_Occurred()) SWIG_fail;
8412 }
8413 {
8414 #if wxUSE_UNICODE
8415 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8416 #else
8417 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8418 #endif
8419 }
8420 return resultobj;
8421 fail:
8422 return NULL;
8423 }
8424
8425
8426 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8427 PyObject *resultobj;
8428 wxLocale *arg1 = (wxLocale *) 0 ;
8429 int result;
8430 PyObject * obj0 = 0 ;
8431 char *kwnames[] = {
8432 (char *) "self", NULL
8433 };
8434
8435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8437 {
8438 PyThreadState* __tstate = wxPyBeginAllowThreads();
8439 result = (int)((wxLocale const *)arg1)->GetLanguage();
8440
8441 wxPyEndAllowThreads(__tstate);
8442 if (PyErr_Occurred()) SWIG_fail;
8443 }
8444 resultobj = PyInt_FromLong((long)result);
8445 return resultobj;
8446 fail:
8447 return NULL;
8448 }
8449
8450
8451 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj;
8453 wxLocale *arg1 = (wxLocale *) 0 ;
8454 wxString result;
8455 PyObject * obj0 = 0 ;
8456 char *kwnames[] = {
8457 (char *) "self", NULL
8458 };
8459
8460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8462 {
8463 PyThreadState* __tstate = wxPyBeginAllowThreads();
8464 result = ((wxLocale const *)arg1)->GetSysName();
8465
8466 wxPyEndAllowThreads(__tstate);
8467 if (PyErr_Occurred()) SWIG_fail;
8468 }
8469 {
8470 #if wxUSE_UNICODE
8471 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8472 #else
8473 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8474 #endif
8475 }
8476 return resultobj;
8477 fail:
8478 return NULL;
8479 }
8480
8481
8482 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8483 PyObject *resultobj;
8484 wxLocale *arg1 = (wxLocale *) 0 ;
8485 wxString result;
8486 PyObject * obj0 = 0 ;
8487 char *kwnames[] = {
8488 (char *) "self", NULL
8489 };
8490
8491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8493 {
8494 PyThreadState* __tstate = wxPyBeginAllowThreads();
8495 result = ((wxLocale const *)arg1)->GetCanonicalName();
8496
8497 wxPyEndAllowThreads(__tstate);
8498 if (PyErr_Occurred()) SWIG_fail;
8499 }
8500 {
8501 #if wxUSE_UNICODE
8502 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8503 #else
8504 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8505 #endif
8506 }
8507 return resultobj;
8508 fail:
8509 return NULL;
8510 }
8511
8512
8513 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8514 PyObject *resultobj;
8515 wxString *arg1 = 0 ;
8516 bool temp1 = False ;
8517 PyObject * obj0 = 0 ;
8518 char *kwnames[] = {
8519 (char *) "prefix", NULL
8520 };
8521
8522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8523 {
8524 arg1 = wxString_in_helper(obj0);
8525 if (arg1 == NULL) SWIG_fail;
8526 temp1 = True;
8527 }
8528 {
8529 PyThreadState* __tstate = wxPyBeginAllowThreads();
8530 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8531
8532 wxPyEndAllowThreads(__tstate);
8533 if (PyErr_Occurred()) SWIG_fail;
8534 }
8535 Py_INCREF(Py_None); resultobj = Py_None;
8536 {
8537 if (temp1)
8538 delete arg1;
8539 }
8540 return resultobj;
8541 fail:
8542 {
8543 if (temp1)
8544 delete arg1;
8545 }
8546 return NULL;
8547 }
8548
8549
8550 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8551 PyObject *resultobj;
8552 wxLocale *arg1 = (wxLocale *) 0 ;
8553 wxString *arg2 = 0 ;
8554 bool result;
8555 bool temp2 = False ;
8556 PyObject * obj0 = 0 ;
8557 PyObject * obj1 = 0 ;
8558 char *kwnames[] = {
8559 (char *) "self",(char *) "szDomain", NULL
8560 };
8561
8562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8564 {
8565 arg2 = wxString_in_helper(obj1);
8566 if (arg2 == NULL) SWIG_fail;
8567 temp2 = True;
8568 }
8569 {
8570 PyThreadState* __tstate = wxPyBeginAllowThreads();
8571 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8572
8573 wxPyEndAllowThreads(__tstate);
8574 if (PyErr_Occurred()) SWIG_fail;
8575 }
8576 resultobj = PyInt_FromLong((long)result);
8577 {
8578 if (temp2)
8579 delete arg2;
8580 }
8581 return resultobj;
8582 fail:
8583 {
8584 if (temp2)
8585 delete arg2;
8586 }
8587 return NULL;
8588 }
8589
8590
8591 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8592 PyObject *resultobj;
8593 wxLocale *arg1 = (wxLocale *) 0 ;
8594 wxString *arg2 = 0 ;
8595 bool result;
8596 bool temp2 = False ;
8597 PyObject * obj0 = 0 ;
8598 PyObject * obj1 = 0 ;
8599 char *kwnames[] = {
8600 (char *) "self",(char *) "szDomain", NULL
8601 };
8602
8603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8605 {
8606 arg2 = wxString_in_helper(obj1);
8607 if (arg2 == NULL) SWIG_fail;
8608 temp2 = True;
8609 }
8610 {
8611 PyThreadState* __tstate = wxPyBeginAllowThreads();
8612 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8613
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 resultobj = PyInt_FromLong((long)result);
8618 {
8619 if (temp2)
8620 delete arg2;
8621 }
8622 return resultobj;
8623 fail:
8624 {
8625 if (temp2)
8626 delete arg2;
8627 }
8628 return NULL;
8629 }
8630
8631
8632 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8633 PyObject *resultobj;
8634 int arg1 ;
8635 wxLanguageInfo *result;
8636 char *kwnames[] = {
8637 (char *) "lang", NULL
8638 };
8639
8640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8641 {
8642 PyThreadState* __tstate = wxPyBeginAllowThreads();
8643 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8644
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8649 return resultobj;
8650 fail:
8651 return NULL;
8652 }
8653
8654
8655 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8656 PyObject *resultobj;
8657 int arg1 ;
8658 wxString result;
8659 char *kwnames[] = {
8660 (char *) "lang", NULL
8661 };
8662
8663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8664 {
8665 PyThreadState* __tstate = wxPyBeginAllowThreads();
8666 result = wxLocale::GetLanguageName(arg1);
8667
8668 wxPyEndAllowThreads(__tstate);
8669 if (PyErr_Occurred()) SWIG_fail;
8670 }
8671 {
8672 #if wxUSE_UNICODE
8673 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8674 #else
8675 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8676 #endif
8677 }
8678 return resultobj;
8679 fail:
8680 return NULL;
8681 }
8682
8683
8684 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8685 PyObject *resultobj;
8686 wxString *arg1 = 0 ;
8687 wxLanguageInfo *result;
8688 bool temp1 = False ;
8689 PyObject * obj0 = 0 ;
8690 char *kwnames[] = {
8691 (char *) "locale", NULL
8692 };
8693
8694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8695 {
8696 arg1 = wxString_in_helper(obj0);
8697 if (arg1 == NULL) SWIG_fail;
8698 temp1 = True;
8699 }
8700 {
8701 PyThreadState* __tstate = wxPyBeginAllowThreads();
8702 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8703
8704 wxPyEndAllowThreads(__tstate);
8705 if (PyErr_Occurred()) SWIG_fail;
8706 }
8707 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8708 {
8709 if (temp1)
8710 delete arg1;
8711 }
8712 return resultobj;
8713 fail:
8714 {
8715 if (temp1)
8716 delete arg1;
8717 }
8718 return NULL;
8719 }
8720
8721
8722 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8723 PyObject *resultobj;
8724 wxLanguageInfo *arg1 = 0 ;
8725 PyObject * obj0 = 0 ;
8726 char *kwnames[] = {
8727 (char *) "info", NULL
8728 };
8729
8730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
8731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8732 if (arg1 == NULL) {
8733 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8734 }
8735 {
8736 PyThreadState* __tstate = wxPyBeginAllowThreads();
8737 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
8738
8739 wxPyEndAllowThreads(__tstate);
8740 if (PyErr_Occurred()) SWIG_fail;
8741 }
8742 Py_INCREF(Py_None); resultobj = Py_None;
8743 return resultobj;
8744 fail:
8745 return NULL;
8746 }
8747
8748
8749 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8750 PyObject *resultobj;
8751 wxLocale *arg1 = (wxLocale *) 0 ;
8752 wxString *arg2 = 0 ;
8753 wxString const &arg3_defvalue = wxPyEmptyString ;
8754 wxString *arg3 = (wxString *) &arg3_defvalue ;
8755 wxString result;
8756 bool temp2 = False ;
8757 bool temp3 = False ;
8758 PyObject * obj0 = 0 ;
8759 PyObject * obj1 = 0 ;
8760 PyObject * obj2 = 0 ;
8761 char *kwnames[] = {
8762 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
8763 };
8764
8765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
8766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8767 {
8768 arg2 = wxString_in_helper(obj1);
8769 if (arg2 == NULL) SWIG_fail;
8770 temp2 = True;
8771 }
8772 if (obj2) {
8773 {
8774 arg3 = wxString_in_helper(obj2);
8775 if (arg3 == NULL) SWIG_fail;
8776 temp3 = True;
8777 }
8778 }
8779 {
8780 PyThreadState* __tstate = wxPyBeginAllowThreads();
8781 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
8782
8783 wxPyEndAllowThreads(__tstate);
8784 if (PyErr_Occurred()) SWIG_fail;
8785 }
8786 {
8787 #if wxUSE_UNICODE
8788 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8789 #else
8790 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8791 #endif
8792 }
8793 {
8794 if (temp2)
8795 delete arg2;
8796 }
8797 {
8798 if (temp3)
8799 delete arg3;
8800 }
8801 return resultobj;
8802 fail:
8803 {
8804 if (temp2)
8805 delete arg2;
8806 }
8807 {
8808 if (temp3)
8809 delete arg3;
8810 }
8811 return NULL;
8812 }
8813
8814
8815 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8816 PyObject *resultobj;
8817 wxLocale *arg1 = (wxLocale *) 0 ;
8818 wxString *result;
8819 PyObject * obj0 = 0 ;
8820 char *kwnames[] = {
8821 (char *) "self", NULL
8822 };
8823
8824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
8825 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8826 {
8827 PyThreadState* __tstate = wxPyBeginAllowThreads();
8828 {
8829 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
8830 result = (wxString *) &_result_ref;
8831 }
8832
8833 wxPyEndAllowThreads(__tstate);
8834 if (PyErr_Occurred()) SWIG_fail;
8835 }
8836 {
8837 #if wxUSE_UNICODE
8838 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8839 #else
8840 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8841 #endif
8842 }
8843 return resultobj;
8844 fail:
8845 return NULL;
8846 }
8847
8848
8849 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
8850 PyObject *obj;
8851 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8852 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
8853 Py_INCREF(obj);
8854 return Py_BuildValue((char *)"");
8855 }
8856 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8857 PyObject *resultobj;
8858 wxLocale *result;
8859 char *kwnames[] = {
8860 NULL
8861 };
8862
8863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
8864 {
8865 PyThreadState* __tstate = wxPyBeginAllowThreads();
8866 result = (wxLocale *)wxGetLocale();
8867
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 }
8871 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
8872 return resultobj;
8873 fail:
8874 return NULL;
8875 }
8876
8877
8878 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
8879 PyObject *resultobj;
8880 wxString *arg1 = 0 ;
8881 wxString result;
8882 bool temp1 = False ;
8883 PyObject * obj0 = 0 ;
8884
8885 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
8886 {
8887 arg1 = wxString_in_helper(obj0);
8888 if (arg1 == NULL) SWIG_fail;
8889 temp1 = True;
8890 }
8891 {
8892 PyThreadState* __tstate = wxPyBeginAllowThreads();
8893 result = wxGetTranslation((wxString const &)*arg1);
8894
8895 wxPyEndAllowThreads(__tstate);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
8898 {
8899 #if wxUSE_UNICODE
8900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8901 #else
8902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8903 #endif
8904 }
8905 {
8906 if (temp1)
8907 delete arg1;
8908 }
8909 return resultobj;
8910 fail:
8911 {
8912 if (temp1)
8913 delete arg1;
8914 }
8915 return NULL;
8916 }
8917
8918
8919 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
8920 PyObject *resultobj;
8921 wxString *arg1 = 0 ;
8922 wxString *arg2 = 0 ;
8923 size_t arg3 ;
8924 wxString result;
8925 bool temp1 = False ;
8926 bool temp2 = False ;
8927 PyObject * obj0 = 0 ;
8928 PyObject * obj1 = 0 ;
8929 PyObject * obj2 = 0 ;
8930
8931 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
8932 {
8933 arg1 = wxString_in_helper(obj0);
8934 if (arg1 == NULL) SWIG_fail;
8935 temp1 = True;
8936 }
8937 {
8938 arg2 = wxString_in_helper(obj1);
8939 if (arg2 == NULL) SWIG_fail;
8940 temp2 = True;
8941 }
8942 {
8943 arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
8944 if (PyErr_Occurred()) SWIG_fail;
8945 }
8946 {
8947 PyThreadState* __tstate = wxPyBeginAllowThreads();
8948 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8949
8950 wxPyEndAllowThreads(__tstate);
8951 if (PyErr_Occurred()) SWIG_fail;
8952 }
8953 {
8954 #if wxUSE_UNICODE
8955 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8956 #else
8957 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8958 #endif
8959 }
8960 {
8961 if (temp1)
8962 delete arg1;
8963 }
8964 {
8965 if (temp2)
8966 delete arg2;
8967 }
8968 return resultobj;
8969 fail:
8970 {
8971 if (temp1)
8972 delete arg1;
8973 }
8974 {
8975 if (temp2)
8976 delete arg2;
8977 }
8978 return NULL;
8979 }
8980
8981
8982 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
8983 int argc;
8984 PyObject *argv[4];
8985 int ii;
8986
8987 argc = PyObject_Length(args);
8988 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8989 argv[ii] = PyTuple_GetItem(args,ii);
8990 }
8991 if (argc == 1) {
8992 int _v;
8993 {
8994 void *ptr;
8995 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8996 _v = 0;
8997 PyErr_Clear();
8998 } else {
8999 _v = 1;
9000 }
9001 }
9002 if (_v) {
9003 return _wrap_GetTranslation__SWIG_0(self,args);
9004 }
9005 }
9006 if (argc == 3) {
9007 int _v;
9008 {
9009 void *ptr;
9010 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
9011 _v = 0;
9012 PyErr_Clear();
9013 } else {
9014 _v = 1;
9015 }
9016 }
9017 if (_v) {
9018 {
9019 void *ptr;
9020 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
9021 _v = 0;
9022 PyErr_Clear();
9023 } else {
9024 _v = 1;
9025 }
9026 }
9027 if (_v) {
9028 {
9029 SPyObj_AsUnsignedInt(argv[2]);
9030 if (PyErr_Occurred()) {
9031 _v = 0;
9032 PyErr_Clear();
9033 } else {
9034 _v = 1;
9035 }
9036 }
9037 if (_v) {
9038 return _wrap_GetTranslation__SWIG_1(self,args);
9039 }
9040 }
9041 }
9042 }
9043
9044 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9045 return NULL;
9046 }
9047
9048
9049 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9050 PyObject *resultobj;
9051 wxEncodingConverter *result;
9052 char *kwnames[] = {
9053 NULL
9054 };
9055
9056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9057 {
9058 PyThreadState* __tstate = wxPyBeginAllowThreads();
9059 result = (wxEncodingConverter *)new wxEncodingConverter();
9060
9061 wxPyEndAllowThreads(__tstate);
9062 if (PyErr_Occurred()) SWIG_fail;
9063 }
9064 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
9065 return resultobj;
9066 fail:
9067 return NULL;
9068 }
9069
9070
9071 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9072 PyObject *resultobj;
9073 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9074 PyObject * obj0 = 0 ;
9075 char *kwnames[] = {
9076 (char *) "self", NULL
9077 };
9078
9079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9081 {
9082 PyThreadState* __tstate = wxPyBeginAllowThreads();
9083 delete arg1;
9084
9085 wxPyEndAllowThreads(__tstate);
9086 if (PyErr_Occurred()) SWIG_fail;
9087 }
9088 Py_INCREF(Py_None); resultobj = Py_None;
9089 return resultobj;
9090 fail:
9091 return NULL;
9092 }
9093
9094
9095 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9096 PyObject *resultobj;
9097 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9098 int arg2 ;
9099 int arg3 ;
9100 int arg4 = (int) wxCONVERT_STRICT ;
9101 bool result;
9102 PyObject * obj0 = 0 ;
9103 char *kwnames[] = {
9104 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9105 };
9106
9107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9109 {
9110 PyThreadState* __tstate = wxPyBeginAllowThreads();
9111 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
9112
9113 wxPyEndAllowThreads(__tstate);
9114 if (PyErr_Occurred()) SWIG_fail;
9115 }
9116 resultobj = PyInt_FromLong((long)result);
9117 return resultobj;
9118 fail:
9119 return NULL;
9120 }
9121
9122
9123 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
9124 PyObject *resultobj;
9125 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9126 wxString *arg2 = 0 ;
9127 wxString result;
9128 bool temp2 = False ;
9129 PyObject * obj0 = 0 ;
9130 PyObject * obj1 = 0 ;
9131 char *kwnames[] = {
9132 (char *) "self",(char *) "input", NULL
9133 };
9134
9135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
9136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9137 {
9138 arg2 = wxString_in_helper(obj1);
9139 if (arg2 == NULL) SWIG_fail;
9140 temp2 = True;
9141 }
9142 {
9143 PyThreadState* __tstate = wxPyBeginAllowThreads();
9144 result = (arg1)->Convert((wxString const &)*arg2);
9145
9146 wxPyEndAllowThreads(__tstate);
9147 if (PyErr_Occurred()) SWIG_fail;
9148 }
9149 {
9150 #if wxUSE_UNICODE
9151 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9152 #else
9153 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9154 #endif
9155 }
9156 {
9157 if (temp2)
9158 delete arg2;
9159 }
9160 return resultobj;
9161 fail:
9162 {
9163 if (temp2)
9164 delete arg2;
9165 }
9166 return NULL;
9167 }
9168
9169
9170 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9171 PyObject *resultobj;
9172 int arg1 ;
9173 int arg2 = (int) wxPLATFORM_CURRENT ;
9174 wxFontEncodingArray result;
9175 char *kwnames[] = {
9176 (char *) "enc",(char *) "platform", NULL
9177 };
9178
9179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
9180 {
9181 PyThreadState* __tstate = wxPyBeginAllowThreads();
9182 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
9183
9184 wxPyEndAllowThreads(__tstate);
9185 if (PyErr_Occurred()) SWIG_fail;
9186 }
9187 {
9188 resultobj = PyList_New(0);
9189 for (size_t i=0; i < (&result)->GetCount(); i++) {
9190 PyObject* number = PyInt_FromLong((&result)->Item(i));
9191 PyList_Append(resultobj, number);
9192 Py_DECREF(number);
9193 }
9194 }
9195 return resultobj;
9196 fail:
9197 return NULL;
9198 }
9199
9200
9201 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9202 PyObject *resultobj;
9203 int arg1 ;
9204 wxFontEncodingArray result;
9205 char *kwnames[] = {
9206 (char *) "enc", NULL
9207 };
9208
9209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
9210 {
9211 PyThreadState* __tstate = wxPyBeginAllowThreads();
9212 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
9213
9214 wxPyEndAllowThreads(__tstate);
9215 if (PyErr_Occurred()) SWIG_fail;
9216 }
9217 {
9218 resultobj = PyList_New(0);
9219 for (size_t i=0; i < (&result)->GetCount(); i++) {
9220 PyObject* number = PyInt_FromLong((&result)->Item(i));
9221 PyList_Append(resultobj, number);
9222 Py_DECREF(number);
9223 }
9224 }
9225 return resultobj;
9226 fail:
9227 return NULL;
9228 }
9229
9230
9231 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
9232 PyObject *resultobj;
9233 int arg1 ;
9234 int arg2 ;
9235 bool result;
9236 char *kwnames[] = {
9237 (char *) "encIn",(char *) "encOut", NULL
9238 };
9239
9240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
9241 {
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
9244
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 resultobj = PyInt_FromLong((long)result);
9249 return resultobj;
9250 fail:
9251 return NULL;
9252 }
9253
9254
9255 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
9256 PyObject *obj;
9257 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9258 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
9259 Py_INCREF(obj);
9260 return Py_BuildValue((char *)"");
9261 }
9262 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
9263 PyObject *resultobj;
9264 wxDC *arg1 = (wxDC *) 0 ;
9265 PyObject * obj0 = 0 ;
9266 char *kwnames[] = {
9267 (char *) "self", NULL
9268 };
9269
9270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
9271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9272 {
9273 PyThreadState* __tstate = wxPyBeginAllowThreads();
9274 delete arg1;
9275
9276 wxPyEndAllowThreads(__tstate);
9277 if (PyErr_Occurred()) SWIG_fail;
9278 }
9279 Py_INCREF(Py_None); resultobj = Py_None;
9280 return resultobj;
9281 fail:
9282 return NULL;
9283 }
9284
9285
9286 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9287 PyObject *resultobj;
9288 wxDC *arg1 = (wxDC *) 0 ;
9289 PyObject * obj0 = 0 ;
9290 char *kwnames[] = {
9291 (char *) "self", NULL
9292 };
9293
9294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9296 {
9297 PyThreadState* __tstate = wxPyBeginAllowThreads();
9298 (arg1)->BeginDrawing();
9299
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 Py_INCREF(Py_None); resultobj = Py_None;
9304 return resultobj;
9305 fail:
9306 return NULL;
9307 }
9308
9309
9310 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9311 PyObject *resultobj;
9312 wxDC *arg1 = (wxDC *) 0 ;
9313 PyObject * obj0 = 0 ;
9314 char *kwnames[] = {
9315 (char *) "self", NULL
9316 };
9317
9318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9320 {
9321 PyThreadState* __tstate = wxPyBeginAllowThreads();
9322 (arg1)->EndDrawing();
9323
9324 wxPyEndAllowThreads(__tstate);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 }
9327 Py_INCREF(Py_None); resultobj = Py_None;
9328 return resultobj;
9329 fail:
9330 return NULL;
9331 }
9332
9333
9334 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9335 PyObject *resultobj;
9336 wxDC *arg1 = (wxDC *) 0 ;
9337 int arg2 ;
9338 int arg3 ;
9339 wxColour *arg4 = 0 ;
9340 int arg5 = (int) wxFLOOD_SURFACE ;
9341 bool result;
9342 wxColour temp4 ;
9343 PyObject * obj0 = 0 ;
9344 PyObject * obj3 = 0 ;
9345 char *kwnames[] = {
9346 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9347 };
9348
9349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
9350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9351 {
9352 arg4 = &temp4;
9353 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9354 }
9355 {
9356 PyThreadState* __tstate = wxPyBeginAllowThreads();
9357 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9358
9359 wxPyEndAllowThreads(__tstate);
9360 if (PyErr_Occurred()) SWIG_fail;
9361 }
9362 resultobj = PyInt_FromLong((long)result);
9363 return resultobj;
9364 fail:
9365 return NULL;
9366 }
9367
9368
9369 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9370 PyObject *resultobj;
9371 wxDC *arg1 = (wxDC *) 0 ;
9372 wxPoint *arg2 = 0 ;
9373 wxColour *arg3 = 0 ;
9374 int arg4 = (int) wxFLOOD_SURFACE ;
9375 bool result;
9376 wxPoint temp2 ;
9377 wxColour temp3 ;
9378 PyObject * obj0 = 0 ;
9379 PyObject * obj1 = 0 ;
9380 PyObject * obj2 = 0 ;
9381 char *kwnames[] = {
9382 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9383 };
9384
9385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9387 {
9388 arg2 = &temp2;
9389 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9390 }
9391 {
9392 arg3 = &temp3;
9393 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9394 }
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9398
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 resultobj = PyInt_FromLong((long)result);
9403 return resultobj;
9404 fail:
9405 return NULL;
9406 }
9407
9408
9409 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9410 PyObject *resultobj;
9411 wxDC *arg1 = (wxDC *) 0 ;
9412 int arg2 ;
9413 int arg3 ;
9414 wxColour result;
9415 PyObject * obj0 = 0 ;
9416 char *kwnames[] = {
9417 (char *) "self",(char *) "x",(char *) "y", NULL
9418 };
9419
9420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9422 {
9423 PyThreadState* __tstate = wxPyBeginAllowThreads();
9424 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9425
9426 wxPyEndAllowThreads(__tstate);
9427 if (PyErr_Occurred()) SWIG_fail;
9428 }
9429 {
9430 wxColour * resultptr;
9431 resultptr = new wxColour((wxColour &) result);
9432 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9433 }
9434 return resultobj;
9435 fail:
9436 return NULL;
9437 }
9438
9439
9440 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9441 PyObject *resultobj;
9442 wxDC *arg1 = (wxDC *) 0 ;
9443 wxPoint *arg2 = 0 ;
9444 wxColour result;
9445 wxPoint temp2 ;
9446 PyObject * obj0 = 0 ;
9447 PyObject * obj1 = 0 ;
9448 char *kwnames[] = {
9449 (char *) "self",(char *) "pt", NULL
9450 };
9451
9452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9454 {
9455 arg2 = &temp2;
9456 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9457 }
9458 {
9459 PyThreadState* __tstate = wxPyBeginAllowThreads();
9460 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9461
9462 wxPyEndAllowThreads(__tstate);
9463 if (PyErr_Occurred()) SWIG_fail;
9464 }
9465 {
9466 wxColour * resultptr;
9467 resultptr = new wxColour((wxColour &) result);
9468 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9469 }
9470 return resultobj;
9471 fail:
9472 return NULL;
9473 }
9474
9475
9476 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9477 PyObject *resultobj;
9478 wxDC *arg1 = (wxDC *) 0 ;
9479 int arg2 ;
9480 int arg3 ;
9481 int arg4 ;
9482 int arg5 ;
9483 PyObject * obj0 = 0 ;
9484 char *kwnames[] = {
9485 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9486 };
9487
9488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9490 {
9491 PyThreadState* __tstate = wxPyBeginAllowThreads();
9492 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9493
9494 wxPyEndAllowThreads(__tstate);
9495 if (PyErr_Occurred()) SWIG_fail;
9496 }
9497 Py_INCREF(Py_None); resultobj = Py_None;
9498 return resultobj;
9499 fail:
9500 return NULL;
9501 }
9502
9503
9504 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9505 PyObject *resultobj;
9506 wxDC *arg1 = (wxDC *) 0 ;
9507 wxPoint *arg2 = 0 ;
9508 wxPoint *arg3 = 0 ;
9509 wxPoint temp2 ;
9510 wxPoint temp3 ;
9511 PyObject * obj0 = 0 ;
9512 PyObject * obj1 = 0 ;
9513 PyObject * obj2 = 0 ;
9514 char *kwnames[] = {
9515 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9516 };
9517
9518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9520 {
9521 arg2 = &temp2;
9522 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9523 }
9524 {
9525 arg3 = &temp3;
9526 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9527 }
9528 {
9529 PyThreadState* __tstate = wxPyBeginAllowThreads();
9530 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9531
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 Py_INCREF(Py_None); resultobj = Py_None;
9536 return resultobj;
9537 fail:
9538 return NULL;
9539 }
9540
9541
9542 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9543 PyObject *resultobj;
9544 wxDC *arg1 = (wxDC *) 0 ;
9545 int arg2 ;
9546 int arg3 ;
9547 PyObject * obj0 = 0 ;
9548 char *kwnames[] = {
9549 (char *) "self",(char *) "x",(char *) "y", NULL
9550 };
9551
9552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9554 {
9555 PyThreadState* __tstate = wxPyBeginAllowThreads();
9556 (arg1)->CrossHair(arg2,arg3);
9557
9558 wxPyEndAllowThreads(__tstate);
9559 if (PyErr_Occurred()) SWIG_fail;
9560 }
9561 Py_INCREF(Py_None); resultobj = Py_None;
9562 return resultobj;
9563 fail:
9564 return NULL;
9565 }
9566
9567
9568 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9569 PyObject *resultobj;
9570 wxDC *arg1 = (wxDC *) 0 ;
9571 wxPoint *arg2 = 0 ;
9572 wxPoint temp2 ;
9573 PyObject * obj0 = 0 ;
9574 PyObject * obj1 = 0 ;
9575 char *kwnames[] = {
9576 (char *) "self",(char *) "pt", NULL
9577 };
9578
9579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9581 {
9582 arg2 = &temp2;
9583 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9584 }
9585 {
9586 PyThreadState* __tstate = wxPyBeginAllowThreads();
9587 (arg1)->CrossHair((wxPoint const &)*arg2);
9588
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 Py_INCREF(Py_None); resultobj = Py_None;
9593 return resultobj;
9594 fail:
9595 return NULL;
9596 }
9597
9598
9599 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9600 PyObject *resultobj;
9601 wxDC *arg1 = (wxDC *) 0 ;
9602 int arg2 ;
9603 int arg3 ;
9604 int arg4 ;
9605 int arg5 ;
9606 int arg6 ;
9607 int arg7 ;
9608 PyObject * obj0 = 0 ;
9609 char *kwnames[] = {
9610 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9611 };
9612
9613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9614 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9618
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
9622 Py_INCREF(Py_None); resultobj = Py_None;
9623 return resultobj;
9624 fail:
9625 return NULL;
9626 }
9627
9628
9629 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9630 PyObject *resultobj;
9631 wxDC *arg1 = (wxDC *) 0 ;
9632 wxPoint *arg2 = 0 ;
9633 wxPoint *arg3 = 0 ;
9634 wxPoint *arg4 = 0 ;
9635 wxPoint temp2 ;
9636 wxPoint temp3 ;
9637 wxPoint temp4 ;
9638 PyObject * obj0 = 0 ;
9639 PyObject * obj1 = 0 ;
9640 PyObject * obj2 = 0 ;
9641 PyObject * obj3 = 0 ;
9642 char *kwnames[] = {
9643 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9644 };
9645
9646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9648 {
9649 arg2 = &temp2;
9650 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9651 }
9652 {
9653 arg3 = &temp3;
9654 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9655 }
9656 {
9657 arg4 = &temp4;
9658 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9659 }
9660 {
9661 PyThreadState* __tstate = wxPyBeginAllowThreads();
9662 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9663
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 }
9667 Py_INCREF(Py_None); resultobj = Py_None;
9668 return resultobj;
9669 fail:
9670 return NULL;
9671 }
9672
9673
9674 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9675 PyObject *resultobj;
9676 wxDC *arg1 = (wxDC *) 0 ;
9677 int arg2 ;
9678 int arg3 ;
9679 int arg4 ;
9680 int arg5 ;
9681 PyObject * obj0 = 0 ;
9682 char *kwnames[] = {
9683 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9684 };
9685
9686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9688 {
9689 PyThreadState* __tstate = wxPyBeginAllowThreads();
9690 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
9691
9692 wxPyEndAllowThreads(__tstate);
9693 if (PyErr_Occurred()) SWIG_fail;
9694 }
9695 Py_INCREF(Py_None); resultobj = Py_None;
9696 return resultobj;
9697 fail:
9698 return NULL;
9699 }
9700
9701
9702 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9703 PyObject *resultobj;
9704 wxDC *arg1 = (wxDC *) 0 ;
9705 wxRect *arg2 = 0 ;
9706 wxRect temp2 ;
9707 PyObject * obj0 = 0 ;
9708 PyObject * obj1 = 0 ;
9709 char *kwnames[] = {
9710 (char *) "self",(char *) "rect", NULL
9711 };
9712
9713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9715 {
9716 arg2 = &temp2;
9717 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9718 }
9719 {
9720 PyThreadState* __tstate = wxPyBeginAllowThreads();
9721 (arg1)->DrawCheckMark((wxRect const &)*arg2);
9722
9723 wxPyEndAllowThreads(__tstate);
9724 if (PyErr_Occurred()) SWIG_fail;
9725 }
9726 Py_INCREF(Py_None); resultobj = Py_None;
9727 return resultobj;
9728 fail:
9729 return NULL;
9730 }
9731
9732
9733 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9734 PyObject *resultobj;
9735 wxDC *arg1 = (wxDC *) 0 ;
9736 int arg2 ;
9737 int arg3 ;
9738 int arg4 ;
9739 int arg5 ;
9740 double arg6 ;
9741 double arg7 ;
9742 PyObject * obj0 = 0 ;
9743 char *kwnames[] = {
9744 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
9745 };
9746
9747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9749 {
9750 PyThreadState* __tstate = wxPyBeginAllowThreads();
9751 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
9752
9753 wxPyEndAllowThreads(__tstate);
9754 if (PyErr_Occurred()) SWIG_fail;
9755 }
9756 Py_INCREF(Py_None); resultobj = Py_None;
9757 return resultobj;
9758 fail:
9759 return NULL;
9760 }
9761
9762
9763 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9764 PyObject *resultobj;
9765 wxDC *arg1 = (wxDC *) 0 ;
9766 wxPoint *arg2 = 0 ;
9767 wxSize *arg3 = 0 ;
9768 double arg4 ;
9769 double arg5 ;
9770 wxPoint temp2 ;
9771 wxSize temp3 ;
9772 PyObject * obj0 = 0 ;
9773 PyObject * obj1 = 0 ;
9774 PyObject * obj2 = 0 ;
9775 char *kwnames[] = {
9776 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
9777 };
9778
9779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
9780 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9781 {
9782 arg2 = &temp2;
9783 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9784 }
9785 {
9786 arg3 = &temp3;
9787 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9788 }
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
9792
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 Py_INCREF(Py_None); resultobj = Py_None;
9797 return resultobj;
9798 fail:
9799 return NULL;
9800 }
9801
9802
9803 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9804 PyObject *resultobj;
9805 wxDC *arg1 = (wxDC *) 0 ;
9806 int arg2 ;
9807 int arg3 ;
9808 PyObject * obj0 = 0 ;
9809 char *kwnames[] = {
9810 (char *) "self",(char *) "x",(char *) "y", NULL
9811 };
9812
9813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9815 {
9816 PyThreadState* __tstate = wxPyBeginAllowThreads();
9817 (arg1)->DrawPoint(arg2,arg3);
9818
9819 wxPyEndAllowThreads(__tstate);
9820 if (PyErr_Occurred()) SWIG_fail;
9821 }
9822 Py_INCREF(Py_None); resultobj = Py_None;
9823 return resultobj;
9824 fail:
9825 return NULL;
9826 }
9827
9828
9829 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9830 PyObject *resultobj;
9831 wxDC *arg1 = (wxDC *) 0 ;
9832 wxPoint *arg2 = 0 ;
9833 wxPoint temp2 ;
9834 PyObject * obj0 = 0 ;
9835 PyObject * obj1 = 0 ;
9836 char *kwnames[] = {
9837 (char *) "self",(char *) "pt", NULL
9838 };
9839
9840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
9841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9842 {
9843 arg2 = &temp2;
9844 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9845 }
9846 {
9847 PyThreadState* __tstate = wxPyBeginAllowThreads();
9848 (arg1)->DrawPoint((wxPoint const &)*arg2);
9849
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 Py_INCREF(Py_None); resultobj = Py_None;
9854 return resultobj;
9855 fail:
9856 return NULL;
9857 }
9858
9859
9860 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj;
9862 wxDC *arg1 = (wxDC *) 0 ;
9863 int arg2 ;
9864 int arg3 ;
9865 int arg4 ;
9866 int arg5 ;
9867 PyObject * obj0 = 0 ;
9868 char *kwnames[] = {
9869 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9870 };
9871
9872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
9877
9878 wxPyEndAllowThreads(__tstate);
9879 if (PyErr_Occurred()) SWIG_fail;
9880 }
9881 Py_INCREF(Py_None); resultobj = Py_None;
9882 return resultobj;
9883 fail:
9884 return NULL;
9885 }
9886
9887
9888 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9889 PyObject *resultobj;
9890 wxDC *arg1 = (wxDC *) 0 ;
9891 wxPoint *arg2 = 0 ;
9892 wxSize *arg3 = 0 ;
9893 wxPoint temp2 ;
9894 wxSize temp3 ;
9895 PyObject * obj0 = 0 ;
9896 PyObject * obj1 = 0 ;
9897 PyObject * obj2 = 0 ;
9898 char *kwnames[] = {
9899 (char *) "self",(char *) "pt",(char *) "sz", NULL
9900 };
9901
9902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9904 {
9905 arg2 = &temp2;
9906 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9907 }
9908 {
9909 arg3 = &temp3;
9910 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9911 }
9912 {
9913 PyThreadState* __tstate = wxPyBeginAllowThreads();
9914 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
9915
9916 wxPyEndAllowThreads(__tstate);
9917 if (PyErr_Occurred()) SWIG_fail;
9918 }
9919 Py_INCREF(Py_None); resultobj = Py_None;
9920 return resultobj;
9921 fail:
9922 return NULL;
9923 }
9924
9925
9926 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9927 PyObject *resultobj;
9928 wxDC *arg1 = (wxDC *) 0 ;
9929 wxRect *arg2 = 0 ;
9930 wxRect temp2 ;
9931 PyObject * obj0 = 0 ;
9932 PyObject * obj1 = 0 ;
9933 char *kwnames[] = {
9934 (char *) "self",(char *) "rect", NULL
9935 };
9936
9937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
9938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9939 {
9940 arg2 = &temp2;
9941 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9942 }
9943 {
9944 PyThreadState* __tstate = wxPyBeginAllowThreads();
9945 (arg1)->DrawRectangle((wxRect const &)*arg2);
9946
9947 wxPyEndAllowThreads(__tstate);
9948 if (PyErr_Occurred()) SWIG_fail;
9949 }
9950 Py_INCREF(Py_None); resultobj = Py_None;
9951 return resultobj;
9952 fail:
9953 return NULL;
9954 }
9955
9956
9957 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9958 PyObject *resultobj;
9959 wxDC *arg1 = (wxDC *) 0 ;
9960 int arg2 ;
9961 int arg3 ;
9962 int arg4 ;
9963 int arg5 ;
9964 double arg6 ;
9965 PyObject * obj0 = 0 ;
9966 char *kwnames[] = {
9967 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
9968 };
9969
9970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
9971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9972 {
9973 PyThreadState* __tstate = wxPyBeginAllowThreads();
9974 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
9975
9976 wxPyEndAllowThreads(__tstate);
9977 if (PyErr_Occurred()) SWIG_fail;
9978 }
9979 Py_INCREF(Py_None); resultobj = Py_None;
9980 return resultobj;
9981 fail:
9982 return NULL;
9983 }
9984
9985
9986 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9987 PyObject *resultobj;
9988 wxDC *arg1 = (wxDC *) 0 ;
9989 wxPoint *arg2 = 0 ;
9990 wxSize *arg3 = 0 ;
9991 double arg4 ;
9992 wxPoint temp2 ;
9993 wxSize temp3 ;
9994 PyObject * obj0 = 0 ;
9995 PyObject * obj1 = 0 ;
9996 PyObject * obj2 = 0 ;
9997 char *kwnames[] = {
9998 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
9999 };
10000
10001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10003 {
10004 arg2 = &temp2;
10005 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10006 }
10007 {
10008 arg3 = &temp3;
10009 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10010 }
10011 {
10012 PyThreadState* __tstate = wxPyBeginAllowThreads();
10013 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
10014
10015 wxPyEndAllowThreads(__tstate);
10016 if (PyErr_Occurred()) SWIG_fail;
10017 }
10018 Py_INCREF(Py_None); resultobj = Py_None;
10019 return resultobj;
10020 fail:
10021 return NULL;
10022 }
10023
10024
10025 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10026 PyObject *resultobj;
10027 wxDC *arg1 = (wxDC *) 0 ;
10028 wxRect *arg2 = 0 ;
10029 double arg3 ;
10030 wxRect temp2 ;
10031 PyObject * obj0 = 0 ;
10032 PyObject * obj1 = 0 ;
10033 char *kwnames[] = {
10034 (char *) "self",(char *) "r",(char *) "radius", NULL
10035 };
10036
10037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
10038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10039 {
10040 arg2 = &temp2;
10041 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10042 }
10043 {
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
10045 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
10046
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 Py_INCREF(Py_None); resultobj = Py_None;
10051 return resultobj;
10052 fail:
10053 return NULL;
10054 }
10055
10056
10057 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj;
10059 wxDC *arg1 = (wxDC *) 0 ;
10060 int arg2 ;
10061 int arg3 ;
10062 int arg4 ;
10063 PyObject * obj0 = 0 ;
10064 char *kwnames[] = {
10065 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
10066 };
10067
10068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
10069 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10070 {
10071 PyThreadState* __tstate = wxPyBeginAllowThreads();
10072 (arg1)->DrawCircle(arg2,arg3,arg4);
10073
10074 wxPyEndAllowThreads(__tstate);
10075 if (PyErr_Occurred()) SWIG_fail;
10076 }
10077 Py_INCREF(Py_None); resultobj = Py_None;
10078 return resultobj;
10079 fail:
10080 return NULL;
10081 }
10082
10083
10084 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
10085 PyObject *resultobj;
10086 wxDC *arg1 = (wxDC *) 0 ;
10087 wxPoint *arg2 = 0 ;
10088 int arg3 ;
10089 wxPoint temp2 ;
10090 PyObject * obj0 = 0 ;
10091 PyObject * obj1 = 0 ;
10092 char *kwnames[] = {
10093 (char *) "self",(char *) "pt",(char *) "radius", NULL
10094 };
10095
10096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
10097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10098 {
10099 arg2 = &temp2;
10100 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10101 }
10102 {
10103 PyThreadState* __tstate = wxPyBeginAllowThreads();
10104 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
10105
10106 wxPyEndAllowThreads(__tstate);
10107 if (PyErr_Occurred()) SWIG_fail;
10108 }
10109 Py_INCREF(Py_None); resultobj = Py_None;
10110 return resultobj;
10111 fail:
10112 return NULL;
10113 }
10114
10115
10116 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10117 PyObject *resultobj;
10118 wxDC *arg1 = (wxDC *) 0 ;
10119 int arg2 ;
10120 int arg3 ;
10121 int arg4 ;
10122 int arg5 ;
10123 PyObject * obj0 = 0 ;
10124 char *kwnames[] = {
10125 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10126 };
10127
10128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10130 {
10131 PyThreadState* __tstate = wxPyBeginAllowThreads();
10132 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
10133
10134 wxPyEndAllowThreads(__tstate);
10135 if (PyErr_Occurred()) SWIG_fail;
10136 }
10137 Py_INCREF(Py_None); resultobj = Py_None;
10138 return resultobj;
10139 fail:
10140 return NULL;
10141 }
10142
10143
10144 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
10145 PyObject *resultobj;
10146 wxDC *arg1 = (wxDC *) 0 ;
10147 wxPoint *arg2 = 0 ;
10148 wxSize *arg3 = 0 ;
10149 wxPoint temp2 ;
10150 wxSize temp3 ;
10151 PyObject * obj0 = 0 ;
10152 PyObject * obj1 = 0 ;
10153 PyObject * obj2 = 0 ;
10154 char *kwnames[] = {
10155 (char *) "self",(char *) "pt",(char *) "sz", NULL
10156 };
10157
10158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
10159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10160 {
10161 arg2 = &temp2;
10162 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10163 }
10164 {
10165 arg3 = &temp3;
10166 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10167 }
10168 {
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
10171
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 Py_INCREF(Py_None); resultobj = Py_None;
10176 return resultobj;
10177 fail:
10178 return NULL;
10179 }
10180
10181
10182 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10183 PyObject *resultobj;
10184 wxDC *arg1 = (wxDC *) 0 ;
10185 wxRect *arg2 = 0 ;
10186 wxRect temp2 ;
10187 PyObject * obj0 = 0 ;
10188 PyObject * obj1 = 0 ;
10189 char *kwnames[] = {
10190 (char *) "self",(char *) "rect", NULL
10191 };
10192
10193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
10194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10195 {
10196 arg2 = &temp2;
10197 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10198 }
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 (arg1)->DrawEllipse((wxRect const &)*arg2);
10202
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 Py_INCREF(Py_None); resultobj = Py_None;
10207 return resultobj;
10208 fail:
10209 return NULL;
10210 }
10211
10212
10213 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10214 PyObject *resultobj;
10215 wxDC *arg1 = (wxDC *) 0 ;
10216 wxIcon *arg2 = 0 ;
10217 int arg3 ;
10218 int arg4 ;
10219 PyObject * obj0 = 0 ;
10220 PyObject * obj1 = 0 ;
10221 char *kwnames[] = {
10222 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
10223 };
10224
10225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10227 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10228 if (arg2 == NULL) {
10229 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10230 }
10231 {
10232 PyThreadState* __tstate = wxPyBeginAllowThreads();
10233 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
10234
10235 wxPyEndAllowThreads(__tstate);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 }
10238 Py_INCREF(Py_None); resultobj = Py_None;
10239 return resultobj;
10240 fail:
10241 return NULL;
10242 }
10243
10244
10245 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10246 PyObject *resultobj;
10247 wxDC *arg1 = (wxDC *) 0 ;
10248 wxIcon *arg2 = 0 ;
10249 wxPoint *arg3 = 0 ;
10250 wxPoint temp3 ;
10251 PyObject * obj0 = 0 ;
10252 PyObject * obj1 = 0 ;
10253 PyObject * obj2 = 0 ;
10254 char *kwnames[] = {
10255 (char *) "self",(char *) "icon",(char *) "pt", NULL
10256 };
10257
10258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
10259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10260 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10261 if (arg2 == NULL) {
10262 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10263 }
10264 {
10265 arg3 = &temp3;
10266 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10267 }
10268 {
10269 PyThreadState* __tstate = wxPyBeginAllowThreads();
10270 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
10271
10272 wxPyEndAllowThreads(__tstate);
10273 if (PyErr_Occurred()) SWIG_fail;
10274 }
10275 Py_INCREF(Py_None); resultobj = Py_None;
10276 return resultobj;
10277 fail:
10278 return NULL;
10279 }
10280
10281
10282 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj;
10284 wxDC *arg1 = (wxDC *) 0 ;
10285 wxBitmap *arg2 = 0 ;
10286 int arg3 ;
10287 int arg4 ;
10288 bool arg5 = (bool) False ;
10289 PyObject * obj0 = 0 ;
10290 PyObject * obj1 = 0 ;
10291 PyObject * obj4 = 0 ;
10292 char *kwnames[] = {
10293 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
10294 };
10295
10296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
10297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10298 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10299 if (arg2 == NULL) {
10300 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10301 }
10302 if (obj4) {
10303 {
10304 arg5 = (bool) SPyObj_AsBool(obj4);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
10307 }
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
10311
10312 wxPyEndAllowThreads(__tstate);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 Py_INCREF(Py_None); resultobj = Py_None;
10316 return resultobj;
10317 fail:
10318 return NULL;
10319 }
10320
10321
10322 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10323 PyObject *resultobj;
10324 wxDC *arg1 = (wxDC *) 0 ;
10325 wxBitmap *arg2 = 0 ;
10326 wxPoint *arg3 = 0 ;
10327 bool arg4 = (bool) False ;
10328 wxPoint temp3 ;
10329 PyObject * obj0 = 0 ;
10330 PyObject * obj1 = 0 ;
10331 PyObject * obj2 = 0 ;
10332 PyObject * obj3 = 0 ;
10333 char *kwnames[] = {
10334 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
10335 };
10336
10337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10339 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10340 if (arg2 == NULL) {
10341 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10342 }
10343 {
10344 arg3 = &temp3;
10345 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10346 }
10347 if (obj3) {
10348 {
10349 arg4 = (bool) SPyObj_AsBool(obj3);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 }
10353 {
10354 PyThreadState* __tstate = wxPyBeginAllowThreads();
10355 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
10356
10357 wxPyEndAllowThreads(__tstate);
10358 if (PyErr_Occurred()) SWIG_fail;
10359 }
10360 Py_INCREF(Py_None); resultobj = Py_None;
10361 return resultobj;
10362 fail:
10363 return NULL;
10364 }
10365
10366
10367 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10368 PyObject *resultobj;
10369 wxDC *arg1 = (wxDC *) 0 ;
10370 wxString *arg2 = 0 ;
10371 int arg3 ;
10372 int arg4 ;
10373 bool temp2 = False ;
10374 PyObject * obj0 = 0 ;
10375 PyObject * obj1 = 0 ;
10376 char *kwnames[] = {
10377 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10378 };
10379
10380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10381 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10382 {
10383 arg2 = wxString_in_helper(obj1);
10384 if (arg2 == NULL) SWIG_fail;
10385 temp2 = True;
10386 }
10387 {
10388 PyThreadState* __tstate = wxPyBeginAllowThreads();
10389 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10390
10391 wxPyEndAllowThreads(__tstate);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 Py_INCREF(Py_None); resultobj = Py_None;
10395 {
10396 if (temp2)
10397 delete arg2;
10398 }
10399 return resultobj;
10400 fail:
10401 {
10402 if (temp2)
10403 delete arg2;
10404 }
10405 return NULL;
10406 }
10407
10408
10409 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10410 PyObject *resultobj;
10411 wxDC *arg1 = (wxDC *) 0 ;
10412 wxString *arg2 = 0 ;
10413 wxPoint *arg3 = 0 ;
10414 bool temp2 = False ;
10415 wxPoint temp3 ;
10416 PyObject * obj0 = 0 ;
10417 PyObject * obj1 = 0 ;
10418 PyObject * obj2 = 0 ;
10419 char *kwnames[] = {
10420 (char *) "self",(char *) "text",(char *) "pt", NULL
10421 };
10422
10423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10425 {
10426 arg2 = wxString_in_helper(obj1);
10427 if (arg2 == NULL) SWIG_fail;
10428 temp2 = True;
10429 }
10430 {
10431 arg3 = &temp3;
10432 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10433 }
10434 {
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10437
10438 wxPyEndAllowThreads(__tstate);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 Py_INCREF(Py_None); resultobj = Py_None;
10442 {
10443 if (temp2)
10444 delete arg2;
10445 }
10446 return resultobj;
10447 fail:
10448 {
10449 if (temp2)
10450 delete arg2;
10451 }
10452 return NULL;
10453 }
10454
10455
10456 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10457 PyObject *resultobj;
10458 wxDC *arg1 = (wxDC *) 0 ;
10459 wxString *arg2 = 0 ;
10460 int arg3 ;
10461 int arg4 ;
10462 double arg5 ;
10463 bool temp2 = False ;
10464 PyObject * obj0 = 0 ;
10465 PyObject * obj1 = 0 ;
10466 char *kwnames[] = {
10467 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10468 };
10469
10470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10472 {
10473 arg2 = wxString_in_helper(obj1);
10474 if (arg2 == NULL) SWIG_fail;
10475 temp2 = True;
10476 }
10477 {
10478 PyThreadState* __tstate = wxPyBeginAllowThreads();
10479 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10480
10481 wxPyEndAllowThreads(__tstate);
10482 if (PyErr_Occurred()) SWIG_fail;
10483 }
10484 Py_INCREF(Py_None); resultobj = Py_None;
10485 {
10486 if (temp2)
10487 delete arg2;
10488 }
10489 return resultobj;
10490 fail:
10491 {
10492 if (temp2)
10493 delete arg2;
10494 }
10495 return NULL;
10496 }
10497
10498
10499 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10500 PyObject *resultobj;
10501 wxDC *arg1 = (wxDC *) 0 ;
10502 wxString *arg2 = 0 ;
10503 wxPoint *arg3 = 0 ;
10504 double arg4 ;
10505 bool temp2 = False ;
10506 wxPoint temp3 ;
10507 PyObject * obj0 = 0 ;
10508 PyObject * obj1 = 0 ;
10509 PyObject * obj2 = 0 ;
10510 char *kwnames[] = {
10511 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10512 };
10513
10514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10516 {
10517 arg2 = wxString_in_helper(obj1);
10518 if (arg2 == NULL) SWIG_fail;
10519 temp2 = True;
10520 }
10521 {
10522 arg3 = &temp3;
10523 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10524 }
10525 {
10526 PyThreadState* __tstate = wxPyBeginAllowThreads();
10527 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10528
10529 wxPyEndAllowThreads(__tstate);
10530 if (PyErr_Occurred()) SWIG_fail;
10531 }
10532 Py_INCREF(Py_None); resultobj = Py_None;
10533 {
10534 if (temp2)
10535 delete arg2;
10536 }
10537 return resultobj;
10538 fail:
10539 {
10540 if (temp2)
10541 delete arg2;
10542 }
10543 return NULL;
10544 }
10545
10546
10547 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10548 PyObject *resultobj;
10549 wxDC *arg1 = (wxDC *) 0 ;
10550 int arg2 ;
10551 int arg3 ;
10552 int arg4 ;
10553 int arg5 ;
10554 wxDC *arg6 = (wxDC *) 0 ;
10555 int arg7 ;
10556 int arg8 ;
10557 int arg9 = (int) wxCOPY ;
10558 bool arg10 = (bool) False ;
10559 int arg11 = (int) -1 ;
10560 int arg12 = (int) -1 ;
10561 bool result;
10562 PyObject * obj0 = 0 ;
10563 PyObject * obj5 = 0 ;
10564 PyObject * obj9 = 0 ;
10565 char *kwnames[] = {
10566 (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
10567 };
10568
10569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiiOii|iOii:DC_BlitXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&arg7,&arg8,&arg9,&obj9,&arg11,&arg12)) goto fail;
10570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10571 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10572 if (obj9) {
10573 {
10574 arg10 = (bool) SPyObj_AsBool(obj9);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 }
10578 {
10579 PyThreadState* __tstate = wxPyBeginAllowThreads();
10580 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10581
10582 wxPyEndAllowThreads(__tstate);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 resultobj = PyInt_FromLong((long)result);
10586 return resultobj;
10587 fail:
10588 return NULL;
10589 }
10590
10591
10592 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10593 PyObject *resultobj;
10594 wxDC *arg1 = (wxDC *) 0 ;
10595 wxPoint *arg2 = 0 ;
10596 wxSize *arg3 = 0 ;
10597 wxDC *arg4 = (wxDC *) 0 ;
10598 wxPoint *arg5 = 0 ;
10599 int arg6 = (int) wxCOPY ;
10600 bool arg7 = (bool) False ;
10601 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10602 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10603 bool result;
10604 wxPoint temp2 ;
10605 wxSize temp3 ;
10606 wxPoint temp5 ;
10607 wxPoint temp8 ;
10608 PyObject * obj0 = 0 ;
10609 PyObject * obj1 = 0 ;
10610 PyObject * obj2 = 0 ;
10611 PyObject * obj3 = 0 ;
10612 PyObject * obj4 = 0 ;
10613 PyObject * obj6 = 0 ;
10614 PyObject * obj7 = 0 ;
10615 char *kwnames[] = {
10616 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10617 };
10618
10619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10621 {
10622 arg2 = &temp2;
10623 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10624 }
10625 {
10626 arg3 = &temp3;
10627 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10628 }
10629 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10630 {
10631 arg5 = &temp5;
10632 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10633 }
10634 if (obj6) {
10635 {
10636 arg7 = (bool) SPyObj_AsBool(obj6);
10637 if (PyErr_Occurred()) SWIG_fail;
10638 }
10639 }
10640 if (obj7) {
10641 {
10642 arg8 = &temp8;
10643 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10644 }
10645 }
10646 {
10647 PyThreadState* __tstate = wxPyBeginAllowThreads();
10648 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10649
10650 wxPyEndAllowThreads(__tstate);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 }
10653 resultobj = PyInt_FromLong((long)result);
10654 return resultobj;
10655 fail:
10656 return NULL;
10657 }
10658
10659
10660 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10661 PyObject *resultobj;
10662 wxDC *arg1 = (wxDC *) 0 ;
10663 int arg2 ;
10664 wxPoint *arg3 = (wxPoint *) 0 ;
10665 int arg4 = (int) 0 ;
10666 int arg5 = (int) 0 ;
10667 PyObject * obj0 = 0 ;
10668 PyObject * obj1 = 0 ;
10669 char *kwnames[] = {
10670 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10671 };
10672
10673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10675 {
10676 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10677 if (arg3 == NULL) SWIG_fail;
10678 }
10679 {
10680 PyThreadState* __tstate = wxPyBeginAllowThreads();
10681 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10682
10683 wxPyEndAllowThreads(__tstate);
10684 if (PyErr_Occurred()) SWIG_fail;
10685 }
10686 Py_INCREF(Py_None); resultobj = Py_None;
10687 {
10688 if (arg3) delete [] arg3;
10689 }
10690 return resultobj;
10691 fail:
10692 {
10693 if (arg3) delete [] arg3;
10694 }
10695 return NULL;
10696 }
10697
10698
10699 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10700 PyObject *resultobj;
10701 wxDC *arg1 = (wxDC *) 0 ;
10702 int arg2 ;
10703 wxPoint *arg3 = (wxPoint *) 0 ;
10704 int arg4 = (int) 0 ;
10705 int arg5 = (int) 0 ;
10706 int arg6 = (int) wxODDEVEN_RULE ;
10707 PyObject * obj0 = 0 ;
10708 PyObject * obj1 = 0 ;
10709 char *kwnames[] = {
10710 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10711 };
10712
10713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10715 {
10716 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10717 if (arg3 == NULL) SWIG_fail;
10718 }
10719 {
10720 PyThreadState* __tstate = wxPyBeginAllowThreads();
10721 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10722
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 Py_INCREF(Py_None); resultobj = Py_None;
10727 {
10728 if (arg3) delete [] arg3;
10729 }
10730 return resultobj;
10731 fail:
10732 {
10733 if (arg3) delete [] arg3;
10734 }
10735 return NULL;
10736 }
10737
10738
10739 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10740 PyObject *resultobj;
10741 wxDC *arg1 = (wxDC *) 0 ;
10742 wxString *arg2 = 0 ;
10743 wxRect *arg3 = 0 ;
10744 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10745 int arg5 = (int) -1 ;
10746 bool temp2 = False ;
10747 wxRect temp3 ;
10748 PyObject * obj0 = 0 ;
10749 PyObject * obj1 = 0 ;
10750 PyObject * obj2 = 0 ;
10751 char *kwnames[] = {
10752 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10753 };
10754
10755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10757 {
10758 arg2 = wxString_in_helper(obj1);
10759 if (arg2 == NULL) SWIG_fail;
10760 temp2 = True;
10761 }
10762 {
10763 arg3 = &temp3;
10764 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
10765 }
10766 {
10767 PyThreadState* __tstate = wxPyBeginAllowThreads();
10768 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
10769
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 Py_INCREF(Py_None); resultobj = Py_None;
10774 {
10775 if (temp2)
10776 delete arg2;
10777 }
10778 return resultobj;
10779 fail:
10780 {
10781 if (temp2)
10782 delete arg2;
10783 }
10784 return NULL;
10785 }
10786
10787
10788 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10789 PyObject *resultobj;
10790 wxDC *arg1 = (wxDC *) 0 ;
10791 wxString *arg2 = 0 ;
10792 wxBitmap *arg3 = 0 ;
10793 wxRect *arg4 = 0 ;
10794 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10795 int arg6 = (int) -1 ;
10796 wxRect result;
10797 bool temp2 = False ;
10798 wxRect temp4 ;
10799 PyObject * obj0 = 0 ;
10800 PyObject * obj1 = 0 ;
10801 PyObject * obj2 = 0 ;
10802 PyObject * obj3 = 0 ;
10803 char *kwnames[] = {
10804 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10805 };
10806
10807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
10808 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10809 {
10810 arg2 = wxString_in_helper(obj1);
10811 if (arg2 == NULL) SWIG_fail;
10812 temp2 = True;
10813 }
10814 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10815 if (arg3 == NULL) {
10816 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10817 }
10818 {
10819 arg4 = &temp4;
10820 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
10821 }
10822 {
10823 PyThreadState* __tstate = wxPyBeginAllowThreads();
10824 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
10825
10826 wxPyEndAllowThreads(__tstate);
10827 if (PyErr_Occurred()) SWIG_fail;
10828 }
10829 {
10830 wxRect * resultptr;
10831 resultptr = new wxRect((wxRect &) result);
10832 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
10833 }
10834 {
10835 if (temp2)
10836 delete arg2;
10837 }
10838 return resultobj;
10839 fail:
10840 {
10841 if (temp2)
10842 delete arg2;
10843 }
10844 return NULL;
10845 }
10846
10847
10848 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
10849 PyObject *resultobj;
10850 wxDC *arg1 = (wxDC *) 0 ;
10851 int arg2 ;
10852 wxPoint *arg3 = (wxPoint *) 0 ;
10853 PyObject * obj0 = 0 ;
10854 PyObject * obj1 = 0 ;
10855 char *kwnames[] = {
10856 (char *) "self",(char *) "points", NULL
10857 };
10858
10859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
10860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10861 {
10862 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10863 if (arg3 == NULL) SWIG_fail;
10864 }
10865 {
10866 PyThreadState* __tstate = wxPyBeginAllowThreads();
10867 (arg1)->DrawSpline(arg2,arg3);
10868
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 Py_INCREF(Py_None); resultobj = Py_None;
10873 {
10874 if (arg3) delete [] arg3;
10875 }
10876 return resultobj;
10877 fail:
10878 {
10879 if (arg3) delete [] arg3;
10880 }
10881 return NULL;
10882 }
10883
10884
10885 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10886 PyObject *resultobj;
10887 wxDC *arg1 = (wxDC *) 0 ;
10888 PyObject * obj0 = 0 ;
10889 char *kwnames[] = {
10890 (char *) "self", NULL
10891 };
10892
10893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
10894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10895 {
10896 PyThreadState* __tstate = wxPyBeginAllowThreads();
10897 (arg1)->Clear();
10898
10899 wxPyEndAllowThreads(__tstate);
10900 if (PyErr_Occurred()) SWIG_fail;
10901 }
10902 Py_INCREF(Py_None); resultobj = Py_None;
10903 return resultobj;
10904 fail:
10905 return NULL;
10906 }
10907
10908
10909 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10910 PyObject *resultobj;
10911 wxDC *arg1 = (wxDC *) 0 ;
10912 wxString *arg2 = 0 ;
10913 bool result;
10914 bool temp2 = False ;
10915 PyObject * obj0 = 0 ;
10916 PyObject * obj1 = 0 ;
10917 char *kwnames[] = {
10918 (char *) "self",(char *) "message", NULL
10919 };
10920
10921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
10922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10923 {
10924 arg2 = wxString_in_helper(obj1);
10925 if (arg2 == NULL) SWIG_fail;
10926 temp2 = True;
10927 }
10928 {
10929 PyThreadState* __tstate = wxPyBeginAllowThreads();
10930 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
10931
10932 wxPyEndAllowThreads(__tstate);
10933 if (PyErr_Occurred()) SWIG_fail;
10934 }
10935 resultobj = PyInt_FromLong((long)result);
10936 {
10937 if (temp2)
10938 delete arg2;
10939 }
10940 return resultobj;
10941 fail:
10942 {
10943 if (temp2)
10944 delete arg2;
10945 }
10946 return NULL;
10947 }
10948
10949
10950 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10951 PyObject *resultobj;
10952 wxDC *arg1 = (wxDC *) 0 ;
10953 PyObject * obj0 = 0 ;
10954 char *kwnames[] = {
10955 (char *) "self", NULL
10956 };
10957
10958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
10959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10960 {
10961 PyThreadState* __tstate = wxPyBeginAllowThreads();
10962 (arg1)->EndDoc();
10963
10964 wxPyEndAllowThreads(__tstate);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
10967 Py_INCREF(Py_None); resultobj = Py_None;
10968 return resultobj;
10969 fail:
10970 return NULL;
10971 }
10972
10973
10974 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10975 PyObject *resultobj;
10976 wxDC *arg1 = (wxDC *) 0 ;
10977 PyObject * obj0 = 0 ;
10978 char *kwnames[] = {
10979 (char *) "self", NULL
10980 };
10981
10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
10983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 (arg1)->StartPage();
10987
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 Py_INCREF(Py_None); resultobj = Py_None;
10992 return resultobj;
10993 fail:
10994 return NULL;
10995 }
10996
10997
10998 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10999 PyObject *resultobj;
11000 wxDC *arg1 = (wxDC *) 0 ;
11001 PyObject * obj0 = 0 ;
11002 char *kwnames[] = {
11003 (char *) "self", NULL
11004 };
11005
11006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
11007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 (arg1)->EndPage();
11011
11012 wxPyEndAllowThreads(__tstate);
11013 if (PyErr_Occurred()) SWIG_fail;
11014 }
11015 Py_INCREF(Py_None); resultobj = Py_None;
11016 return resultobj;
11017 fail:
11018 return NULL;
11019 }
11020
11021
11022 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11023 PyObject *resultobj;
11024 wxDC *arg1 = (wxDC *) 0 ;
11025 wxFont *arg2 = 0 ;
11026 PyObject * obj0 = 0 ;
11027 PyObject * obj1 = 0 ;
11028 char *kwnames[] = {
11029 (char *) "self",(char *) "font", NULL
11030 };
11031
11032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
11033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11034 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11035 if (arg2 == NULL) {
11036 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11037 }
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 (arg1)->SetFont((wxFont const &)*arg2);
11041
11042 wxPyEndAllowThreads(__tstate);
11043 if (PyErr_Occurred()) SWIG_fail;
11044 }
11045 Py_INCREF(Py_None); resultobj = Py_None;
11046 return resultobj;
11047 fail:
11048 return NULL;
11049 }
11050
11051
11052 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
11053 PyObject *resultobj;
11054 wxDC *arg1 = (wxDC *) 0 ;
11055 wxPen *arg2 = 0 ;
11056 PyObject * obj0 = 0 ;
11057 PyObject * obj1 = 0 ;
11058 char *kwnames[] = {
11059 (char *) "self",(char *) "pen", NULL
11060 };
11061
11062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
11063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11064 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11065 if (arg2 == NULL) {
11066 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11067 }
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 (arg1)->SetPen((wxPen const &)*arg2);
11071
11072 wxPyEndAllowThreads(__tstate);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 }
11075 Py_INCREF(Py_None); resultobj = Py_None;
11076 return resultobj;
11077 fail:
11078 return NULL;
11079 }
11080
11081
11082 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11083 PyObject *resultobj;
11084 wxDC *arg1 = (wxDC *) 0 ;
11085 wxBrush *arg2 = 0 ;
11086 PyObject * obj0 = 0 ;
11087 PyObject * obj1 = 0 ;
11088 char *kwnames[] = {
11089 (char *) "self",(char *) "brush", NULL
11090 };
11091
11092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
11093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11094 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11095 if (arg2 == NULL) {
11096 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11097 }
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 (arg1)->SetBrush((wxBrush const &)*arg2);
11101
11102 wxPyEndAllowThreads(__tstate);
11103 if (PyErr_Occurred()) SWIG_fail;
11104 }
11105 Py_INCREF(Py_None); resultobj = Py_None;
11106 return resultobj;
11107 fail:
11108 return NULL;
11109 }
11110
11111
11112 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11113 PyObject *resultobj;
11114 wxDC *arg1 = (wxDC *) 0 ;
11115 wxBrush *arg2 = 0 ;
11116 PyObject * obj0 = 0 ;
11117 PyObject * obj1 = 0 ;
11118 char *kwnames[] = {
11119 (char *) "self",(char *) "brush", NULL
11120 };
11121
11122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
11123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11124 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11125 if (arg2 == NULL) {
11126 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11127 }
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 (arg1)->SetBackground((wxBrush const &)*arg2);
11131
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 }
11135 Py_INCREF(Py_None); resultobj = Py_None;
11136 return resultobj;
11137 fail:
11138 return NULL;
11139 }
11140
11141
11142 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11143 PyObject *resultobj;
11144 wxDC *arg1 = (wxDC *) 0 ;
11145 int arg2 ;
11146 PyObject * obj0 = 0 ;
11147 char *kwnames[] = {
11148 (char *) "self",(char *) "mode", NULL
11149 };
11150
11151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
11152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11153 {
11154 PyThreadState* __tstate = wxPyBeginAllowThreads();
11155 (arg1)->SetBackgroundMode(arg2);
11156
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 Py_INCREF(Py_None); resultobj = Py_None;
11161 return resultobj;
11162 fail:
11163 return NULL;
11164 }
11165
11166
11167 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11168 PyObject *resultobj;
11169 wxDC *arg1 = (wxDC *) 0 ;
11170 wxPalette *arg2 = 0 ;
11171 PyObject * obj0 = 0 ;
11172 PyObject * obj1 = 0 ;
11173 char *kwnames[] = {
11174 (char *) "self",(char *) "palette", NULL
11175 };
11176
11177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
11178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11179 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11180 if (arg2 == NULL) {
11181 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11182 }
11183 {
11184 PyThreadState* __tstate = wxPyBeginAllowThreads();
11185 (arg1)->SetPalette((wxPalette const &)*arg2);
11186
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 Py_INCREF(Py_None); resultobj = Py_None;
11191 return resultobj;
11192 fail:
11193 return NULL;
11194 }
11195
11196
11197 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11198 PyObject *resultobj;
11199 wxDC *arg1 = (wxDC *) 0 ;
11200 int arg2 ;
11201 int arg3 ;
11202 int arg4 ;
11203 int arg5 ;
11204 PyObject * obj0 = 0 ;
11205 char *kwnames[] = {
11206 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11207 };
11208
11209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
11210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
11213 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11214
11215 wxPyEndAllowThreads(__tstate);
11216 if (PyErr_Occurred()) SWIG_fail;
11217 }
11218 Py_INCREF(Py_None); resultobj = Py_None;
11219 return resultobj;
11220 fail:
11221 return NULL;
11222 }
11223
11224
11225 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11226 PyObject *resultobj;
11227 wxDC *arg1 = (wxDC *) 0 ;
11228 wxPoint *arg2 = 0 ;
11229 wxSize *arg3 = 0 ;
11230 wxPoint temp2 ;
11231 wxSize temp3 ;
11232 PyObject * obj0 = 0 ;
11233 PyObject * obj1 = 0 ;
11234 PyObject * obj2 = 0 ;
11235 char *kwnames[] = {
11236 (char *) "self",(char *) "pt",(char *) "sz", NULL
11237 };
11238
11239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
11240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11241 {
11242 arg2 = &temp2;
11243 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11244 }
11245 {
11246 arg3 = &temp3;
11247 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11248 }
11249 {
11250 PyThreadState* __tstate = wxPyBeginAllowThreads();
11251 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
11252
11253 wxPyEndAllowThreads(__tstate);
11254 if (PyErr_Occurred()) SWIG_fail;
11255 }
11256 Py_INCREF(Py_None); resultobj = Py_None;
11257 return resultobj;
11258 fail:
11259 return NULL;
11260 }
11261
11262
11263 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11264 PyObject *resultobj;
11265 wxDC *arg1 = (wxDC *) 0 ;
11266 wxRect *arg2 = 0 ;
11267 wxRect temp2 ;
11268 PyObject * obj0 = 0 ;
11269 PyObject * obj1 = 0 ;
11270 char *kwnames[] = {
11271 (char *) "self",(char *) "rect", NULL
11272 };
11273
11274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
11275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11276 {
11277 arg2 = &temp2;
11278 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11279 }
11280 {
11281 PyThreadState* __tstate = wxPyBeginAllowThreads();
11282 (arg1)->SetClippingRegion((wxRect const &)*arg2);
11283
11284 wxPyEndAllowThreads(__tstate);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 Py_INCREF(Py_None); resultobj = Py_None;
11288 return resultobj;
11289 fail:
11290 return NULL;
11291 }
11292
11293
11294 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11295 PyObject *resultobj;
11296 wxDC *arg1 = (wxDC *) 0 ;
11297 wxRegion *arg2 = 0 ;
11298 PyObject * obj0 = 0 ;
11299 PyObject * obj1 = 0 ;
11300 char *kwnames[] = {
11301 (char *) "self",(char *) "region", NULL
11302 };
11303
11304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
11305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11306 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11307 if (arg2 == NULL) {
11308 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11309 }
11310 {
11311 PyThreadState* __tstate = wxPyBeginAllowThreads();
11312 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
11313
11314 wxPyEndAllowThreads(__tstate);
11315 if (PyErr_Occurred()) SWIG_fail;
11316 }
11317 Py_INCREF(Py_None); resultobj = Py_None;
11318 return resultobj;
11319 fail:
11320 return NULL;
11321 }
11322
11323
11324 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11325 PyObject *resultobj;
11326 wxDC *arg1 = (wxDC *) 0 ;
11327 PyObject * obj0 = 0 ;
11328 char *kwnames[] = {
11329 (char *) "self", NULL
11330 };
11331
11332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
11333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 (arg1)->DestroyClippingRegion();
11337
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 Py_INCREF(Py_None); resultobj = Py_None;
11342 return resultobj;
11343 fail:
11344 return NULL;
11345 }
11346
11347
11348 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11349 PyObject *resultobj;
11350 wxDC *arg1 = (wxDC *) 0 ;
11351 int *arg2 = (int *) 0 ;
11352 int *arg3 = (int *) 0 ;
11353 int *arg4 = (int *) 0 ;
11354 int *arg5 = (int *) 0 ;
11355 int temp2 ;
11356 int temp3 ;
11357 int temp4 ;
11358 int temp5 ;
11359 PyObject * obj0 = 0 ;
11360 char *kwnames[] = {
11361 (char *) "self", NULL
11362 };
11363
11364 arg2 = &temp2;
11365 arg3 = &temp3;
11366 arg4 = &temp4;
11367 arg5 = &temp5;
11368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
11369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11370 {
11371 PyThreadState* __tstate = wxPyBeginAllowThreads();
11372 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
11373
11374 wxPyEndAllowThreads(__tstate);
11375 if (PyErr_Occurred()) SWIG_fail;
11376 }
11377 Py_INCREF(Py_None); resultobj = Py_None;
11378 {
11379 PyObject *o = PyInt_FromLong((long) (*arg2));
11380 resultobj = t_output_helper(resultobj,o);
11381 }
11382 {
11383 PyObject *o = PyInt_FromLong((long) (*arg3));
11384 resultobj = t_output_helper(resultobj,o);
11385 }
11386 {
11387 PyObject *o = PyInt_FromLong((long) (*arg4));
11388 resultobj = t_output_helper(resultobj,o);
11389 }
11390 {
11391 PyObject *o = PyInt_FromLong((long) (*arg5));
11392 resultobj = t_output_helper(resultobj,o);
11393 }
11394 return resultobj;
11395 fail:
11396 return NULL;
11397 }
11398
11399
11400 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11401 PyObject *resultobj;
11402 wxDC *arg1 = (wxDC *) 0 ;
11403 wxRect result;
11404 PyObject * obj0 = 0 ;
11405 char *kwnames[] = {
11406 (char *) "self", NULL
11407 };
11408
11409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
11410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11411 {
11412 PyThreadState* __tstate = wxPyBeginAllowThreads();
11413 result = wxDC_GetClippingRect(arg1);
11414
11415 wxPyEndAllowThreads(__tstate);
11416 if (PyErr_Occurred()) SWIG_fail;
11417 }
11418 {
11419 wxRect * resultptr;
11420 resultptr = new wxRect((wxRect &) result);
11421 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11422 }
11423 return resultobj;
11424 fail:
11425 return NULL;
11426 }
11427
11428
11429 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11430 PyObject *resultobj;
11431 wxDC *arg1 = (wxDC *) 0 ;
11432 int result;
11433 PyObject * obj0 = 0 ;
11434 char *kwnames[] = {
11435 (char *) "self", NULL
11436 };
11437
11438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 result = (int)((wxDC const *)arg1)->GetCharHeight();
11443
11444 wxPyEndAllowThreads(__tstate);
11445 if (PyErr_Occurred()) SWIG_fail;
11446 }
11447 resultobj = PyInt_FromLong((long)result);
11448 return resultobj;
11449 fail:
11450 return NULL;
11451 }
11452
11453
11454 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11455 PyObject *resultobj;
11456 wxDC *arg1 = (wxDC *) 0 ;
11457 int result;
11458 PyObject * obj0 = 0 ;
11459 char *kwnames[] = {
11460 (char *) "self", NULL
11461 };
11462
11463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 result = (int)((wxDC const *)arg1)->GetCharWidth();
11468
11469 wxPyEndAllowThreads(__tstate);
11470 if (PyErr_Occurred()) SWIG_fail;
11471 }
11472 resultobj = PyInt_FromLong((long)result);
11473 return resultobj;
11474 fail:
11475 return NULL;
11476 }
11477
11478
11479 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11480 PyObject *resultobj;
11481 wxDC *arg1 = (wxDC *) 0 ;
11482 wxString *arg2 = 0 ;
11483 int *arg3 = (int *) 0 ;
11484 int *arg4 = (int *) 0 ;
11485 bool temp2 = False ;
11486 int temp3 ;
11487 int temp4 ;
11488 PyObject * obj0 = 0 ;
11489 PyObject * obj1 = 0 ;
11490 char *kwnames[] = {
11491 (char *) "self",(char *) "string", NULL
11492 };
11493
11494 arg3 = &temp3;
11495 arg4 = &temp4;
11496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11498 {
11499 arg2 = wxString_in_helper(obj1);
11500 if (arg2 == NULL) SWIG_fail;
11501 temp2 = True;
11502 }
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11506
11507 wxPyEndAllowThreads(__tstate);
11508 if (PyErr_Occurred()) SWIG_fail;
11509 }
11510 Py_INCREF(Py_None); resultobj = Py_None;
11511 {
11512 PyObject *o = PyInt_FromLong((long) (*arg3));
11513 resultobj = t_output_helper(resultobj,o);
11514 }
11515 {
11516 PyObject *o = PyInt_FromLong((long) (*arg4));
11517 resultobj = t_output_helper(resultobj,o);
11518 }
11519 {
11520 if (temp2)
11521 delete arg2;
11522 }
11523 return resultobj;
11524 fail:
11525 {
11526 if (temp2)
11527 delete arg2;
11528 }
11529 return NULL;
11530 }
11531
11532
11533 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11534 PyObject *resultobj;
11535 wxDC *arg1 = (wxDC *) 0 ;
11536 wxString *arg2 = 0 ;
11537 int *arg3 = (int *) 0 ;
11538 int *arg4 = (int *) 0 ;
11539 int *arg5 = (int *) 0 ;
11540 int *arg6 = (int *) 0 ;
11541 wxFont *arg7 = (wxFont *) NULL ;
11542 bool temp2 = False ;
11543 int temp3 ;
11544 int temp4 ;
11545 int temp5 ;
11546 int temp6 ;
11547 PyObject * obj0 = 0 ;
11548 PyObject * obj1 = 0 ;
11549 PyObject * obj2 = 0 ;
11550 char *kwnames[] = {
11551 (char *) "self",(char *) "string",(char *) "font", NULL
11552 };
11553
11554 arg3 = &temp3;
11555 arg4 = &temp4;
11556 arg5 = &temp5;
11557 arg6 = &temp6;
11558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11560 {
11561 arg2 = wxString_in_helper(obj1);
11562 if (arg2 == NULL) SWIG_fail;
11563 temp2 = True;
11564 }
11565 if (obj2) {
11566 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11567 }
11568 {
11569 PyThreadState* __tstate = wxPyBeginAllowThreads();
11570 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11571
11572 wxPyEndAllowThreads(__tstate);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 Py_INCREF(Py_None); resultobj = Py_None;
11576 {
11577 PyObject *o = PyInt_FromLong((long) (*arg3));
11578 resultobj = t_output_helper(resultobj,o);
11579 }
11580 {
11581 PyObject *o = PyInt_FromLong((long) (*arg4));
11582 resultobj = t_output_helper(resultobj,o);
11583 }
11584 {
11585 PyObject *o = PyInt_FromLong((long) (*arg5));
11586 resultobj = t_output_helper(resultobj,o);
11587 }
11588 {
11589 PyObject *o = PyInt_FromLong((long) (*arg6));
11590 resultobj = t_output_helper(resultobj,o);
11591 }
11592 {
11593 if (temp2)
11594 delete arg2;
11595 }
11596 return resultobj;
11597 fail:
11598 {
11599 if (temp2)
11600 delete arg2;
11601 }
11602 return NULL;
11603 }
11604
11605
11606 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11607 PyObject *resultobj;
11608 wxDC *arg1 = (wxDC *) 0 ;
11609 wxString *arg2 = 0 ;
11610 int *arg3 = (int *) 0 ;
11611 int *arg4 = (int *) 0 ;
11612 int *arg5 = (int *) 0 ;
11613 wxFont *arg6 = (wxFont *) NULL ;
11614 bool temp2 = False ;
11615 int temp3 ;
11616 int temp4 ;
11617 int temp5 ;
11618 PyObject * obj0 = 0 ;
11619 PyObject * obj1 = 0 ;
11620 PyObject * obj2 = 0 ;
11621 char *kwnames[] = {
11622 (char *) "self",(char *) "text",(char *) "font", NULL
11623 };
11624
11625 arg3 = &temp3;
11626 arg4 = &temp4;
11627 arg5 = &temp5;
11628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11630 {
11631 arg2 = wxString_in_helper(obj1);
11632 if (arg2 == NULL) SWIG_fail;
11633 temp2 = True;
11634 }
11635 if (obj2) {
11636 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11637 }
11638 {
11639 PyThreadState* __tstate = wxPyBeginAllowThreads();
11640 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
11641
11642 wxPyEndAllowThreads(__tstate);
11643 if (PyErr_Occurred()) SWIG_fail;
11644 }
11645 Py_INCREF(Py_None); resultobj = Py_None;
11646 {
11647 PyObject *o = PyInt_FromLong((long) (*arg3));
11648 resultobj = t_output_helper(resultobj,o);
11649 }
11650 {
11651 PyObject *o = PyInt_FromLong((long) (*arg4));
11652 resultobj = t_output_helper(resultobj,o);
11653 }
11654 {
11655 PyObject *o = PyInt_FromLong((long) (*arg5));
11656 resultobj = t_output_helper(resultobj,o);
11657 }
11658 {
11659 if (temp2)
11660 delete arg2;
11661 }
11662 return resultobj;
11663 fail:
11664 {
11665 if (temp2)
11666 delete arg2;
11667 }
11668 return NULL;
11669 }
11670
11671
11672 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11673 PyObject *resultobj;
11674 wxDC *arg1 = (wxDC *) 0 ;
11675 wxSize result;
11676 PyObject * obj0 = 0 ;
11677 char *kwnames[] = {
11678 (char *) "self", NULL
11679 };
11680
11681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11683 {
11684 PyThreadState* __tstate = wxPyBeginAllowThreads();
11685 result = (arg1)->GetSize();
11686
11687 wxPyEndAllowThreads(__tstate);
11688 if (PyErr_Occurred()) SWIG_fail;
11689 }
11690 {
11691 wxSize * resultptr;
11692 resultptr = new wxSize((wxSize &) result);
11693 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11694 }
11695 return resultobj;
11696 fail:
11697 return NULL;
11698 }
11699
11700
11701 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11702 PyObject *resultobj;
11703 wxDC *arg1 = (wxDC *) 0 ;
11704 int *arg2 = (int *) 0 ;
11705 int *arg3 = (int *) 0 ;
11706 int temp2 ;
11707 int temp3 ;
11708 PyObject * obj0 = 0 ;
11709 char *kwnames[] = {
11710 (char *) "self", NULL
11711 };
11712
11713 arg2 = &temp2;
11714 arg3 = &temp3;
11715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11717 {
11718 PyThreadState* __tstate = wxPyBeginAllowThreads();
11719 (arg1)->GetSize(arg2,arg3);
11720
11721 wxPyEndAllowThreads(__tstate);
11722 if (PyErr_Occurred()) SWIG_fail;
11723 }
11724 Py_INCREF(Py_None); resultobj = Py_None;
11725 {
11726 PyObject *o = PyInt_FromLong((long) (*arg2));
11727 resultobj = t_output_helper(resultobj,o);
11728 }
11729 {
11730 PyObject *o = PyInt_FromLong((long) (*arg3));
11731 resultobj = t_output_helper(resultobj,o);
11732 }
11733 return resultobj;
11734 fail:
11735 return NULL;
11736 }
11737
11738
11739 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
11740 PyObject *resultobj;
11741 wxDC *arg1 = (wxDC *) 0 ;
11742 wxSize result;
11743 PyObject * obj0 = 0 ;
11744 char *kwnames[] = {
11745 (char *) "self", NULL
11746 };
11747
11748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
11749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11750 {
11751 PyThreadState* __tstate = wxPyBeginAllowThreads();
11752 result = ((wxDC const *)arg1)->GetSizeMM();
11753
11754 wxPyEndAllowThreads(__tstate);
11755 if (PyErr_Occurred()) SWIG_fail;
11756 }
11757 {
11758 wxSize * resultptr;
11759 resultptr = new wxSize((wxSize &) result);
11760 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11761 }
11762 return resultobj;
11763 fail:
11764 return NULL;
11765 }
11766
11767
11768 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11769 PyObject *resultobj;
11770 wxDC *arg1 = (wxDC *) 0 ;
11771 int *arg2 = (int *) 0 ;
11772 int *arg3 = (int *) 0 ;
11773 int temp2 ;
11774 int temp3 ;
11775 PyObject * obj0 = 0 ;
11776 char *kwnames[] = {
11777 (char *) "self", NULL
11778 };
11779
11780 arg2 = &temp2;
11781 arg3 = &temp3;
11782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
11783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11784 {
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
11787
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 Py_INCREF(Py_None); resultobj = Py_None;
11792 {
11793 PyObject *o = PyInt_FromLong((long) (*arg2));
11794 resultobj = t_output_helper(resultobj,o);
11795 }
11796 {
11797 PyObject *o = PyInt_FromLong((long) (*arg3));
11798 resultobj = t_output_helper(resultobj,o);
11799 }
11800 return resultobj;
11801 fail:
11802 return NULL;
11803 }
11804
11805
11806 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
11807 PyObject *resultobj;
11808 wxDC *arg1 = (wxDC *) 0 ;
11809 int arg2 ;
11810 int result;
11811 PyObject * obj0 = 0 ;
11812 char *kwnames[] = {
11813 (char *) "self",(char *) "x", NULL
11814 };
11815
11816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
11817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11818 {
11819 PyThreadState* __tstate = wxPyBeginAllowThreads();
11820 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
11821
11822 wxPyEndAllowThreads(__tstate);
11823 if (PyErr_Occurred()) SWIG_fail;
11824 }
11825 resultobj = PyInt_FromLong((long)result);
11826 return resultobj;
11827 fail:
11828 return NULL;
11829 }
11830
11831
11832 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
11833 PyObject *resultobj;
11834 wxDC *arg1 = (wxDC *) 0 ;
11835 int arg2 ;
11836 int result;
11837 PyObject * obj0 = 0 ;
11838 char *kwnames[] = {
11839 (char *) "self",(char *) "y", NULL
11840 };
11841
11842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
11843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11844 {
11845 PyThreadState* __tstate = wxPyBeginAllowThreads();
11846 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
11847
11848 wxPyEndAllowThreads(__tstate);
11849 if (PyErr_Occurred()) SWIG_fail;
11850 }
11851 resultobj = PyInt_FromLong((long)result);
11852 return resultobj;
11853 fail:
11854 return NULL;
11855 }
11856
11857
11858 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11859 PyObject *resultobj;
11860 wxDC *arg1 = (wxDC *) 0 ;
11861 int arg2 ;
11862 int result;
11863 PyObject * obj0 = 0 ;
11864 char *kwnames[] = {
11865 (char *) "self",(char *) "x", NULL
11866 };
11867
11868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
11869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11870 {
11871 PyThreadState* __tstate = wxPyBeginAllowThreads();
11872 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
11873
11874 wxPyEndAllowThreads(__tstate);
11875 if (PyErr_Occurred()) SWIG_fail;
11876 }
11877 resultobj = PyInt_FromLong((long)result);
11878 return resultobj;
11879 fail:
11880 return NULL;
11881 }
11882
11883
11884 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11885 PyObject *resultobj;
11886 wxDC *arg1 = (wxDC *) 0 ;
11887 int arg2 ;
11888 int result;
11889 PyObject * obj0 = 0 ;
11890 char *kwnames[] = {
11891 (char *) "self",(char *) "y", NULL
11892 };
11893
11894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
11895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11896 {
11897 PyThreadState* __tstate = wxPyBeginAllowThreads();
11898 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
11899
11900 wxPyEndAllowThreads(__tstate);
11901 if (PyErr_Occurred()) SWIG_fail;
11902 }
11903 resultobj = PyInt_FromLong((long)result);
11904 return resultobj;
11905 fail:
11906 return NULL;
11907 }
11908
11909
11910 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
11911 PyObject *resultobj;
11912 wxDC *arg1 = (wxDC *) 0 ;
11913 int arg2 ;
11914 int result;
11915 PyObject * obj0 = 0 ;
11916 char *kwnames[] = {
11917 (char *) "self",(char *) "x", NULL
11918 };
11919
11920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
11921 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11922 {
11923 PyThreadState* __tstate = wxPyBeginAllowThreads();
11924 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
11925
11926 wxPyEndAllowThreads(__tstate);
11927 if (PyErr_Occurred()) SWIG_fail;
11928 }
11929 resultobj = PyInt_FromLong((long)result);
11930 return resultobj;
11931 fail:
11932 return NULL;
11933 }
11934
11935
11936 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj;
11938 wxDC *arg1 = (wxDC *) 0 ;
11939 int arg2 ;
11940 int result;
11941 PyObject * obj0 = 0 ;
11942 char *kwnames[] = {
11943 (char *) "self",(char *) "y", NULL
11944 };
11945
11946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
11947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11948 {
11949 PyThreadState* __tstate = wxPyBeginAllowThreads();
11950 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
11951
11952 wxPyEndAllowThreads(__tstate);
11953 if (PyErr_Occurred()) SWIG_fail;
11954 }
11955 resultobj = PyInt_FromLong((long)result);
11956 return resultobj;
11957 fail:
11958 return NULL;
11959 }
11960
11961
11962 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11963 PyObject *resultobj;
11964 wxDC *arg1 = (wxDC *) 0 ;
11965 int arg2 ;
11966 int result;
11967 PyObject * obj0 = 0 ;
11968 char *kwnames[] = {
11969 (char *) "self",(char *) "x", NULL
11970 };
11971
11972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
11973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11974 {
11975 PyThreadState* __tstate = wxPyBeginAllowThreads();
11976 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
11977
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 resultobj = PyInt_FromLong((long)result);
11982 return resultobj;
11983 fail:
11984 return NULL;
11985 }
11986
11987
11988 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11989 PyObject *resultobj;
11990 wxDC *arg1 = (wxDC *) 0 ;
11991 int arg2 ;
11992 int result;
11993 PyObject * obj0 = 0 ;
11994 char *kwnames[] = {
11995 (char *) "self",(char *) "y", NULL
11996 };
11997
11998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail;
11999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12000 {
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
12003
12004 wxPyEndAllowThreads(__tstate);
12005 if (PyErr_Occurred()) SWIG_fail;
12006 }
12007 resultobj = PyInt_FromLong((long)result);
12008 return resultobj;
12009 fail:
12010 return NULL;
12011 }
12012
12013
12014 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12015 PyObject *resultobj;
12016 wxDC *arg1 = (wxDC *) 0 ;
12017 bool result;
12018 PyObject * obj0 = 0 ;
12019 char *kwnames[] = {
12020 (char *) "self", NULL
12021 };
12022
12023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
12024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12025 {
12026 PyThreadState* __tstate = wxPyBeginAllowThreads();
12027 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
12028
12029 wxPyEndAllowThreads(__tstate);
12030 if (PyErr_Occurred()) SWIG_fail;
12031 }
12032 resultobj = PyInt_FromLong((long)result);
12033 return resultobj;
12034 fail:
12035 return NULL;
12036 }
12037
12038
12039 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12040 PyObject *resultobj;
12041 wxDC *arg1 = (wxDC *) 0 ;
12042 bool result;
12043 PyObject * obj0 = 0 ;
12044 char *kwnames[] = {
12045 (char *) "self", NULL
12046 };
12047
12048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
12049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12050 {
12051 PyThreadState* __tstate = wxPyBeginAllowThreads();
12052 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
12053
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 resultobj = PyInt_FromLong((long)result);
12058 return resultobj;
12059 fail:
12060 return NULL;
12061 }
12062
12063
12064 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
12065 PyObject *resultobj;
12066 wxDC *arg1 = (wxDC *) 0 ;
12067 int result;
12068 PyObject * obj0 = 0 ;
12069 char *kwnames[] = {
12070 (char *) "self", NULL
12071 };
12072
12073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
12074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12075 {
12076 PyThreadState* __tstate = wxPyBeginAllowThreads();
12077 result = (int)((wxDC const *)arg1)->GetDepth();
12078
12079 wxPyEndAllowThreads(__tstate);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 resultobj = PyInt_FromLong((long)result);
12083 return resultobj;
12084 fail:
12085 return NULL;
12086 }
12087
12088
12089 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
12090 PyObject *resultobj;
12091 wxDC *arg1 = (wxDC *) 0 ;
12092 wxSize result;
12093 PyObject * obj0 = 0 ;
12094 char *kwnames[] = {
12095 (char *) "self", NULL
12096 };
12097
12098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
12099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12100 {
12101 PyThreadState* __tstate = wxPyBeginAllowThreads();
12102 result = ((wxDC const *)arg1)->GetPPI();
12103
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 {
12108 wxSize * resultptr;
12109 resultptr = new wxSize((wxSize &) result);
12110 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12111 }
12112 return resultobj;
12113 fail:
12114 return NULL;
12115 }
12116
12117
12118 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
12119 PyObject *resultobj;
12120 wxDC *arg1 = (wxDC *) 0 ;
12121 bool result;
12122 PyObject * obj0 = 0 ;
12123 char *kwnames[] = {
12124 (char *) "self", NULL
12125 };
12126
12127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
12128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12129 {
12130 PyThreadState* __tstate = wxPyBeginAllowThreads();
12131 result = (bool)((wxDC const *)arg1)->Ok();
12132
12133 wxPyEndAllowThreads(__tstate);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 resultobj = PyInt_FromLong((long)result);
12137 return resultobj;
12138 fail:
12139 return NULL;
12140 }
12141
12142
12143 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12144 PyObject *resultobj;
12145 wxDC *arg1 = (wxDC *) 0 ;
12146 int result;
12147 PyObject * obj0 = 0 ;
12148 char *kwnames[] = {
12149 (char *) "self", NULL
12150 };
12151
12152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
12153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12154 {
12155 PyThreadState* __tstate = wxPyBeginAllowThreads();
12156 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
12157
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 resultobj = PyInt_FromLong((long)result);
12162 return resultobj;
12163 fail:
12164 return NULL;
12165 }
12166
12167
12168 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12169 PyObject *resultobj;
12170 wxDC *arg1 = (wxDC *) 0 ;
12171 wxBrush *result;
12172 PyObject * obj0 = 0 ;
12173 char *kwnames[] = {
12174 (char *) "self", NULL
12175 };
12176
12177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
12178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12179 {
12180 PyThreadState* __tstate = wxPyBeginAllowThreads();
12181 {
12182 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
12183 result = (wxBrush *) &_result_ref;
12184 }
12185
12186 wxPyEndAllowThreads(__tstate);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
12190 return resultobj;
12191 fail:
12192 return NULL;
12193 }
12194
12195
12196 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12197 PyObject *resultobj;
12198 wxDC *arg1 = (wxDC *) 0 ;
12199 wxBrush *result;
12200 PyObject * obj0 = 0 ;
12201 char *kwnames[] = {
12202 (char *) "self", NULL
12203 };
12204
12205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
12206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12207 {
12208 PyThreadState* __tstate = wxPyBeginAllowThreads();
12209 {
12210 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
12211 result = (wxBrush *) &_result_ref;
12212 }
12213
12214 wxPyEndAllowThreads(__tstate);
12215 if (PyErr_Occurred()) SWIG_fail;
12216 }
12217 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
12218 return resultobj;
12219 fail:
12220 return NULL;
12221 }
12222
12223
12224 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12225 PyObject *resultobj;
12226 wxDC *arg1 = (wxDC *) 0 ;
12227 wxFont *result;
12228 PyObject * obj0 = 0 ;
12229 char *kwnames[] = {
12230 (char *) "self", NULL
12231 };
12232
12233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
12234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12235 {
12236 PyThreadState* __tstate = wxPyBeginAllowThreads();
12237 {
12238 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
12239 result = (wxFont *) &_result_ref;
12240 }
12241
12242 wxPyEndAllowThreads(__tstate);
12243 if (PyErr_Occurred()) SWIG_fail;
12244 }
12245 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
12246 return resultobj;
12247 fail:
12248 return NULL;
12249 }
12250
12251
12252 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12253 PyObject *resultobj;
12254 wxDC *arg1 = (wxDC *) 0 ;
12255 wxPen *result;
12256 PyObject * obj0 = 0 ;
12257 char *kwnames[] = {
12258 (char *) "self", NULL
12259 };
12260
12261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
12262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12263 {
12264 PyThreadState* __tstate = wxPyBeginAllowThreads();
12265 {
12266 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
12267 result = (wxPen *) &_result_ref;
12268 }
12269
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
12274 return resultobj;
12275 fail:
12276 return NULL;
12277 }
12278
12279
12280 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12281 PyObject *resultobj;
12282 wxDC *arg1 = (wxDC *) 0 ;
12283 wxColour *result;
12284 PyObject * obj0 = 0 ;
12285 char *kwnames[] = {
12286 (char *) "self", NULL
12287 };
12288
12289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
12290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 {
12294 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
12295 result = (wxColour *) &_result_ref;
12296 }
12297
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12302 return resultobj;
12303 fail:
12304 return NULL;
12305 }
12306
12307
12308 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12309 PyObject *resultobj;
12310 wxDC *arg1 = (wxDC *) 0 ;
12311 wxColour *result;
12312 PyObject * obj0 = 0 ;
12313 char *kwnames[] = {
12314 (char *) "self", NULL
12315 };
12316
12317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
12318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12319 {
12320 PyThreadState* __tstate = wxPyBeginAllowThreads();
12321 {
12322 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
12323 result = (wxColour *) &_result_ref;
12324 }
12325
12326 wxPyEndAllowThreads(__tstate);
12327 if (PyErr_Occurred()) SWIG_fail;
12328 }
12329 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12330 return resultobj;
12331 fail:
12332 return NULL;
12333 }
12334
12335
12336 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12337 PyObject *resultobj;
12338 wxDC *arg1 = (wxDC *) 0 ;
12339 wxColour *arg2 = 0 ;
12340 wxColour temp2 ;
12341 PyObject * obj0 = 0 ;
12342 PyObject * obj1 = 0 ;
12343 char *kwnames[] = {
12344 (char *) "self",(char *) "colour", NULL
12345 };
12346
12347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
12348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12349 {
12350 arg2 = &temp2;
12351 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12352 }
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 (arg1)->SetTextForeground((wxColour const &)*arg2);
12356
12357 wxPyEndAllowThreads(__tstate);
12358 if (PyErr_Occurred()) SWIG_fail;
12359 }
12360 Py_INCREF(Py_None); resultobj = Py_None;
12361 return resultobj;
12362 fail:
12363 return NULL;
12364 }
12365
12366
12367 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12368 PyObject *resultobj;
12369 wxDC *arg1 = (wxDC *) 0 ;
12370 wxColour *arg2 = 0 ;
12371 wxColour temp2 ;
12372 PyObject * obj0 = 0 ;
12373 PyObject * obj1 = 0 ;
12374 char *kwnames[] = {
12375 (char *) "self",(char *) "colour", NULL
12376 };
12377
12378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
12379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12380 {
12381 arg2 = &temp2;
12382 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12383 }
12384 {
12385 PyThreadState* __tstate = wxPyBeginAllowThreads();
12386 (arg1)->SetTextBackground((wxColour const &)*arg2);
12387
12388 wxPyEndAllowThreads(__tstate);
12389 if (PyErr_Occurred()) SWIG_fail;
12390 }
12391 Py_INCREF(Py_None); resultobj = Py_None;
12392 return resultobj;
12393 fail:
12394 return NULL;
12395 }
12396
12397
12398 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12399 PyObject *resultobj;
12400 wxDC *arg1 = (wxDC *) 0 ;
12401 int result;
12402 PyObject * obj0 = 0 ;
12403 char *kwnames[] = {
12404 (char *) "self", NULL
12405 };
12406
12407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
12408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12409 {
12410 PyThreadState* __tstate = wxPyBeginAllowThreads();
12411 result = (int)((wxDC const *)arg1)->GetMapMode();
12412
12413 wxPyEndAllowThreads(__tstate);
12414 if (PyErr_Occurred()) SWIG_fail;
12415 }
12416 resultobj = PyInt_FromLong((long)result);
12417 return resultobj;
12418 fail:
12419 return NULL;
12420 }
12421
12422
12423 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12424 PyObject *resultobj;
12425 wxDC *arg1 = (wxDC *) 0 ;
12426 int arg2 ;
12427 PyObject * obj0 = 0 ;
12428 char *kwnames[] = {
12429 (char *) "self",(char *) "mode", NULL
12430 };
12431
12432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail;
12433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12434 {
12435 PyThreadState* __tstate = wxPyBeginAllowThreads();
12436 (arg1)->SetMapMode(arg2);
12437
12438 wxPyEndAllowThreads(__tstate);
12439 if (PyErr_Occurred()) SWIG_fail;
12440 }
12441 Py_INCREF(Py_None); resultobj = Py_None;
12442 return resultobj;
12443 fail:
12444 return NULL;
12445 }
12446
12447
12448 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12449 PyObject *resultobj;
12450 wxDC *arg1 = (wxDC *) 0 ;
12451 double *arg2 = (double *) 0 ;
12452 double *arg3 = (double *) 0 ;
12453 double temp2 ;
12454 double temp3 ;
12455 PyObject * obj0 = 0 ;
12456 char *kwnames[] = {
12457 (char *) "self", NULL
12458 };
12459
12460 arg2 = &temp2;
12461 arg3 = &temp3;
12462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12464 {
12465 PyThreadState* __tstate = wxPyBeginAllowThreads();
12466 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12467
12468 wxPyEndAllowThreads(__tstate);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 }
12471 Py_INCREF(Py_None); resultobj = Py_None;
12472 {
12473 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12474 resultobj = t_output_helper(resultobj,o);
12475 }
12476 {
12477 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12478 resultobj = t_output_helper(resultobj,o);
12479 }
12480 return resultobj;
12481 fail:
12482 return NULL;
12483 }
12484
12485
12486 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12487 PyObject *resultobj;
12488 wxDC *arg1 = (wxDC *) 0 ;
12489 double arg2 ;
12490 double arg3 ;
12491 PyObject * obj0 = 0 ;
12492 char *kwnames[] = {
12493 (char *) "self",(char *) "x",(char *) "y", NULL
12494 };
12495
12496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12498 {
12499 PyThreadState* __tstate = wxPyBeginAllowThreads();
12500 (arg1)->SetUserScale(arg2,arg3);
12501
12502 wxPyEndAllowThreads(__tstate);
12503 if (PyErr_Occurred()) SWIG_fail;
12504 }
12505 Py_INCREF(Py_None); resultobj = Py_None;
12506 return resultobj;
12507 fail:
12508 return NULL;
12509 }
12510
12511
12512 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12513 PyObject *resultobj;
12514 wxDC *arg1 = (wxDC *) 0 ;
12515 double *arg2 = (double *) 0 ;
12516 double *arg3 = (double *) 0 ;
12517 double temp2 ;
12518 double temp3 ;
12519 PyObject * obj0 = 0 ;
12520 char *kwnames[] = {
12521 (char *) "self", NULL
12522 };
12523
12524 arg2 = &temp2;
12525 arg3 = &temp3;
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12528 {
12529 PyThreadState* __tstate = wxPyBeginAllowThreads();
12530 (arg1)->GetLogicalScale(arg2,arg3);
12531
12532 wxPyEndAllowThreads(__tstate);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 }
12535 Py_INCREF(Py_None); resultobj = Py_None;
12536 {
12537 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12538 resultobj = t_output_helper(resultobj,o);
12539 }
12540 {
12541 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12542 resultobj = t_output_helper(resultobj,o);
12543 }
12544 return resultobj;
12545 fail:
12546 return NULL;
12547 }
12548
12549
12550 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12551 PyObject *resultobj;
12552 wxDC *arg1 = (wxDC *) 0 ;
12553 double arg2 ;
12554 double arg3 ;
12555 PyObject * obj0 = 0 ;
12556 char *kwnames[] = {
12557 (char *) "self",(char *) "x",(char *) "y", NULL
12558 };
12559
12560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12562 {
12563 PyThreadState* __tstate = wxPyBeginAllowThreads();
12564 (arg1)->SetLogicalScale(arg2,arg3);
12565
12566 wxPyEndAllowThreads(__tstate);
12567 if (PyErr_Occurred()) SWIG_fail;
12568 }
12569 Py_INCREF(Py_None); resultobj = Py_None;
12570 return resultobj;
12571 fail:
12572 return NULL;
12573 }
12574
12575
12576 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12577 PyObject *resultobj;
12578 wxDC *arg1 = (wxDC *) 0 ;
12579 wxPoint result;
12580 PyObject * obj0 = 0 ;
12581 char *kwnames[] = {
12582 (char *) "self", NULL
12583 };
12584
12585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
12586 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12587 {
12588 PyThreadState* __tstate = wxPyBeginAllowThreads();
12589 result = ((wxDC const *)arg1)->GetLogicalOrigin();
12590
12591 wxPyEndAllowThreads(__tstate);
12592 if (PyErr_Occurred()) SWIG_fail;
12593 }
12594 {
12595 wxPoint * resultptr;
12596 resultptr = new wxPoint((wxPoint &) result);
12597 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12598 }
12599 return resultobj;
12600 fail:
12601 return NULL;
12602 }
12603
12604
12605 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12606 PyObject *resultobj;
12607 wxDC *arg1 = (wxDC *) 0 ;
12608 int *arg2 = (int *) 0 ;
12609 int *arg3 = (int *) 0 ;
12610 int temp2 ;
12611 int temp3 ;
12612 PyObject * obj0 = 0 ;
12613 char *kwnames[] = {
12614 (char *) "self", NULL
12615 };
12616
12617 arg2 = &temp2;
12618 arg3 = &temp3;
12619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
12620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12621 {
12622 PyThreadState* __tstate = wxPyBeginAllowThreads();
12623 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
12624
12625 wxPyEndAllowThreads(__tstate);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 Py_INCREF(Py_None); resultobj = Py_None;
12629 {
12630 PyObject *o = PyInt_FromLong((long) (*arg2));
12631 resultobj = t_output_helper(resultobj,o);
12632 }
12633 {
12634 PyObject *o = PyInt_FromLong((long) (*arg3));
12635 resultobj = t_output_helper(resultobj,o);
12636 }
12637 return resultobj;
12638 fail:
12639 return NULL;
12640 }
12641
12642
12643 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12644 PyObject *resultobj;
12645 wxDC *arg1 = (wxDC *) 0 ;
12646 int arg2 ;
12647 int arg3 ;
12648 PyObject * obj0 = 0 ;
12649 char *kwnames[] = {
12650 (char *) "self",(char *) "x",(char *) "y", NULL
12651 };
12652
12653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12655 {
12656 PyThreadState* __tstate = wxPyBeginAllowThreads();
12657 (arg1)->SetLogicalOrigin(arg2,arg3);
12658
12659 wxPyEndAllowThreads(__tstate);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 Py_INCREF(Py_None); resultobj = Py_None;
12663 return resultobj;
12664 fail:
12665 return NULL;
12666 }
12667
12668
12669 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12670 PyObject *resultobj;
12671 wxDC *arg1 = (wxDC *) 0 ;
12672 wxPoint result;
12673 PyObject * obj0 = 0 ;
12674 char *kwnames[] = {
12675 (char *) "self", NULL
12676 };
12677
12678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
12679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12680 {
12681 PyThreadState* __tstate = wxPyBeginAllowThreads();
12682 result = ((wxDC const *)arg1)->GetDeviceOrigin();
12683
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 {
12688 wxPoint * resultptr;
12689 resultptr = new wxPoint((wxPoint &) result);
12690 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12691 }
12692 return resultobj;
12693 fail:
12694 return NULL;
12695 }
12696
12697
12698 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12699 PyObject *resultobj;
12700 wxDC *arg1 = (wxDC *) 0 ;
12701 int *arg2 = (int *) 0 ;
12702 int *arg3 = (int *) 0 ;
12703 int temp2 ;
12704 int temp3 ;
12705 PyObject * obj0 = 0 ;
12706 char *kwnames[] = {
12707 (char *) "self", NULL
12708 };
12709
12710 arg2 = &temp2;
12711 arg3 = &temp3;
12712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
12713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12714 {
12715 PyThreadState* __tstate = wxPyBeginAllowThreads();
12716 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
12717
12718 wxPyEndAllowThreads(__tstate);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 }
12721 Py_INCREF(Py_None); resultobj = Py_None;
12722 {
12723 PyObject *o = PyInt_FromLong((long) (*arg2));
12724 resultobj = t_output_helper(resultobj,o);
12725 }
12726 {
12727 PyObject *o = PyInt_FromLong((long) (*arg3));
12728 resultobj = t_output_helper(resultobj,o);
12729 }
12730 return resultobj;
12731 fail:
12732 return NULL;
12733 }
12734
12735
12736 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12737 PyObject *resultobj;
12738 wxDC *arg1 = (wxDC *) 0 ;
12739 int arg2 ;
12740 int arg3 ;
12741 PyObject * obj0 = 0 ;
12742 char *kwnames[] = {
12743 (char *) "self",(char *) "x",(char *) "y", NULL
12744 };
12745
12746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12748 {
12749 PyThreadState* __tstate = wxPyBeginAllowThreads();
12750 (arg1)->SetDeviceOrigin(arg2,arg3);
12751
12752 wxPyEndAllowThreads(__tstate);
12753 if (PyErr_Occurred()) SWIG_fail;
12754 }
12755 Py_INCREF(Py_None); resultobj = Py_None;
12756 return resultobj;
12757 fail:
12758 return NULL;
12759 }
12760
12761
12762 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12763 PyObject *resultobj;
12764 wxDC *arg1 = (wxDC *) 0 ;
12765 bool arg2 ;
12766 bool arg3 ;
12767 PyObject * obj0 = 0 ;
12768 PyObject * obj1 = 0 ;
12769 PyObject * obj2 = 0 ;
12770 char *kwnames[] = {
12771 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
12772 };
12773
12774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
12775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12776 {
12777 arg2 = (bool) SPyObj_AsBool(obj1);
12778 if (PyErr_Occurred()) SWIG_fail;
12779 }
12780 {
12781 arg3 = (bool) SPyObj_AsBool(obj2);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 }
12784 {
12785 PyThreadState* __tstate = wxPyBeginAllowThreads();
12786 (arg1)->SetAxisOrientation(arg2,arg3);
12787
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 Py_INCREF(Py_None); resultobj = Py_None;
12792 return resultobj;
12793 fail:
12794 return NULL;
12795 }
12796
12797
12798 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12799 PyObject *resultobj;
12800 wxDC *arg1 = (wxDC *) 0 ;
12801 int result;
12802 PyObject * obj0 = 0 ;
12803 char *kwnames[] = {
12804 (char *) "self", NULL
12805 };
12806
12807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
12808 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12809 {
12810 PyThreadState* __tstate = wxPyBeginAllowThreads();
12811 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
12812
12813 wxPyEndAllowThreads(__tstate);
12814 if (PyErr_Occurred()) SWIG_fail;
12815 }
12816 resultobj = PyInt_FromLong((long)result);
12817 return resultobj;
12818 fail:
12819 return NULL;
12820 }
12821
12822
12823 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12824 PyObject *resultobj;
12825 wxDC *arg1 = (wxDC *) 0 ;
12826 int arg2 ;
12827 PyObject * obj0 = 0 ;
12828 char *kwnames[] = {
12829 (char *) "self",(char *) "function", NULL
12830 };
12831
12832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
12833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12834 {
12835 PyThreadState* __tstate = wxPyBeginAllowThreads();
12836 (arg1)->SetLogicalFunction(arg2);
12837
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 Py_INCREF(Py_None); resultobj = Py_None;
12842 return resultobj;
12843 fail:
12844 return NULL;
12845 }
12846
12847
12848 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12849 PyObject *resultobj;
12850 wxDC *arg1 = (wxDC *) 0 ;
12851 bool arg2 ;
12852 PyObject * obj0 = 0 ;
12853 PyObject * obj1 = 0 ;
12854 char *kwnames[] = {
12855 (char *) "self",(char *) "opt", NULL
12856 };
12857
12858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
12859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12860 {
12861 arg2 = (bool) SPyObj_AsBool(obj1);
12862 if (PyErr_Occurred()) SWIG_fail;
12863 }
12864 {
12865 PyThreadState* __tstate = wxPyBeginAllowThreads();
12866 (arg1)->SetOptimization(arg2);
12867
12868 wxPyEndAllowThreads(__tstate);
12869 if (PyErr_Occurred()) SWIG_fail;
12870 }
12871 Py_INCREF(Py_None); resultobj = Py_None;
12872 return resultobj;
12873 fail:
12874 return NULL;
12875 }
12876
12877
12878 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12879 PyObject *resultobj;
12880 wxDC *arg1 = (wxDC *) 0 ;
12881 bool result;
12882 PyObject * obj0 = 0 ;
12883 char *kwnames[] = {
12884 (char *) "self", NULL
12885 };
12886
12887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
12888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12889 {
12890 PyThreadState* __tstate = wxPyBeginAllowThreads();
12891 result = (bool)(arg1)->GetOptimization();
12892
12893 wxPyEndAllowThreads(__tstate);
12894 if (PyErr_Occurred()) SWIG_fail;
12895 }
12896 resultobj = PyInt_FromLong((long)result);
12897 return resultobj;
12898 fail:
12899 return NULL;
12900 }
12901
12902
12903 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12904 PyObject *resultobj;
12905 wxDC *arg1 = (wxDC *) 0 ;
12906 int arg2 ;
12907 int arg3 ;
12908 PyObject * obj0 = 0 ;
12909 char *kwnames[] = {
12910 (char *) "self",(char *) "x",(char *) "y", NULL
12911 };
12912
12913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
12914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12915 {
12916 PyThreadState* __tstate = wxPyBeginAllowThreads();
12917 (arg1)->CalcBoundingBox(arg2,arg3);
12918
12919 wxPyEndAllowThreads(__tstate);
12920 if (PyErr_Occurred()) SWIG_fail;
12921 }
12922 Py_INCREF(Py_None); resultobj = Py_None;
12923 return resultobj;
12924 fail:
12925 return NULL;
12926 }
12927
12928
12929 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12930 PyObject *resultobj;
12931 wxDC *arg1 = (wxDC *) 0 ;
12932 PyObject * obj0 = 0 ;
12933 char *kwnames[] = {
12934 (char *) "self", NULL
12935 };
12936
12937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
12938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12939 {
12940 PyThreadState* __tstate = wxPyBeginAllowThreads();
12941 (arg1)->ResetBoundingBox();
12942
12943 wxPyEndAllowThreads(__tstate);
12944 if (PyErr_Occurred()) SWIG_fail;
12945 }
12946 Py_INCREF(Py_None); resultobj = Py_None;
12947 return resultobj;
12948 fail:
12949 return NULL;
12950 }
12951
12952
12953 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
12954 PyObject *resultobj;
12955 wxDC *arg1 = (wxDC *) 0 ;
12956 int result;
12957 PyObject * obj0 = 0 ;
12958 char *kwnames[] = {
12959 (char *) "self", NULL
12960 };
12961
12962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
12963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12964 {
12965 PyThreadState* __tstate = wxPyBeginAllowThreads();
12966 result = (int)((wxDC const *)arg1)->MinX();
12967
12968 wxPyEndAllowThreads(__tstate);
12969 if (PyErr_Occurred()) SWIG_fail;
12970 }
12971 resultobj = PyInt_FromLong((long)result);
12972 return resultobj;
12973 fail:
12974 return NULL;
12975 }
12976
12977
12978 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
12979 PyObject *resultobj;
12980 wxDC *arg1 = (wxDC *) 0 ;
12981 int result;
12982 PyObject * obj0 = 0 ;
12983 char *kwnames[] = {
12984 (char *) "self", NULL
12985 };
12986
12987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
12988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12989 {
12990 PyThreadState* __tstate = wxPyBeginAllowThreads();
12991 result = (int)((wxDC const *)arg1)->MaxX();
12992
12993 wxPyEndAllowThreads(__tstate);
12994 if (PyErr_Occurred()) SWIG_fail;
12995 }
12996 resultobj = PyInt_FromLong((long)result);
12997 return resultobj;
12998 fail:
12999 return NULL;
13000 }
13001
13002
13003 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
13004 PyObject *resultobj;
13005 wxDC *arg1 = (wxDC *) 0 ;
13006 int result;
13007 PyObject * obj0 = 0 ;
13008 char *kwnames[] = {
13009 (char *) "self", NULL
13010 };
13011
13012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
13013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13014 {
13015 PyThreadState* __tstate = wxPyBeginAllowThreads();
13016 result = (int)((wxDC const *)arg1)->MinY();
13017
13018 wxPyEndAllowThreads(__tstate);
13019 if (PyErr_Occurred()) SWIG_fail;
13020 }
13021 resultobj = PyInt_FromLong((long)result);
13022 return resultobj;
13023 fail:
13024 return NULL;
13025 }
13026
13027
13028 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
13029 PyObject *resultobj;
13030 wxDC *arg1 = (wxDC *) 0 ;
13031 int result;
13032 PyObject * obj0 = 0 ;
13033 char *kwnames[] = {
13034 (char *) "self", NULL
13035 };
13036
13037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
13038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13039 {
13040 PyThreadState* __tstate = wxPyBeginAllowThreads();
13041 result = (int)((wxDC const *)arg1)->MaxY();
13042
13043 wxPyEndAllowThreads(__tstate);
13044 if (PyErr_Occurred()) SWIG_fail;
13045 }
13046 resultobj = PyInt_FromLong((long)result);
13047 return resultobj;
13048 fail:
13049 return NULL;
13050 }
13051
13052
13053 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13054 PyObject *resultobj;
13055 wxDC *arg1 = (wxDC *) 0 ;
13056 int *arg2 = (int *) 0 ;
13057 int *arg3 = (int *) 0 ;
13058 int *arg4 = (int *) 0 ;
13059 int *arg5 = (int *) 0 ;
13060 int temp2 ;
13061 int temp3 ;
13062 int temp4 ;
13063 int temp5 ;
13064 PyObject * obj0 = 0 ;
13065 char *kwnames[] = {
13066 (char *) "self", NULL
13067 };
13068
13069 arg2 = &temp2;
13070 arg3 = &temp3;
13071 arg4 = &temp4;
13072 arg5 = &temp5;
13073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
13074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13075 {
13076 PyThreadState* __tstate = wxPyBeginAllowThreads();
13077 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
13078
13079 wxPyEndAllowThreads(__tstate);
13080 if (PyErr_Occurred()) SWIG_fail;
13081 }
13082 Py_INCREF(Py_None); resultobj = Py_None;
13083 {
13084 PyObject *o = PyInt_FromLong((long) (*arg2));
13085 resultobj = t_output_helper(resultobj,o);
13086 }
13087 {
13088 PyObject *o = PyInt_FromLong((long) (*arg3));
13089 resultobj = t_output_helper(resultobj,o);
13090 }
13091 {
13092 PyObject *o = PyInt_FromLong((long) (*arg4));
13093 resultobj = t_output_helper(resultobj,o);
13094 }
13095 {
13096 PyObject *o = PyInt_FromLong((long) (*arg5));
13097 resultobj = t_output_helper(resultobj,o);
13098 }
13099 return resultobj;
13100 fail:
13101 return NULL;
13102 }
13103
13104
13105 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
13106 PyObject *resultobj;
13107 wxDC *arg1 = (wxDC *) 0 ;
13108 PyObject *arg2 = (PyObject *) 0 ;
13109 PyObject *arg3 = (PyObject *) 0 ;
13110 PyObject *arg4 = (PyObject *) 0 ;
13111 PyObject *result;
13112 PyObject * obj0 = 0 ;
13113 PyObject * obj1 = 0 ;
13114 PyObject * obj2 = 0 ;
13115 PyObject * obj3 = 0 ;
13116 char *kwnames[] = {
13117 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13118 };
13119
13120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13122 arg2 = obj1;
13123 arg3 = obj2;
13124 arg4 = obj3;
13125 {
13126 PyThreadState* __tstate = wxPyBeginAllowThreads();
13127 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
13128
13129 wxPyEndAllowThreads(__tstate);
13130 if (PyErr_Occurred()) SWIG_fail;
13131 }
13132 resultobj = result;
13133 return resultobj;
13134 fail:
13135 return NULL;
13136 }
13137
13138
13139 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
13140 PyObject *resultobj;
13141 wxDC *arg1 = (wxDC *) 0 ;
13142 PyObject *arg2 = (PyObject *) 0 ;
13143 PyObject *arg3 = (PyObject *) 0 ;
13144 PyObject *arg4 = (PyObject *) 0 ;
13145 PyObject *result;
13146 PyObject * obj0 = 0 ;
13147 PyObject * obj1 = 0 ;
13148 PyObject * obj2 = 0 ;
13149 PyObject * obj3 = 0 ;
13150 char *kwnames[] = {
13151 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13152 };
13153
13154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13156 arg2 = obj1;
13157 arg3 = obj2;
13158 arg4 = obj3;
13159 {
13160 PyThreadState* __tstate = wxPyBeginAllowThreads();
13161 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
13162
13163 wxPyEndAllowThreads(__tstate);
13164 if (PyErr_Occurred()) SWIG_fail;
13165 }
13166 resultobj = result;
13167 return resultobj;
13168 fail:
13169 return NULL;
13170 }
13171
13172
13173 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
13174 PyObject *resultobj;
13175 wxDC *arg1 = (wxDC *) 0 ;
13176 PyObject *arg2 = (PyObject *) 0 ;
13177 PyObject *arg3 = (PyObject *) 0 ;
13178 PyObject *arg4 = (PyObject *) 0 ;
13179 PyObject *result;
13180 PyObject * obj0 = 0 ;
13181 PyObject * obj1 = 0 ;
13182 PyObject * obj2 = 0 ;
13183 PyObject * obj3 = 0 ;
13184 char *kwnames[] = {
13185 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13186 };
13187
13188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13190 arg2 = obj1;
13191 arg3 = obj2;
13192 arg4 = obj3;
13193 {
13194 PyThreadState* __tstate = wxPyBeginAllowThreads();
13195 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
13196
13197 wxPyEndAllowThreads(__tstate);
13198 if (PyErr_Occurred()) SWIG_fail;
13199 }
13200 resultobj = result;
13201 return resultobj;
13202 fail:
13203 return NULL;
13204 }
13205
13206
13207 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
13208 PyObject *resultobj;
13209 wxDC *arg1 = (wxDC *) 0 ;
13210 PyObject *arg2 = (PyObject *) 0 ;
13211 PyObject *arg3 = (PyObject *) 0 ;
13212 PyObject *arg4 = (PyObject *) 0 ;
13213 PyObject *result;
13214 PyObject * obj0 = 0 ;
13215 PyObject * obj1 = 0 ;
13216 PyObject * obj2 = 0 ;
13217 PyObject * obj3 = 0 ;
13218 char *kwnames[] = {
13219 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13220 };
13221
13222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13224 arg2 = obj1;
13225 arg3 = obj2;
13226 arg4 = obj3;
13227 {
13228 PyThreadState* __tstate = wxPyBeginAllowThreads();
13229 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
13230
13231 wxPyEndAllowThreads(__tstate);
13232 if (PyErr_Occurred()) SWIG_fail;
13233 }
13234 resultobj = result;
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj;
13243 wxDC *arg1 = (wxDC *) 0 ;
13244 PyObject *arg2 = (PyObject *) 0 ;
13245 PyObject *arg3 = (PyObject *) 0 ;
13246 PyObject *arg4 = (PyObject *) 0 ;
13247 PyObject *result;
13248 PyObject * obj0 = 0 ;
13249 PyObject * obj1 = 0 ;
13250 PyObject * obj2 = 0 ;
13251 PyObject * obj3 = 0 ;
13252 char *kwnames[] = {
13253 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13254 };
13255
13256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13258 arg2 = obj1;
13259 arg3 = obj2;
13260 arg4 = obj3;
13261 {
13262 PyThreadState* __tstate = wxPyBeginAllowThreads();
13263 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
13264
13265 wxPyEndAllowThreads(__tstate);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 }
13268 resultobj = result;
13269 return resultobj;
13270 fail:
13271 return NULL;
13272 }
13273
13274
13275 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
13276 PyObject *resultobj;
13277 wxDC *arg1 = (wxDC *) 0 ;
13278 PyObject *arg2 = (PyObject *) 0 ;
13279 PyObject *arg3 = (PyObject *) 0 ;
13280 PyObject *arg4 = (PyObject *) 0 ;
13281 PyObject *arg5 = (PyObject *) 0 ;
13282 PyObject *result;
13283 PyObject * obj0 = 0 ;
13284 PyObject * obj1 = 0 ;
13285 PyObject * obj2 = 0 ;
13286 PyObject * obj3 = 0 ;
13287 PyObject * obj4 = 0 ;
13288 char *kwnames[] = {
13289 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
13290 };
13291
13292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13294 arg2 = obj1;
13295 arg3 = obj2;
13296 arg4 = obj3;
13297 arg5 = obj4;
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
13301
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 resultobj = result;
13306 return resultobj;
13307 fail:
13308 return NULL;
13309 }
13310
13311
13312 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
13313 PyObject *obj;
13314 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13315 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
13316 Py_INCREF(obj);
13317 return Py_BuildValue((char *)"");
13318 }
13319 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13320 PyObject *resultobj;
13321 wxMemoryDC *result;
13322 char *kwnames[] = {
13323 NULL
13324 };
13325
13326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
13327 {
13328 PyThreadState* __tstate = wxPyBeginAllowThreads();
13329 result = (wxMemoryDC *)new wxMemoryDC();
13330
13331 wxPyEndAllowThreads(__tstate);
13332 if (PyErr_Occurred()) SWIG_fail;
13333 }
13334 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13335 return resultobj;
13336 fail:
13337 return NULL;
13338 }
13339
13340
13341 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13342 PyObject *resultobj;
13343 wxDC *arg1 = (wxDC *) 0 ;
13344 wxMemoryDC *result;
13345 PyObject * obj0 = 0 ;
13346 char *kwnames[] = {
13347 (char *) "oldDC", NULL
13348 };
13349
13350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
13351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13352 {
13353 PyThreadState* __tstate = wxPyBeginAllowThreads();
13354 result = (wxMemoryDC *)new wxMemoryDC(arg1);
13355
13356 wxPyEndAllowThreads(__tstate);
13357 if (PyErr_Occurred()) SWIG_fail;
13358 }
13359 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13360 return resultobj;
13361 fail:
13362 return NULL;
13363 }
13364
13365
13366 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
13367 PyObject *resultobj;
13368 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
13369 wxBitmap *arg2 = 0 ;
13370 PyObject * obj0 = 0 ;
13371 PyObject * obj1 = 0 ;
13372 char *kwnames[] = {
13373 (char *) "self",(char *) "bitmap", NULL
13374 };
13375
13376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
13377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13378 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13379 if (arg2 == NULL) {
13380 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13381 }
13382 {
13383 PyThreadState* __tstate = wxPyBeginAllowThreads();
13384 (arg1)->SelectObject((wxBitmap const &)*arg2);
13385
13386 wxPyEndAllowThreads(__tstate);
13387 if (PyErr_Occurred()) SWIG_fail;
13388 }
13389 Py_INCREF(Py_None); resultobj = Py_None;
13390 return resultobj;
13391 fail:
13392 return NULL;
13393 }
13394
13395
13396 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
13397 PyObject *obj;
13398 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13399 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
13400 Py_INCREF(obj);
13401 return Py_BuildValue((char *)"");
13402 }
13403 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13404 PyObject *resultobj;
13405 wxDC *arg1 = (wxDC *) 0 ;
13406 wxBitmap *arg2 = 0 ;
13407 wxBufferedDC *result;
13408 PyObject * obj0 = 0 ;
13409 PyObject * obj1 = 0 ;
13410 char *kwnames[] = {
13411 (char *) "dc",(char *) "buffer", NULL
13412 };
13413
13414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
13415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13416 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13417 if (arg2 == NULL) {
13418 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13419 }
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13423
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13428 return resultobj;
13429 fail:
13430 return NULL;
13431 }
13432
13433
13434 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13435 PyObject *resultobj;
13436 wxDC *arg1 = (wxDC *) 0 ;
13437 wxSize *arg2 = 0 ;
13438 wxBufferedDC *result;
13439 wxSize temp2 ;
13440 PyObject * obj0 = 0 ;
13441 PyObject * obj1 = 0 ;
13442 char *kwnames[] = {
13443 (char *) "dc",(char *) "area", NULL
13444 };
13445
13446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13448 {
13449 arg2 = &temp2;
13450 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13451 }
13452 {
13453 PyThreadState* __tstate = wxPyBeginAllowThreads();
13454 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13455
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13460 return resultobj;
13461 fail:
13462 return NULL;
13463 }
13464
13465
13466 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13467 PyObject *resultobj;
13468 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13469 PyObject * obj0 = 0 ;
13470 char *kwnames[] = {
13471 (char *) "self", NULL
13472 };
13473
13474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13476 {
13477 PyThreadState* __tstate = wxPyBeginAllowThreads();
13478 (arg1)->UnMask();
13479
13480 wxPyEndAllowThreads(__tstate);
13481 if (PyErr_Occurred()) SWIG_fail;
13482 }
13483 Py_INCREF(Py_None); resultobj = Py_None;
13484 return resultobj;
13485 fail:
13486 return NULL;
13487 }
13488
13489
13490 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13491 PyObject *obj;
13492 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13493 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13494 Py_INCREF(obj);
13495 return Py_BuildValue((char *)"");
13496 }
13497 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13498 PyObject *resultobj;
13499 wxWindow *arg1 = (wxWindow *) 0 ;
13500 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13501 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13502 wxBufferedPaintDC *result;
13503 PyObject * obj0 = 0 ;
13504 PyObject * obj1 = 0 ;
13505 char *kwnames[] = {
13506 (char *) "window",(char *) "buffer", NULL
13507 };
13508
13509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13511 if (obj1) {
13512 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13513 if (arg2 == NULL) {
13514 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13515 }
13516 }
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13520
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13525 return resultobj;
13526 fail:
13527 return NULL;
13528 }
13529
13530
13531 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13532 PyObject *obj;
13533 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13534 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13535 Py_INCREF(obj);
13536 return Py_BuildValue((char *)"");
13537 }
13538 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13539 PyObject *resultobj;
13540 wxScreenDC *result;
13541 char *kwnames[] = {
13542 NULL
13543 };
13544
13545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13546 {
13547 PyThreadState* __tstate = wxPyBeginAllowThreads();
13548 result = (wxScreenDC *)new wxScreenDC();
13549
13550 wxPyEndAllowThreads(__tstate);
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13554 return resultobj;
13555 fail:
13556 return NULL;
13557 }
13558
13559
13560 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13561 PyObject *resultobj;
13562 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13563 wxWindow *arg2 = (wxWindow *) 0 ;
13564 bool result;
13565 PyObject * obj0 = 0 ;
13566 PyObject * obj1 = 0 ;
13567 char *kwnames[] = {
13568 (char *) "self",(char *) "window", NULL
13569 };
13570
13571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13573 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13574 {
13575 PyThreadState* __tstate = wxPyBeginAllowThreads();
13576 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13577
13578 wxPyEndAllowThreads(__tstate);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 }
13581 resultobj = PyInt_FromLong((long)result);
13582 return resultobj;
13583 fail:
13584 return NULL;
13585 }
13586
13587
13588 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13589 PyObject *resultobj;
13590 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13591 wxRect *arg2 = (wxRect *) NULL ;
13592 bool result;
13593 PyObject * obj0 = 0 ;
13594 PyObject * obj1 = 0 ;
13595 char *kwnames[] = {
13596 (char *) "self",(char *) "rect", NULL
13597 };
13598
13599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13600 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13601 if (obj1) {
13602 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13603 }
13604 {
13605 PyThreadState* __tstate = wxPyBeginAllowThreads();
13606 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13607
13608 wxPyEndAllowThreads(__tstate);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 }
13611 resultobj = PyInt_FromLong((long)result);
13612 return resultobj;
13613 fail:
13614 return NULL;
13615 }
13616
13617
13618 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13619 PyObject *resultobj;
13620 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13621 bool result;
13622 PyObject * obj0 = 0 ;
13623 char *kwnames[] = {
13624 (char *) "self", NULL
13625 };
13626
13627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13629 {
13630 PyThreadState* __tstate = wxPyBeginAllowThreads();
13631 result = (bool)(arg1)->EndDrawingOnTop();
13632
13633 wxPyEndAllowThreads(__tstate);
13634 if (PyErr_Occurred()) SWIG_fail;
13635 }
13636 resultobj = PyInt_FromLong((long)result);
13637 return resultobj;
13638 fail:
13639 return NULL;
13640 }
13641
13642
13643 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13644 PyObject *obj;
13645 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13646 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13647 Py_INCREF(obj);
13648 return Py_BuildValue((char *)"");
13649 }
13650 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13651 PyObject *resultobj;
13652 wxWindow *arg1 = (wxWindow *) 0 ;
13653 wxClientDC *result;
13654 PyObject * obj0 = 0 ;
13655 char *kwnames[] = {
13656 (char *) "win", NULL
13657 };
13658
13659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13661 {
13662 PyThreadState* __tstate = wxPyBeginAllowThreads();
13663 result = (wxClientDC *)new wxClientDC(arg1);
13664
13665 wxPyEndAllowThreads(__tstate);
13666 if (PyErr_Occurred()) SWIG_fail;
13667 }
13668 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13669 return resultobj;
13670 fail:
13671 return NULL;
13672 }
13673
13674
13675 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13676 PyObject *obj;
13677 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13678 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13679 Py_INCREF(obj);
13680 return Py_BuildValue((char *)"");
13681 }
13682 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj;
13684 wxWindow *arg1 = (wxWindow *) 0 ;
13685 wxPaintDC *result;
13686 PyObject * obj0 = 0 ;
13687 char *kwnames[] = {
13688 (char *) "win", NULL
13689 };
13690
13691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13693 {
13694 PyThreadState* __tstate = wxPyBeginAllowThreads();
13695 result = (wxPaintDC *)new wxPaintDC(arg1);
13696
13697 wxPyEndAllowThreads(__tstate);
13698 if (PyErr_Occurred()) SWIG_fail;
13699 }
13700 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13701 return resultobj;
13702 fail:
13703 return NULL;
13704 }
13705
13706
13707 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13708 PyObject *obj;
13709 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13710 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13711 Py_INCREF(obj);
13712 return Py_BuildValue((char *)"");
13713 }
13714 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13715 PyObject *resultobj;
13716 wxWindow *arg1 = (wxWindow *) 0 ;
13717 wxWindowDC *result;
13718 PyObject * obj0 = 0 ;
13719 char *kwnames[] = {
13720 (char *) "win", NULL
13721 };
13722
13723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13725 {
13726 PyThreadState* __tstate = wxPyBeginAllowThreads();
13727 result = (wxWindowDC *)new wxWindowDC(arg1);
13728
13729 wxPyEndAllowThreads(__tstate);
13730 if (PyErr_Occurred()) SWIG_fail;
13731 }
13732 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13733 return resultobj;
13734 fail:
13735 return NULL;
13736 }
13737
13738
13739 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
13740 PyObject *obj;
13741 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13742 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
13743 Py_INCREF(obj);
13744 return Py_BuildValue((char *)"");
13745 }
13746 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13747 PyObject *resultobj;
13748 wxDC *arg1 = 0 ;
13749 bool arg2 ;
13750 wxMirrorDC *result;
13751 PyObject * obj0 = 0 ;
13752 PyObject * obj1 = 0 ;
13753 char *kwnames[] = {
13754 (char *) "dc",(char *) "mirror", NULL
13755 };
13756
13757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
13758 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13759 if (arg1 == NULL) {
13760 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13761 }
13762 {
13763 arg2 = (bool) SPyObj_AsBool(obj1);
13764 if (PyErr_Occurred()) SWIG_fail;
13765 }
13766 {
13767 PyThreadState* __tstate = wxPyBeginAllowThreads();
13768 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
13769
13770 wxPyEndAllowThreads(__tstate);
13771 if (PyErr_Occurred()) SWIG_fail;
13772 }
13773 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
13774 return resultobj;
13775 fail:
13776 return NULL;
13777 }
13778
13779
13780 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
13781 PyObject *obj;
13782 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13783 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
13784 Py_INCREF(obj);
13785 return Py_BuildValue((char *)"");
13786 }
13787 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13788 PyObject *resultobj;
13789 wxPrintData *arg1 = 0 ;
13790 wxPostScriptDC *result;
13791 PyObject * obj0 = 0 ;
13792 char *kwnames[] = {
13793 (char *) "printData", NULL
13794 };
13795
13796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
13797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13798 if (arg1 == NULL) {
13799 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13800 }
13801 {
13802 PyThreadState* __tstate = wxPyBeginAllowThreads();
13803 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
13804
13805 wxPyEndAllowThreads(__tstate);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
13808 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
13809 return resultobj;
13810 fail:
13811 return NULL;
13812 }
13813
13814
13815 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13816 PyObject *resultobj;
13817 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13818 wxPrintData *result;
13819 PyObject * obj0 = 0 ;
13820 char *kwnames[] = {
13821 (char *) "self", NULL
13822 };
13823
13824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
13825 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13826 {
13827 PyThreadState* __tstate = wxPyBeginAllowThreads();
13828 {
13829 wxPrintData &_result_ref = (arg1)->GetPrintData();
13830 result = (wxPrintData *) &_result_ref;
13831 }
13832
13833 wxPyEndAllowThreads(__tstate);
13834 if (PyErr_Occurred()) SWIG_fail;
13835 }
13836 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
13837 return resultobj;
13838 fail:
13839 return NULL;
13840 }
13841
13842
13843 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13844 PyObject *resultobj;
13845 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13846 wxPrintData *arg2 = 0 ;
13847 PyObject * obj0 = 0 ;
13848 PyObject * obj1 = 0 ;
13849 char *kwnames[] = {
13850 (char *) "self",(char *) "data", NULL
13851 };
13852
13853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
13854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13855 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13856 if (arg2 == NULL) {
13857 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13858 }
13859 {
13860 PyThreadState* __tstate = wxPyBeginAllowThreads();
13861 (arg1)->SetPrintData((wxPrintData const &)*arg2);
13862
13863 wxPyEndAllowThreads(__tstate);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 }
13866 Py_INCREF(Py_None); resultobj = Py_None;
13867 return resultobj;
13868 fail:
13869 return NULL;
13870 }
13871
13872
13873 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13874 PyObject *resultobj;
13875 int arg1 ;
13876 char *kwnames[] = {
13877 (char *) "ppi", NULL
13878 };
13879
13880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
13881 {
13882 PyThreadState* __tstate = wxPyBeginAllowThreads();
13883 wxPostScriptDC::SetResolution(arg1);
13884
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 Py_INCREF(Py_None); resultobj = Py_None;
13889 return resultobj;
13890 fail:
13891 return NULL;
13892 }
13893
13894
13895 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13896 PyObject *resultobj;
13897 int result;
13898 char *kwnames[] = {
13899 NULL
13900 };
13901
13902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
13903 {
13904 PyThreadState* __tstate = wxPyBeginAllowThreads();
13905 result = (int)wxPostScriptDC::GetResolution();
13906
13907 wxPyEndAllowThreads(__tstate);
13908 if (PyErr_Occurred()) SWIG_fail;
13909 }
13910 resultobj = PyInt_FromLong((long)result);
13911 return resultobj;
13912 fail:
13913 return NULL;
13914 }
13915
13916
13917 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
13918 PyObject *obj;
13919 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13920 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
13921 Py_INCREF(obj);
13922 return Py_BuildValue((char *)"");
13923 }
13924 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
13925 PyObject *resultobj;
13926 wxString const &arg1_defvalue = wxPyEmptyString ;
13927 wxString *arg1 = (wxString *) &arg1_defvalue ;
13928 wxMetaFile *result;
13929 bool temp1 = False ;
13930 PyObject * obj0 = 0 ;
13931 char *kwnames[] = {
13932 (char *) "filename", NULL
13933 };
13934
13935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
13936 if (obj0) {
13937 {
13938 arg1 = wxString_in_helper(obj0);
13939 if (arg1 == NULL) SWIG_fail;
13940 temp1 = True;
13941 }
13942 }
13943 {
13944 PyThreadState* __tstate = wxPyBeginAllowThreads();
13945 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
13946
13947 wxPyEndAllowThreads(__tstate);
13948 if (PyErr_Occurred()) SWIG_fail;
13949 }
13950 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
13951 {
13952 if (temp1)
13953 delete arg1;
13954 }
13955 return resultobj;
13956 fail:
13957 {
13958 if (temp1)
13959 delete arg1;
13960 }
13961 return NULL;
13962 }
13963
13964
13965 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
13966 PyObject *obj;
13967 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13968 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
13969 Py_INCREF(obj);
13970 return Py_BuildValue((char *)"");
13971 }
13972 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13973 PyObject *resultobj;
13974 wxString const &arg1_defvalue = wxPyEmptyString ;
13975 wxString *arg1 = (wxString *) &arg1_defvalue ;
13976 int arg2 = (int) 0 ;
13977 int arg3 = (int) 0 ;
13978 wxString const &arg4_defvalue = wxPyEmptyString ;
13979 wxString *arg4 = (wxString *) &arg4_defvalue ;
13980 wxMetaFileDC *result;
13981 bool temp1 = False ;
13982 bool temp4 = False ;
13983 PyObject * obj0 = 0 ;
13984 PyObject * obj3 = 0 ;
13985 char *kwnames[] = {
13986 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
13987 };
13988
13989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
13990 if (obj0) {
13991 {
13992 arg1 = wxString_in_helper(obj0);
13993 if (arg1 == NULL) SWIG_fail;
13994 temp1 = True;
13995 }
13996 }
13997 if (obj3) {
13998 {
13999 arg4 = wxString_in_helper(obj3);
14000 if (arg4 == NULL) SWIG_fail;
14001 temp4 = True;
14002 }
14003 }
14004 {
14005 PyThreadState* __tstate = wxPyBeginAllowThreads();
14006 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
14007
14008 wxPyEndAllowThreads(__tstate);
14009 if (PyErr_Occurred()) SWIG_fail;
14010 }
14011 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
14012 {
14013 if (temp1)
14014 delete arg1;
14015 }
14016 {
14017 if (temp4)
14018 delete arg4;
14019 }
14020 return resultobj;
14021 fail:
14022 {
14023 if (temp1)
14024 delete arg1;
14025 }
14026 {
14027 if (temp4)
14028 delete arg4;
14029 }
14030 return NULL;
14031 }
14032
14033
14034 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
14035 PyObject *obj;
14036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14037 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
14038 Py_INCREF(obj);
14039 return Py_BuildValue((char *)"");
14040 }
14041 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14042 PyObject *resultobj;
14043 wxPrintData *arg1 = 0 ;
14044 wxPrinterDC *result;
14045 PyObject * obj0 = 0 ;
14046 char *kwnames[] = {
14047 (char *) "printData", NULL
14048 };
14049
14050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
14051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14052 if (arg1 == NULL) {
14053 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14054 }
14055 {
14056 PyThreadState* __tstate = wxPyBeginAllowThreads();
14057 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
14058
14059 wxPyEndAllowThreads(__tstate);
14060 if (PyErr_Occurred()) SWIG_fail;
14061 }
14062 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
14063 return resultobj;
14064 fail:
14065 return NULL;
14066 }
14067
14068
14069 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
14070 PyObject *obj;
14071 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14072 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
14073 Py_INCREF(obj);
14074 return Py_BuildValue((char *)"");
14075 }
14076 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14077 PyObject *resultobj;
14078 int arg1 ;
14079 int arg2 ;
14080 int arg3 = (int) True ;
14081 int arg4 = (int) 1 ;
14082 wxImageList *result;
14083 char *kwnames[] = {
14084 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
14085 };
14086
14087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
14088 {
14089 PyThreadState* __tstate = wxPyBeginAllowThreads();
14090 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
14091
14092 wxPyEndAllowThreads(__tstate);
14093 if (PyErr_Occurred()) SWIG_fail;
14094 }
14095 {
14096 resultobj = wxPyMake_wxObject(result);
14097 }
14098 return resultobj;
14099 fail:
14100 return NULL;
14101 }
14102
14103
14104 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14105 PyObject *resultobj;
14106 wxImageList *arg1 = (wxImageList *) 0 ;
14107 PyObject * obj0 = 0 ;
14108 char *kwnames[] = {
14109 (char *) "self", NULL
14110 };
14111
14112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
14113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14114 {
14115 PyThreadState* __tstate = wxPyBeginAllowThreads();
14116 delete arg1;
14117
14118 wxPyEndAllowThreads(__tstate);
14119 if (PyErr_Occurred()) SWIG_fail;
14120 }
14121 Py_INCREF(Py_None); resultobj = Py_None;
14122 return resultobj;
14123 fail:
14124 return NULL;
14125 }
14126
14127
14128 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
14129 PyObject *resultobj;
14130 wxImageList *arg1 = (wxImageList *) 0 ;
14131 wxBitmap *arg2 = 0 ;
14132 wxBitmap const &arg3_defvalue = wxNullBitmap ;
14133 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
14134 int result;
14135 PyObject * obj0 = 0 ;
14136 PyObject * obj1 = 0 ;
14137 PyObject * obj2 = 0 ;
14138 char *kwnames[] = {
14139 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
14140 };
14141
14142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
14143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14144 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14145 if (arg2 == NULL) {
14146 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14147 }
14148 if (obj2) {
14149 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14150 if (arg3 == NULL) {
14151 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14152 }
14153 }
14154 {
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
14157
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 resultobj = PyInt_FromLong((long)result);
14162 return resultobj;
14163 fail:
14164 return NULL;
14165 }
14166
14167
14168 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
14169 PyObject *resultobj;
14170 wxImageList *arg1 = (wxImageList *) 0 ;
14171 wxBitmap *arg2 = 0 ;
14172 wxColour *arg3 = 0 ;
14173 int result;
14174 wxColour temp3 ;
14175 PyObject * obj0 = 0 ;
14176 PyObject * obj1 = 0 ;
14177 PyObject * obj2 = 0 ;
14178 char *kwnames[] = {
14179 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
14180 };
14181
14182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
14183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14184 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14185 if (arg2 == NULL) {
14186 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14187 }
14188 {
14189 arg3 = &temp3;
14190 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14191 }
14192 {
14193 PyThreadState* __tstate = wxPyBeginAllowThreads();
14194 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
14195
14196 wxPyEndAllowThreads(__tstate);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 resultobj = PyInt_FromLong((long)result);
14200 return resultobj;
14201 fail:
14202 return NULL;
14203 }
14204
14205
14206 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14207 PyObject *resultobj;
14208 wxImageList *arg1 = (wxImageList *) 0 ;
14209 wxIcon *arg2 = 0 ;
14210 int result;
14211 PyObject * obj0 = 0 ;
14212 PyObject * obj1 = 0 ;
14213 char *kwnames[] = {
14214 (char *) "self",(char *) "icon", NULL
14215 };
14216
14217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
14218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14219 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14220 if (arg2 == NULL) {
14221 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14222 }
14223 {
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 result = (int)(arg1)->Add((wxIcon const &)*arg2);
14226
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 resultobj = PyInt_FromLong((long)result);
14231 return resultobj;
14232 fail:
14233 return NULL;
14234 }
14235
14236
14237 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj;
14239 wxImageList *arg1 = (wxImageList *) 0 ;
14240 int arg2 ;
14241 wxBitmap *arg3 = 0 ;
14242 bool result;
14243 PyObject * obj0 = 0 ;
14244 PyObject * obj2 = 0 ;
14245 char *kwnames[] = {
14246 (char *) "self",(char *) "index",(char *) "bitmap", NULL
14247 };
14248
14249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ImageList_Replace",kwnames,&obj0,&arg2,&obj2)) goto fail;
14250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14251 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14252 if (arg3 == NULL) {
14253 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14254 }
14255 {
14256 PyThreadState* __tstate = wxPyBeginAllowThreads();
14257 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
14258
14259 wxPyEndAllowThreads(__tstate);
14260 if (PyErr_Occurred()) SWIG_fail;
14261 }
14262 resultobj = PyInt_FromLong((long)result);
14263 return resultobj;
14264 fail:
14265 return NULL;
14266 }
14267
14268
14269 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
14270 PyObject *resultobj;
14271 wxImageList *arg1 = (wxImageList *) 0 ;
14272 int arg2 ;
14273 wxDC *arg3 = 0 ;
14274 int arg4 ;
14275 int arg5 ;
14276 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
14277 bool arg7 = (bool) (bool)False ;
14278 bool result;
14279 PyObject * obj0 = 0 ;
14280 PyObject * obj2 = 0 ;
14281 PyObject * obj6 = 0 ;
14282 char *kwnames[] = {
14283 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
14284 };
14285
14286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
14287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14288 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14289 if (arg3 == NULL) {
14290 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14291 }
14292 if (obj6) {
14293 {
14294 arg7 = (bool const) SPyObj_AsBool(obj6);
14295 if (PyErr_Occurred()) SWIG_fail;
14296 }
14297 }
14298 {
14299 PyThreadState* __tstate = wxPyBeginAllowThreads();
14300 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
14301
14302 wxPyEndAllowThreads(__tstate);
14303 if (PyErr_Occurred()) SWIG_fail;
14304 }
14305 resultobj = PyInt_FromLong((long)result);
14306 return resultobj;
14307 fail:
14308 return NULL;
14309 }
14310
14311
14312 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14313 PyObject *resultobj;
14314 wxImageList *arg1 = (wxImageList *) 0 ;
14315 int result;
14316 PyObject * obj0 = 0 ;
14317 char *kwnames[] = {
14318 (char *) "self", NULL
14319 };
14320
14321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
14322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14323 {
14324 PyThreadState* __tstate = wxPyBeginAllowThreads();
14325 result = (int)(arg1)->GetImageCount();
14326
14327 wxPyEndAllowThreads(__tstate);
14328 if (PyErr_Occurred()) SWIG_fail;
14329 }
14330 resultobj = PyInt_FromLong((long)result);
14331 return resultobj;
14332 fail:
14333 return NULL;
14334 }
14335
14336
14337 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
14338 PyObject *resultobj;
14339 wxImageList *arg1 = (wxImageList *) 0 ;
14340 int arg2 ;
14341 bool result;
14342 PyObject * obj0 = 0 ;
14343 char *kwnames[] = {
14344 (char *) "self",(char *) "index", NULL
14345 };
14346
14347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
14348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14349 {
14350 PyThreadState* __tstate = wxPyBeginAllowThreads();
14351 result = (bool)(arg1)->Remove(arg2);
14352
14353 wxPyEndAllowThreads(__tstate);
14354 if (PyErr_Occurred()) SWIG_fail;
14355 }
14356 resultobj = PyInt_FromLong((long)result);
14357 return resultobj;
14358 fail:
14359 return NULL;
14360 }
14361
14362
14363 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14364 PyObject *resultobj;
14365 wxImageList *arg1 = (wxImageList *) 0 ;
14366 bool result;
14367 PyObject * obj0 = 0 ;
14368 char *kwnames[] = {
14369 (char *) "self", NULL
14370 };
14371
14372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
14373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14374 {
14375 PyThreadState* __tstate = wxPyBeginAllowThreads();
14376 result = (bool)(arg1)->RemoveAll();
14377
14378 wxPyEndAllowThreads(__tstate);
14379 if (PyErr_Occurred()) SWIG_fail;
14380 }
14381 resultobj = PyInt_FromLong((long)result);
14382 return resultobj;
14383 fail:
14384 return NULL;
14385 }
14386
14387
14388 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14389 PyObject *resultobj;
14390 wxImageList *arg1 = (wxImageList *) 0 ;
14391 int arg2 ;
14392 int *arg3 = 0 ;
14393 int *arg4 = 0 ;
14394 int temp3 ;
14395 int temp4 ;
14396 PyObject * obj0 = 0 ;
14397 char *kwnames[] = {
14398 (char *) "self",(char *) "index", NULL
14399 };
14400
14401 arg3 = &temp3;
14402 arg4 = &temp4;
14403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
14404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14405 {
14406 PyThreadState* __tstate = wxPyBeginAllowThreads();
14407 (arg1)->GetSize(arg2,*arg3,*arg4);
14408
14409 wxPyEndAllowThreads(__tstate);
14410 if (PyErr_Occurred()) SWIG_fail;
14411 }
14412 Py_INCREF(Py_None); resultobj = Py_None;
14413 {
14414 PyObject *o = PyInt_FromLong((long) (*arg3));
14415 resultobj = t_output_helper(resultobj,o);
14416 }
14417 {
14418 PyObject *o = PyInt_FromLong((long) (*arg4));
14419 resultobj = t_output_helper(resultobj,o);
14420 }
14421 return resultobj;
14422 fail:
14423 return NULL;
14424 }
14425
14426
14427 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14428 PyObject *obj;
14429 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14430 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14431 Py_INCREF(obj);
14432 return Py_BuildValue((char *)"");
14433 }
14434 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14435 PyObject *resultobj;
14436 wxPenList *arg1 = (wxPenList *) 0 ;
14437 wxPen *arg2 = (wxPen *) 0 ;
14438 PyObject * obj0 = 0 ;
14439 PyObject * obj1 = 0 ;
14440 char *kwnames[] = {
14441 (char *) "self",(char *) "pen", NULL
14442 };
14443
14444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14446 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14447 {
14448 PyThreadState* __tstate = wxPyBeginAllowThreads();
14449 (arg1)->AddPen(arg2);
14450
14451 wxPyEndAllowThreads(__tstate);
14452 if (PyErr_Occurred()) SWIG_fail;
14453 }
14454 Py_INCREF(Py_None); resultobj = Py_None;
14455 return resultobj;
14456 fail:
14457 return NULL;
14458 }
14459
14460
14461 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14462 PyObject *resultobj;
14463 wxPenList *arg1 = (wxPenList *) 0 ;
14464 wxColour *arg2 = 0 ;
14465 int arg3 ;
14466 int arg4 ;
14467 wxPen *result;
14468 wxColour temp2 ;
14469 PyObject * obj0 = 0 ;
14470 PyObject * obj1 = 0 ;
14471 char *kwnames[] = {
14472 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14473 };
14474
14475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14477 {
14478 arg2 = &temp2;
14479 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14480 }
14481 {
14482 PyThreadState* __tstate = wxPyBeginAllowThreads();
14483 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14484
14485 wxPyEndAllowThreads(__tstate);
14486 if (PyErr_Occurred()) SWIG_fail;
14487 }
14488 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14489 return resultobj;
14490 fail:
14491 return NULL;
14492 }
14493
14494
14495 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14496 PyObject *resultobj;
14497 wxPenList *arg1 = (wxPenList *) 0 ;
14498 wxPen *arg2 = (wxPen *) 0 ;
14499 PyObject * obj0 = 0 ;
14500 PyObject * obj1 = 0 ;
14501 char *kwnames[] = {
14502 (char *) "self",(char *) "pen", NULL
14503 };
14504
14505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14507 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14508 {
14509 PyThreadState* __tstate = wxPyBeginAllowThreads();
14510 (arg1)->RemovePen(arg2);
14511
14512 wxPyEndAllowThreads(__tstate);
14513 if (PyErr_Occurred()) SWIG_fail;
14514 }
14515 Py_INCREF(Py_None); resultobj = Py_None;
14516 return resultobj;
14517 fail:
14518 return NULL;
14519 }
14520
14521
14522 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14523 PyObject *resultobj;
14524 wxPenList *arg1 = (wxPenList *) 0 ;
14525 int result;
14526 PyObject * obj0 = 0 ;
14527 char *kwnames[] = {
14528 (char *) "self", NULL
14529 };
14530
14531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
14532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14533 {
14534 PyThreadState* __tstate = wxPyBeginAllowThreads();
14535 result = (int)(arg1)->GetCount();
14536
14537 wxPyEndAllowThreads(__tstate);
14538 if (PyErr_Occurred()) SWIG_fail;
14539 }
14540 resultobj = PyInt_FromLong((long)result);
14541 return resultobj;
14542 fail:
14543 return NULL;
14544 }
14545
14546
14547 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
14548 PyObject *obj;
14549 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14550 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
14551 Py_INCREF(obj);
14552 return Py_BuildValue((char *)"");
14553 }
14554 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14555 PyObject *resultobj;
14556 wxBrushList *arg1 = (wxBrushList *) 0 ;
14557 wxBrush *arg2 = (wxBrush *) 0 ;
14558 PyObject * obj0 = 0 ;
14559 PyObject * obj1 = 0 ;
14560 char *kwnames[] = {
14561 (char *) "self",(char *) "brush", NULL
14562 };
14563
14564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
14565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14566 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 (arg1)->AddBrush(arg2);
14570
14571 wxPyEndAllowThreads(__tstate);
14572 if (PyErr_Occurred()) SWIG_fail;
14573 }
14574 Py_INCREF(Py_None); resultobj = Py_None;
14575 return resultobj;
14576 fail:
14577 return NULL;
14578 }
14579
14580
14581 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj;
14583 wxBrushList *arg1 = (wxBrushList *) 0 ;
14584 wxColour *arg2 = 0 ;
14585 int arg3 ;
14586 wxBrush *result;
14587 wxColour temp2 ;
14588 PyObject * obj0 = 0 ;
14589 PyObject * obj1 = 0 ;
14590 char *kwnames[] = {
14591 (char *) "self",(char *) "colour",(char *) "style", NULL
14592 };
14593
14594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
14595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14596 {
14597 arg2 = &temp2;
14598 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14599 }
14600 {
14601 PyThreadState* __tstate = wxPyBeginAllowThreads();
14602 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
14603
14604 wxPyEndAllowThreads(__tstate);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
14608 return resultobj;
14609 fail:
14610 return NULL;
14611 }
14612
14613
14614 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14615 PyObject *resultobj;
14616 wxBrushList *arg1 = (wxBrushList *) 0 ;
14617 wxBrush *arg2 = (wxBrush *) 0 ;
14618 PyObject * obj0 = 0 ;
14619 PyObject * obj1 = 0 ;
14620 char *kwnames[] = {
14621 (char *) "self",(char *) "brush", NULL
14622 };
14623
14624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
14625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14626 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14627 {
14628 PyThreadState* __tstate = wxPyBeginAllowThreads();
14629 (arg1)->RemoveBrush(arg2);
14630
14631 wxPyEndAllowThreads(__tstate);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 Py_INCREF(Py_None); resultobj = Py_None;
14635 return resultobj;
14636 fail:
14637 return NULL;
14638 }
14639
14640
14641 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14642 PyObject *resultobj;
14643 wxBrushList *arg1 = (wxBrushList *) 0 ;
14644 int result;
14645 PyObject * obj0 = 0 ;
14646 char *kwnames[] = {
14647 (char *) "self", NULL
14648 };
14649
14650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
14651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14652 {
14653 PyThreadState* __tstate = wxPyBeginAllowThreads();
14654 result = (int)(arg1)->GetCount();
14655
14656 wxPyEndAllowThreads(__tstate);
14657 if (PyErr_Occurred()) SWIG_fail;
14658 }
14659 resultobj = PyInt_FromLong((long)result);
14660 return resultobj;
14661 fail:
14662 return NULL;
14663 }
14664
14665
14666 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
14667 PyObject *obj;
14668 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14669 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
14670 Py_INCREF(obj);
14671 return Py_BuildValue((char *)"");
14672 }
14673 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14674 PyObject *resultobj;
14675 wxColourDatabase *result;
14676 char *kwnames[] = {
14677 NULL
14678 };
14679
14680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
14681 {
14682 PyThreadState* __tstate = wxPyBeginAllowThreads();
14683 result = (wxColourDatabase *)new wxColourDatabase();
14684
14685 wxPyEndAllowThreads(__tstate);
14686 if (PyErr_Occurred()) SWIG_fail;
14687 }
14688 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
14689 return resultobj;
14690 fail:
14691 return NULL;
14692 }
14693
14694
14695 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14696 PyObject *resultobj;
14697 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14698 PyObject * obj0 = 0 ;
14699 char *kwnames[] = {
14700 (char *) "self", NULL
14701 };
14702
14703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
14704 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14705 {
14706 PyThreadState* __tstate = wxPyBeginAllowThreads();
14707 delete arg1;
14708
14709 wxPyEndAllowThreads(__tstate);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 }
14712 Py_INCREF(Py_None); resultobj = Py_None;
14713 return resultobj;
14714 fail:
14715 return NULL;
14716 }
14717
14718
14719 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
14720 PyObject *resultobj;
14721 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14722 wxString *arg2 = 0 ;
14723 wxColour result;
14724 bool temp2 = False ;
14725 PyObject * obj0 = 0 ;
14726 PyObject * obj1 = 0 ;
14727 char *kwnames[] = {
14728 (char *) "self",(char *) "name", NULL
14729 };
14730
14731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
14732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14733 {
14734 arg2 = wxString_in_helper(obj1);
14735 if (arg2 == NULL) SWIG_fail;
14736 temp2 = True;
14737 }
14738 {
14739 PyThreadState* __tstate = wxPyBeginAllowThreads();
14740 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
14741
14742 wxPyEndAllowThreads(__tstate);
14743 if (PyErr_Occurred()) SWIG_fail;
14744 }
14745 {
14746 wxColour * resultptr;
14747 resultptr = new wxColour((wxColour &) result);
14748 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
14749 }
14750 {
14751 if (temp2)
14752 delete arg2;
14753 }
14754 return resultobj;
14755 fail:
14756 {
14757 if (temp2)
14758 delete arg2;
14759 }
14760 return NULL;
14761 }
14762
14763
14764 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
14765 PyObject *resultobj;
14766 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14767 wxColour *arg2 = 0 ;
14768 wxString result;
14769 wxColour temp2 ;
14770 PyObject * obj0 = 0 ;
14771 PyObject * obj1 = 0 ;
14772 char *kwnames[] = {
14773 (char *) "self",(char *) "colour", NULL
14774 };
14775
14776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
14777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14778 {
14779 arg2 = &temp2;
14780 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14781 }
14782 {
14783 PyThreadState* __tstate = wxPyBeginAllowThreads();
14784 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
14785
14786 wxPyEndAllowThreads(__tstate);
14787 if (PyErr_Occurred()) SWIG_fail;
14788 }
14789 {
14790 #if wxUSE_UNICODE
14791 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14792 #else
14793 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14794 #endif
14795 }
14796 return resultobj;
14797 fail:
14798 return NULL;
14799 }
14800
14801
14802 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
14803 PyObject *resultobj;
14804 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14805 wxString *arg2 = 0 ;
14806 wxColour *arg3 = 0 ;
14807 bool temp2 = False ;
14808 wxColour temp3 ;
14809 PyObject * obj0 = 0 ;
14810 PyObject * obj1 = 0 ;
14811 PyObject * obj2 = 0 ;
14812 char *kwnames[] = {
14813 (char *) "self",(char *) "name",(char *) "colour", NULL
14814 };
14815
14816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
14817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14818 {
14819 arg2 = wxString_in_helper(obj1);
14820 if (arg2 == NULL) SWIG_fail;
14821 temp2 = True;
14822 }
14823 {
14824 arg3 = &temp3;
14825 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14826 }
14827 {
14828 PyThreadState* __tstate = wxPyBeginAllowThreads();
14829 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
14830
14831 wxPyEndAllowThreads(__tstate);
14832 if (PyErr_Occurred()) SWIG_fail;
14833 }
14834 Py_INCREF(Py_None); resultobj = Py_None;
14835 {
14836 if (temp2)
14837 delete arg2;
14838 }
14839 return resultobj;
14840 fail:
14841 {
14842 if (temp2)
14843 delete arg2;
14844 }
14845 return NULL;
14846 }
14847
14848
14849 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
14850 PyObject *resultobj;
14851 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14852 wxString *arg2 = 0 ;
14853 int arg3 ;
14854 int arg4 ;
14855 int arg5 ;
14856 bool temp2 = False ;
14857 PyObject * obj0 = 0 ;
14858 PyObject * obj1 = 0 ;
14859 char *kwnames[] = {
14860 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
14861 };
14862
14863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
14864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14865 {
14866 arg2 = wxString_in_helper(obj1);
14867 if (arg2 == NULL) SWIG_fail;
14868 temp2 = True;
14869 }
14870 {
14871 PyThreadState* __tstate = wxPyBeginAllowThreads();
14872 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
14873
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 Py_INCREF(Py_None); resultobj = Py_None;
14878 {
14879 if (temp2)
14880 delete arg2;
14881 }
14882 return resultobj;
14883 fail:
14884 {
14885 if (temp2)
14886 delete arg2;
14887 }
14888 return NULL;
14889 }
14890
14891
14892 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
14893 PyObject *obj;
14894 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14895 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
14896 Py_INCREF(obj);
14897 return Py_BuildValue((char *)"");
14898 }
14899 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14900 PyObject *resultobj;
14901 wxFontList *arg1 = (wxFontList *) 0 ;
14902 wxFont *arg2 = (wxFont *) 0 ;
14903 PyObject * obj0 = 0 ;
14904 PyObject * obj1 = 0 ;
14905 char *kwnames[] = {
14906 (char *) "self",(char *) "font", NULL
14907 };
14908
14909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
14910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14911 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14912 {
14913 PyThreadState* __tstate = wxPyBeginAllowThreads();
14914 (arg1)->AddFont(arg2);
14915
14916 wxPyEndAllowThreads(__tstate);
14917 if (PyErr_Occurred()) SWIG_fail;
14918 }
14919 Py_INCREF(Py_None); resultobj = Py_None;
14920 return resultobj;
14921 fail:
14922 return NULL;
14923 }
14924
14925
14926 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14927 PyObject *resultobj;
14928 wxFontList *arg1 = (wxFontList *) 0 ;
14929 int arg2 ;
14930 int arg3 ;
14931 int arg4 ;
14932 int arg5 ;
14933 bool arg6 = (bool) False ;
14934 wxString const &arg7_defvalue = wxPyEmptyString ;
14935 wxString *arg7 = (wxString *) &arg7_defvalue ;
14936 int arg8 = (int) wxFONTENCODING_DEFAULT ;
14937 wxFont *result;
14938 bool temp7 = False ;
14939 PyObject * obj0 = 0 ;
14940 PyObject * obj5 = 0 ;
14941 PyObject * obj6 = 0 ;
14942 char *kwnames[] = {
14943 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
14944 };
14945
14946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
14947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14948 if (obj5) {
14949 {
14950 arg6 = (bool) SPyObj_AsBool(obj5);
14951 if (PyErr_Occurred()) SWIG_fail;
14952 }
14953 }
14954 if (obj6) {
14955 {
14956 arg7 = wxString_in_helper(obj6);
14957 if (arg7 == NULL) SWIG_fail;
14958 temp7 = True;
14959 }
14960 }
14961 {
14962 PyThreadState* __tstate = wxPyBeginAllowThreads();
14963 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
14964
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
14969 {
14970 if (temp7)
14971 delete arg7;
14972 }
14973 return resultobj;
14974 fail:
14975 {
14976 if (temp7)
14977 delete arg7;
14978 }
14979 return NULL;
14980 }
14981
14982
14983 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14984 PyObject *resultobj;
14985 wxFontList *arg1 = (wxFontList *) 0 ;
14986 wxFont *arg2 = (wxFont *) 0 ;
14987 PyObject * obj0 = 0 ;
14988 PyObject * obj1 = 0 ;
14989 char *kwnames[] = {
14990 (char *) "self",(char *) "font", NULL
14991 };
14992
14993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
14994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14995 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14996 {
14997 PyThreadState* __tstate = wxPyBeginAllowThreads();
14998 (arg1)->RemoveFont(arg2);
14999
15000 wxPyEndAllowThreads(__tstate);
15001 if (PyErr_Occurred()) SWIG_fail;
15002 }
15003 Py_INCREF(Py_None); resultobj = Py_None;
15004 return resultobj;
15005 fail:
15006 return NULL;
15007 }
15008
15009
15010 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15011 PyObject *resultobj;
15012 wxFontList *arg1 = (wxFontList *) 0 ;
15013 int result;
15014 PyObject * obj0 = 0 ;
15015 char *kwnames[] = {
15016 (char *) "self", NULL
15017 };
15018
15019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
15020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15021 {
15022 PyThreadState* __tstate = wxPyBeginAllowThreads();
15023 result = (int)(arg1)->GetCount();
15024
15025 wxPyEndAllowThreads(__tstate);
15026 if (PyErr_Occurred()) SWIG_fail;
15027 }
15028 resultobj = PyInt_FromLong((long)result);
15029 return resultobj;
15030 fail:
15031 return NULL;
15032 }
15033
15034
15035 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
15036 PyObject *obj;
15037 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15038 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
15039 Py_INCREF(obj);
15040 return Py_BuildValue((char *)"");
15041 }
15042 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
15043 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
15044 return 1;
15045 }
15046
15047
15048 static PyObject *_wrap_NORMAL_FONT_get() {
15049 PyObject *pyobj;
15050
15051 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
15052 return pyobj;
15053 }
15054
15055
15056 static int _wrap_SMALL_FONT_set(PyObject *_val) {
15057 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
15058 return 1;
15059 }
15060
15061
15062 static PyObject *_wrap_SMALL_FONT_get() {
15063 PyObject *pyobj;
15064
15065 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
15066 return pyobj;
15067 }
15068
15069
15070 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
15071 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
15072 return 1;
15073 }
15074
15075
15076 static PyObject *_wrap_ITALIC_FONT_get() {
15077 PyObject *pyobj;
15078
15079 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
15080 return pyobj;
15081 }
15082
15083
15084 static int _wrap_SWISS_FONT_set(PyObject *_val) {
15085 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
15086 return 1;
15087 }
15088
15089
15090 static PyObject *_wrap_SWISS_FONT_get() {
15091 PyObject *pyobj;
15092
15093 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
15094 return pyobj;
15095 }
15096
15097
15098 static int _wrap_RED_PEN_set(PyObject *_val) {
15099 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
15100 return 1;
15101 }
15102
15103
15104 static PyObject *_wrap_RED_PEN_get() {
15105 PyObject *pyobj;
15106
15107 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
15108 return pyobj;
15109 }
15110
15111
15112 static int _wrap_CYAN_PEN_set(PyObject *_val) {
15113 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
15114 return 1;
15115 }
15116
15117
15118 static PyObject *_wrap_CYAN_PEN_get() {
15119 PyObject *pyobj;
15120
15121 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
15122 return pyobj;
15123 }
15124
15125
15126 static int _wrap_GREEN_PEN_set(PyObject *_val) {
15127 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
15128 return 1;
15129 }
15130
15131
15132 static PyObject *_wrap_GREEN_PEN_get() {
15133 PyObject *pyobj;
15134
15135 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
15136 return pyobj;
15137 }
15138
15139
15140 static int _wrap_BLACK_PEN_set(PyObject *_val) {
15141 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
15142 return 1;
15143 }
15144
15145
15146 static PyObject *_wrap_BLACK_PEN_get() {
15147 PyObject *pyobj;
15148
15149 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
15150 return pyobj;
15151 }
15152
15153
15154 static int _wrap_WHITE_PEN_set(PyObject *_val) {
15155 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
15156 return 1;
15157 }
15158
15159
15160 static PyObject *_wrap_WHITE_PEN_get() {
15161 PyObject *pyobj;
15162
15163 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
15164 return pyobj;
15165 }
15166
15167
15168 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
15169 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
15170 return 1;
15171 }
15172
15173
15174 static PyObject *_wrap_TRANSPARENT_PEN_get() {
15175 PyObject *pyobj;
15176
15177 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
15178 return pyobj;
15179 }
15180
15181
15182 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
15183 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
15184 return 1;
15185 }
15186
15187
15188 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
15189 PyObject *pyobj;
15190
15191 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
15192 return pyobj;
15193 }
15194
15195
15196 static int _wrap_GREY_PEN_set(PyObject *_val) {
15197 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
15198 return 1;
15199 }
15200
15201
15202 static PyObject *_wrap_GREY_PEN_get() {
15203 PyObject *pyobj;
15204
15205 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
15206 return pyobj;
15207 }
15208
15209
15210 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
15211 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
15212 return 1;
15213 }
15214
15215
15216 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
15217 PyObject *pyobj;
15218
15219 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15220 return pyobj;
15221 }
15222
15223
15224 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
15225 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
15226 return 1;
15227 }
15228
15229
15230 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
15231 PyObject *pyobj;
15232
15233 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15234 return pyobj;
15235 }
15236
15237
15238 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
15239 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
15240 return 1;
15241 }
15242
15243
15244 static PyObject *_wrap_BLUE_BRUSH_get() {
15245 PyObject *pyobj;
15246
15247 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15248 return pyobj;
15249 }
15250
15251
15252 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
15253 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
15254 return 1;
15255 }
15256
15257
15258 static PyObject *_wrap_GREEN_BRUSH_get() {
15259 PyObject *pyobj;
15260
15261 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15262 return pyobj;
15263 }
15264
15265
15266 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
15267 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
15268 return 1;
15269 }
15270
15271
15272 static PyObject *_wrap_WHITE_BRUSH_get() {
15273 PyObject *pyobj;
15274
15275 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15276 return pyobj;
15277 }
15278
15279
15280 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
15281 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
15282 return 1;
15283 }
15284
15285
15286 static PyObject *_wrap_BLACK_BRUSH_get() {
15287 PyObject *pyobj;
15288
15289 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
15290 return pyobj;
15291 }
15292
15293
15294 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
15295 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
15296 return 1;
15297 }
15298
15299
15300 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
15301 PyObject *pyobj;
15302
15303 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
15304 return pyobj;
15305 }
15306
15307
15308 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
15309 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
15310 return 1;
15311 }
15312
15313
15314 static PyObject *_wrap_CYAN_BRUSH_get() {
15315 PyObject *pyobj;
15316
15317 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15318 return pyobj;
15319 }
15320
15321
15322 static int _wrap_RED_BRUSH_set(PyObject *_val) {
15323 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
15324 return 1;
15325 }
15326
15327
15328 static PyObject *_wrap_RED_BRUSH_get() {
15329 PyObject *pyobj;
15330
15331 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
15332 return pyobj;
15333 }
15334
15335
15336 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
15337 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
15338 return 1;
15339 }
15340
15341
15342 static PyObject *_wrap_GREY_BRUSH_get() {
15343 PyObject *pyobj;
15344
15345 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15346 return pyobj;
15347 }
15348
15349
15350 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
15351 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
15352 return 1;
15353 }
15354
15355
15356 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
15357 PyObject *pyobj;
15358
15359 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15360 return pyobj;
15361 }
15362
15363
15364 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
15365 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15366 return 1;
15367 }
15368
15369
15370 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15371 PyObject *pyobj;
15372
15373 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15374 return pyobj;
15375 }
15376
15377
15378 static int _wrap_BLACK_set(PyObject *_val) {
15379 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15380 return 1;
15381 }
15382
15383
15384 static PyObject *_wrap_BLACK_get() {
15385 PyObject *pyobj;
15386
15387 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15388 return pyobj;
15389 }
15390
15391
15392 static int _wrap_WHITE_set(PyObject *_val) {
15393 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15394 return 1;
15395 }
15396
15397
15398 static PyObject *_wrap_WHITE_get() {
15399 PyObject *pyobj;
15400
15401 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15402 return pyobj;
15403 }
15404
15405
15406 static int _wrap_RED_set(PyObject *_val) {
15407 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15408 return 1;
15409 }
15410
15411
15412 static PyObject *_wrap_RED_get() {
15413 PyObject *pyobj;
15414
15415 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15416 return pyobj;
15417 }
15418
15419
15420 static int _wrap_BLUE_set(PyObject *_val) {
15421 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15422 return 1;
15423 }
15424
15425
15426 static PyObject *_wrap_BLUE_get() {
15427 PyObject *pyobj;
15428
15429 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15430 return pyobj;
15431 }
15432
15433
15434 static int _wrap_GREEN_set(PyObject *_val) {
15435 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15436 return 1;
15437 }
15438
15439
15440 static PyObject *_wrap_GREEN_get() {
15441 PyObject *pyobj;
15442
15443 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15444 return pyobj;
15445 }
15446
15447
15448 static int _wrap_CYAN_set(PyObject *_val) {
15449 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15450 return 1;
15451 }
15452
15453
15454 static PyObject *_wrap_CYAN_get() {
15455 PyObject *pyobj;
15456
15457 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15458 return pyobj;
15459 }
15460
15461
15462 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15463 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15464 return 1;
15465 }
15466
15467
15468 static PyObject *_wrap_LIGHT_GREY_get() {
15469 PyObject *pyobj;
15470
15471 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15472 return pyobj;
15473 }
15474
15475
15476 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15477 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15478 return 1;
15479 }
15480
15481
15482 static PyObject *_wrap_STANDARD_CURSOR_get() {
15483 PyObject *pyobj;
15484
15485 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15486 return pyobj;
15487 }
15488
15489
15490 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15491 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15492 return 1;
15493 }
15494
15495
15496 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15497 PyObject *pyobj;
15498
15499 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15500 return pyobj;
15501 }
15502
15503
15504 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15505 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15506 return 1;
15507 }
15508
15509
15510 static PyObject *_wrap_CROSS_CURSOR_get() {
15511 PyObject *pyobj;
15512
15513 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15514 return pyobj;
15515 }
15516
15517
15518 static int _wrap_NullBitmap_set(PyObject *_val) {
15519 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
15520 return 1;
15521 }
15522
15523
15524 static PyObject *_wrap_NullBitmap_get() {
15525 PyObject *pyobj;
15526
15527 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
15528 return pyobj;
15529 }
15530
15531
15532 static int _wrap_NullIcon_set(PyObject *_val) {
15533 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
15534 return 1;
15535 }
15536
15537
15538 static PyObject *_wrap_NullIcon_get() {
15539 PyObject *pyobj;
15540
15541 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
15542 return pyobj;
15543 }
15544
15545
15546 static int _wrap_NullCursor_set(PyObject *_val) {
15547 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
15548 return 1;
15549 }
15550
15551
15552 static PyObject *_wrap_NullCursor_get() {
15553 PyObject *pyobj;
15554
15555 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
15556 return pyobj;
15557 }
15558
15559
15560 static int _wrap_NullPen_set(PyObject *_val) {
15561 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
15562 return 1;
15563 }
15564
15565
15566 static PyObject *_wrap_NullPen_get() {
15567 PyObject *pyobj;
15568
15569 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
15570 return pyobj;
15571 }
15572
15573
15574 static int _wrap_NullBrush_set(PyObject *_val) {
15575 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
15576 return 1;
15577 }
15578
15579
15580 static PyObject *_wrap_NullBrush_get() {
15581 PyObject *pyobj;
15582
15583 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
15584 return pyobj;
15585 }
15586
15587
15588 static int _wrap_NullPalette_set(PyObject *_val) {
15589 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
15590 return 1;
15591 }
15592
15593
15594 static PyObject *_wrap_NullPalette_get() {
15595 PyObject *pyobj;
15596
15597 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
15598 return pyobj;
15599 }
15600
15601
15602 static int _wrap_NullFont_set(PyObject *_val) {
15603 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
15604 return 1;
15605 }
15606
15607
15608 static PyObject *_wrap_NullFont_get() {
15609 PyObject *pyobj;
15610
15611 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
15612 return pyobj;
15613 }
15614
15615
15616 static int _wrap_NullColour_set(PyObject *_val) {
15617 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
15618 return 1;
15619 }
15620
15621
15622 static PyObject *_wrap_NullColour_get() {
15623 PyObject *pyobj;
15624
15625 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
15626 return pyobj;
15627 }
15628
15629
15630 static int _wrap_TheFontList_set(PyObject *_val) {
15631 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
15632 return 1;
15633 }
15634
15635
15636 static PyObject *_wrap_TheFontList_get() {
15637 PyObject *pyobj;
15638
15639 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
15640 return pyobj;
15641 }
15642
15643
15644 static int _wrap_ThePenList_set(PyObject *_val) {
15645 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
15646 return 1;
15647 }
15648
15649
15650 static PyObject *_wrap_ThePenList_get() {
15651 PyObject *pyobj;
15652
15653 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
15654 return pyobj;
15655 }
15656
15657
15658 static int _wrap_TheBrushList_set(PyObject *_val) {
15659 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
15660 return 1;
15661 }
15662
15663
15664 static PyObject *_wrap_TheBrushList_get() {
15665 PyObject *pyobj;
15666
15667 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
15668 return pyobj;
15669 }
15670
15671
15672 static int _wrap_TheColourDatabase_set(PyObject *_val) {
15673 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
15674 return 1;
15675 }
15676
15677
15678 static PyObject *_wrap_TheColourDatabase_get() {
15679 PyObject *pyobj;
15680
15681 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
15682 return pyobj;
15683 }
15684
15685
15686 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
15687 PyObject *resultobj;
15688 wxEffects *result;
15689 char *kwnames[] = {
15690 NULL
15691 };
15692
15693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
15694 {
15695 PyThreadState* __tstate = wxPyBeginAllowThreads();
15696 result = (wxEffects *)new wxEffects();
15697
15698 wxPyEndAllowThreads(__tstate);
15699 if (PyErr_Occurred()) SWIG_fail;
15700 }
15701 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
15702 return resultobj;
15703 fail:
15704 return NULL;
15705 }
15706
15707
15708 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15709 PyObject *resultobj;
15710 wxEffects *arg1 = (wxEffects *) 0 ;
15711 wxColour result;
15712 PyObject * obj0 = 0 ;
15713 char *kwnames[] = {
15714 (char *) "self", NULL
15715 };
15716
15717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15719 {
15720 PyThreadState* __tstate = wxPyBeginAllowThreads();
15721 result = ((wxEffects const *)arg1)->GetHighlightColour();
15722
15723 wxPyEndAllowThreads(__tstate);
15724 if (PyErr_Occurred()) SWIG_fail;
15725 }
15726 {
15727 wxColour * resultptr;
15728 resultptr = new wxColour((wxColour &) result);
15729 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15730 }
15731 return resultobj;
15732 fail:
15733 return NULL;
15734 }
15735
15736
15737 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15738 PyObject *resultobj;
15739 wxEffects *arg1 = (wxEffects *) 0 ;
15740 wxColour result;
15741 PyObject * obj0 = 0 ;
15742 char *kwnames[] = {
15743 (char *) "self", NULL
15744 };
15745
15746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 result = ((wxEffects const *)arg1)->GetLightShadow();
15751
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 {
15756 wxColour * resultptr;
15757 resultptr = new wxColour((wxColour &) result);
15758 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15759 }
15760 return resultobj;
15761 fail:
15762 return NULL;
15763 }
15764
15765
15766 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15767 PyObject *resultobj;
15768 wxEffects *arg1 = (wxEffects *) 0 ;
15769 wxColour result;
15770 PyObject * obj0 = 0 ;
15771 char *kwnames[] = {
15772 (char *) "self", NULL
15773 };
15774
15775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15777 {
15778 PyThreadState* __tstate = wxPyBeginAllowThreads();
15779 result = ((wxEffects const *)arg1)->GetFaceColour();
15780
15781 wxPyEndAllowThreads(__tstate);
15782 if (PyErr_Occurred()) SWIG_fail;
15783 }
15784 {
15785 wxColour * resultptr;
15786 resultptr = new wxColour((wxColour &) result);
15787 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15788 }
15789 return resultobj;
15790 fail:
15791 return NULL;
15792 }
15793
15794
15795 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15796 PyObject *resultobj;
15797 wxEffects *arg1 = (wxEffects *) 0 ;
15798 wxColour result;
15799 PyObject * obj0 = 0 ;
15800 char *kwnames[] = {
15801 (char *) "self", NULL
15802 };
15803
15804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15806 {
15807 PyThreadState* __tstate = wxPyBeginAllowThreads();
15808 result = ((wxEffects const *)arg1)->GetMediumShadow();
15809
15810 wxPyEndAllowThreads(__tstate);
15811 if (PyErr_Occurred()) SWIG_fail;
15812 }
15813 {
15814 wxColour * resultptr;
15815 resultptr = new wxColour((wxColour &) result);
15816 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15817 }
15818 return resultobj;
15819 fail:
15820 return NULL;
15821 }
15822
15823
15824 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15825 PyObject *resultobj;
15826 wxEffects *arg1 = (wxEffects *) 0 ;
15827 wxColour result;
15828 PyObject * obj0 = 0 ;
15829 char *kwnames[] = {
15830 (char *) "self", NULL
15831 };
15832
15833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15835 {
15836 PyThreadState* __tstate = wxPyBeginAllowThreads();
15837 result = ((wxEffects const *)arg1)->GetDarkShadow();
15838
15839 wxPyEndAllowThreads(__tstate);
15840 if (PyErr_Occurred()) SWIG_fail;
15841 }
15842 {
15843 wxColour * resultptr;
15844 resultptr = new wxColour((wxColour &) result);
15845 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15846 }
15847 return resultobj;
15848 fail:
15849 return NULL;
15850 }
15851
15852
15853 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15854 PyObject *resultobj;
15855 wxEffects *arg1 = (wxEffects *) 0 ;
15856 wxColour *arg2 = 0 ;
15857 wxColour temp2 ;
15858 PyObject * obj0 = 0 ;
15859 PyObject * obj1 = 0 ;
15860 char *kwnames[] = {
15861 (char *) "self",(char *) "c", NULL
15862 };
15863
15864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15866 {
15867 arg2 = &temp2;
15868 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15869 }
15870 {
15871 PyThreadState* __tstate = wxPyBeginAllowThreads();
15872 (arg1)->SetHighlightColour((wxColour const &)*arg2);
15873
15874 wxPyEndAllowThreads(__tstate);
15875 if (PyErr_Occurred()) SWIG_fail;
15876 }
15877 Py_INCREF(Py_None); resultobj = Py_None;
15878 return resultobj;
15879 fail:
15880 return NULL;
15881 }
15882
15883
15884 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15885 PyObject *resultobj;
15886 wxEffects *arg1 = (wxEffects *) 0 ;
15887 wxColour *arg2 = 0 ;
15888 wxColour temp2 ;
15889 PyObject * obj0 = 0 ;
15890 PyObject * obj1 = 0 ;
15891 char *kwnames[] = {
15892 (char *) "self",(char *) "c", NULL
15893 };
15894
15895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15896 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15897 {
15898 arg2 = &temp2;
15899 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15900 }
15901 {
15902 PyThreadState* __tstate = wxPyBeginAllowThreads();
15903 (arg1)->SetLightShadow((wxColour const &)*arg2);
15904
15905 wxPyEndAllowThreads(__tstate);
15906 if (PyErr_Occurred()) SWIG_fail;
15907 }
15908 Py_INCREF(Py_None); resultobj = Py_None;
15909 return resultobj;
15910 fail:
15911 return NULL;
15912 }
15913
15914
15915 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15916 PyObject *resultobj;
15917 wxEffects *arg1 = (wxEffects *) 0 ;
15918 wxColour *arg2 = 0 ;
15919 wxColour temp2 ;
15920 PyObject * obj0 = 0 ;
15921 PyObject * obj1 = 0 ;
15922 char *kwnames[] = {
15923 (char *) "self",(char *) "c", NULL
15924 };
15925
15926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15928 {
15929 arg2 = &temp2;
15930 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15931 }
15932 {
15933 PyThreadState* __tstate = wxPyBeginAllowThreads();
15934 (arg1)->SetFaceColour((wxColour const &)*arg2);
15935
15936 wxPyEndAllowThreads(__tstate);
15937 if (PyErr_Occurred()) SWIG_fail;
15938 }
15939 Py_INCREF(Py_None); resultobj = Py_None;
15940 return resultobj;
15941 fail:
15942 return NULL;
15943 }
15944
15945
15946 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15947 PyObject *resultobj;
15948 wxEffects *arg1 = (wxEffects *) 0 ;
15949 wxColour *arg2 = 0 ;
15950 wxColour temp2 ;
15951 PyObject * obj0 = 0 ;
15952 PyObject * obj1 = 0 ;
15953 char *kwnames[] = {
15954 (char *) "self",(char *) "c", NULL
15955 };
15956
15957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15959 {
15960 arg2 = &temp2;
15961 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15962 }
15963 {
15964 PyThreadState* __tstate = wxPyBeginAllowThreads();
15965 (arg1)->SetMediumShadow((wxColour const &)*arg2);
15966
15967 wxPyEndAllowThreads(__tstate);
15968 if (PyErr_Occurred()) SWIG_fail;
15969 }
15970 Py_INCREF(Py_None); resultobj = Py_None;
15971 return resultobj;
15972 fail:
15973 return NULL;
15974 }
15975
15976
15977 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15978 PyObject *resultobj;
15979 wxEffects *arg1 = (wxEffects *) 0 ;
15980 wxColour *arg2 = 0 ;
15981 wxColour temp2 ;
15982 PyObject * obj0 = 0 ;
15983 PyObject * obj1 = 0 ;
15984 char *kwnames[] = {
15985 (char *) "self",(char *) "c", NULL
15986 };
15987
15988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15990 {
15991 arg2 = &temp2;
15992 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15993 }
15994 {
15995 PyThreadState* __tstate = wxPyBeginAllowThreads();
15996 (arg1)->SetDarkShadow((wxColour const &)*arg2);
15997
15998 wxPyEndAllowThreads(__tstate);
15999 if (PyErr_Occurred()) SWIG_fail;
16000 }
16001 Py_INCREF(Py_None); resultobj = Py_None;
16002 return resultobj;
16003 fail:
16004 return NULL;
16005 }
16006
16007
16008 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
16009 PyObject *resultobj;
16010 wxEffects *arg1 = (wxEffects *) 0 ;
16011 wxColour *arg2 = 0 ;
16012 wxColour *arg3 = 0 ;
16013 wxColour *arg4 = 0 ;
16014 wxColour *arg5 = 0 ;
16015 wxColour *arg6 = 0 ;
16016 wxColour temp2 ;
16017 wxColour temp3 ;
16018 wxColour temp4 ;
16019 wxColour temp5 ;
16020 wxColour temp6 ;
16021 PyObject * obj0 = 0 ;
16022 PyObject * obj1 = 0 ;
16023 PyObject * obj2 = 0 ;
16024 PyObject * obj3 = 0 ;
16025 PyObject * obj4 = 0 ;
16026 PyObject * obj5 = 0 ;
16027 char *kwnames[] = {
16028 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
16029 };
16030
16031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
16032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16033 {
16034 arg2 = &temp2;
16035 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16036 }
16037 {
16038 arg3 = &temp3;
16039 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16040 }
16041 {
16042 arg4 = &temp4;
16043 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
16044 }
16045 {
16046 arg5 = &temp5;
16047 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
16048 }
16049 {
16050 arg6 = &temp6;
16051 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
16052 }
16053 {
16054 PyThreadState* __tstate = wxPyBeginAllowThreads();
16055 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
16056
16057 wxPyEndAllowThreads(__tstate);
16058 if (PyErr_Occurred()) SWIG_fail;
16059 }
16060 Py_INCREF(Py_None); resultobj = Py_None;
16061 return resultobj;
16062 fail:
16063 return NULL;
16064 }
16065
16066
16067 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
16068 PyObject *resultobj;
16069 wxEffects *arg1 = (wxEffects *) 0 ;
16070 wxDC *arg2 = 0 ;
16071 wxRect *arg3 = 0 ;
16072 int arg4 = (int) 1 ;
16073 wxRect temp3 ;
16074 PyObject * obj0 = 0 ;
16075 PyObject * obj1 = 0 ;
16076 PyObject * obj2 = 0 ;
16077 char *kwnames[] = {
16078 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
16079 };
16080
16081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
16082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16083 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16084 if (arg2 == NULL) {
16085 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16086 }
16087 {
16088 arg3 = &temp3;
16089 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
16090 }
16091 {
16092 PyThreadState* __tstate = wxPyBeginAllowThreads();
16093 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
16094
16095 wxPyEndAllowThreads(__tstate);
16096 if (PyErr_Occurred()) SWIG_fail;
16097 }
16098 Py_INCREF(Py_None); resultobj = Py_None;
16099 return resultobj;
16100 fail:
16101 return NULL;
16102 }
16103
16104
16105 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16106 PyObject *resultobj;
16107 wxEffects *arg1 = (wxEffects *) 0 ;
16108 wxRect *arg2 = 0 ;
16109 wxDC *arg3 = 0 ;
16110 wxBitmap *arg4 = 0 ;
16111 bool result;
16112 wxRect temp2 ;
16113 PyObject * obj0 = 0 ;
16114 PyObject * obj1 = 0 ;
16115 PyObject * obj2 = 0 ;
16116 PyObject * obj3 = 0 ;
16117 char *kwnames[] = {
16118 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
16119 };
16120
16121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16122 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16123 {
16124 arg2 = &temp2;
16125 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16126 }
16127 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16128 if (arg3 == NULL) {
16129 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16130 }
16131 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16132 if (arg4 == NULL) {
16133 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16134 }
16135 {
16136 PyThreadState* __tstate = wxPyBeginAllowThreads();
16137 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
16138
16139 wxPyEndAllowThreads(__tstate);
16140 if (PyErr_Occurred()) SWIG_fail;
16141 }
16142 resultobj = PyInt_FromLong((long)result);
16143 return resultobj;
16144 fail:
16145 return NULL;
16146 }
16147
16148
16149 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
16150 PyObject *obj;
16151 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16152 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
16153 Py_INCREF(obj);
16154 return Py_BuildValue((char *)"");
16155 }
16156 static PyMethodDef SwigMethods[] = {
16157 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
16158 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
16159 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
16160 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
16161 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
16162 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
16163 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
16164 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
16165 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
16166 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
16167 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
16168 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
16169 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
16170 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
16171 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
16172 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
16173 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
16174 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
16175 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
16176 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
16177 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
16178 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
16179 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
16180 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
16181 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
16182 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
16183 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
16184 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
16185 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
16186 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
16187 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
16188 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
16189 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
16190 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
16191 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
16192 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
16193 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
16194 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
16195 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
16196 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
16197 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
16198 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
16199 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
16200 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
16201 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
16202 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
16203 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
16204 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
16205 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
16206 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
16207 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
16208 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
16209 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
16210 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
16211 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
16212 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
16213 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
16214 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
16215 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
16216 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
16217 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
16218 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
16219 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
16220 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
16221 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
16222 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
16223 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
16224 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
16225 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
16226 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
16227 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
16228 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
16229 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
16230 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
16231 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
16232 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
16233 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
16234 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
16235 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
16236 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
16237 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
16238 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
16239 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
16240 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
16241 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
16242 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
16243 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
16244 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
16245 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
16246 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
16247 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
16248 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
16249 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
16250 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
16251 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
16252 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
16253 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
16254 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
16255 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
16256 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
16257 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
16258 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
16259 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
16260 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
16261 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
16262 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
16263 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
16264 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
16265 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
16266 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
16267 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
16268 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
16269 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
16270 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
16271 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
16272 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
16273 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
16274 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
16275 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
16276 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
16277 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
16278 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
16279 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
16280 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
16281 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
16282 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
16283 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
16284 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
16285 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
16286 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
16287 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
16288 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
16289 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
16290 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
16291 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
16292 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
16293 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
16294 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
16295 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
16296 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
16297 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
16298 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
16299 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
16300 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
16301 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
16302 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
16303 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
16304 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
16305 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
16306 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
16307 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16308 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16309 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
16310 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
16311 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
16312 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
16313 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
16314 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
16315 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
16316 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
16317 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
16318 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
16319 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
16320 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
16321 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16322 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16323 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
16324 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
16325 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16326 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
16327 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
16328 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16329 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16330 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
16331 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16332 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16333 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
16334 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
16335 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16336 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16337 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
16338 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16339 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16340 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16341 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
16342 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
16343 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
16344 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
16345 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
16346 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
16347 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
16348 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
16349 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16350 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16351 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16352 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16353 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
16354 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
16355 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
16356 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
16357 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
16358 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
16359 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
16360 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
16361 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
16362 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16363 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
16364 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
16365 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
16366 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
16367 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
16368 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16369 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16370 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16371 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16372 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16373 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16374 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16375 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16376 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16377 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16378 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16379 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16380 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16381 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16382 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16383 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16384 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16385 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16386 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16387 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16388 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16389 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16390 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16391 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16392 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16393 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16394 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16395 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16396 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16397 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16398 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16399 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16400 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16401 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16402 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16403 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16404 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16405 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16406 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16407 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16408 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16409 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16410 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16411 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16412 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16413 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16414 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16415 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16416 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16417 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16418 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16419 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16420 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16421 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16422 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16423 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16424 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16425 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16426 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16427 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16428 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16429 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16430 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16431 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16432 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16433 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16434 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16435 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16436 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16437 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16438 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16439 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16440 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16441 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16442 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16443 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16444 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16445 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16446 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16447 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16448 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16449 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16450 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16451 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16452 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16453 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16454 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16455 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16456 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16457 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16458 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16459 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16460 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16461 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16462 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16463 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16464 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16465 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16466 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16467 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16468 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16469 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16470 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16471 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16472 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16473 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16474 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16475 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16476 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16477 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16478 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16479 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16480 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16481 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16482 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16483 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16484 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16485 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16486 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16487 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16488 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16489 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16490 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16491 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16492 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16493 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16494 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16495 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16496 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16497 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
16498 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
16499 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
16500 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
16501 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
16502 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
16503 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
16504 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
16505 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
16506 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
16507 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
16508 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
16509 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
16510 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
16511 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16512 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
16513 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
16514 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
16515 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
16516 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
16517 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
16518 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
16519 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
16520 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
16521 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
16522 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
16523 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
16524 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
16525 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
16526 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
16527 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
16528 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
16529 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
16530 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
16531 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
16532 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
16533 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
16534 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
16535 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
16536 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
16537 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
16538 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
16539 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
16540 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
16541 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
16542 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16543 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
16544 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
16545 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
16546 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
16547 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
16548 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
16549 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
16550 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
16551 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
16552 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
16553 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
16554 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
16555 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16556 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16557 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16558 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
16559 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16560 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16561 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
16562 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16563 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
16564 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16565 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16566 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
16567 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
16568 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
16569 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16570 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
16571 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
16572 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
16573 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
16574 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16575 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
16576 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
16577 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
16578 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
16579 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
16580 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
16581 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
16582 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
16583 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
16584 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
16585 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
16586 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
16587 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
16588 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
16589 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
16590 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
16591 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
16592 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
16593 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
16594 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16595 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16596 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
16597 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
16598 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
16599 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
16600 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
16601 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
16602 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
16603 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
16604 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
16605 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
16606 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
16607 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
16608 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
16609 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
16610 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
16611 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
16612 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
16613 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
16614 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
16615 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
16616 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
16617 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
16618 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
16619 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
16620 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
16621 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
16622 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
16623 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
16624 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
16625 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
16626 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
16627 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
16628 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
16629 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
16630 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
16631 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
16632 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
16633 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
16634 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
16635 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
16636 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
16637 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
16638 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
16639 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16640 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16641 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
16642 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
16643 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
16644 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
16645 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
16646 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
16647 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
16648 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
16649 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
16650 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
16651 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
16652 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16653 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
16654 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
16655 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16656 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16657 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16658 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
16659 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
16660 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16661 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16662 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
16663 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
16664 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
16665 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
16666 { NULL, NULL }
16667 };
16668
16669
16670 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16671
16672 static void *_p_wxControlTo_p_wxWindow(void *x) {
16673 return (void *)((wxWindow *) ((wxControl *) x));
16674 }
16675 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
16676 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
16677 }
16678 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
16679 return (void *)((wxWindow *) ((wxMenuBar *) x));
16680 }
16681 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
16682 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
16683 }
16684 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
16685 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
16686 }
16687 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16688 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16689 }
16690 static void *_p_wxPenTo_p_wxObject(void *x) {
16691 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
16692 }
16693 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
16694 return (void *)((wxObject *) ((wxRegionIterator *) x));
16695 }
16696 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16697 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16698 }
16699 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16700 return (void *)((wxObject *) ((wxSizerItem *) x));
16701 }
16702 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
16703 return (void *)((wxObject *) ((wxColourDatabase *) x));
16704 }
16705 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16706 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16707 }
16708 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16709 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16710 }
16711 static void *_p_wxIconTo_p_wxObject(void *x) {
16712 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
16713 }
16714 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16715 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16716 }
16717 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16718 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16719 }
16720 static void *_p_wxSizerTo_p_wxObject(void *x) {
16721 return (void *)((wxObject *) ((wxSizer *) x));
16722 }
16723 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16724 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16725 }
16726 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16727 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16728 }
16729 static void *_p_wxPenListTo_p_wxObject(void *x) {
16730 return (void *)((wxObject *) ((wxPenList *) x));
16731 }
16732 static void *_p_wxEventTo_p_wxObject(void *x) {
16733 return (void *)((wxObject *) ((wxEvent *) x));
16734 }
16735 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16736 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16737 }
16738 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16739 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16740 }
16741 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16742 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16743 }
16744 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16745 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16746 }
16747 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16748 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16749 }
16750 static void *_p_wxDCTo_p_wxObject(void *x) {
16751 return (void *)((wxObject *) ((wxDC *) x));
16752 }
16753 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16754 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16755 }
16756 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16757 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16758 }
16759 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16760 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16761 }
16762 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16763 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16764 }
16765 static void *_p_wxControlTo_p_wxObject(void *x) {
16766 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16767 }
16768 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16769 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16770 }
16771 static void *_p_wxClientDCTo_p_wxObject(void *x) {
16772 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
16773 }
16774 static void *_p_wxFSFileTo_p_wxObject(void *x) {
16775 return (void *)((wxObject *) ((wxFSFile *) x));
16776 }
16777 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
16778 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
16779 }
16780 static void *_p_wxRegionTo_p_wxObject(void *x) {
16781 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
16782 }
16783 static void *_p_wxPySizerTo_p_wxObject(void *x) {
16784 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16785 }
16786 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
16787 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
16788 }
16789 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
16790 return (void *)((wxObject *) ((wxGDIObject *) x));
16791 }
16792 static void *_p_wxEffectsTo_p_wxObject(void *x) {
16793 return (void *)((wxObject *) ((wxEffects *) x));
16794 }
16795 static void *_p_wxPyEventTo_p_wxObject(void *x) {
16796 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16797 }
16798 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16799 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16800 }
16801 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
16802 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
16803 }
16804 static void *_p_wxShowEventTo_p_wxObject(void *x) {
16805 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16806 }
16807 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16808 return (void *)((wxObject *) ((wxMenuItem *) x));
16809 }
16810 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16811 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16812 }
16813 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16814 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16815 }
16816 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16817 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16818 }
16819 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16820 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16821 }
16822 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16823 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16824 }
16825 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16826 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16827 }
16828 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16829 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16830 }
16831 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16832 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16833 }
16834 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16835 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16836 }
16837 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16838 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16839 }
16840 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16841 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16842 }
16843 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16844 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16845 }
16846 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16847 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16848 }
16849 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16850 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16851 }
16852 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16853 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16854 }
16855 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16856 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16857 }
16858 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16859 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16860 }
16861 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16862 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16863 }
16864 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16865 return (void *)((wxObject *) ((wxImageHandler *) x));
16866 }
16867 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16868 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16869 }
16870 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16871 return (void *)((wxObject *) ((wxEvtHandler *) x));
16872 }
16873 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
16874 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16875 }
16876 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
16877 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
16878 }
16879 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
16880 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
16881 }
16882 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
16883 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
16884 }
16885 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16886 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16887 }
16888 static void *_p_wxImageTo_p_wxObject(void *x) {
16889 return (void *)((wxObject *) ((wxImage *) x));
16890 }
16891 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16892 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16893 }
16894 static void *_p_wxPaletteTo_p_wxObject(void *x) {
16895 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
16896 }
16897 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
16898 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
16899 }
16900 static void *_p_wxImageListTo_p_wxObject(void *x) {
16901 return (void *)((wxObject *) ((wxImageList *) x));
16902 }
16903 static void *_p_wxCursorTo_p_wxObject(void *x) {
16904 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
16905 }
16906 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
16907 return (void *)((wxObject *) ((wxEncodingConverter *) x));
16908 }
16909 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
16910 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
16911 }
16912 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16913 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16914 }
16915 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16916 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16917 }
16918 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16919 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16920 }
16921 static void *_p_wxWindowTo_p_wxObject(void *x) {
16922 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16923 }
16924 static void *_p_wxMenuTo_p_wxObject(void *x) {
16925 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16926 }
16927 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16928 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16929 }
16930 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
16931 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
16932 }
16933 static void *_p_wxBrushListTo_p_wxObject(void *x) {
16934 return (void *)((wxObject *) ((wxBrushList *) x));
16935 }
16936 static void *_p_wxPyPenTo_p_wxObject(void *x) {
16937 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
16938 }
16939 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16940 return (void *)((wxObject *) ((wxFileSystem *) x));
16941 }
16942 static void *_p_wxBitmapTo_p_wxObject(void *x) {
16943 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
16944 }
16945 static void *_p_wxMaskTo_p_wxObject(void *x) {
16946 return (void *)((wxObject *) ((wxMask *) x));
16947 }
16948 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16949 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16950 }
16951 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16952 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16953 }
16954 static void *_p_wxPyAppTo_p_wxObject(void *x) {
16955 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16956 }
16957 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16958 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16959 }
16960 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16961 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16962 }
16963 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16964 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16965 }
16966 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16967 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16968 }
16969 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16970 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16971 }
16972 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16973 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16974 }
16975 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16976 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16977 }
16978 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16979 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16980 }
16981 static void *_p_wxFontTo_p_wxObject(void *x) {
16982 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
16983 }
16984 static void *_p_wxBrushTo_p_wxObject(void *x) {
16985 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
16986 }
16987 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
16988 return (void *)((wxObject *) ((wxMetaFile *) x));
16989 }
16990 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16991 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16992 }
16993 static void *_p_wxColourTo_p_wxObject(void *x) {
16994 return (void *)((wxObject *) ((wxColour *) x));
16995 }
16996 static void *_p_wxFontListTo_p_wxObject(void *x) {
16997 return (void *)((wxObject *) ((wxFontList *) x));
16998 }
16999 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
17000 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
17001 }
17002 static void *_p_wxValidatorTo_p_wxObject(void *x) {
17003 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
17004 }
17005 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
17006 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
17007 }
17008 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
17009 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
17010 }
17011 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
17012 return (void *)((wxDC *) ((wxScreenDC *) x));
17013 }
17014 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
17015 return (void *)((wxDC *) ((wxMirrorDC *) x));
17016 }
17017 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
17018 return (void *)((wxDC *) ((wxMemoryDC *) x));
17019 }
17020 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
17021 return (void *)((wxDC *) ((wxWindowDC *) x));
17022 }
17023 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
17024 return (void *)((wxDC *) ((wxMetaFileDC *) x));
17025 }
17026 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
17027 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
17028 }
17029 static void *_p_wxClientDCTo_p_wxDC(void *x) {
17030 return (void *)((wxDC *) ((wxClientDC *) x));
17031 }
17032 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
17033 return (void *)((wxDC *) ((wxPaintDC *) x));
17034 }
17035 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
17036 return (void *)((wxDC *) ((wxPostScriptDC *) x));
17037 }
17038 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
17039 return (void *)((wxDC *) ((wxPrinterDC *) x));
17040 }
17041 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
17042 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
17043 }
17044 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
17045 return (void *)((wxGDIObject *) ((wxIcon *) x));
17046 }
17047 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
17048 return (void *)((wxGDIObject *) ((wxPalette *) x));
17049 }
17050 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
17051 return (void *)((wxGDIObject *) ((wxPen *) x));
17052 }
17053 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
17054 return (void *)((wxGDIObject *) ((wxFont *) x));
17055 }
17056 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
17057 return (void *)((wxGDIObject *) ((wxCursor *) x));
17058 }
17059 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
17060 return (void *)((wxGDIObject *) ((wxBitmap *) x));
17061 }
17062 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
17063 return (void *)((wxGDIObject *) ((wxRegion *) x));
17064 }
17065 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
17066 return (void *)((wxGDIObject *) ((wxBrush *) x));
17067 }
17068 static void *_p_wxPyPenTo_p_wxPen(void *x) {
17069 return (void *)((wxPen *) ((wxPyPen *) x));
17070 }
17071 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
17072 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
17073 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
17074 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC},{"_p_wxDC"},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC},{0}};
17075 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
17076 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
17077 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
17078 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
17079 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
17080 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
17081 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
17082 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
17083 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}};
17084 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
17085 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
17086 static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC},{"_p_wxMemoryDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC},{0}};
17087 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
17088 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
17089 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
17090 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
17091 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
17092 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject},{"_p_wxPen", _p_wxPenTo_p_wxObject},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxPenList", _p_wxPenListTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxMask", _p_wxMaskTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxFont", _p_wxFontTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject},{"_p_wxRegion", _p_wxRegionTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxDC", _p_wxDCTo_p_wxObject},{"_p_wxIcon", _p_wxIconTo_p_wxObject},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject},{"_p_wxImageList", _p_wxImageListTo_p_wxObject},{"_p_wxCursor", _p_wxCursorTo_p_wxObject},{"_p_wxObject"},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject},{"_p_wxPyPen", _p_wxPyPenTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxBrush", _p_wxBrushTo_p_wxObject},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxColour", _p_wxColourTo_p_wxObject},{"_p_wxFontList", _p_wxFontListTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}};
17093 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
17094 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
17095 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
17096 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
17097 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
17098 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
17099 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
17100 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
17101 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
17102 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
17103 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
17104 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
17105 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
17106 static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject},{"_p_wxPyPen", _p_wxPyPenTo_p_wxGDIObject},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject},{"_p_wxGDIObject"},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject},{0}};
17107 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
17108 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
17109 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
17110 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
17111 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
17112 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
17113 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
17114 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
17115 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
17116 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
17117 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
17118 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
17119 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
17120 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
17121 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
17122 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
17123 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
17124 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
17125 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
17126
17127 static swig_type_info *swig_types_initial[] = {
17128 _swigt__p_wxPostScriptDC,
17129 _swigt__p_wxBrush,
17130 _swigt__p_wxColour,
17131 _swigt__p_wxDC,
17132 _swigt__p_wxMirrorDC,
17133 _swigt__p_byte,
17134 _swigt__p_wxPyFontEnumerator,
17135 _swigt__p_wxIconLocation,
17136 _swigt__p_wxImage,
17137 _swigt__p_wxMetaFileDC,
17138 _swigt__p_wxMask,
17139 _swigt__p_wxFont,
17140 _swigt__p_wxWindow,
17141 _swigt__p_wxSize,
17142 _swigt__p_double,
17143 _swigt__p_wxMemoryDC,
17144 _swigt__p_wxFontMapper,
17145 _swigt__p_wxEffects,
17146 _swigt__p_wxNativeEncodingInfo,
17147 _swigt__p_wxPalette,
17148 _swigt__p_wxBitmap,
17149 _swigt__p_wxObject,
17150 _swigt__p_wxRegionIterator,
17151 _swigt__p_wxRect,
17152 _swigt__p_wxString,
17153 _swigt__p_wxPrinterDC,
17154 _swigt__p_wxIconBundle,
17155 _swigt__p_wxPoint,
17156 _swigt__p_wxDash,
17157 _swigt__p_wxScreenDC,
17158 _swigt__p_wxCursor,
17159 _swigt__p_wxClientDC,
17160 _swigt__p_wxBufferedDC,
17161 _swigt__p_wxImageList,
17162 _swigt__p_unsigned_char,
17163 _swigt__p_wxGDIObject,
17164 _swigt__p_wxLocale,
17165 _swigt__p_wxIcon,
17166 _swigt__p_wxRegion,
17167 _swigt__p_wxLanguageInfo,
17168 _swigt__p_wxConfigBase,
17169 _swigt__p_wxWindowDC,
17170 _swigt__p_wxPrintData,
17171 _swigt__p_wxBrushList,
17172 _swigt__p_wxFontList,
17173 _swigt__p_wxPen,
17174 _swigt__p_wxBufferedPaintDC,
17175 _swigt__p_wxPaintDC,
17176 _swigt__p_wxPenList,
17177 _swigt__p_wxPyPen,
17178 _swigt__p_int,
17179 _swigt__p_wxMetaFile,
17180 _swigt__p_wxNativeFontInfo,
17181 _swigt__p_wxEncodingConverter,
17182 _swigt__p_wxColourDatabase,
17183 0
17184 };
17185
17186
17187 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
17188
17189 static swig_const_info swig_const_table[] = {
17190 { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
17191 { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
17192 { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
17193 { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
17194 { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
17195 { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
17196 { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
17197 { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
17198 { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
17199 { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
17200 { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
17201 { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
17202 { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
17203 { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
17204 { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
17205 { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
17206 { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
17207 { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
17208 { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
17209 { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
17210 { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
17211 { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
17212 { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
17213 { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
17214 { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
17215 { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
17216 { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
17217 { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
17218 { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
17219 { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
17220 { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
17221 { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
17222 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
17223 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
17224 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
17225 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
17226 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
17227 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
17228 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
17229 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
17230 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
17231 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
17232 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
17233 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
17234 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
17235 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
17236 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
17237 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
17238 { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
17239 { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
17240 { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
17241 { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
17242 { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
17243 { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
17244 { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
17245 { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
17246 { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
17247 { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
17248 { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
17249 { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
17250 { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
17251 { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
17252 { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
17253 { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
17254 { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
17255 { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
17256 { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
17257 { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
17258 { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
17259 { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
17260 { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
17261 { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
17262 { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
17263 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
17264 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
17265 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
17266 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
17267 { SWIG_PY_INT, (char *)"FONTENCODING_MACROMAN", (long) wxFONTENCODING_MACROMAN, 0, 0, 0},
17268 { SWIG_PY_INT, (char *)"FONTENCODING_MACJAPANESE", (long) wxFONTENCODING_MACJAPANESE, 0, 0, 0},
17269 { SWIG_PY_INT, (char *)"FONTENCODING_MACCHINESETRAD", (long) wxFONTENCODING_MACCHINESETRAD, 0, 0, 0},
17270 { SWIG_PY_INT, (char *)"FONTENCODING_MACKOREAN", (long) wxFONTENCODING_MACKOREAN, 0, 0, 0},
17271 { SWIG_PY_INT, (char *)"FONTENCODING_MACARABIC", (long) wxFONTENCODING_MACARABIC, 0, 0, 0},
17272 { SWIG_PY_INT, (char *)"FONTENCODING_MACHEBREW", (long) wxFONTENCODING_MACHEBREW, 0, 0, 0},
17273 { SWIG_PY_INT, (char *)"FONTENCODING_MACGREEK", (long) wxFONTENCODING_MACGREEK, 0, 0, 0},
17274 { SWIG_PY_INT, (char *)"FONTENCODING_MACCYRILLIC", (long) wxFONTENCODING_MACCYRILLIC, 0, 0, 0},
17275 { SWIG_PY_INT, (char *)"FONTENCODING_MACDEVANAGARI", (long) wxFONTENCODING_MACDEVANAGARI, 0, 0, 0},
17276 { SWIG_PY_INT, (char *)"FONTENCODING_MACGURMUKHI", (long) wxFONTENCODING_MACGURMUKHI, 0, 0, 0},
17277 { SWIG_PY_INT, (char *)"FONTENCODING_MACGUJARATI", (long) wxFONTENCODING_MACGUJARATI, 0, 0, 0},
17278 { SWIG_PY_INT, (char *)"FONTENCODING_MACORIYA", (long) wxFONTENCODING_MACORIYA, 0, 0, 0},
17279 { SWIG_PY_INT, (char *)"FONTENCODING_MACBENGALI", (long) wxFONTENCODING_MACBENGALI, 0, 0, 0},
17280 { SWIG_PY_INT, (char *)"FONTENCODING_MACTAMIL", (long) wxFONTENCODING_MACTAMIL, 0, 0, 0},
17281 { SWIG_PY_INT, (char *)"FONTENCODING_MACTELUGU", (long) wxFONTENCODING_MACTELUGU, 0, 0, 0},
17282 { SWIG_PY_INT, (char *)"FONTENCODING_MACKANNADA", (long) wxFONTENCODING_MACKANNADA, 0, 0, 0},
17283 { SWIG_PY_INT, (char *)"FONTENCODING_MACMALAJALAM", (long) wxFONTENCODING_MACMALAJALAM, 0, 0, 0},
17284 { SWIG_PY_INT, (char *)"FONTENCODING_MACSINHALESE", (long) wxFONTENCODING_MACSINHALESE, 0, 0, 0},
17285 { SWIG_PY_INT, (char *)"FONTENCODING_MACBURMESE", (long) wxFONTENCODING_MACBURMESE, 0, 0, 0},
17286 { SWIG_PY_INT, (char *)"FONTENCODING_MACKHMER", (long) wxFONTENCODING_MACKHMER, 0, 0, 0},
17287 { SWIG_PY_INT, (char *)"FONTENCODING_MACTHAI", (long) wxFONTENCODING_MACTHAI, 0, 0, 0},
17288 { SWIG_PY_INT, (char *)"FONTENCODING_MACLAOTIAN", (long) wxFONTENCODING_MACLAOTIAN, 0, 0, 0},
17289 { SWIG_PY_INT, (char *)"FONTENCODING_MACGEORGIAN", (long) wxFONTENCODING_MACGEORGIAN, 0, 0, 0},
17290 { SWIG_PY_INT, (char *)"FONTENCODING_MACARMENIAN", (long) wxFONTENCODING_MACARMENIAN, 0, 0, 0},
17291 { SWIG_PY_INT, (char *)"FONTENCODING_MACCHINESESIMP", (long) wxFONTENCODING_MACCHINESESIMP, 0, 0, 0},
17292 { SWIG_PY_INT, (char *)"FONTENCODING_MACTIBETAN", (long) wxFONTENCODING_MACTIBETAN, 0, 0, 0},
17293 { SWIG_PY_INT, (char *)"FONTENCODING_MACMONGOLIAN", (long) wxFONTENCODING_MACMONGOLIAN, 0, 0, 0},
17294 { SWIG_PY_INT, (char *)"FONTENCODING_MACETHIOPIC", (long) wxFONTENCODING_MACETHIOPIC, 0, 0, 0},
17295 { SWIG_PY_INT, (char *)"FONTENCODING_MACCENTRALEUR", (long) wxFONTENCODING_MACCENTRALEUR, 0, 0, 0},
17296 { SWIG_PY_INT, (char *)"FONTENCODING_MACVIATNAMESE", (long) wxFONTENCODING_MACVIATNAMESE, 0, 0, 0},
17297 { SWIG_PY_INT, (char *)"FONTENCODING_MACARABICEXT", (long) wxFONTENCODING_MACARABICEXT, 0, 0, 0},
17298 { SWIG_PY_INT, (char *)"FONTENCODING_MACSYMBOL", (long) wxFONTENCODING_MACSYMBOL, 0, 0, 0},
17299 { SWIG_PY_INT, (char *)"FONTENCODING_MACDINGBATS", (long) wxFONTENCODING_MACDINGBATS, 0, 0, 0},
17300 { SWIG_PY_INT, (char *)"FONTENCODING_MACTURKISH", (long) wxFONTENCODING_MACTURKISH, 0, 0, 0},
17301 { SWIG_PY_INT, (char *)"FONTENCODING_MACCROATIAN", (long) wxFONTENCODING_MACCROATIAN, 0, 0, 0},
17302 { SWIG_PY_INT, (char *)"FONTENCODING_MACICELANDIC", (long) wxFONTENCODING_MACICELANDIC, 0, 0, 0},
17303 { SWIG_PY_INT, (char *)"FONTENCODING_MACROMANIAN", (long) wxFONTENCODING_MACROMANIAN, 0, 0, 0},
17304 { SWIG_PY_INT, (char *)"FONTENCODING_MACCELTIC", (long) wxFONTENCODING_MACCELTIC, 0, 0, 0},
17305 { SWIG_PY_INT, (char *)"FONTENCODING_MACGAELIC", (long) wxFONTENCODING_MACGAELIC, 0, 0, 0},
17306 { SWIG_PY_INT, (char *)"FONTENCODING_MACKEYBOARD", (long) wxFONTENCODING_MACKEYBOARD, 0, 0, 0},
17307 { SWIG_PY_INT, (char *)"FONTENCODING_MACMIN", (long) wxFONTENCODING_MACMIN, 0, 0, 0},
17308 { SWIG_PY_INT, (char *)"FONTENCODING_MACMAX", (long) wxFONTENCODING_MACMAX, 0, 0, 0},
17309 { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
17310 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
17311 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
17312 { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
17313 { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
17314 { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
17315 { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
17316 { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
17317 { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
17318 { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
17319 { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
17320 { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
17321 { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
17322 { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
17323 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
17324 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
17325 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
17326 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
17327 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
17328 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
17329 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
17330 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
17331 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
17332 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
17333 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
17334 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
17335 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
17336 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
17337 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
17338 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
17339 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
17340 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
17341 { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
17342 { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
17343 { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
17344 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
17345 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
17346 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
17347 { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
17348 { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
17349 { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
17350 { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
17351 { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
17352 { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
17353 { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
17354 { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
17355 { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
17356 { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
17357 { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
17358 { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
17359 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
17360 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
17361 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
17362 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
17363 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
17364 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
17365 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
17366 { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
17367 { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
17368 { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
17369 { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
17370 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
17371 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
17372 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
17373 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
17374 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
17375 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
17376 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
17377 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
17378 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
17379 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
17380 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
17381 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
17382 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
17383 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
17384 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
17385 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
17386 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
17387 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
17388 { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
17389 { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
17390 { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
17391 { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
17392 { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
17393 { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
17394 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
17395 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
17396 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
17397 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
17398 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
17399 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
17400 { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
17401 { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
17402 { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
17403 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
17404 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
17405 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
17406 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
17407 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
17408 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
17409 { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
17410 { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17411 { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17412 { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17413 { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17414 { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17415 { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17416 { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17417 { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17418 { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17419 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17420 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17421 { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17422 { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17423 { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17424 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17425 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17426 { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17427 { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17428 { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17429 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17430 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17431 { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17432 { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17433 { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17434 { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17435 { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17436 { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17437 { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17438 { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17439 { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17440 { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17441 { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17442 { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17443 { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17444 { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17445 { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17446 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17447 { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17448 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17449 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17450 { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17451 { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17452 { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17453 { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17454 { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17455 { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17456 { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17457 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17458 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17459 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17460 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17461 { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17462 { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17463 { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17464 { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17465 { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17466 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17467 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17468 { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17469 { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17470 { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17471 { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17472 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17473 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17474 { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17475 { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17476 { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17477 { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17478 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17479 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17480 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17481 { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17482 { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17483 { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17484 { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17485 { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17486 { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17487 { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17488 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17489 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17490 { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17491 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17492 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17493 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17494 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17495 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17496 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17497 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17498 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17499 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17500 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17501 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17502 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17503 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17504 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17505 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17506 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17507 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17508 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17509 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17510 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17511 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17512 { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17513 { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17514 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17515 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17516 { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17517 { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17518 { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17519 { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17520 { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17521 { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17522 { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17523 { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17524 { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17525 { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17526 { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17527 { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17528 { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17529 { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17530 { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17531 { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
17532 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
17533 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
17534 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
17535 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
17536 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
17537 { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
17538 { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
17539 { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
17540 { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
17541 { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
17542 { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
17543 { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
17544 { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
17545 { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
17546 { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
17547 { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
17548 { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
17549 { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
17550 { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
17551 { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
17552 { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
17553 { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
17554 { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
17555 { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
17556 { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
17557 { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
17558 { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
17559 { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
17560 { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
17561 { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
17562 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
17563 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
17564 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
17565 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
17566 { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
17567 { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
17568 { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
17569 {0}};
17570
17571 #ifdef __cplusplus
17572 }
17573 #endif
17574
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 SWIGEXPORT(void) SWIG_init(void) {
17579 static PyObject *SWIG_globals = 0;
17580 static int typeinit = 0;
17581 PyObject *m, *d;
17582 int i;
17583 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
17584 m = Py_InitModule((char *) SWIG_name, SwigMethods);
17585 d = PyModule_GetDict(m);
17586
17587 if (!typeinit) {
17588 for (i = 0; swig_types_initial[i]; i++) {
17589 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
17590 }
17591 typeinit = 1;
17592 }
17593 SWIG_InstallConstants(d,swig_const_table);
17594
17595
17596 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
17597
17598 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
17599 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
17600 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
17601 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
17602 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
17603 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
17604 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
17605 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
17606 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
17607 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
17608 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
17609 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
17610 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
17611 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
17612 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
17613 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
17614 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
17615 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
17616 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
17617 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
17618 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
17619 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
17620 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
17621 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
17622 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
17623 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
17624 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
17625 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
17626 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
17627 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
17628 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
17629 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
17630 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
17631 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
17632 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
17633 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
17634 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
17635 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
17636 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
17637 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
17638 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
17639 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
17640 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
17641 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
17642 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
17643 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
17644 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
17645
17646 // Work around a chicken/egg problem in drawlist.cpp
17647 wxPyDrawList_SetAPIPtr();
17648
17649 }
17650