]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi_wrap.cpp
Fixed a compile error
[wxWidgets.git] / wxPython / src / mac / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124
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
612
613
614 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
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 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
629 wxPyRaiseNotImplemented();
630 return NULL;
631 }
632 void wxRegionIterator_Next(wxRegionIterator *self){
633 (*self) ++;
634 }
635 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
636 return self->operator bool();
637 }
638
639 #include <wx/fontutil.h>
640 #include <wx/fontmap.h>
641 #include <wx/fontenum.h>
642
643 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
644 return self->ToString();
645 }
646
647 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
648 static wxNativeEncodingInfo info;
649 if ( wxGetNativeFontEncoding(encoding, &info) )
650 return &info;
651 else
652 return NULL;
653 }
654
655 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
656 wxFontEncoding alt_enc;
657 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
658 return PyInt_FromLong(alt_enc);
659 else {
660 Py_INCREF(Py_None);
661 return Py_None;
662 }
663 }
664 wxFont *new_wxFont(wxString const &info){
665 wxNativeFontInfo nfi;
666 nfi.FromString(info);
667 return new wxFont(nfi);
668 }
669 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
670 return wxFont::New(pointSize, family, flags, face, encoding);
671 }
672
673 class wxPyFontEnumerator : public wxFontEnumerator {
674 public:
675 wxPyFontEnumerator() {}
676 ~wxPyFontEnumerator() {}
677
678 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
679 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
680
681 PYPRIVATE;
682 };
683
684 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
685 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
686
687
688 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
689 wxArrayString* arr = self->GetEncodings();
690 return wxArrayString2PyList_helper(*arr);
691 }
692 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
693 wxArrayString* arr = self->GetFacenames();
694 return wxArrayString2PyList_helper(*arr);
695 }
696
697
698
699 #include "wx/wxPython/pydrawxxx.h"
700
701 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
702 wxColour col;
703 self->GetPixel(x, y, &col);
704 return col;
705 }
706 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
707 wxColour col;
708 self->GetPixel(pt, &col);
709 return col;
710 }
711 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
712 wxRect rv;
713 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
714 return rv;
715 }
716 wxRect wxDC_GetClippingRect(wxDC *self){
717 wxRect rect;
718 self->GetClippingBox(rect);
719 return rect;
720 }
721 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
722 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
723 }
724 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
725 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
726 }
727 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
728 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
729 }
730 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
731 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
732 }
733 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
734 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
735 }
736 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
737 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
738 }
739
740 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
741 *x1 = dc->MinX();
742 *y1 = dc->MinY();
743 *x2 = dc->MaxX();
744 *y2 = dc->MaxY();
745 }
746
747
748 #include <wx/dcps.h>
749
750
751 class wxMetaFile : public wxObject {
752 public:
753 wxMetaFile(const wxString&)
754 { wxPyRaiseNotImplemented(); }
755 };
756
757 class wxMetaFileDC : public wxClientDC {
758 public:
759 wxMetaFileDC(const wxString&, int, int, const wxString&)
760 { wxPyRaiseNotImplemented(); }
761 };
762
763
764
765
766 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
767 self->AddColour(name, wxColour(red, green, blue));
768 }
769
770 #include <wx/effects.h>
771
772 #ifdef __cplusplus
773 extern "C" {
774 #endif
775 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
776 PyObject *resultobj;
777 wxGDIObject *result;
778 char *kwnames[] = {
779 NULL
780 };
781
782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
783 {
784 PyThreadState* __tstate = wxPyBeginAllowThreads();
785 result = (wxGDIObject *)new wxGDIObject();
786
787 wxPyEndAllowThreads(__tstate);
788 if (PyErr_Occurred()) SWIG_fail;
789 }
790 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
791 return resultobj;
792 fail:
793 return NULL;
794 }
795
796
797 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
798 PyObject *resultobj;
799 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
800 PyObject * obj0 = 0 ;
801 char *kwnames[] = {
802 (char *) "self", NULL
803 };
804
805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
807 {
808 PyThreadState* __tstate = wxPyBeginAllowThreads();
809 delete arg1;
810
811 wxPyEndAllowThreads(__tstate);
812 if (PyErr_Occurred()) SWIG_fail;
813 }
814 Py_INCREF(Py_None); resultobj = Py_None;
815 return resultobj;
816 fail:
817 return NULL;
818 }
819
820
821 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
822 PyObject *resultobj;
823 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
824 bool result;
825 PyObject * obj0 = 0 ;
826 char *kwnames[] = {
827 (char *) "self", NULL
828 };
829
830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
832 {
833 PyThreadState* __tstate = wxPyBeginAllowThreads();
834 result = (bool)(arg1)->GetVisible();
835
836 wxPyEndAllowThreads(__tstate);
837 if (PyErr_Occurred()) SWIG_fail;
838 }
839 resultobj = PyInt_FromLong((long)result);
840 return resultobj;
841 fail:
842 return NULL;
843 }
844
845
846 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
847 PyObject *resultobj;
848 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
849 bool arg2 ;
850 PyObject * obj0 = 0 ;
851 PyObject * obj1 = 0 ;
852 char *kwnames[] = {
853 (char *) "self",(char *) "visible", NULL
854 };
855
856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
858 {
859 arg2 = (bool) SPyObj_AsBool(obj1);
860 if (PyErr_Occurred()) SWIG_fail;
861 }
862 {
863 PyThreadState* __tstate = wxPyBeginAllowThreads();
864 (arg1)->SetVisible(arg2);
865
866 wxPyEndAllowThreads(__tstate);
867 if (PyErr_Occurred()) SWIG_fail;
868 }
869 Py_INCREF(Py_None); resultobj = Py_None;
870 return resultobj;
871 fail:
872 return NULL;
873 }
874
875
876 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
877 PyObject *resultobj;
878 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
879 bool result;
880 PyObject * obj0 = 0 ;
881 char *kwnames[] = {
882 (char *) "self", NULL
883 };
884
885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
887 {
888 PyThreadState* __tstate = wxPyBeginAllowThreads();
889 result = (bool)(arg1)->IsNull();
890
891 wxPyEndAllowThreads(__tstate);
892 if (PyErr_Occurred()) SWIG_fail;
893 }
894 resultobj = PyInt_FromLong((long)result);
895 return resultobj;
896 fail:
897 return NULL;
898 }
899
900
901 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
902 PyObject *obj;
903 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
904 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
905 Py_INCREF(obj);
906 return Py_BuildValue((char *)"");
907 }
908 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
909 PyObject *resultobj;
910 unsigned char arg1 = (unsigned char) 0 ;
911 unsigned char arg2 = (unsigned char) 0 ;
912 unsigned char arg3 = (unsigned char) 0 ;
913 wxColour *result;
914 PyObject * obj0 = 0 ;
915 PyObject * obj1 = 0 ;
916 PyObject * obj2 = 0 ;
917 char *kwnames[] = {
918 (char *) "red",(char *) "green",(char *) "blue", NULL
919 };
920
921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
922 if (obj0) {
923 {
924 arg1 = (unsigned char) SPyObj_AsUnsignedChar(obj0);
925 if (PyErr_Occurred()) SWIG_fail;
926 }
927 }
928 if (obj1) {
929 {
930 arg2 = (unsigned char) SPyObj_AsUnsignedChar(obj1);
931 if (PyErr_Occurred()) SWIG_fail;
932 }
933 }
934 if (obj2) {
935 {
936 arg3 = (unsigned char) SPyObj_AsUnsignedChar(obj2);
937 if (PyErr_Occurred()) SWIG_fail;
938 }
939 }
940 {
941 PyThreadState* __tstate = wxPyBeginAllowThreads();
942 result = (wxColour *)new wxColour(arg1,arg2,arg3);
943
944 wxPyEndAllowThreads(__tstate);
945 if (PyErr_Occurred()) SWIG_fail;
946 }
947 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
948 return resultobj;
949 fail:
950 return NULL;
951 }
952
953
954 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
955 PyObject *resultobj;
956 wxColour *arg1 = (wxColour *) 0 ;
957 PyObject * obj0 = 0 ;
958 char *kwnames[] = {
959 (char *) "self", NULL
960 };
961
962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
964 {
965 PyThreadState* __tstate = wxPyBeginAllowThreads();
966 delete arg1;
967
968 wxPyEndAllowThreads(__tstate);
969 if (PyErr_Occurred()) SWIG_fail;
970 }
971 Py_INCREF(Py_None); resultobj = Py_None;
972 return resultobj;
973 fail:
974 return NULL;
975 }
976
977
978 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
979 PyObject *resultobj;
980 wxString *arg1 = 0 ;
981 wxColour *result;
982 bool temp1 = False ;
983 PyObject * obj0 = 0 ;
984 char *kwnames[] = {
985 (char *) "colorName", NULL
986 };
987
988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
989 {
990 arg1 = wxString_in_helper(obj0);
991 if (arg1 == NULL) SWIG_fail;
992 temp1 = True;
993 }
994 {
995 PyThreadState* __tstate = wxPyBeginAllowThreads();
996 result = (wxColour *)new wxColour((wxString const &)*arg1);
997
998 wxPyEndAllowThreads(__tstate);
999 if (PyErr_Occurred()) SWIG_fail;
1000 }
1001 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
1002 {
1003 if (temp1)
1004 delete arg1;
1005 }
1006 return resultobj;
1007 fail:
1008 {
1009 if (temp1)
1010 delete arg1;
1011 }
1012 return NULL;
1013 }
1014
1015
1016 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1017 PyObject *resultobj;
1018 unsigned long arg1 ;
1019 wxColour *result;
1020 PyObject * obj0 = 0 ;
1021 char *kwnames[] = {
1022 (char *) "colRGB", NULL
1023 };
1024
1025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1026 {
1027 arg1 = (unsigned long) SPyObj_AsUnsignedLong(obj0);
1028 if (PyErr_Occurred()) SWIG_fail;
1029 }
1030 {
1031 PyThreadState* __tstate = wxPyBeginAllowThreads();
1032 result = (wxColour *)new wxColour(arg1);
1033
1034 wxPyEndAllowThreads(__tstate);
1035 if (PyErr_Occurred()) SWIG_fail;
1036 }
1037 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
1038 return resultobj;
1039 fail:
1040 return NULL;
1041 }
1042
1043
1044 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1045 PyObject *resultobj;
1046 wxColour *arg1 = (wxColour *) 0 ;
1047 unsigned char result;
1048 PyObject * obj0 = 0 ;
1049 char *kwnames[] = {
1050 (char *) "self", NULL
1051 };
1052
1053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1055 {
1056 PyThreadState* __tstate = wxPyBeginAllowThreads();
1057 result = (unsigned char)(arg1)->Red();
1058
1059 wxPyEndAllowThreads(__tstate);
1060 if (PyErr_Occurred()) SWIG_fail;
1061 }
1062 resultobj = PyInt_FromLong((long)result);
1063 return resultobj;
1064 fail:
1065 return NULL;
1066 }
1067
1068
1069 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1070 PyObject *resultobj;
1071 wxColour *arg1 = (wxColour *) 0 ;
1072 unsigned char result;
1073 PyObject * obj0 = 0 ;
1074 char *kwnames[] = {
1075 (char *) "self", NULL
1076 };
1077
1078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1080 {
1081 PyThreadState* __tstate = wxPyBeginAllowThreads();
1082 result = (unsigned char)(arg1)->Green();
1083
1084 wxPyEndAllowThreads(__tstate);
1085 if (PyErr_Occurred()) SWIG_fail;
1086 }
1087 resultobj = PyInt_FromLong((long)result);
1088 return resultobj;
1089 fail:
1090 return NULL;
1091 }
1092
1093
1094 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1095 PyObject *resultobj;
1096 wxColour *arg1 = (wxColour *) 0 ;
1097 unsigned char result;
1098 PyObject * obj0 = 0 ;
1099 char *kwnames[] = {
1100 (char *) "self", NULL
1101 };
1102
1103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1105 {
1106 PyThreadState* __tstate = wxPyBeginAllowThreads();
1107 result = (unsigned char)(arg1)->Blue();
1108
1109 wxPyEndAllowThreads(__tstate);
1110 if (PyErr_Occurred()) SWIG_fail;
1111 }
1112 resultobj = PyInt_FromLong((long)result);
1113 return resultobj;
1114 fail:
1115 return NULL;
1116 }
1117
1118
1119 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1120 PyObject *resultobj;
1121 wxColour *arg1 = (wxColour *) 0 ;
1122 bool result;
1123 PyObject * obj0 = 0 ;
1124 char *kwnames[] = {
1125 (char *) "self", NULL
1126 };
1127
1128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1130 {
1131 PyThreadState* __tstate = wxPyBeginAllowThreads();
1132 result = (bool)(arg1)->Ok();
1133
1134 wxPyEndAllowThreads(__tstate);
1135 if (PyErr_Occurred()) SWIG_fail;
1136 }
1137 resultobj = PyInt_FromLong((long)result);
1138 return resultobj;
1139 fail:
1140 return NULL;
1141 }
1142
1143
1144 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1145 PyObject *resultobj;
1146 wxColour *arg1 = (wxColour *) 0 ;
1147 unsigned char arg2 ;
1148 unsigned char arg3 ;
1149 unsigned char arg4 ;
1150 PyObject * obj0 = 0 ;
1151 PyObject * obj1 = 0 ;
1152 PyObject * obj2 = 0 ;
1153 PyObject * obj3 = 0 ;
1154 char *kwnames[] = {
1155 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1156 };
1157
1158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1160 {
1161 arg2 = (unsigned char) SPyObj_AsUnsignedChar(obj1);
1162 if (PyErr_Occurred()) SWIG_fail;
1163 }
1164 {
1165 arg3 = (unsigned char) SPyObj_AsUnsignedChar(obj2);
1166 if (PyErr_Occurred()) SWIG_fail;
1167 }
1168 {
1169 arg4 = (unsigned char) SPyObj_AsUnsignedChar(obj3);
1170 if (PyErr_Occurred()) SWIG_fail;
1171 }
1172 {
1173 PyThreadState* __tstate = wxPyBeginAllowThreads();
1174 (arg1)->Set(arg2,arg3,arg4);
1175
1176 wxPyEndAllowThreads(__tstate);
1177 if (PyErr_Occurred()) SWIG_fail;
1178 }
1179 Py_INCREF(Py_None); resultobj = Py_None;
1180 return resultobj;
1181 fail:
1182 return NULL;
1183 }
1184
1185
1186 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1187 PyObject *resultobj;
1188 wxColour *arg1 = (wxColour *) 0 ;
1189 unsigned long arg2 ;
1190 PyObject * obj0 = 0 ;
1191 PyObject * obj1 = 0 ;
1192 char *kwnames[] = {
1193 (char *) "self",(char *) "colRGB", NULL
1194 };
1195
1196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1198 {
1199 arg2 = (unsigned long) SPyObj_AsUnsignedLong(obj1);
1200 if (PyErr_Occurred()) SWIG_fail;
1201 }
1202 {
1203 PyThreadState* __tstate = wxPyBeginAllowThreads();
1204 (arg1)->Set(arg2);
1205
1206 wxPyEndAllowThreads(__tstate);
1207 if (PyErr_Occurred()) SWIG_fail;
1208 }
1209 Py_INCREF(Py_None); resultobj = Py_None;
1210 return resultobj;
1211 fail:
1212 return NULL;
1213 }
1214
1215
1216 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1217 PyObject *resultobj;
1218 wxColour *arg1 = (wxColour *) 0 ;
1219 wxColour *arg2 = 0 ;
1220 bool result;
1221 wxColour temp2 ;
1222 PyObject * obj0 = 0 ;
1223 PyObject * obj1 = 0 ;
1224 char *kwnames[] = {
1225 (char *) "self",(char *) "colour", NULL
1226 };
1227
1228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1230 {
1231 arg2 = &temp2;
1232 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1233 }
1234 {
1235 PyThreadState* __tstate = wxPyBeginAllowThreads();
1236 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1237
1238 wxPyEndAllowThreads(__tstate);
1239 if (PyErr_Occurred()) SWIG_fail;
1240 }
1241 resultobj = PyInt_FromLong((long)result);
1242 return resultobj;
1243 fail:
1244 return NULL;
1245 }
1246
1247
1248 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1249 PyObject *resultobj;
1250 wxColour *arg1 = (wxColour *) 0 ;
1251 wxColour *arg2 = 0 ;
1252 bool result;
1253 wxColour temp2 ;
1254 PyObject * obj0 = 0 ;
1255 PyObject * obj1 = 0 ;
1256 char *kwnames[] = {
1257 (char *) "self",(char *) "colour", NULL
1258 };
1259
1260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1262 {
1263 arg2 = &temp2;
1264 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1265 }
1266 {
1267 PyThreadState* __tstate = wxPyBeginAllowThreads();
1268 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1269
1270 wxPyEndAllowThreads(__tstate);
1271 if (PyErr_Occurred()) SWIG_fail;
1272 }
1273 resultobj = PyInt_FromLong((long)result);
1274 return resultobj;
1275 fail:
1276 return NULL;
1277 }
1278
1279
1280 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1281 PyObject *resultobj;
1282 wxColour *arg1 = (wxColour *) 0 ;
1283 wxString *arg2 = 0 ;
1284 bool temp2 = False ;
1285 PyObject * obj0 = 0 ;
1286 PyObject * obj1 = 0 ;
1287 char *kwnames[] = {
1288 (char *) "self",(char *) "colourName", NULL
1289 };
1290
1291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1293 {
1294 arg2 = wxString_in_helper(obj1);
1295 if (arg2 == NULL) SWIG_fail;
1296 temp2 = True;
1297 }
1298 {
1299 PyThreadState* __tstate = wxPyBeginAllowThreads();
1300 (arg1)->InitFromName((wxString const &)*arg2);
1301
1302 wxPyEndAllowThreads(__tstate);
1303 if (PyErr_Occurred()) SWIG_fail;
1304 }
1305 Py_INCREF(Py_None); resultobj = Py_None;
1306 {
1307 if (temp2)
1308 delete arg2;
1309 }
1310 return resultobj;
1311 fail:
1312 {
1313 if (temp2)
1314 delete arg2;
1315 }
1316 return NULL;
1317 }
1318
1319
1320 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1321 PyObject *resultobj;
1322 wxColour *arg1 = (wxColour *) 0 ;
1323 PyObject *result;
1324 PyObject * obj0 = 0 ;
1325 char *kwnames[] = {
1326 (char *) "self", NULL
1327 };
1328
1329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1331 {
1332 PyThreadState* __tstate = wxPyBeginAllowThreads();
1333 result = (PyObject *)wxColour_Get(arg1);
1334
1335 wxPyEndAllowThreads(__tstate);
1336 if (PyErr_Occurred()) SWIG_fail;
1337 }
1338 resultobj = result;
1339 return resultobj;
1340 fail:
1341 return NULL;
1342 }
1343
1344
1345 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1346 PyObject *obj;
1347 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1348 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1349 Py_INCREF(obj);
1350 return Py_BuildValue((char *)"");
1351 }
1352 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1353 PyObject *resultobj;
1354 int arg1 ;
1355 unsigned char *arg2 = (unsigned char *) 0 ;
1356 unsigned char *arg3 = (unsigned char *) 0 ;
1357 unsigned char *arg4 = (unsigned char *) 0 ;
1358 wxPalette *result;
1359 PyObject * obj1 = 0 ;
1360 PyObject * obj2 = 0 ;
1361 PyObject * obj3 = 0 ;
1362 char *kwnames[] = {
1363 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1364 };
1365
1366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail;
1367 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1368 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1369 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1370 {
1371 PyThreadState* __tstate = wxPyBeginAllowThreads();
1372 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1373
1374 wxPyEndAllowThreads(__tstate);
1375 if (PyErr_Occurred()) SWIG_fail;
1376 }
1377 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1378 return resultobj;
1379 fail:
1380 return NULL;
1381 }
1382
1383
1384 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1385 PyObject *resultobj;
1386 wxPalette *arg1 = (wxPalette *) 0 ;
1387 PyObject * obj0 = 0 ;
1388 char *kwnames[] = {
1389 (char *) "self", NULL
1390 };
1391
1392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1393 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1394 {
1395 PyThreadState* __tstate = wxPyBeginAllowThreads();
1396 delete arg1;
1397
1398 wxPyEndAllowThreads(__tstate);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 }
1401 Py_INCREF(Py_None); resultobj = Py_None;
1402 return resultobj;
1403 fail:
1404 return NULL;
1405 }
1406
1407
1408 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1409 PyObject *resultobj;
1410 wxPalette *arg1 = (wxPalette *) 0 ;
1411 byte arg2 ;
1412 byte arg3 ;
1413 byte arg4 ;
1414 int result;
1415 PyObject * obj0 = 0 ;
1416 PyObject * obj1 = 0 ;
1417 PyObject * obj2 = 0 ;
1418 PyObject * obj3 = 0 ;
1419 char *kwnames[] = {
1420 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1421 };
1422
1423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1425 {
1426 arg2 = (byte) SPyObj_AsUnsignedChar(obj1);
1427 if (PyErr_Occurred()) SWIG_fail;
1428 }
1429 {
1430 arg3 = (byte) SPyObj_AsUnsignedChar(obj2);
1431 if (PyErr_Occurred()) SWIG_fail;
1432 }
1433 {
1434 arg4 = (byte) SPyObj_AsUnsignedChar(obj3);
1435 if (PyErr_Occurred()) SWIG_fail;
1436 }
1437 {
1438 PyThreadState* __tstate = wxPyBeginAllowThreads();
1439 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1440
1441 wxPyEndAllowThreads(__tstate);
1442 if (PyErr_Occurred()) SWIG_fail;
1443 }
1444 resultobj = PyInt_FromLong((long)result);
1445 return resultobj;
1446 fail:
1447 return NULL;
1448 }
1449
1450
1451 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1452 PyObject *resultobj;
1453 wxPalette *arg1 = (wxPalette *) 0 ;
1454 int arg2 ;
1455 byte *arg3 = (byte *) 0 ;
1456 byte *arg4 = (byte *) 0 ;
1457 byte *arg5 = (byte *) 0 ;
1458 bool result;
1459 byte temp3 ;
1460 byte temp4 ;
1461 byte temp5 ;
1462 PyObject * obj0 = 0 ;
1463 char *kwnames[] = {
1464 (char *) "self",(char *) "pixel", NULL
1465 };
1466
1467 arg3 = &temp3;
1468 arg4 = &temp4;
1469 arg5 = &temp5;
1470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail;
1471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1472 {
1473 PyThreadState* __tstate = wxPyBeginAllowThreads();
1474 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1475
1476 wxPyEndAllowThreads(__tstate);
1477 if (PyErr_Occurred()) SWIG_fail;
1478 }
1479 resultobj = PyInt_FromLong((long)result);
1480 {
1481 PyObject *o = PyInt_FromLong((long) (*arg3));
1482 resultobj = t_output_helper(resultobj,o);
1483 }
1484 {
1485 PyObject *o = PyInt_FromLong((long) (*arg4));
1486 resultobj = t_output_helper(resultobj,o);
1487 }
1488 {
1489 PyObject *o = PyInt_FromLong((long) (*arg5));
1490 resultobj = t_output_helper(resultobj,o);
1491 }
1492 return resultobj;
1493 fail:
1494 return NULL;
1495 }
1496
1497
1498 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1499 PyObject *resultobj;
1500 wxPalette *arg1 = (wxPalette *) 0 ;
1501 bool result;
1502 PyObject * obj0 = 0 ;
1503 char *kwnames[] = {
1504 (char *) "self", NULL
1505 };
1506
1507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1509 {
1510 PyThreadState* __tstate = wxPyBeginAllowThreads();
1511 result = (bool)(arg1)->Ok();
1512
1513 wxPyEndAllowThreads(__tstate);
1514 if (PyErr_Occurred()) SWIG_fail;
1515 }
1516 resultobj = PyInt_FromLong((long)result);
1517 return resultobj;
1518 fail:
1519 return NULL;
1520 }
1521
1522
1523 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1524 PyObject *obj;
1525 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1526 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1527 Py_INCREF(obj);
1528 return Py_BuildValue((char *)"");
1529 }
1530 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1531 PyObject *resultobj;
1532 wxColour *arg1 = 0 ;
1533 int arg2 = (int) 1 ;
1534 int arg3 = (int) wxSOLID ;
1535 wxPen *result;
1536 wxColour temp1 ;
1537 PyObject * obj0 = 0 ;
1538 char *kwnames[] = {
1539 (char *) "colour",(char *) "width",(char *) "style", NULL
1540 };
1541
1542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1543 {
1544 arg1 = &temp1;
1545 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1546 }
1547 {
1548 PyThreadState* __tstate = wxPyBeginAllowThreads();
1549 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1550
1551 wxPyEndAllowThreads(__tstate);
1552 if (PyErr_Occurred()) SWIG_fail;
1553 }
1554 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1555 return resultobj;
1556 fail:
1557 return NULL;
1558 }
1559
1560
1561 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1562 PyObject *resultobj;
1563 wxPen *arg1 = (wxPen *) 0 ;
1564 PyObject * obj0 = 0 ;
1565 char *kwnames[] = {
1566 (char *) "self", NULL
1567 };
1568
1569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1571 {
1572 PyThreadState* __tstate = wxPyBeginAllowThreads();
1573 delete arg1;
1574
1575 wxPyEndAllowThreads(__tstate);
1576 if (PyErr_Occurred()) SWIG_fail;
1577 }
1578 Py_INCREF(Py_None); resultobj = Py_None;
1579 return resultobj;
1580 fail:
1581 return NULL;
1582 }
1583
1584
1585 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1586 PyObject *resultobj;
1587 wxPen *arg1 = (wxPen *) 0 ;
1588 int result;
1589 PyObject * obj0 = 0 ;
1590 char *kwnames[] = {
1591 (char *) "self", NULL
1592 };
1593
1594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1596 {
1597 PyThreadState* __tstate = wxPyBeginAllowThreads();
1598 result = (int)(arg1)->GetCap();
1599
1600 wxPyEndAllowThreads(__tstate);
1601 if (PyErr_Occurred()) SWIG_fail;
1602 }
1603 resultobj = PyInt_FromLong((long)result);
1604 return resultobj;
1605 fail:
1606 return NULL;
1607 }
1608
1609
1610 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1611 PyObject *resultobj;
1612 wxPen *arg1 = (wxPen *) 0 ;
1613 wxColour result;
1614 PyObject * obj0 = 0 ;
1615 char *kwnames[] = {
1616 (char *) "self", NULL
1617 };
1618
1619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1621 {
1622 PyThreadState* __tstate = wxPyBeginAllowThreads();
1623 result = (arg1)->GetColour();
1624
1625 wxPyEndAllowThreads(__tstate);
1626 if (PyErr_Occurred()) SWIG_fail;
1627 }
1628 {
1629 wxColour * resultptr;
1630 resultptr = new wxColour((wxColour &) result);
1631 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1632 }
1633 return resultobj;
1634 fail:
1635 return NULL;
1636 }
1637
1638
1639 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1640 PyObject *resultobj;
1641 wxPen *arg1 = (wxPen *) 0 ;
1642 int result;
1643 PyObject * obj0 = 0 ;
1644 char *kwnames[] = {
1645 (char *) "self", NULL
1646 };
1647
1648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1650 {
1651 PyThreadState* __tstate = wxPyBeginAllowThreads();
1652 result = (int)(arg1)->GetJoin();
1653
1654 wxPyEndAllowThreads(__tstate);
1655 if (PyErr_Occurred()) SWIG_fail;
1656 }
1657 resultobj = PyInt_FromLong((long)result);
1658 return resultobj;
1659 fail:
1660 return NULL;
1661 }
1662
1663
1664 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1665 PyObject *resultobj;
1666 wxPen *arg1 = (wxPen *) 0 ;
1667 int result;
1668 PyObject * obj0 = 0 ;
1669 char *kwnames[] = {
1670 (char *) "self", NULL
1671 };
1672
1673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1675 {
1676 PyThreadState* __tstate = wxPyBeginAllowThreads();
1677 result = (int)(arg1)->GetStyle();
1678
1679 wxPyEndAllowThreads(__tstate);
1680 if (PyErr_Occurred()) SWIG_fail;
1681 }
1682 resultobj = PyInt_FromLong((long)result);
1683 return resultobj;
1684 fail:
1685 return NULL;
1686 }
1687
1688
1689 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1690 PyObject *resultobj;
1691 wxPen *arg1 = (wxPen *) 0 ;
1692 int result;
1693 PyObject * obj0 = 0 ;
1694 char *kwnames[] = {
1695 (char *) "self", NULL
1696 };
1697
1698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1700 {
1701 PyThreadState* __tstate = wxPyBeginAllowThreads();
1702 result = (int)(arg1)->GetWidth();
1703
1704 wxPyEndAllowThreads(__tstate);
1705 if (PyErr_Occurred()) SWIG_fail;
1706 }
1707 resultobj = PyInt_FromLong((long)result);
1708 return resultobj;
1709 fail:
1710 return NULL;
1711 }
1712
1713
1714 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1715 PyObject *resultobj;
1716 wxPen *arg1 = (wxPen *) 0 ;
1717 bool result;
1718 PyObject * obj0 = 0 ;
1719 char *kwnames[] = {
1720 (char *) "self", NULL
1721 };
1722
1723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1725 {
1726 PyThreadState* __tstate = wxPyBeginAllowThreads();
1727 result = (bool)(arg1)->Ok();
1728
1729 wxPyEndAllowThreads(__tstate);
1730 if (PyErr_Occurred()) SWIG_fail;
1731 }
1732 resultobj = PyInt_FromLong((long)result);
1733 return resultobj;
1734 fail:
1735 return NULL;
1736 }
1737
1738
1739 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1740 PyObject *resultobj;
1741 wxPen *arg1 = (wxPen *) 0 ;
1742 int arg2 ;
1743 PyObject * obj0 = 0 ;
1744 char *kwnames[] = {
1745 (char *) "self",(char *) "cap_style", NULL
1746 };
1747
1748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail;
1749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1750 {
1751 PyThreadState* __tstate = wxPyBeginAllowThreads();
1752 (arg1)->SetCap(arg2);
1753
1754 wxPyEndAllowThreads(__tstate);
1755 if (PyErr_Occurred()) SWIG_fail;
1756 }
1757 Py_INCREF(Py_None); resultobj = Py_None;
1758 return resultobj;
1759 fail:
1760 return NULL;
1761 }
1762
1763
1764 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1765 PyObject *resultobj;
1766 wxPen *arg1 = (wxPen *) 0 ;
1767 wxColour *arg2 = 0 ;
1768 wxColour temp2 ;
1769 PyObject * obj0 = 0 ;
1770 PyObject * obj1 = 0 ;
1771 char *kwnames[] = {
1772 (char *) "self",(char *) "colour", NULL
1773 };
1774
1775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1777 {
1778 arg2 = &temp2;
1779 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1780 }
1781 {
1782 PyThreadState* __tstate = wxPyBeginAllowThreads();
1783 (arg1)->SetColour(*arg2);
1784
1785 wxPyEndAllowThreads(__tstate);
1786 if (PyErr_Occurred()) SWIG_fail;
1787 }
1788 Py_INCREF(Py_None); resultobj = Py_None;
1789 return resultobj;
1790 fail:
1791 return NULL;
1792 }
1793
1794
1795 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1796 PyObject *resultobj;
1797 wxPen *arg1 = (wxPen *) 0 ;
1798 int arg2 ;
1799 PyObject * obj0 = 0 ;
1800 char *kwnames[] = {
1801 (char *) "self",(char *) "join_style", NULL
1802 };
1803
1804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail;
1805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1806 {
1807 PyThreadState* __tstate = wxPyBeginAllowThreads();
1808 (arg1)->SetJoin(arg2);
1809
1810 wxPyEndAllowThreads(__tstate);
1811 if (PyErr_Occurred()) SWIG_fail;
1812 }
1813 Py_INCREF(Py_None); resultobj = Py_None;
1814 return resultobj;
1815 fail:
1816 return NULL;
1817 }
1818
1819
1820 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1821 PyObject *resultobj;
1822 wxPen *arg1 = (wxPen *) 0 ;
1823 int arg2 ;
1824 PyObject * obj0 = 0 ;
1825 char *kwnames[] = {
1826 (char *) "self",(char *) "style", NULL
1827 };
1828
1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1831 {
1832 PyThreadState* __tstate = wxPyBeginAllowThreads();
1833 (arg1)->SetStyle(arg2);
1834
1835 wxPyEndAllowThreads(__tstate);
1836 if (PyErr_Occurred()) SWIG_fail;
1837 }
1838 Py_INCREF(Py_None); resultobj = Py_None;
1839 return resultobj;
1840 fail:
1841 return NULL;
1842 }
1843
1844
1845 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1846 PyObject *resultobj;
1847 wxPen *arg1 = (wxPen *) 0 ;
1848 int arg2 ;
1849 PyObject * obj0 = 0 ;
1850 char *kwnames[] = {
1851 (char *) "self",(char *) "width", NULL
1852 };
1853
1854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1856 {
1857 PyThreadState* __tstate = wxPyBeginAllowThreads();
1858 (arg1)->SetWidth(arg2);
1859
1860 wxPyEndAllowThreads(__tstate);
1861 if (PyErr_Occurred()) SWIG_fail;
1862 }
1863 Py_INCREF(Py_None); resultobj = Py_None;
1864 return resultobj;
1865 fail:
1866 return NULL;
1867 }
1868
1869
1870 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1871 PyObject *resultobj;
1872 wxPen *arg1 = (wxPen *) 0 ;
1873 int arg2 ;
1874 wxDash *arg3 = (wxDash *) 0 ;
1875 PyObject * obj0 = 0 ;
1876 PyObject * obj1 = 0 ;
1877 char *kwnames[] = {
1878 (char *) "self",(char *) "dashes", NULL
1879 };
1880
1881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1883 {
1884 arg2 = PyList_Size(obj1);
1885 arg3 = (wxDash*)byte_LIST_helper(obj1);
1886 if (arg3 == NULL) SWIG_fail;
1887 }
1888 {
1889 PyThreadState* __tstate = wxPyBeginAllowThreads();
1890 (arg1)->SetDashes(arg2,arg3);
1891
1892 wxPyEndAllowThreads(__tstate);
1893 if (PyErr_Occurred()) SWIG_fail;
1894 }
1895 Py_INCREF(Py_None); resultobj = Py_None;
1896 {
1897 if (arg3) delete [] arg3;
1898 }
1899 return resultobj;
1900 fail:
1901 {
1902 if (arg3) delete [] arg3;
1903 }
1904 return NULL;
1905 }
1906
1907
1908 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1909 PyObject *resultobj;
1910 wxPen *arg1 = (wxPen *) 0 ;
1911 PyObject *result;
1912 PyObject * obj0 = 0 ;
1913 char *kwnames[] = {
1914 (char *) "self", NULL
1915 };
1916
1917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1919 {
1920 PyThreadState* __tstate = wxPyBeginAllowThreads();
1921 result = (PyObject *)wxPen_GetDashes(arg1);
1922
1923 wxPyEndAllowThreads(__tstate);
1924 if (PyErr_Occurred()) SWIG_fail;
1925 }
1926 resultobj = result;
1927 return resultobj;
1928 fail:
1929 return NULL;
1930 }
1931
1932
1933 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1934 PyObject *obj;
1935 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1936 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1937 Py_INCREF(obj);
1938 return Py_BuildValue((char *)"");
1939 }
1940 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1941 PyObject *resultobj;
1942 wxColour *arg1 = 0 ;
1943 int arg2 = (int) 1 ;
1944 int arg3 = (int) wxSOLID ;
1945 wxPyPen *result;
1946 wxColour temp1 ;
1947 PyObject * obj0 = 0 ;
1948 char *kwnames[] = {
1949 (char *) "colour",(char *) "width",(char *) "style", NULL
1950 };
1951
1952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1953 {
1954 arg1 = &temp1;
1955 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1956 }
1957 {
1958 PyThreadState* __tstate = wxPyBeginAllowThreads();
1959 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1960
1961 wxPyEndAllowThreads(__tstate);
1962 if (PyErr_Occurred()) SWIG_fail;
1963 }
1964 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1965 return resultobj;
1966 fail:
1967 return NULL;
1968 }
1969
1970
1971 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1972 PyObject *resultobj;
1973 wxPyPen *arg1 = (wxPyPen *) 0 ;
1974 PyObject * obj0 = 0 ;
1975 char *kwnames[] = {
1976 (char *) "self", NULL
1977 };
1978
1979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
1980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1981 {
1982 PyThreadState* __tstate = wxPyBeginAllowThreads();
1983 delete arg1;
1984
1985 wxPyEndAllowThreads(__tstate);
1986 if (PyErr_Occurred()) SWIG_fail;
1987 }
1988 Py_INCREF(Py_None); resultobj = Py_None;
1989 return resultobj;
1990 fail:
1991 return NULL;
1992 }
1993
1994
1995 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1996 PyObject *resultobj;
1997 wxPyPen *arg1 = (wxPyPen *) 0 ;
1998 int arg2 ;
1999 wxDash *arg3 = (wxDash *) 0 ;
2000 PyObject * obj0 = 0 ;
2001 PyObject * obj1 = 0 ;
2002 char *kwnames[] = {
2003 (char *) "self",(char *) "dashes", NULL
2004 };
2005
2006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2008 {
2009 arg2 = PyList_Size(obj1);
2010 arg3 = (wxDash*)byte_LIST_helper(obj1);
2011 if (arg3 == NULL) SWIG_fail;
2012 }
2013 {
2014 PyThreadState* __tstate = wxPyBeginAllowThreads();
2015 (arg1)->SetDashes(arg2,arg3);
2016
2017 wxPyEndAllowThreads(__tstate);
2018 if (PyErr_Occurred()) SWIG_fail;
2019 }
2020 Py_INCREF(Py_None); resultobj = Py_None;
2021 {
2022 if (arg3) delete [] arg3;
2023 }
2024 return resultobj;
2025 fail:
2026 {
2027 if (arg3) delete [] arg3;
2028 }
2029 return NULL;
2030 }
2031
2032
2033 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2034 PyObject *obj;
2035 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2036 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2037 Py_INCREF(obj);
2038 return Py_BuildValue((char *)"");
2039 }
2040 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2041 PyObject *resultobj;
2042 wxColour *arg1 = 0 ;
2043 int arg2 = (int) wxSOLID ;
2044 wxBrush *result;
2045 wxColour temp1 ;
2046 PyObject * obj0 = 0 ;
2047 char *kwnames[] = {
2048 (char *) "colour",(char *) "style", NULL
2049 };
2050
2051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail;
2052 {
2053 arg1 = &temp1;
2054 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2055 }
2056 {
2057 PyThreadState* __tstate = wxPyBeginAllowThreads();
2058 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2059
2060 wxPyEndAllowThreads(__tstate);
2061 if (PyErr_Occurred()) SWIG_fail;
2062 }
2063 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2064 return resultobj;
2065 fail:
2066 return NULL;
2067 }
2068
2069
2070 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2071 PyObject *resultobj;
2072 wxBrush *arg1 = (wxBrush *) 0 ;
2073 PyObject * obj0 = 0 ;
2074 char *kwnames[] = {
2075 (char *) "self", NULL
2076 };
2077
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2080 {
2081 PyThreadState* __tstate = wxPyBeginAllowThreads();
2082 delete arg1;
2083
2084 wxPyEndAllowThreads(__tstate);
2085 if (PyErr_Occurred()) SWIG_fail;
2086 }
2087 Py_INCREF(Py_None); resultobj = Py_None;
2088 return resultobj;
2089 fail:
2090 return NULL;
2091 }
2092
2093
2094 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2095 PyObject *resultobj;
2096 wxBrush *arg1 = (wxBrush *) 0 ;
2097 wxColour *arg2 = 0 ;
2098 wxColour temp2 ;
2099 PyObject * obj0 = 0 ;
2100 PyObject * obj1 = 0 ;
2101 char *kwnames[] = {
2102 (char *) "self",(char *) "col", NULL
2103 };
2104
2105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2107 {
2108 arg2 = &temp2;
2109 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2110 }
2111 {
2112 PyThreadState* __tstate = wxPyBeginAllowThreads();
2113 (arg1)->SetColour((wxColour const &)*arg2);
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_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2126 PyObject *resultobj;
2127 wxBrush *arg1 = (wxBrush *) 0 ;
2128 int arg2 ;
2129 PyObject * obj0 = 0 ;
2130 char *kwnames[] = {
2131 (char *) "self",(char *) "style", NULL
2132 };
2133
2134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail;
2135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2136 {
2137 PyThreadState* __tstate = wxPyBeginAllowThreads();
2138 (arg1)->SetStyle(arg2);
2139
2140 wxPyEndAllowThreads(__tstate);
2141 if (PyErr_Occurred()) SWIG_fail;
2142 }
2143 Py_INCREF(Py_None); resultobj = Py_None;
2144 return resultobj;
2145 fail:
2146 return NULL;
2147 }
2148
2149
2150 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2151 PyObject *resultobj;
2152 wxBrush *arg1 = (wxBrush *) 0 ;
2153 wxBitmap *arg2 = 0 ;
2154 PyObject * obj0 = 0 ;
2155 PyObject * obj1 = 0 ;
2156 char *kwnames[] = {
2157 (char *) "self",(char *) "stipple", NULL
2158 };
2159
2160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2161 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2162 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2163 if (arg2 == NULL) {
2164 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2165 }
2166 {
2167 PyThreadState* __tstate = wxPyBeginAllowThreads();
2168 (arg1)->SetStipple((wxBitmap const &)*arg2);
2169
2170 wxPyEndAllowThreads(__tstate);
2171 if (PyErr_Occurred()) SWIG_fail;
2172 }
2173 Py_INCREF(Py_None); resultobj = Py_None;
2174 return resultobj;
2175 fail:
2176 return NULL;
2177 }
2178
2179
2180 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2181 PyObject *resultobj;
2182 wxBrush *arg1 = (wxBrush *) 0 ;
2183 wxColour result;
2184 PyObject * obj0 = 0 ;
2185 char *kwnames[] = {
2186 (char *) "self", NULL
2187 };
2188
2189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2191 {
2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
2193 result = ((wxBrush const *)arg1)->GetColour();
2194
2195 wxPyEndAllowThreads(__tstate);
2196 if (PyErr_Occurred()) SWIG_fail;
2197 }
2198 {
2199 wxColour * resultptr;
2200 resultptr = new wxColour((wxColour &) result);
2201 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2202 }
2203 return resultobj;
2204 fail:
2205 return NULL;
2206 }
2207
2208
2209 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2210 PyObject *resultobj;
2211 wxBrush *arg1 = (wxBrush *) 0 ;
2212 int result;
2213 PyObject * obj0 = 0 ;
2214 char *kwnames[] = {
2215 (char *) "self", NULL
2216 };
2217
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2220 {
2221 PyThreadState* __tstate = wxPyBeginAllowThreads();
2222 result = (int)((wxBrush const *)arg1)->GetStyle();
2223
2224 wxPyEndAllowThreads(__tstate);
2225 if (PyErr_Occurred()) SWIG_fail;
2226 }
2227 resultobj = PyInt_FromLong((long)result);
2228 return resultobj;
2229 fail:
2230 return NULL;
2231 }
2232
2233
2234 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2235 PyObject *resultobj;
2236 wxBrush *arg1 = (wxBrush *) 0 ;
2237 wxBitmap *result;
2238 PyObject * obj0 = 0 ;
2239 char *kwnames[] = {
2240 (char *) "self", NULL
2241 };
2242
2243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2245 {
2246 PyThreadState* __tstate = wxPyBeginAllowThreads();
2247 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2248
2249 wxPyEndAllowThreads(__tstate);
2250 if (PyErr_Occurred()) SWIG_fail;
2251 }
2252 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2253 return resultobj;
2254 fail:
2255 return NULL;
2256 }
2257
2258
2259 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2260 PyObject *resultobj;
2261 wxBrush *arg1 = (wxBrush *) 0 ;
2262 bool result;
2263 PyObject * obj0 = 0 ;
2264 char *kwnames[] = {
2265 (char *) "self", NULL
2266 };
2267
2268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2270 {
2271 PyThreadState* __tstate = wxPyBeginAllowThreads();
2272 result = (bool)(arg1)->Ok();
2273
2274 wxPyEndAllowThreads(__tstate);
2275 if (PyErr_Occurred()) SWIG_fail;
2276 }
2277 resultobj = PyInt_FromLong((long)result);
2278 return resultobj;
2279 fail:
2280 return NULL;
2281 }
2282
2283
2284 static PyObject *_wrap_Brush_GetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2285 PyObject *resultobj;
2286 wxBrush *arg1 = (wxBrush *) 0 ;
2287 short result;
2288 PyObject * obj0 = 0 ;
2289 char *kwnames[] = {
2290 (char *) "self", NULL
2291 };
2292
2293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",kwnames,&obj0)) goto fail;
2294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2295 {
2296 PyThreadState* __tstate = wxPyBeginAllowThreads();
2297 result = (short)(arg1)->GetMacTheme();
2298
2299 wxPyEndAllowThreads(__tstate);
2300 if (PyErr_Occurred()) SWIG_fail;
2301 }
2302 resultobj = PyInt_FromLong((long)result);
2303 return resultobj;
2304 fail:
2305 return NULL;
2306 }
2307
2308
2309 static PyObject *_wrap_Brush_SetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2310 PyObject *resultobj;
2311 wxBrush *arg1 = (wxBrush *) 0 ;
2312 short arg2 ;
2313 PyObject * obj0 = 0 ;
2314 char *kwnames[] = {
2315 (char *) "self",(char *) "macThemeBrush", NULL
2316 };
2317
2318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oh:Brush_SetMacTheme",kwnames,&obj0,&arg2)) goto fail;
2319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2320 {
2321 PyThreadState* __tstate = wxPyBeginAllowThreads();
2322 (arg1)->SetMacTheme(arg2);
2323
2324 wxPyEndAllowThreads(__tstate);
2325 if (PyErr_Occurred()) SWIG_fail;
2326 }
2327 Py_INCREF(Py_None); resultobj = Py_None;
2328 return resultobj;
2329 fail:
2330 return NULL;
2331 }
2332
2333
2334 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2335 PyObject *obj;
2336 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2337 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2338 Py_INCREF(obj);
2339 return Py_BuildValue((char *)"");
2340 }
2341 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2342 PyObject *resultobj;
2343 wxString *arg1 = 0 ;
2344 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2345 wxBitmap *result;
2346 bool temp1 = False ;
2347 PyObject * obj0 = 0 ;
2348 char *kwnames[] = {
2349 (char *) "name",(char *) "type", NULL
2350 };
2351
2352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail;
2353 {
2354 arg1 = wxString_in_helper(obj0);
2355 if (arg1 == NULL) SWIG_fail;
2356 temp1 = True;
2357 }
2358 {
2359 PyThreadState* __tstate = wxPyBeginAllowThreads();
2360 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2361
2362 wxPyEndAllowThreads(__tstate);
2363 if (PyErr_Occurred()) SWIG_fail;
2364 }
2365 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2366 {
2367 if (temp1)
2368 delete arg1;
2369 }
2370 return resultobj;
2371 fail:
2372 {
2373 if (temp1)
2374 delete arg1;
2375 }
2376 return NULL;
2377 }
2378
2379
2380 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2381 PyObject *resultobj;
2382 wxBitmap *arg1 = (wxBitmap *) 0 ;
2383 PyObject * obj0 = 0 ;
2384 char *kwnames[] = {
2385 (char *) "self", NULL
2386 };
2387
2388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2390 {
2391 PyThreadState* __tstate = wxPyBeginAllowThreads();
2392 delete arg1;
2393
2394 wxPyEndAllowThreads(__tstate);
2395 if (PyErr_Occurred()) SWIG_fail;
2396 }
2397 Py_INCREF(Py_None); resultobj = Py_None;
2398 return resultobj;
2399 fail:
2400 return NULL;
2401 }
2402
2403
2404 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2405 PyObject *resultobj;
2406 int arg1 ;
2407 int arg2 ;
2408 int arg3 = (int) -1 ;
2409 wxBitmap *result;
2410 char *kwnames[] = {
2411 (char *) "width",(char *) "height",(char *) "depth", NULL
2412 };
2413
2414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail;
2415 {
2416 PyThreadState* __tstate = wxPyBeginAllowThreads();
2417 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2418
2419 wxPyEndAllowThreads(__tstate);
2420 if (PyErr_Occurred()) SWIG_fail;
2421 }
2422 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2423 return resultobj;
2424 fail:
2425 return NULL;
2426 }
2427
2428
2429 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2430 PyObject *resultobj;
2431 wxIcon *arg1 = 0 ;
2432 wxBitmap *result;
2433 PyObject * obj0 = 0 ;
2434 char *kwnames[] = {
2435 (char *) "icon", NULL
2436 };
2437
2438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2440 if (arg1 == NULL) {
2441 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2442 }
2443 {
2444 PyThreadState* __tstate = wxPyBeginAllowThreads();
2445 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2446
2447 wxPyEndAllowThreads(__tstate);
2448 if (PyErr_Occurred()) SWIG_fail;
2449 }
2450 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2451 return resultobj;
2452 fail:
2453 return NULL;
2454 }
2455
2456
2457 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2458 PyObject *resultobj;
2459 wxImage *arg1 = 0 ;
2460 int arg2 = (int) -1 ;
2461 wxBitmap *result;
2462 PyObject * obj0 = 0 ;
2463 char *kwnames[] = {
2464 (char *) "image",(char *) "depth", NULL
2465 };
2466
2467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail;
2468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2469 if (arg1 == NULL) {
2470 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2471 }
2472 {
2473 PyThreadState* __tstate = wxPyBeginAllowThreads();
2474 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2475
2476 wxPyEndAllowThreads(__tstate);
2477 if (PyErr_Occurred()) SWIG_fail;
2478 }
2479 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2480 return resultobj;
2481 fail:
2482 return NULL;
2483 }
2484
2485
2486 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2487 PyObject *resultobj;
2488 PyObject *arg1 = (PyObject *) 0 ;
2489 wxBitmap *result;
2490 PyObject * obj0 = 0 ;
2491 char *kwnames[] = {
2492 (char *) "listOfStrings", NULL
2493 };
2494
2495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2496 arg1 = obj0;
2497 {
2498 PyThreadState* __tstate = wxPyBeginAllowThreads();
2499 result = (wxBitmap *)new_wxBitmap(arg1);
2500
2501 wxPyEndAllowThreads(__tstate);
2502 if (PyErr_Occurred()) SWIG_fail;
2503 }
2504 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2505 return resultobj;
2506 fail:
2507 return NULL;
2508 }
2509
2510
2511 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2512 PyObject *resultobj;
2513 PyObject *arg1 = (PyObject *) 0 ;
2514 int arg2 ;
2515 int arg3 ;
2516 int arg4 = (int) 1 ;
2517 wxBitmap *result;
2518 PyObject * obj0 = 0 ;
2519 char *kwnames[] = {
2520 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2521 };
2522
2523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2524 arg1 = obj0;
2525 {
2526 PyThreadState* __tstate = wxPyBeginAllowThreads();
2527 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2528
2529 wxPyEndAllowThreads(__tstate);
2530 if (PyErr_Occurred()) SWIG_fail;
2531 }
2532 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2533 return resultobj;
2534 fail:
2535 return NULL;
2536 }
2537
2538
2539 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2540 PyObject *resultobj;
2541 wxBitmap *arg1 = (wxBitmap *) 0 ;
2542 bool result;
2543 PyObject * obj0 = 0 ;
2544 char *kwnames[] = {
2545 (char *) "self", NULL
2546 };
2547
2548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2550 {
2551 PyThreadState* __tstate = wxPyBeginAllowThreads();
2552 result = (bool)(arg1)->Ok();
2553
2554 wxPyEndAllowThreads(__tstate);
2555 if (PyErr_Occurred()) SWIG_fail;
2556 }
2557 resultobj = PyInt_FromLong((long)result);
2558 return resultobj;
2559 fail:
2560 return NULL;
2561 }
2562
2563
2564 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2565 PyObject *resultobj;
2566 wxBitmap *arg1 = (wxBitmap *) 0 ;
2567 int result;
2568 PyObject * obj0 = 0 ;
2569 char *kwnames[] = {
2570 (char *) "self", NULL
2571 };
2572
2573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2575 {
2576 PyThreadState* __tstate = wxPyBeginAllowThreads();
2577 result = (int)(arg1)->GetWidth();
2578
2579 wxPyEndAllowThreads(__tstate);
2580 if (PyErr_Occurred()) SWIG_fail;
2581 }
2582 resultobj = PyInt_FromLong((long)result);
2583 return resultobj;
2584 fail:
2585 return NULL;
2586 }
2587
2588
2589 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2590 PyObject *resultobj;
2591 wxBitmap *arg1 = (wxBitmap *) 0 ;
2592 int result;
2593 PyObject * obj0 = 0 ;
2594 char *kwnames[] = {
2595 (char *) "self", NULL
2596 };
2597
2598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2600 {
2601 PyThreadState* __tstate = wxPyBeginAllowThreads();
2602 result = (int)(arg1)->GetHeight();
2603
2604 wxPyEndAllowThreads(__tstate);
2605 if (PyErr_Occurred()) SWIG_fail;
2606 }
2607 resultobj = PyInt_FromLong((long)result);
2608 return resultobj;
2609 fail:
2610 return NULL;
2611 }
2612
2613
2614 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2615 PyObject *resultobj;
2616 wxBitmap *arg1 = (wxBitmap *) 0 ;
2617 int result;
2618 PyObject * obj0 = 0 ;
2619 char *kwnames[] = {
2620 (char *) "self", NULL
2621 };
2622
2623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2625 {
2626 PyThreadState* __tstate = wxPyBeginAllowThreads();
2627 result = (int)(arg1)->GetDepth();
2628
2629 wxPyEndAllowThreads(__tstate);
2630 if (PyErr_Occurred()) SWIG_fail;
2631 }
2632 resultobj = PyInt_FromLong((long)result);
2633 return resultobj;
2634 fail:
2635 return NULL;
2636 }
2637
2638
2639 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2640 PyObject *resultobj;
2641 wxBitmap *arg1 = (wxBitmap *) 0 ;
2642 SwigValueWrapper< wxImage > result;
2643 PyObject * obj0 = 0 ;
2644 char *kwnames[] = {
2645 (char *) "self", NULL
2646 };
2647
2648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2650 {
2651 PyThreadState* __tstate = wxPyBeginAllowThreads();
2652 result = ((wxBitmap const *)arg1)->ConvertToImage();
2653
2654 wxPyEndAllowThreads(__tstate);
2655 if (PyErr_Occurred()) SWIG_fail;
2656 }
2657 {
2658 wxImage * resultptr;
2659 resultptr = new wxImage((wxImage &) result);
2660 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2661 }
2662 return resultobj;
2663 fail:
2664 return NULL;
2665 }
2666
2667
2668 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2669 PyObject *resultobj;
2670 wxBitmap *arg1 = (wxBitmap *) 0 ;
2671 wxMask *result;
2672 PyObject * obj0 = 0 ;
2673 char *kwnames[] = {
2674 (char *) "self", NULL
2675 };
2676
2677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2679 {
2680 PyThreadState* __tstate = wxPyBeginAllowThreads();
2681 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2682
2683 wxPyEndAllowThreads(__tstate);
2684 if (PyErr_Occurred()) SWIG_fail;
2685 }
2686 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2687 return resultobj;
2688 fail:
2689 return NULL;
2690 }
2691
2692
2693 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2694 PyObject *resultobj;
2695 wxBitmap *arg1 = (wxBitmap *) 0 ;
2696 wxMask *arg2 = (wxMask *) 0 ;
2697 PyObject * obj0 = 0 ;
2698 PyObject * obj1 = 0 ;
2699 char *kwnames[] = {
2700 (char *) "self",(char *) "mask", NULL
2701 };
2702
2703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2704 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2705 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2706 {
2707 PyThreadState* __tstate = wxPyBeginAllowThreads();
2708 (arg1)->SetMask(arg2);
2709
2710 wxPyEndAllowThreads(__tstate);
2711 if (PyErr_Occurred()) SWIG_fail;
2712 }
2713 Py_INCREF(Py_None); resultobj = Py_None;
2714 return resultobj;
2715 fail:
2716 return NULL;
2717 }
2718
2719
2720 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2721 PyObject *resultobj;
2722 wxBitmap *arg1 = (wxBitmap *) 0 ;
2723 wxColour *arg2 = 0 ;
2724 wxColour temp2 ;
2725 PyObject * obj0 = 0 ;
2726 PyObject * obj1 = 0 ;
2727 char *kwnames[] = {
2728 (char *) "self",(char *) "colour", NULL
2729 };
2730
2731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2733 {
2734 arg2 = &temp2;
2735 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2736 }
2737 {
2738 PyThreadState* __tstate = wxPyBeginAllowThreads();
2739 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2740
2741 wxPyEndAllowThreads(__tstate);
2742 if (PyErr_Occurred()) SWIG_fail;
2743 }
2744 Py_INCREF(Py_None); resultobj = Py_None;
2745 return resultobj;
2746 fail:
2747 return NULL;
2748 }
2749
2750
2751 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2752 PyObject *resultobj;
2753 wxBitmap *arg1 = (wxBitmap *) 0 ;
2754 wxRect *arg2 = 0 ;
2755 SwigValueWrapper< wxBitmap > result;
2756 wxRect temp2 ;
2757 PyObject * obj0 = 0 ;
2758 PyObject * obj1 = 0 ;
2759 char *kwnames[] = {
2760 (char *) "self",(char *) "rect", NULL
2761 };
2762
2763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2765 {
2766 arg2 = &temp2;
2767 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2768 }
2769 {
2770 PyThreadState* __tstate = wxPyBeginAllowThreads();
2771 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2772
2773 wxPyEndAllowThreads(__tstate);
2774 if (PyErr_Occurred()) SWIG_fail;
2775 }
2776 {
2777 wxBitmap * resultptr;
2778 resultptr = new wxBitmap((wxBitmap &) result);
2779 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2780 }
2781 return resultobj;
2782 fail:
2783 return NULL;
2784 }
2785
2786
2787 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2788 PyObject *resultobj;
2789 wxBitmap *arg1 = (wxBitmap *) 0 ;
2790 wxString *arg2 = 0 ;
2791 int arg3 ;
2792 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2793 bool result;
2794 bool temp2 = False ;
2795 PyObject * obj0 = 0 ;
2796 PyObject * obj1 = 0 ;
2797 PyObject * obj3 = 0 ;
2798 char *kwnames[] = {
2799 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2800 };
2801
2802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2804 {
2805 arg2 = wxString_in_helper(obj1);
2806 if (arg2 == NULL) SWIG_fail;
2807 temp2 = True;
2808 }
2809 if (obj3) {
2810 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2811 }
2812 {
2813 PyThreadState* __tstate = wxPyBeginAllowThreads();
2814 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2815
2816 wxPyEndAllowThreads(__tstate);
2817 if (PyErr_Occurred()) SWIG_fail;
2818 }
2819 resultobj = PyInt_FromLong((long)result);
2820 {
2821 if (temp2)
2822 delete arg2;
2823 }
2824 return resultobj;
2825 fail:
2826 {
2827 if (temp2)
2828 delete arg2;
2829 }
2830 return NULL;
2831 }
2832
2833
2834 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2835 PyObject *resultobj;
2836 wxBitmap *arg1 = (wxBitmap *) 0 ;
2837 wxString *arg2 = 0 ;
2838 int arg3 ;
2839 bool result;
2840 bool temp2 = False ;
2841 PyObject * obj0 = 0 ;
2842 PyObject * obj1 = 0 ;
2843 char *kwnames[] = {
2844 (char *) "self",(char *) "name",(char *) "type", NULL
2845 };
2846
2847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2849 {
2850 arg2 = wxString_in_helper(obj1);
2851 if (arg2 == NULL) SWIG_fail;
2852 temp2 = True;
2853 }
2854 {
2855 PyThreadState* __tstate = wxPyBeginAllowThreads();
2856 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2857
2858 wxPyEndAllowThreads(__tstate);
2859 if (PyErr_Occurred()) SWIG_fail;
2860 }
2861 resultobj = PyInt_FromLong((long)result);
2862 {
2863 if (temp2)
2864 delete arg2;
2865 }
2866 return resultobj;
2867 fail:
2868 {
2869 if (temp2)
2870 delete arg2;
2871 }
2872 return NULL;
2873 }
2874
2875
2876 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2877 PyObject *resultobj;
2878 wxBitmap *arg1 = (wxBitmap *) 0 ;
2879 wxIcon *arg2 = 0 ;
2880 bool result;
2881 PyObject * obj0 = 0 ;
2882 PyObject * obj1 = 0 ;
2883 char *kwnames[] = {
2884 (char *) "self",(char *) "icon", NULL
2885 };
2886
2887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2889 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2890 if (arg2 == NULL) {
2891 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2892 }
2893 {
2894 PyThreadState* __tstate = wxPyBeginAllowThreads();
2895 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2896
2897 wxPyEndAllowThreads(__tstate);
2898 if (PyErr_Occurred()) SWIG_fail;
2899 }
2900 resultobj = PyInt_FromLong((long)result);
2901 return resultobj;
2902 fail:
2903 return NULL;
2904 }
2905
2906
2907 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2908 PyObject *resultobj;
2909 wxBitmap *arg1 = (wxBitmap *) 0 ;
2910 int arg2 ;
2911 PyObject * obj0 = 0 ;
2912 char *kwnames[] = {
2913 (char *) "self",(char *) "height", NULL
2914 };
2915
2916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail;
2917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2918 {
2919 PyThreadState* __tstate = wxPyBeginAllowThreads();
2920 (arg1)->SetHeight(arg2);
2921
2922 wxPyEndAllowThreads(__tstate);
2923 if (PyErr_Occurred()) SWIG_fail;
2924 }
2925 Py_INCREF(Py_None); resultobj = Py_None;
2926 return resultobj;
2927 fail:
2928 return NULL;
2929 }
2930
2931
2932 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2933 PyObject *resultobj;
2934 wxBitmap *arg1 = (wxBitmap *) 0 ;
2935 int arg2 ;
2936 PyObject * obj0 = 0 ;
2937 char *kwnames[] = {
2938 (char *) "self",(char *) "width", NULL
2939 };
2940
2941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail;
2942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2943 {
2944 PyThreadState* __tstate = wxPyBeginAllowThreads();
2945 (arg1)->SetWidth(arg2);
2946
2947 wxPyEndAllowThreads(__tstate);
2948 if (PyErr_Occurred()) SWIG_fail;
2949 }
2950 Py_INCREF(Py_None); resultobj = Py_None;
2951 return resultobj;
2952 fail:
2953 return NULL;
2954 }
2955
2956
2957 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2958 PyObject *resultobj;
2959 wxBitmap *arg1 = (wxBitmap *) 0 ;
2960 int arg2 ;
2961 PyObject * obj0 = 0 ;
2962 char *kwnames[] = {
2963 (char *) "self",(char *) "depth", NULL
2964 };
2965
2966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail;
2967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2968 {
2969 PyThreadState* __tstate = wxPyBeginAllowThreads();
2970 (arg1)->SetDepth(arg2);
2971
2972 wxPyEndAllowThreads(__tstate);
2973 if (PyErr_Occurred()) SWIG_fail;
2974 }
2975 Py_INCREF(Py_None); resultobj = Py_None;
2976 return resultobj;
2977 fail:
2978 return NULL;
2979 }
2980
2981
2982 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
2983 PyObject *obj;
2984 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2985 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
2986 Py_INCREF(obj);
2987 return Py_BuildValue((char *)"");
2988 }
2989 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
2990 PyObject *resultobj;
2991 wxBitmap *arg1 = 0 ;
2992 wxMask *result;
2993 PyObject * obj0 = 0 ;
2994 char *kwnames[] = {
2995 (char *) "bitmap", NULL
2996 };
2997
2998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
2999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3000 if (arg1 == NULL) {
3001 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3002 }
3003 {
3004 PyThreadState* __tstate = wxPyBeginAllowThreads();
3005 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
3006
3007 wxPyEndAllowThreads(__tstate);
3008 if (PyErr_Occurred()) SWIG_fail;
3009 }
3010 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3011 return resultobj;
3012 fail:
3013 return NULL;
3014 }
3015
3016
3017 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3018 PyObject *resultobj;
3019 wxBitmap *arg1 = 0 ;
3020 wxColour *arg2 = 0 ;
3021 wxMask *result;
3022 wxColour temp2 ;
3023 PyObject * obj0 = 0 ;
3024 PyObject * obj1 = 0 ;
3025 char *kwnames[] = {
3026 (char *) "bitmap",(char *) "colour", NULL
3027 };
3028
3029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
3030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3031 if (arg1 == NULL) {
3032 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3033 }
3034 {
3035 arg2 = &temp2;
3036 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3037 }
3038 {
3039 PyThreadState* __tstate = wxPyBeginAllowThreads();
3040 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3041
3042 wxPyEndAllowThreads(__tstate);
3043 if (PyErr_Occurred()) SWIG_fail;
3044 }
3045 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3046 return resultobj;
3047 fail:
3048 return NULL;
3049 }
3050
3051
3052 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3053 PyObject *obj;
3054 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3055 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3056 Py_INCREF(obj);
3057 return Py_BuildValue((char *)"");
3058 }
3059 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3060 PyObject *resultobj;
3061 wxString *arg1 = 0 ;
3062 int arg2 ;
3063 int arg3 = (int) -1 ;
3064 int arg4 = (int) -1 ;
3065 wxIcon *result;
3066 bool temp1 = False ;
3067 PyObject * obj0 = 0 ;
3068 char *kwnames[] = {
3069 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3070 };
3071
3072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3073 {
3074 arg1 = wxString_in_helper(obj0);
3075 if (arg1 == NULL) SWIG_fail;
3076 temp1 = True;
3077 }
3078 {
3079 PyThreadState* __tstate = wxPyBeginAllowThreads();
3080 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3081
3082 wxPyEndAllowThreads(__tstate);
3083 if (PyErr_Occurred()) SWIG_fail;
3084 }
3085 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3086 {
3087 if (temp1)
3088 delete arg1;
3089 }
3090 return resultobj;
3091 fail:
3092 {
3093 if (temp1)
3094 delete arg1;
3095 }
3096 return NULL;
3097 }
3098
3099
3100 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3101 PyObject *resultobj;
3102 wxIcon *arg1 = (wxIcon *) 0 ;
3103 PyObject * obj0 = 0 ;
3104 char *kwnames[] = {
3105 (char *) "self", NULL
3106 };
3107
3108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3110 {
3111 PyThreadState* __tstate = wxPyBeginAllowThreads();
3112 delete arg1;
3113
3114 wxPyEndAllowThreads(__tstate);
3115 if (PyErr_Occurred()) SWIG_fail;
3116 }
3117 Py_INCREF(Py_None); resultobj = Py_None;
3118 return resultobj;
3119 fail:
3120 return NULL;
3121 }
3122
3123
3124 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3125 PyObject *resultobj;
3126 wxIcon *result;
3127 char *kwnames[] = {
3128 NULL
3129 };
3130
3131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3132 {
3133 PyThreadState* __tstate = wxPyBeginAllowThreads();
3134 result = (wxIcon *)new wxIcon();
3135
3136 wxPyEndAllowThreads(__tstate);
3137 if (PyErr_Occurred()) SWIG_fail;
3138 }
3139 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3140 return resultobj;
3141 fail:
3142 return NULL;
3143 }
3144
3145
3146 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3147 PyObject *resultobj;
3148 wxIconLocation *arg1 = 0 ;
3149 wxIcon *result;
3150 PyObject * obj0 = 0 ;
3151 char *kwnames[] = {
3152 (char *) "loc", NULL
3153 };
3154
3155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3157 if (arg1 == NULL) {
3158 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3159 }
3160 {
3161 PyThreadState* __tstate = wxPyBeginAllowThreads();
3162 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3163
3164 wxPyEndAllowThreads(__tstate);
3165 if (PyErr_Occurred()) SWIG_fail;
3166 }
3167 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3168 return resultobj;
3169 fail:
3170 return NULL;
3171 }
3172
3173
3174 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3175 PyObject *resultobj;
3176 wxBitmap *arg1 = 0 ;
3177 wxIcon *result;
3178 PyObject * obj0 = 0 ;
3179 char *kwnames[] = {
3180 (char *) "bmp", NULL
3181 };
3182
3183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3185 if (arg1 == NULL) {
3186 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3187 }
3188 {
3189 PyThreadState* __tstate = wxPyBeginAllowThreads();
3190 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3191
3192 wxPyEndAllowThreads(__tstate);
3193 if (PyErr_Occurred()) SWIG_fail;
3194 }
3195 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3196 return resultobj;
3197 fail:
3198 return NULL;
3199 }
3200
3201
3202 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3203 PyObject *resultobj;
3204 PyObject *arg1 = (PyObject *) 0 ;
3205 wxIcon *result;
3206 PyObject * obj0 = 0 ;
3207 char *kwnames[] = {
3208 (char *) "listOfStrings", NULL
3209 };
3210
3211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3212 arg1 = obj0;
3213 {
3214 PyThreadState* __tstate = wxPyBeginAllowThreads();
3215 result = (wxIcon *)new_wxIcon(arg1);
3216
3217 wxPyEndAllowThreads(__tstate);
3218 if (PyErr_Occurred()) SWIG_fail;
3219 }
3220 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3221 return resultobj;
3222 fail:
3223 return NULL;
3224 }
3225
3226
3227 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3228 PyObject *resultobj;
3229 wxIcon *arg1 = (wxIcon *) 0 ;
3230 bool result;
3231 PyObject * obj0 = 0 ;
3232 char *kwnames[] = {
3233 (char *) "self", NULL
3234 };
3235
3236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3238 {
3239 PyThreadState* __tstate = wxPyBeginAllowThreads();
3240 result = (bool)(arg1)->Ok();
3241
3242 wxPyEndAllowThreads(__tstate);
3243 if (PyErr_Occurred()) SWIG_fail;
3244 }
3245 resultobj = PyInt_FromLong((long)result);
3246 return resultobj;
3247 fail:
3248 return NULL;
3249 }
3250
3251
3252 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3253 PyObject *resultobj;
3254 wxIcon *arg1 = (wxIcon *) 0 ;
3255 int result;
3256 PyObject * obj0 = 0 ;
3257 char *kwnames[] = {
3258 (char *) "self", NULL
3259 };
3260
3261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3263 {
3264 PyThreadState* __tstate = wxPyBeginAllowThreads();
3265 result = (int)(arg1)->GetWidth();
3266
3267 wxPyEndAllowThreads(__tstate);
3268 if (PyErr_Occurred()) SWIG_fail;
3269 }
3270 resultobj = PyInt_FromLong((long)result);
3271 return resultobj;
3272 fail:
3273 return NULL;
3274 }
3275
3276
3277 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3278 PyObject *resultobj;
3279 wxIcon *arg1 = (wxIcon *) 0 ;
3280 int result;
3281 PyObject * obj0 = 0 ;
3282 char *kwnames[] = {
3283 (char *) "self", NULL
3284 };
3285
3286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3288 {
3289 PyThreadState* __tstate = wxPyBeginAllowThreads();
3290 result = (int)(arg1)->GetHeight();
3291
3292 wxPyEndAllowThreads(__tstate);
3293 if (PyErr_Occurred()) SWIG_fail;
3294 }
3295 resultobj = PyInt_FromLong((long)result);
3296 return resultobj;
3297 fail:
3298 return NULL;
3299 }
3300
3301
3302 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3303 PyObject *resultobj;
3304 wxIcon *arg1 = (wxIcon *) 0 ;
3305 int result;
3306 PyObject * obj0 = 0 ;
3307 char *kwnames[] = {
3308 (char *) "self", NULL
3309 };
3310
3311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3313 {
3314 PyThreadState* __tstate = wxPyBeginAllowThreads();
3315 result = (int)(arg1)->GetDepth();
3316
3317 wxPyEndAllowThreads(__tstate);
3318 if (PyErr_Occurred()) SWIG_fail;
3319 }
3320 resultobj = PyInt_FromLong((long)result);
3321 return resultobj;
3322 fail:
3323 return NULL;
3324 }
3325
3326
3327 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3328 PyObject *resultobj;
3329 wxIcon *arg1 = (wxIcon *) 0 ;
3330 int arg2 ;
3331 PyObject * obj0 = 0 ;
3332 char *kwnames[] = {
3333 (char *) "self",(char *) "w", NULL
3334 };
3335
3336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail;
3337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3338 {
3339 PyThreadState* __tstate = wxPyBeginAllowThreads();
3340 (arg1)->SetWidth(arg2);
3341
3342 wxPyEndAllowThreads(__tstate);
3343 if (PyErr_Occurred()) SWIG_fail;
3344 }
3345 Py_INCREF(Py_None); resultobj = Py_None;
3346 return resultobj;
3347 fail:
3348 return NULL;
3349 }
3350
3351
3352 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3353 PyObject *resultobj;
3354 wxIcon *arg1 = (wxIcon *) 0 ;
3355 int arg2 ;
3356 PyObject * obj0 = 0 ;
3357 char *kwnames[] = {
3358 (char *) "self",(char *) "h", NULL
3359 };
3360
3361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail;
3362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3363 {
3364 PyThreadState* __tstate = wxPyBeginAllowThreads();
3365 (arg1)->SetHeight(arg2);
3366
3367 wxPyEndAllowThreads(__tstate);
3368 if (PyErr_Occurred()) SWIG_fail;
3369 }
3370 Py_INCREF(Py_None); resultobj = Py_None;
3371 return resultobj;
3372 fail:
3373 return NULL;
3374 }
3375
3376
3377 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3378 PyObject *resultobj;
3379 wxIcon *arg1 = (wxIcon *) 0 ;
3380 int arg2 ;
3381 PyObject * obj0 = 0 ;
3382 char *kwnames[] = {
3383 (char *) "self",(char *) "d", NULL
3384 };
3385
3386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail;
3387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3388 {
3389 PyThreadState* __tstate = wxPyBeginAllowThreads();
3390 (arg1)->SetDepth(arg2);
3391
3392 wxPyEndAllowThreads(__tstate);
3393 if (PyErr_Occurred()) SWIG_fail;
3394 }
3395 Py_INCREF(Py_None); resultobj = Py_None;
3396 return resultobj;
3397 fail:
3398 return NULL;
3399 }
3400
3401
3402 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3403 PyObject *resultobj;
3404 wxIcon *arg1 = (wxIcon *) 0 ;
3405 wxBitmap *arg2 = 0 ;
3406 PyObject * obj0 = 0 ;
3407 PyObject * obj1 = 0 ;
3408 char *kwnames[] = {
3409 (char *) "self",(char *) "bmp", NULL
3410 };
3411
3412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3414 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3415 if (arg2 == NULL) {
3416 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3417 }
3418 {
3419 PyThreadState* __tstate = wxPyBeginAllowThreads();
3420 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3421
3422 wxPyEndAllowThreads(__tstate);
3423 if (PyErr_Occurred()) SWIG_fail;
3424 }
3425 Py_INCREF(Py_None); resultobj = Py_None;
3426 return resultobj;
3427 fail:
3428 return NULL;
3429 }
3430
3431
3432 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3433 PyObject *obj;
3434 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3435 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3436 Py_INCREF(obj);
3437 return Py_BuildValue((char *)"");
3438 }
3439 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3440 PyObject *resultobj;
3441 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3442 int arg2 = (int) 0 ;
3443 wxIconLocation *result;
3444 bool temp1 = False ;
3445 PyObject * obj0 = 0 ;
3446 char *kwnames[] = {
3447 (char *) "filename",(char *) "num", NULL
3448 };
3449
3450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail;
3451 if (obj0) {
3452 {
3453 arg1 = wxString_in_helper(obj0);
3454 if (arg1 == NULL) SWIG_fail;
3455 temp1 = True;
3456 }
3457 }
3458 {
3459 PyThreadState* __tstate = wxPyBeginAllowThreads();
3460 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3461
3462 wxPyEndAllowThreads(__tstate);
3463 if (PyErr_Occurred()) SWIG_fail;
3464 }
3465 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3466 {
3467 if (temp1)
3468 delete arg1;
3469 }
3470 return resultobj;
3471 fail:
3472 {
3473 if (temp1)
3474 delete arg1;
3475 }
3476 return NULL;
3477 }
3478
3479
3480 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3481 PyObject *resultobj;
3482 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3483 PyObject * obj0 = 0 ;
3484 char *kwnames[] = {
3485 (char *) "self", NULL
3486 };
3487
3488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3490 {
3491 PyThreadState* __tstate = wxPyBeginAllowThreads();
3492 delete arg1;
3493
3494 wxPyEndAllowThreads(__tstate);
3495 if (PyErr_Occurred()) SWIG_fail;
3496 }
3497 Py_INCREF(Py_None); resultobj = Py_None;
3498 return resultobj;
3499 fail:
3500 return NULL;
3501 }
3502
3503
3504 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3505 PyObject *resultobj;
3506 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3507 bool result;
3508 PyObject * obj0 = 0 ;
3509 char *kwnames[] = {
3510 (char *) "self", NULL
3511 };
3512
3513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3515 {
3516 PyThreadState* __tstate = wxPyBeginAllowThreads();
3517 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3518
3519 wxPyEndAllowThreads(__tstate);
3520 if (PyErr_Occurred()) SWIG_fail;
3521 }
3522 resultobj = PyInt_FromLong((long)result);
3523 return resultobj;
3524 fail:
3525 return NULL;
3526 }
3527
3528
3529 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3530 PyObject *resultobj;
3531 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3532 wxString *arg2 = 0 ;
3533 bool temp2 = False ;
3534 PyObject * obj0 = 0 ;
3535 PyObject * obj1 = 0 ;
3536 char *kwnames[] = {
3537 (char *) "self",(char *) "filename", NULL
3538 };
3539
3540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3542 {
3543 arg2 = wxString_in_helper(obj1);
3544 if (arg2 == NULL) SWIG_fail;
3545 temp2 = True;
3546 }
3547 {
3548 PyThreadState* __tstate = wxPyBeginAllowThreads();
3549 (arg1)->SetFileName((wxString const &)*arg2);
3550
3551 wxPyEndAllowThreads(__tstate);
3552 if (PyErr_Occurred()) SWIG_fail;
3553 }
3554 Py_INCREF(Py_None); resultobj = Py_None;
3555 {
3556 if (temp2)
3557 delete arg2;
3558 }
3559 return resultobj;
3560 fail:
3561 {
3562 if (temp2)
3563 delete arg2;
3564 }
3565 return NULL;
3566 }
3567
3568
3569 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3570 PyObject *resultobj;
3571 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3572 wxString *result;
3573 PyObject * obj0 = 0 ;
3574 char *kwnames[] = {
3575 (char *) "self", NULL
3576 };
3577
3578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3580 {
3581 PyThreadState* __tstate = wxPyBeginAllowThreads();
3582 {
3583 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3584 result = (wxString *) &_result_ref;
3585 }
3586
3587 wxPyEndAllowThreads(__tstate);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 {
3591 #if wxUSE_UNICODE
3592 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3593 #else
3594 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3595 #endif
3596 }
3597 return resultobj;
3598 fail:
3599 return NULL;
3600 }
3601
3602
3603 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3604 PyObject *resultobj;
3605 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3606 int arg2 ;
3607 PyObject * obj0 = 0 ;
3608 char *kwnames[] = {
3609 (char *) "self",(char *) "num", NULL
3610 };
3611
3612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail;
3613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3614 {
3615 PyThreadState* __tstate = wxPyBeginAllowThreads();
3616 wxIconLocation_SetIndex(arg1,arg2);
3617
3618 wxPyEndAllowThreads(__tstate);
3619 if (PyErr_Occurred()) SWIG_fail;
3620 }
3621 Py_INCREF(Py_None); resultobj = Py_None;
3622 return resultobj;
3623 fail:
3624 return NULL;
3625 }
3626
3627
3628 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3629 PyObject *resultobj;
3630 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3631 int result;
3632 PyObject * obj0 = 0 ;
3633 char *kwnames[] = {
3634 (char *) "self", NULL
3635 };
3636
3637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3639 {
3640 PyThreadState* __tstate = wxPyBeginAllowThreads();
3641 result = (int)wxIconLocation_GetIndex(arg1);
3642
3643 wxPyEndAllowThreads(__tstate);
3644 if (PyErr_Occurred()) SWIG_fail;
3645 }
3646 resultobj = PyInt_FromLong((long)result);
3647 return resultobj;
3648 fail:
3649 return NULL;
3650 }
3651
3652
3653 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3654 PyObject *obj;
3655 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3656 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3657 Py_INCREF(obj);
3658 return Py_BuildValue((char *)"");
3659 }
3660 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3661 PyObject *resultobj;
3662 wxIconBundle *result;
3663 char *kwnames[] = {
3664 NULL
3665 };
3666
3667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3668 {
3669 PyThreadState* __tstate = wxPyBeginAllowThreads();
3670 result = (wxIconBundle *)new wxIconBundle();
3671
3672 wxPyEndAllowThreads(__tstate);
3673 if (PyErr_Occurred()) SWIG_fail;
3674 }
3675 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3676 return resultobj;
3677 fail:
3678 return NULL;
3679 }
3680
3681
3682 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3683 PyObject *resultobj;
3684 wxString *arg1 = 0 ;
3685 long arg2 ;
3686 wxIconBundle *result;
3687 bool temp1 = False ;
3688 PyObject * obj0 = 0 ;
3689 char *kwnames[] = {
3690 (char *) "file",(char *) "type", NULL
3691 };
3692
3693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail;
3694 {
3695 arg1 = wxString_in_helper(obj0);
3696 if (arg1 == NULL) SWIG_fail;
3697 temp1 = True;
3698 }
3699 {
3700 PyThreadState* __tstate = wxPyBeginAllowThreads();
3701 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3702
3703 wxPyEndAllowThreads(__tstate);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 }
3706 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3707 {
3708 if (temp1)
3709 delete arg1;
3710 }
3711 return resultobj;
3712 fail:
3713 {
3714 if (temp1)
3715 delete arg1;
3716 }
3717 return NULL;
3718 }
3719
3720
3721 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3722 PyObject *resultobj;
3723 wxIcon *arg1 = 0 ;
3724 wxIconBundle *result;
3725 PyObject * obj0 = 0 ;
3726 char *kwnames[] = {
3727 (char *) "icon", NULL
3728 };
3729
3730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3732 if (arg1 == NULL) {
3733 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3734 }
3735 {
3736 PyThreadState* __tstate = wxPyBeginAllowThreads();
3737 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3738
3739 wxPyEndAllowThreads(__tstate);
3740 if (PyErr_Occurred()) SWIG_fail;
3741 }
3742 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3743 return resultobj;
3744 fail:
3745 return NULL;
3746 }
3747
3748
3749 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3750 PyObject *resultobj;
3751 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3752 PyObject * obj0 = 0 ;
3753 char *kwnames[] = {
3754 (char *) "self", NULL
3755 };
3756
3757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3758 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3759 {
3760 PyThreadState* __tstate = wxPyBeginAllowThreads();
3761 delete arg1;
3762
3763 wxPyEndAllowThreads(__tstate);
3764 if (PyErr_Occurred()) SWIG_fail;
3765 }
3766 Py_INCREF(Py_None); resultobj = Py_None;
3767 return resultobj;
3768 fail:
3769 return NULL;
3770 }
3771
3772
3773 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3774 PyObject *resultobj;
3775 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3776 wxIcon *arg2 = 0 ;
3777 PyObject * obj0 = 0 ;
3778 PyObject * obj1 = 0 ;
3779 char *kwnames[] = {
3780 (char *) "self",(char *) "icon", NULL
3781 };
3782
3783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3785 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3786 if (arg2 == NULL) {
3787 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3788 }
3789 {
3790 PyThreadState* __tstate = wxPyBeginAllowThreads();
3791 (arg1)->AddIcon((wxIcon const &)*arg2);
3792
3793 wxPyEndAllowThreads(__tstate);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 }
3796 Py_INCREF(Py_None); resultobj = Py_None;
3797 return resultobj;
3798 fail:
3799 return NULL;
3800 }
3801
3802
3803 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3804 PyObject *resultobj;
3805 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3806 wxString *arg2 = 0 ;
3807 long arg3 ;
3808 bool temp2 = False ;
3809 PyObject * obj0 = 0 ;
3810 PyObject * obj1 = 0 ;
3811 char *kwnames[] = {
3812 (char *) "self",(char *) "file",(char *) "type", NULL
3813 };
3814
3815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3817 {
3818 arg2 = wxString_in_helper(obj1);
3819 if (arg2 == NULL) SWIG_fail;
3820 temp2 = True;
3821 }
3822 {
3823 PyThreadState* __tstate = wxPyBeginAllowThreads();
3824 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3825
3826 wxPyEndAllowThreads(__tstate);
3827 if (PyErr_Occurred()) SWIG_fail;
3828 }
3829 Py_INCREF(Py_None); resultobj = Py_None;
3830 {
3831 if (temp2)
3832 delete arg2;
3833 }
3834 return resultobj;
3835 fail:
3836 {
3837 if (temp2)
3838 delete arg2;
3839 }
3840 return NULL;
3841 }
3842
3843
3844 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3845 PyObject *resultobj;
3846 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3847 wxSize *arg2 = 0 ;
3848 wxIcon *result;
3849 wxSize temp2 ;
3850 PyObject * obj0 = 0 ;
3851 PyObject * obj1 = 0 ;
3852 char *kwnames[] = {
3853 (char *) "self",(char *) "size", NULL
3854 };
3855
3856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
3857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3858 {
3859 arg2 = &temp2;
3860 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3861 }
3862 {
3863 PyThreadState* __tstate = wxPyBeginAllowThreads();
3864 {
3865 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
3866 result = (wxIcon *) &_result_ref;
3867 }
3868
3869 wxPyEndAllowThreads(__tstate);
3870 if (PyErr_Occurred()) SWIG_fail;
3871 }
3872 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
3873 return resultobj;
3874 fail:
3875 return NULL;
3876 }
3877
3878
3879 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
3880 PyObject *obj;
3881 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3882 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
3883 Py_INCREF(obj);
3884 return Py_BuildValue((char *)"");
3885 }
3886 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3887 PyObject *resultobj;
3888 wxString *arg1 = (wxString *) 0 ;
3889 long arg2 ;
3890 int arg3 = (int) 0 ;
3891 int arg4 = (int) 0 ;
3892 wxCursor *result;
3893 bool temp1 = False ;
3894 PyObject * obj0 = 0 ;
3895 char *kwnames[] = {
3896 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
3897 };
3898
3899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3900 {
3901 arg1 = wxString_in_helper(obj0);
3902 if (arg1 == NULL) SWIG_fail;
3903 temp1 = True;
3904 }
3905 {
3906 PyThreadState* __tstate = wxPyBeginAllowThreads();
3907 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
3908
3909 wxPyEndAllowThreads(__tstate);
3910 if (PyErr_Occurred()) SWIG_fail;
3911 }
3912 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3913 {
3914 if (temp1)
3915 delete arg1;
3916 }
3917 return resultobj;
3918 fail:
3919 {
3920 if (temp1)
3921 delete arg1;
3922 }
3923 return NULL;
3924 }
3925
3926
3927 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3928 PyObject *resultobj;
3929 wxCursor *arg1 = (wxCursor *) 0 ;
3930 PyObject * obj0 = 0 ;
3931 char *kwnames[] = {
3932 (char *) "self", NULL
3933 };
3934
3935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
3936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3937 {
3938 PyThreadState* __tstate = wxPyBeginAllowThreads();
3939 delete arg1;
3940
3941 wxPyEndAllowThreads(__tstate);
3942 if (PyErr_Occurred()) SWIG_fail;
3943 }
3944 Py_INCREF(Py_None); resultobj = Py_None;
3945 return resultobj;
3946 fail:
3947 return NULL;
3948 }
3949
3950
3951 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3952 PyObject *resultobj;
3953 int arg1 ;
3954 wxCursor *result;
3955 char *kwnames[] = {
3956 (char *) "id", NULL
3957 };
3958
3959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail;
3960 {
3961 PyThreadState* __tstate = wxPyBeginAllowThreads();
3962 result = (wxCursor *)new wxCursor(arg1);
3963
3964 wxPyEndAllowThreads(__tstate);
3965 if (PyErr_Occurred()) SWIG_fail;
3966 }
3967 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3968 return resultobj;
3969 fail:
3970 return NULL;
3971 }
3972
3973
3974 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3975 PyObject *resultobj;
3976 wxImage *arg1 = 0 ;
3977 wxCursor *result;
3978 PyObject * obj0 = 0 ;
3979 char *kwnames[] = {
3980 (char *) "image", NULL
3981 };
3982
3983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
3984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3985 if (arg1 == NULL) {
3986 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3987 }
3988 {
3989 PyThreadState* __tstate = wxPyBeginAllowThreads();
3990 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
3991
3992 wxPyEndAllowThreads(__tstate);
3993 if (PyErr_Occurred()) SWIG_fail;
3994 }
3995 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3996 return resultobj;
3997 fail:
3998 return NULL;
3999 }
4000
4001
4002 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4003 PyObject *resultobj;
4004 PyObject *arg1 = (PyObject *) 0 ;
4005 int arg2 ;
4006 int arg3 ;
4007 int arg4 = (int) -1 ;
4008 int arg5 = (int) -1 ;
4009 PyObject *arg6 = (PyObject *) 0 ;
4010 wxCursor *result;
4011 PyObject * obj0 = 0 ;
4012 PyObject * obj5 = 0 ;
4013 char *kwnames[] = {
4014 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4015 };
4016
4017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
4018 arg1 = obj0;
4019 if (obj5) {
4020 arg6 = obj5;
4021 }
4022 {
4023 PyThreadState* __tstate = wxPyBeginAllowThreads();
4024 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4025
4026 wxPyEndAllowThreads(__tstate);
4027 if (PyErr_Occurred()) SWIG_fail;
4028 }
4029 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4030 return resultobj;
4031 fail:
4032 return NULL;
4033 }
4034
4035
4036 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4037 PyObject *resultobj;
4038 wxCursor *arg1 = (wxCursor *) 0 ;
4039 bool result;
4040 PyObject * obj0 = 0 ;
4041 char *kwnames[] = {
4042 (char *) "self", NULL
4043 };
4044
4045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4047 {
4048 PyThreadState* __tstate = wxPyBeginAllowThreads();
4049 result = (bool)(arg1)->Ok();
4050
4051 wxPyEndAllowThreads(__tstate);
4052 if (PyErr_Occurred()) SWIG_fail;
4053 }
4054 resultobj = PyInt_FromLong((long)result);
4055 return resultobj;
4056 fail:
4057 return NULL;
4058 }
4059
4060
4061 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4062 PyObject *obj;
4063 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4064 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4065 Py_INCREF(obj);
4066 return Py_BuildValue((char *)"");
4067 }
4068 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4069 PyObject *resultobj;
4070 int arg1 = (int) 0 ;
4071 int arg2 = (int) 0 ;
4072 int arg3 = (int) 0 ;
4073 int arg4 = (int) 0 ;
4074 wxRegion *result;
4075 char *kwnames[] = {
4076 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4077 };
4078
4079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
4080 {
4081 PyThreadState* __tstate = wxPyBeginAllowThreads();
4082 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4083
4084 wxPyEndAllowThreads(__tstate);
4085 if (PyErr_Occurred()) SWIG_fail;
4086 }
4087 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4088 return resultobj;
4089 fail:
4090 return NULL;
4091 }
4092
4093
4094 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4095 PyObject *resultobj;
4096 wxBitmap *arg1 = 0 ;
4097 wxColour const &arg2_defvalue = wxNullColour ;
4098 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4099 int arg3 = (int) 0 ;
4100 wxRegion *result;
4101 wxColour temp2 ;
4102 PyObject * obj0 = 0 ;
4103 PyObject * obj1 = 0 ;
4104 char *kwnames[] = {
4105 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4106 };
4107
4108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail;
4109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4110 if (arg1 == NULL) {
4111 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4112 }
4113 if (obj1) {
4114 {
4115 arg2 = &temp2;
4116 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4117 }
4118 }
4119 {
4120 PyThreadState* __tstate = wxPyBeginAllowThreads();
4121 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4122
4123 wxPyEndAllowThreads(__tstate);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4127 return resultobj;
4128 fail:
4129 return NULL;
4130 }
4131
4132
4133 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4134 PyObject *resultobj;
4135 int arg1 ;
4136 wxPoint *arg2 = (wxPoint *) 0 ;
4137 int arg3 = (int) wxWINDING_RULE ;
4138 wxRegion *result;
4139 PyObject * obj0 = 0 ;
4140 char *kwnames[] = {
4141 (char *) "points",(char *) "fillStyle", NULL
4142 };
4143
4144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail;
4145 {
4146 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4147 if (arg2 == NULL) SWIG_fail;
4148 }
4149 {
4150 PyThreadState* __tstate = wxPyBeginAllowThreads();
4151 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4152
4153 wxPyEndAllowThreads(__tstate);
4154 if (PyErr_Occurred()) SWIG_fail;
4155 }
4156 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4157 {
4158 if (arg2) delete [] arg2;
4159 }
4160 return resultobj;
4161 fail:
4162 {
4163 if (arg2) delete [] arg2;
4164 }
4165 return NULL;
4166 }
4167
4168
4169 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4170 PyObject *resultobj;
4171 wxRegion *arg1 = (wxRegion *) 0 ;
4172 PyObject * obj0 = 0 ;
4173 char *kwnames[] = {
4174 (char *) "self", NULL
4175 };
4176
4177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4179 {
4180 PyThreadState* __tstate = wxPyBeginAllowThreads();
4181 delete arg1;
4182
4183 wxPyEndAllowThreads(__tstate);
4184 if (PyErr_Occurred()) SWIG_fail;
4185 }
4186 Py_INCREF(Py_None); resultobj = Py_None;
4187 return resultobj;
4188 fail:
4189 return NULL;
4190 }
4191
4192
4193 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4194 PyObject *resultobj;
4195 wxRegion *arg1 = (wxRegion *) 0 ;
4196 PyObject * obj0 = 0 ;
4197 char *kwnames[] = {
4198 (char *) "self", NULL
4199 };
4200
4201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4203 {
4204 PyThreadState* __tstate = wxPyBeginAllowThreads();
4205 (arg1)->Clear();
4206
4207 wxPyEndAllowThreads(__tstate);
4208 if (PyErr_Occurred()) SWIG_fail;
4209 }
4210 Py_INCREF(Py_None); resultobj = Py_None;
4211 return resultobj;
4212 fail:
4213 return NULL;
4214 }
4215
4216
4217 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4218 PyObject *resultobj;
4219 wxRegion *arg1 = (wxRegion *) 0 ;
4220 int arg2 ;
4221 int arg3 ;
4222 int result;
4223 PyObject * obj0 = 0 ;
4224 char *kwnames[] = {
4225 (char *) "self",(char *) "x",(char *) "y", NULL
4226 };
4227
4228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail;
4229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4230 {
4231 PyThreadState* __tstate = wxPyBeginAllowThreads();
4232 result = (int)(arg1)->Contains(arg2,arg3);
4233
4234 wxPyEndAllowThreads(__tstate);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
4237 resultobj = PyInt_FromLong((long)result);
4238 return resultobj;
4239 fail:
4240 return NULL;
4241 }
4242
4243
4244 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4245 PyObject *resultobj;
4246 wxRegion *arg1 = (wxRegion *) 0 ;
4247 wxPoint *arg2 = 0 ;
4248 int result;
4249 wxPoint temp2 ;
4250 PyObject * obj0 = 0 ;
4251 PyObject * obj1 = 0 ;
4252 char *kwnames[] = {
4253 (char *) "self",(char *) "pt", NULL
4254 };
4255
4256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4258 {
4259 arg2 = &temp2;
4260 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4261 }
4262 {
4263 PyThreadState* __tstate = wxPyBeginAllowThreads();
4264 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4265
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 resultobj = PyInt_FromLong((long)result);
4270 return resultobj;
4271 fail:
4272 return NULL;
4273 }
4274
4275
4276 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4277 PyObject *resultobj;
4278 wxRegion *arg1 = (wxRegion *) 0 ;
4279 wxRect *arg2 = 0 ;
4280 int result;
4281 wxRect temp2 ;
4282 PyObject * obj0 = 0 ;
4283 PyObject * obj1 = 0 ;
4284 char *kwnames[] = {
4285 (char *) "self",(char *) "rect", NULL
4286 };
4287
4288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4290 {
4291 arg2 = &temp2;
4292 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4293 }
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4297
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 resultobj = PyInt_FromLong((long)result);
4302 return resultobj;
4303 fail:
4304 return NULL;
4305 }
4306
4307
4308 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4309 PyObject *resultobj;
4310 wxRegion *arg1 = (wxRegion *) 0 ;
4311 int arg2 ;
4312 int arg3 ;
4313 int arg4 ;
4314 int arg5 ;
4315 int result;
4316 PyObject * obj0 = 0 ;
4317 char *kwnames[] = {
4318 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4319 };
4320
4321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4323 {
4324 PyThreadState* __tstate = wxPyBeginAllowThreads();
4325 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4326
4327 wxPyEndAllowThreads(__tstate);
4328 if (PyErr_Occurred()) SWIG_fail;
4329 }
4330 resultobj = PyInt_FromLong((long)result);
4331 return resultobj;
4332 fail:
4333 return NULL;
4334 }
4335
4336
4337 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4338 PyObject *resultobj;
4339 wxRegion *arg1 = (wxRegion *) 0 ;
4340 wxRect result;
4341 PyObject * obj0 = 0 ;
4342 char *kwnames[] = {
4343 (char *) "self", NULL
4344 };
4345
4346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4348 {
4349 PyThreadState* __tstate = wxPyBeginAllowThreads();
4350 result = (arg1)->GetBox();
4351
4352 wxPyEndAllowThreads(__tstate);
4353 if (PyErr_Occurred()) SWIG_fail;
4354 }
4355 {
4356 wxRect * resultptr;
4357 resultptr = new wxRect((wxRect &) result);
4358 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4359 }
4360 return resultobj;
4361 fail:
4362 return NULL;
4363 }
4364
4365
4366 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4367 PyObject *resultobj;
4368 wxRegion *arg1 = (wxRegion *) 0 ;
4369 int arg2 ;
4370 int arg3 ;
4371 int arg4 ;
4372 int arg5 ;
4373 bool result;
4374 PyObject * obj0 = 0 ;
4375 char *kwnames[] = {
4376 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4377 };
4378
4379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4381 {
4382 PyThreadState* __tstate = wxPyBeginAllowThreads();
4383 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4384
4385 wxPyEndAllowThreads(__tstate);
4386 if (PyErr_Occurred()) SWIG_fail;
4387 }
4388 resultobj = PyInt_FromLong((long)result);
4389 return resultobj;
4390 fail:
4391 return NULL;
4392 }
4393
4394
4395 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4396 PyObject *resultobj;
4397 wxRegion *arg1 = (wxRegion *) 0 ;
4398 wxRect *arg2 = 0 ;
4399 bool result;
4400 wxRect temp2 ;
4401 PyObject * obj0 = 0 ;
4402 PyObject * obj1 = 0 ;
4403 char *kwnames[] = {
4404 (char *) "self",(char *) "rect", NULL
4405 };
4406
4407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4409 {
4410 arg2 = &temp2;
4411 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4412 }
4413 {
4414 PyThreadState* __tstate = wxPyBeginAllowThreads();
4415 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4416
4417 wxPyEndAllowThreads(__tstate);
4418 if (PyErr_Occurred()) SWIG_fail;
4419 }
4420 resultobj = PyInt_FromLong((long)result);
4421 return resultobj;
4422 fail:
4423 return NULL;
4424 }
4425
4426
4427 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4428 PyObject *resultobj;
4429 wxRegion *arg1 = (wxRegion *) 0 ;
4430 wxRegion *arg2 = 0 ;
4431 bool result;
4432 PyObject * obj0 = 0 ;
4433 PyObject * obj1 = 0 ;
4434 char *kwnames[] = {
4435 (char *) "self",(char *) "region", NULL
4436 };
4437
4438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4440 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4441 if (arg2 == NULL) {
4442 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4443 }
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = PyInt_FromLong((long)result);
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4459 PyObject *resultobj;
4460 wxRegion *arg1 = (wxRegion *) 0 ;
4461 bool result;
4462 PyObject * obj0 = 0 ;
4463 char *kwnames[] = {
4464 (char *) "self", NULL
4465 };
4466
4467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4469 {
4470 PyThreadState* __tstate = wxPyBeginAllowThreads();
4471 result = (bool)(arg1)->IsEmpty();
4472
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = PyInt_FromLong((long)result);
4477 return resultobj;
4478 fail:
4479 return NULL;
4480 }
4481
4482
4483 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4484 PyObject *resultobj;
4485 wxRegion *arg1 = (wxRegion *) 0 ;
4486 int arg2 ;
4487 int arg3 ;
4488 int arg4 ;
4489 int arg5 ;
4490 bool result;
4491 PyObject * obj0 = 0 ;
4492 char *kwnames[] = {
4493 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4494 };
4495
4496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4498 {
4499 PyThreadState* __tstate = wxPyBeginAllowThreads();
4500 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4501
4502 wxPyEndAllowThreads(__tstate);
4503 if (PyErr_Occurred()) SWIG_fail;
4504 }
4505 resultobj = PyInt_FromLong((long)result);
4506 return resultobj;
4507 fail:
4508 return NULL;
4509 }
4510
4511
4512 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4513 PyObject *resultobj;
4514 wxRegion *arg1 = (wxRegion *) 0 ;
4515 wxRect *arg2 = 0 ;
4516 bool result;
4517 wxRect temp2 ;
4518 PyObject * obj0 = 0 ;
4519 PyObject * obj1 = 0 ;
4520 char *kwnames[] = {
4521 (char *) "self",(char *) "rect", NULL
4522 };
4523
4524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4525 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4526 {
4527 arg2 = &temp2;
4528 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4529 }
4530 {
4531 PyThreadState* __tstate = wxPyBeginAllowThreads();
4532 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4533
4534 wxPyEndAllowThreads(__tstate);
4535 if (PyErr_Occurred()) SWIG_fail;
4536 }
4537 resultobj = PyInt_FromLong((long)result);
4538 return resultobj;
4539 fail:
4540 return NULL;
4541 }
4542
4543
4544 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4545 PyObject *resultobj;
4546 wxRegion *arg1 = (wxRegion *) 0 ;
4547 wxRegion *arg2 = 0 ;
4548 bool result;
4549 PyObject * obj0 = 0 ;
4550 PyObject * obj1 = 0 ;
4551 char *kwnames[] = {
4552 (char *) "self",(char *) "region", NULL
4553 };
4554
4555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4557 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4558 if (arg2 == NULL) {
4559 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4560 }
4561 {
4562 PyThreadState* __tstate = wxPyBeginAllowThreads();
4563 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4564
4565 wxPyEndAllowThreads(__tstate);
4566 if (PyErr_Occurred()) SWIG_fail;
4567 }
4568 resultobj = PyInt_FromLong((long)result);
4569 return resultobj;
4570 fail:
4571 return NULL;
4572 }
4573
4574
4575 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4576 PyObject *resultobj;
4577 wxRegion *arg1 = (wxRegion *) 0 ;
4578 int arg2 ;
4579 int arg3 ;
4580 int arg4 ;
4581 int arg5 ;
4582 bool result;
4583 PyObject * obj0 = 0 ;
4584 char *kwnames[] = {
4585 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4586 };
4587
4588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4590 {
4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
4592 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4593
4594 wxPyEndAllowThreads(__tstate);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 resultobj = PyInt_FromLong((long)result);
4598 return resultobj;
4599 fail:
4600 return NULL;
4601 }
4602
4603
4604 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4605 PyObject *resultobj;
4606 wxRegion *arg1 = (wxRegion *) 0 ;
4607 wxRect *arg2 = 0 ;
4608 bool result;
4609 wxRect temp2 ;
4610 PyObject * obj0 = 0 ;
4611 PyObject * obj1 = 0 ;
4612 char *kwnames[] = {
4613 (char *) "self",(char *) "rect", NULL
4614 };
4615
4616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4618 {
4619 arg2 = &temp2;
4620 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4621 }
4622 {
4623 PyThreadState* __tstate = wxPyBeginAllowThreads();
4624 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4625
4626 wxPyEndAllowThreads(__tstate);
4627 if (PyErr_Occurred()) SWIG_fail;
4628 }
4629 resultobj = PyInt_FromLong((long)result);
4630 return resultobj;
4631 fail:
4632 return NULL;
4633 }
4634
4635
4636 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4637 PyObject *resultobj;
4638 wxRegion *arg1 = (wxRegion *) 0 ;
4639 wxRegion *arg2 = 0 ;
4640 bool result;
4641 PyObject * obj0 = 0 ;
4642 PyObject * obj1 = 0 ;
4643 char *kwnames[] = {
4644 (char *) "self",(char *) "region", NULL
4645 };
4646
4647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4649 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4650 if (arg2 == NULL) {
4651 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4652 }
4653 {
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4656
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) SWIG_fail;
4659 }
4660 resultobj = PyInt_FromLong((long)result);
4661 return resultobj;
4662 fail:
4663 return NULL;
4664 }
4665
4666
4667 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
4668 PyObject *resultobj;
4669 wxRegion *arg1 = (wxRegion *) 0 ;
4670 int arg2 ;
4671 int arg3 ;
4672 int arg4 ;
4673 int arg5 ;
4674 bool result;
4675 PyObject * obj0 = 0 ;
4676 char *kwnames[] = {
4677 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4678 };
4679
4680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4682 {
4683 PyThreadState* __tstate = wxPyBeginAllowThreads();
4684 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
4685
4686 wxPyEndAllowThreads(__tstate);
4687 if (PyErr_Occurred()) SWIG_fail;
4688 }
4689 resultobj = PyInt_FromLong((long)result);
4690 return resultobj;
4691 fail:
4692 return NULL;
4693 }
4694
4695
4696 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4697 PyObject *resultobj;
4698 wxRegion *arg1 = (wxRegion *) 0 ;
4699 wxRect *arg2 = 0 ;
4700 bool result;
4701 wxRect temp2 ;
4702 PyObject * obj0 = 0 ;
4703 PyObject * obj1 = 0 ;
4704 char *kwnames[] = {
4705 (char *) "self",(char *) "rect", NULL
4706 };
4707
4708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
4709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4710 {
4711 arg2 = &temp2;
4712 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4713 }
4714 {
4715 PyThreadState* __tstate = wxPyBeginAllowThreads();
4716 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
4717
4718 wxPyEndAllowThreads(__tstate);
4719 if (PyErr_Occurred()) SWIG_fail;
4720 }
4721 resultobj = PyInt_FromLong((long)result);
4722 return resultobj;
4723 fail:
4724 return NULL;
4725 }
4726
4727
4728 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4729 PyObject *resultobj;
4730 wxRegion *arg1 = (wxRegion *) 0 ;
4731 wxRegion *arg2 = 0 ;
4732 bool result;
4733 PyObject * obj0 = 0 ;
4734 PyObject * obj1 = 0 ;
4735 char *kwnames[] = {
4736 (char *) "self",(char *) "region", NULL
4737 };
4738
4739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
4740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4741 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4742 if (arg2 == NULL) {
4743 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4744 }
4745 {
4746 PyThreadState* __tstate = wxPyBeginAllowThreads();
4747 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
4748
4749 wxPyEndAllowThreads(__tstate);
4750 if (PyErr_Occurred()) SWIG_fail;
4751 }
4752 resultobj = PyInt_FromLong((long)result);
4753 return resultobj;
4754 fail:
4755 return NULL;
4756 }
4757
4758
4759 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4760 PyObject *resultobj;
4761 wxRegion *arg1 = (wxRegion *) 0 ;
4762 SwigValueWrapper< wxBitmap > result;
4763 PyObject * obj0 = 0 ;
4764 char *kwnames[] = {
4765 (char *) "self", NULL
4766 };
4767
4768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
4769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 result = (arg1)->ConvertToBitmap();
4773
4774 wxPyEndAllowThreads(__tstate);
4775 if (PyErr_Occurred()) SWIG_fail;
4776 }
4777 {
4778 wxBitmap * resultptr;
4779 resultptr = new wxBitmap((wxBitmap &) result);
4780 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
4781 }
4782 return resultobj;
4783 fail:
4784 return NULL;
4785 }
4786
4787
4788 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4789 PyObject *resultobj;
4790 wxRegion *arg1 = (wxRegion *) 0 ;
4791 wxBitmap *arg2 = 0 ;
4792 wxColour const &arg3_defvalue = wxNullColour ;
4793 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
4794 int arg4 = (int) 0 ;
4795 bool result;
4796 wxColour temp3 ;
4797 PyObject * obj0 = 0 ;
4798 PyObject * obj1 = 0 ;
4799 PyObject * obj2 = 0 ;
4800 char *kwnames[] = {
4801 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4802 };
4803
4804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
4805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4806 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4807 if (arg2 == NULL) {
4808 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4809 }
4810 if (obj2) {
4811 {
4812 arg3 = &temp3;
4813 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
4814 }
4815 }
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
4819
4820 wxPyEndAllowThreads(__tstate);
4821 if (PyErr_Occurred()) SWIG_fail;
4822 }
4823 resultobj = PyInt_FromLong((long)result);
4824 return resultobj;
4825 fail:
4826 return NULL;
4827 }
4828
4829
4830 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
4831 PyObject *obj;
4832 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4833 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
4834 Py_INCREF(obj);
4835 return Py_BuildValue((char *)"");
4836 }
4837 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4838 PyObject *resultobj;
4839 wxRegion *arg1 = 0 ;
4840 wxRegionIterator *result;
4841 PyObject * obj0 = 0 ;
4842 char *kwnames[] = {
4843 (char *) "region", NULL
4844 };
4845
4846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
4847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4848 if (arg1 == NULL) {
4849 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4850 }
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
4854
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
4859 return resultobj;
4860 fail:
4861 return NULL;
4862 }
4863
4864
4865 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj;
4867 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4868 PyObject * obj0 = 0 ;
4869 char *kwnames[] = {
4870 (char *) "self", NULL
4871 };
4872
4873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
4874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4875 {
4876 PyThreadState* __tstate = wxPyBeginAllowThreads();
4877 delete arg1;
4878
4879 wxPyEndAllowThreads(__tstate);
4880 if (PyErr_Occurred()) SWIG_fail;
4881 }
4882 Py_INCREF(Py_None); resultobj = Py_None;
4883 return resultobj;
4884 fail:
4885 return NULL;
4886 }
4887
4888
4889 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
4890 PyObject *resultobj;
4891 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4892 int result;
4893 PyObject * obj0 = 0 ;
4894 char *kwnames[] = {
4895 (char *) "self", NULL
4896 };
4897
4898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
4899 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4900 {
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 result = (int)(arg1)->GetX();
4903
4904 wxPyEndAllowThreads(__tstate);
4905 if (PyErr_Occurred()) SWIG_fail;
4906 }
4907 resultobj = PyInt_FromLong((long)result);
4908 return resultobj;
4909 fail:
4910 return NULL;
4911 }
4912
4913
4914 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
4915 PyObject *resultobj;
4916 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4917 int result;
4918 PyObject * obj0 = 0 ;
4919 char *kwnames[] = {
4920 (char *) "self", NULL
4921 };
4922
4923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",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 result = (int)(arg1)->GetY();
4928
4929 wxPyEndAllowThreads(__tstate);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 }
4932 resultobj = PyInt_FromLong((long)result);
4933 return resultobj;
4934 fail:
4935 return NULL;
4936 }
4937
4938
4939 static PyObject *_wrap_RegionIterator_GetW(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_GetW",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)->GetW();
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_GetWidth(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_GetWidth",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)->GetWidth();
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_GetH(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_GetH",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)->GetH();
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_GetHeight(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_GetHeight",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)->GetHeight();
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_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5040 PyObject *resultobj;
5041 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5042 wxRect result;
5043 PyObject * obj0 = 0 ;
5044 char *kwnames[] = {
5045 (char *) "self", NULL
5046 };
5047
5048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",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 = (arg1)->GetRect();
5053
5054 wxPyEndAllowThreads(__tstate);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 }
5057 {
5058 wxRect * resultptr;
5059 resultptr = new wxRect((wxRect &) result);
5060 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5061 }
5062 return resultobj;
5063 fail:
5064 return NULL;
5065 }
5066
5067
5068 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5069 PyObject *resultobj;
5070 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5071 bool result;
5072 PyObject * obj0 = 0 ;
5073 char *kwnames[] = {
5074 (char *) "self", NULL
5075 };
5076
5077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5079 {
5080 PyThreadState* __tstate = wxPyBeginAllowThreads();
5081 result = (bool)(arg1)->HaveRects();
5082
5083 wxPyEndAllowThreads(__tstate);
5084 if (PyErr_Occurred()) SWIG_fail;
5085 }
5086 resultobj = PyInt_FromLong((long)result);
5087 return resultobj;
5088 fail:
5089 return NULL;
5090 }
5091
5092
5093 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5094 PyObject *resultobj;
5095 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5096 PyObject * obj0 = 0 ;
5097 char *kwnames[] = {
5098 (char *) "self", NULL
5099 };
5100
5101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5103 {
5104 PyThreadState* __tstate = wxPyBeginAllowThreads();
5105 (arg1)->Reset();
5106
5107 wxPyEndAllowThreads(__tstate);
5108 if (PyErr_Occurred()) SWIG_fail;
5109 }
5110 Py_INCREF(Py_None); resultobj = Py_None;
5111 return resultobj;
5112 fail:
5113 return NULL;
5114 }
5115
5116
5117 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5118 PyObject *resultobj;
5119 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5120 PyObject * obj0 = 0 ;
5121 char *kwnames[] = {
5122 (char *) "self", NULL
5123 };
5124
5125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5127 {
5128 PyThreadState* __tstate = wxPyBeginAllowThreads();
5129 wxRegionIterator_Next(arg1);
5130
5131 wxPyEndAllowThreads(__tstate);
5132 if (PyErr_Occurred()) SWIG_fail;
5133 }
5134 Py_INCREF(Py_None); resultobj = Py_None;
5135 return resultobj;
5136 fail:
5137 return NULL;
5138 }
5139
5140
5141 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5142 PyObject *resultobj;
5143 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5144 bool result;
5145 PyObject * obj0 = 0 ;
5146 char *kwnames[] = {
5147 (char *) "self", NULL
5148 };
5149
5150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 result = (bool)wxRegionIterator___nonzero__(arg1);
5155
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 resultobj = PyInt_FromLong((long)result);
5160 return resultobj;
5161 fail:
5162 return NULL;
5163 }
5164
5165
5166 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5167 PyObject *obj;
5168 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5169 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5170 Py_INCREF(obj);
5171 return Py_BuildValue((char *)"");
5172 }
5173 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5174 PyObject *resultobj;
5175 wxNativeFontInfo *result;
5176 char *kwnames[] = {
5177 NULL
5178 };
5179
5180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5184
5185 wxPyEndAllowThreads(__tstate);
5186 if (PyErr_Occurred()) SWIG_fail;
5187 }
5188 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5189 return resultobj;
5190 fail:
5191 return NULL;
5192 }
5193
5194
5195 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5196 PyObject *resultobj;
5197 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5198 PyObject * obj0 = 0 ;
5199 char *kwnames[] = {
5200 (char *) "self", NULL
5201 };
5202
5203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5205 {
5206 PyThreadState* __tstate = wxPyBeginAllowThreads();
5207 delete arg1;
5208
5209 wxPyEndAllowThreads(__tstate);
5210 if (PyErr_Occurred()) SWIG_fail;
5211 }
5212 Py_INCREF(Py_None); resultobj = Py_None;
5213 return resultobj;
5214 fail:
5215 return NULL;
5216 }
5217
5218
5219 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5220 PyObject *resultobj;
5221 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5222 PyObject * obj0 = 0 ;
5223 char *kwnames[] = {
5224 (char *) "self", NULL
5225 };
5226
5227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5229 {
5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
5231 (arg1)->Init();
5232
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 Py_INCREF(Py_None); resultobj = Py_None;
5237 return resultobj;
5238 fail:
5239 return NULL;
5240 }
5241
5242
5243 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5244 PyObject *resultobj;
5245 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5246 wxFont *arg2 = 0 ;
5247 PyObject * obj0 = 0 ;
5248 PyObject * obj1 = 0 ;
5249 char *kwnames[] = {
5250 (char *) "self",(char *) "font", NULL
5251 };
5252
5253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5255 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5256 if (arg2 == NULL) {
5257 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5258 }
5259 {
5260 PyThreadState* __tstate = wxPyBeginAllowThreads();
5261 (arg1)->InitFromFont((wxFont const &)*arg2);
5262
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 Py_INCREF(Py_None); resultobj = Py_None;
5267 return resultobj;
5268 fail:
5269 return NULL;
5270 }
5271
5272
5273 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5274 PyObject *resultobj;
5275 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5276 int result;
5277 PyObject * obj0 = 0 ;
5278 char *kwnames[] = {
5279 (char *) "self", NULL
5280 };
5281
5282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5284 {
5285 PyThreadState* __tstate = wxPyBeginAllowThreads();
5286 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5287
5288 wxPyEndAllowThreads(__tstate);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 resultobj = PyInt_FromLong((long)result);
5292 return resultobj;
5293 fail:
5294 return NULL;
5295 }
5296
5297
5298 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj;
5300 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5301 int result;
5302 PyObject * obj0 = 0 ;
5303 char *kwnames[] = {
5304 (char *) "self", NULL
5305 };
5306
5307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5312
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 resultobj = PyInt_FromLong((long)result);
5317 return resultobj;
5318 fail:
5319 return NULL;
5320 }
5321
5322
5323 static PyObject *_wrap_NativeFontInfo_GetWeight(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_GetWeight",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)->GetWeight();
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_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5349 PyObject *resultobj;
5350 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5351 bool result;
5352 PyObject * obj0 = 0 ;
5353 char *kwnames[] = {
5354 (char *) "self", NULL
5355 };
5356
5357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",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 = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
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_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5374 PyObject *resultobj;
5375 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5376 wxString result;
5377 PyObject * obj0 = 0 ;
5378 char *kwnames[] = {
5379 (char *) "self", NULL
5380 };
5381
5382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",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 = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5387
5388 wxPyEndAllowThreads(__tstate);
5389 if (PyErr_Occurred()) SWIG_fail;
5390 }
5391 {
5392 #if wxUSE_UNICODE
5393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5394 #else
5395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5396 #endif
5397 }
5398 return resultobj;
5399 fail:
5400 return NULL;
5401 }
5402
5403
5404 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5405 PyObject *resultobj;
5406 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5407 int result;
5408 PyObject * obj0 = 0 ;
5409 char *kwnames[] = {
5410 (char *) "self", NULL
5411 };
5412
5413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5415 {
5416 PyThreadState* __tstate = wxPyBeginAllowThreads();
5417 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5418
5419 wxPyEndAllowThreads(__tstate);
5420 if (PyErr_Occurred()) SWIG_fail;
5421 }
5422 resultobj = PyInt_FromLong((long)result);
5423 return resultobj;
5424 fail:
5425 return NULL;
5426 }
5427
5428
5429 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5430 PyObject *resultobj;
5431 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5432 int result;
5433 PyObject * obj0 = 0 ;
5434 char *kwnames[] = {
5435 (char *) "self", NULL
5436 };
5437
5438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5440 {
5441 PyThreadState* __tstate = wxPyBeginAllowThreads();
5442 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5443
5444 wxPyEndAllowThreads(__tstate);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 }
5447 resultobj = PyInt_FromLong((long)result);
5448 return resultobj;
5449 fail:
5450 return NULL;
5451 }
5452
5453
5454 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5455 PyObject *resultobj;
5456 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5457 int arg2 ;
5458 PyObject * obj0 = 0 ;
5459 char *kwnames[] = {
5460 (char *) "self",(char *) "pointsize", NULL
5461 };
5462
5463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) 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 (arg1)->SetPointSize(arg2);
5468
5469 wxPyEndAllowThreads(__tstate);
5470 if (PyErr_Occurred()) SWIG_fail;
5471 }
5472 Py_INCREF(Py_None); resultobj = Py_None;
5473 return resultobj;
5474 fail:
5475 return NULL;
5476 }
5477
5478
5479 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5480 PyObject *resultobj;
5481 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5482 int arg2 ;
5483 PyObject * obj0 = 0 ;
5484 char *kwnames[] = {
5485 (char *) "self",(char *) "style", NULL
5486 };
5487
5488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) 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 (arg1)->SetStyle((wxFontStyle )arg2);
5493
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 Py_INCREF(Py_None); resultobj = Py_None;
5498 return resultobj;
5499 fail:
5500 return NULL;
5501 }
5502
5503
5504 static PyObject *_wrap_NativeFontInfo_SetWeight(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 *) "weight", NULL
5511 };
5512
5513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",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)->SetWeight((wxFontWeight )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_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5530 PyObject *resultobj;
5531 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5532 bool arg2 ;
5533 PyObject * obj0 = 0 ;
5534 PyObject * obj1 = 0 ;
5535 char *kwnames[] = {
5536 (char *) "self",(char *) "underlined", NULL
5537 };
5538
5539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5541 {
5542 arg2 = (bool) SPyObj_AsBool(obj1);
5543 if (PyErr_Occurred()) SWIG_fail;
5544 }
5545 {
5546 PyThreadState* __tstate = wxPyBeginAllowThreads();
5547 (arg1)->SetUnderlined(arg2);
5548
5549 wxPyEndAllowThreads(__tstate);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 }
5552 Py_INCREF(Py_None); resultobj = Py_None;
5553 return resultobj;
5554 fail:
5555 return NULL;
5556 }
5557
5558
5559 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5560 PyObject *resultobj;
5561 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5562 wxString arg2 ;
5563 PyObject * obj0 = 0 ;
5564 PyObject * obj1 = 0 ;
5565 char *kwnames[] = {
5566 (char *) "self",(char *) "facename", NULL
5567 };
5568
5569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5571 {
5572 wxString* sptr = wxString_in_helper(obj1);
5573 if (sptr == NULL) SWIG_fail;
5574 arg2 = *sptr;
5575 delete sptr;
5576 }
5577 {
5578 PyThreadState* __tstate = wxPyBeginAllowThreads();
5579 (arg1)->SetFaceName(arg2);
5580
5581 wxPyEndAllowThreads(__tstate);
5582 if (PyErr_Occurred()) SWIG_fail;
5583 }
5584 Py_INCREF(Py_None); resultobj = Py_None;
5585 return resultobj;
5586 fail:
5587 return NULL;
5588 }
5589
5590
5591 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5592 PyObject *resultobj;
5593 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5594 int arg2 ;
5595 PyObject * obj0 = 0 ;
5596 char *kwnames[] = {
5597 (char *) "self",(char *) "family", NULL
5598 };
5599
5600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail;
5601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5602 {
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 (arg1)->SetFamily((wxFontFamily )arg2);
5605
5606 wxPyEndAllowThreads(__tstate);
5607 if (PyErr_Occurred()) SWIG_fail;
5608 }
5609 Py_INCREF(Py_None); resultobj = Py_None;
5610 return resultobj;
5611 fail:
5612 return NULL;
5613 }
5614
5615
5616 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5617 PyObject *resultobj;
5618 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5619 int arg2 ;
5620 PyObject * obj0 = 0 ;
5621 char *kwnames[] = {
5622 (char *) "self",(char *) "encoding", NULL
5623 };
5624
5625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
5626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 (arg1)->SetEncoding((wxFontEncoding )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_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5642 PyObject *resultobj;
5643 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5644 wxString *arg2 = 0 ;
5645 bool result;
5646 bool temp2 = False ;
5647 PyObject * obj0 = 0 ;
5648 PyObject * obj1 = 0 ;
5649 char *kwnames[] = {
5650 (char *) "self",(char *) "s", NULL
5651 };
5652
5653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5655 {
5656 arg2 = wxString_in_helper(obj1);
5657 if (arg2 == NULL) SWIG_fail;
5658 temp2 = True;
5659 }
5660 {
5661 PyThreadState* __tstate = wxPyBeginAllowThreads();
5662 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5663
5664 wxPyEndAllowThreads(__tstate);
5665 if (PyErr_Occurred()) SWIG_fail;
5666 }
5667 resultobj = PyInt_FromLong((long)result);
5668 {
5669 if (temp2)
5670 delete arg2;
5671 }
5672 return resultobj;
5673 fail:
5674 {
5675 if (temp2)
5676 delete arg2;
5677 }
5678 return NULL;
5679 }
5680
5681
5682 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5683 PyObject *resultobj;
5684 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5685 wxString result;
5686 PyObject * obj0 = 0 ;
5687 char *kwnames[] = {
5688 (char *) "self", NULL
5689 };
5690
5691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
5692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = ((wxNativeFontInfo const *)arg1)->ToString();
5696
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 {
5701 #if wxUSE_UNICODE
5702 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5703 #else
5704 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5705 #endif
5706 }
5707 return resultobj;
5708 fail:
5709 return NULL;
5710 }
5711
5712
5713 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
5714 PyObject *resultobj;
5715 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5716 wxString result;
5717 PyObject * obj0 = 0 ;
5718 char *kwnames[] = {
5719 (char *) "self", NULL
5720 };
5721
5722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
5723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5724 {
5725 PyThreadState* __tstate = wxPyBeginAllowThreads();
5726 result = wxNativeFontInfo___str__(arg1);
5727
5728 wxPyEndAllowThreads(__tstate);
5729 if (PyErr_Occurred()) SWIG_fail;
5730 }
5731 {
5732 #if wxUSE_UNICODE
5733 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5734 #else
5735 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5736 #endif
5737 }
5738 return resultobj;
5739 fail:
5740 return NULL;
5741 }
5742
5743
5744 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5745 PyObject *resultobj;
5746 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5747 wxString *arg2 = 0 ;
5748 bool result;
5749 bool temp2 = False ;
5750 PyObject * obj0 = 0 ;
5751 PyObject * obj1 = 0 ;
5752 char *kwnames[] = {
5753 (char *) "self",(char *) "s", NULL
5754 };
5755
5756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
5757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5758 {
5759 arg2 = wxString_in_helper(obj1);
5760 if (arg2 == NULL) SWIG_fail;
5761 temp2 = True;
5762 }
5763 {
5764 PyThreadState* __tstate = wxPyBeginAllowThreads();
5765 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
5766
5767 wxPyEndAllowThreads(__tstate);
5768 if (PyErr_Occurred()) SWIG_fail;
5769 }
5770 resultobj = PyInt_FromLong((long)result);
5771 {
5772 if (temp2)
5773 delete arg2;
5774 }
5775 return resultobj;
5776 fail:
5777 {
5778 if (temp2)
5779 delete arg2;
5780 }
5781 return NULL;
5782 }
5783
5784
5785 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj;
5787 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5788 wxString result;
5789 PyObject * obj0 = 0 ;
5790 char *kwnames[] = {
5791 (char *) "self", NULL
5792 };
5793
5794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
5795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
5799
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 {
5804 #if wxUSE_UNICODE
5805 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5806 #else
5807 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5808 #endif
5809 }
5810 return resultobj;
5811 fail:
5812 return NULL;
5813 }
5814
5815
5816 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
5817 PyObject *obj;
5818 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5819 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
5820 Py_INCREF(obj);
5821 return Py_BuildValue((char *)"");
5822 }
5823 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5824 PyObject *resultobj;
5825 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5826 wxString *arg2 = (wxString *) 0 ;
5827 bool temp2 = False ;
5828 PyObject * obj0 = 0 ;
5829 PyObject * obj1 = 0 ;
5830 char *kwnames[] = {
5831 (char *) "self",(char *) "facename", NULL
5832 };
5833
5834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
5835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5836 {
5837 arg2 = wxString_in_helper(obj1);
5838 if (arg2 == NULL) SWIG_fail;
5839 temp2 = True;
5840 }
5841 if (arg1) (arg1)->facename = *arg2;
5842
5843 Py_INCREF(Py_None); resultobj = Py_None;
5844 {
5845 if (temp2)
5846 delete arg2;
5847 }
5848 return resultobj;
5849 fail:
5850 {
5851 if (temp2)
5852 delete arg2;
5853 }
5854 return NULL;
5855 }
5856
5857
5858 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5859 PyObject *resultobj;
5860 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5861 wxString *result;
5862 PyObject * obj0 = 0 ;
5863 char *kwnames[] = {
5864 (char *) "self", NULL
5865 };
5866
5867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
5868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5869 result = (wxString *)& ((arg1)->facename);
5870
5871 {
5872 #if wxUSE_UNICODE
5873 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5874 #else
5875 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5876 #endif
5877 }
5878 return resultobj;
5879 fail:
5880 return NULL;
5881 }
5882
5883
5884 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5885 PyObject *resultobj;
5886 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5887 int arg2 ;
5888 PyObject * obj0 = 0 ;
5889 char *kwnames[] = {
5890 (char *) "self",(char *) "encoding", NULL
5891 };
5892
5893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
5894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5895 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
5896
5897 Py_INCREF(Py_None); resultobj = Py_None;
5898 return resultobj;
5899 fail:
5900 return NULL;
5901 }
5902
5903
5904 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5905 PyObject *resultobj;
5906 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5907 int result;
5908 PyObject * obj0 = 0 ;
5909 char *kwnames[] = {
5910 (char *) "self", NULL
5911 };
5912
5913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
5914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5915 result = (int) ((arg1)->encoding);
5916
5917 resultobj = PyInt_FromLong((long)result);
5918 return resultobj;
5919 fail:
5920 return NULL;
5921 }
5922
5923
5924 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5925 PyObject *resultobj;
5926 wxNativeEncodingInfo *result;
5927 char *kwnames[] = {
5928 NULL
5929 };
5930
5931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
5932 {
5933 PyThreadState* __tstate = wxPyBeginAllowThreads();
5934 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
5935
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
5940 return resultobj;
5941 fail:
5942 return NULL;
5943 }
5944
5945
5946 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5947 PyObject *resultobj;
5948 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5949 PyObject * obj0 = 0 ;
5950 char *kwnames[] = {
5951 (char *) "self", NULL
5952 };
5953
5954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
5955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5956 {
5957 PyThreadState* __tstate = wxPyBeginAllowThreads();
5958 delete arg1;
5959
5960 wxPyEndAllowThreads(__tstate);
5961 if (PyErr_Occurred()) SWIG_fail;
5962 }
5963 Py_INCREF(Py_None); resultobj = Py_None;
5964 return resultobj;
5965 fail:
5966 return NULL;
5967 }
5968
5969
5970 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5971 PyObject *resultobj;
5972 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5973 wxString *arg2 = 0 ;
5974 bool result;
5975 bool temp2 = False ;
5976 PyObject * obj0 = 0 ;
5977 PyObject * obj1 = 0 ;
5978 char *kwnames[] = {
5979 (char *) "self",(char *) "s", NULL
5980 };
5981
5982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5984 {
5985 arg2 = wxString_in_helper(obj1);
5986 if (arg2 == NULL) SWIG_fail;
5987 temp2 = True;
5988 }
5989 {
5990 PyThreadState* __tstate = wxPyBeginAllowThreads();
5991 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5992
5993 wxPyEndAllowThreads(__tstate);
5994 if (PyErr_Occurred()) SWIG_fail;
5995 }
5996 resultobj = PyInt_FromLong((long)result);
5997 {
5998 if (temp2)
5999 delete arg2;
6000 }
6001 return resultobj;
6002 fail:
6003 {
6004 if (temp2)
6005 delete arg2;
6006 }
6007 return NULL;
6008 }
6009
6010
6011 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6012 PyObject *resultobj;
6013 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6014 wxString result;
6015 PyObject * obj0 = 0 ;
6016 char *kwnames[] = {
6017 (char *) "self", NULL
6018 };
6019
6020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6025
6026 wxPyEndAllowThreads(__tstate);
6027 if (PyErr_Occurred()) SWIG_fail;
6028 }
6029 {
6030 #if wxUSE_UNICODE
6031 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6032 #else
6033 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6034 #endif
6035 }
6036 return resultobj;
6037 fail:
6038 return NULL;
6039 }
6040
6041
6042 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6043 PyObject *obj;
6044 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6045 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6046 Py_INCREF(obj);
6047 return Py_BuildValue((char *)"");
6048 }
6049 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6050 PyObject *resultobj;
6051 int arg1 ;
6052 wxNativeEncodingInfo *result;
6053 char *kwnames[] = {
6054 (char *) "encoding", NULL
6055 };
6056
6057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6061
6062 wxPyEndAllowThreads(__tstate);
6063 if (PyErr_Occurred()) SWIG_fail;
6064 }
6065 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
6066 return resultobj;
6067 fail:
6068 return NULL;
6069 }
6070
6071
6072 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6073 PyObject *resultobj;
6074 wxNativeEncodingInfo *arg1 = 0 ;
6075 bool result;
6076 PyObject * obj0 = 0 ;
6077 char *kwnames[] = {
6078 (char *) "info", NULL
6079 };
6080
6081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6083 if (arg1 == NULL) {
6084 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6085 }
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6089
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 resultobj = PyInt_FromLong((long)result);
6094 return resultobj;
6095 fail:
6096 return NULL;
6097 }
6098
6099
6100 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6101 PyObject *resultobj;
6102 wxFontMapper *result;
6103 char *kwnames[] = {
6104 NULL
6105 };
6106
6107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6108 {
6109 PyThreadState* __tstate = wxPyBeginAllowThreads();
6110 result = (wxFontMapper *)new wxFontMapper();
6111
6112 wxPyEndAllowThreads(__tstate);
6113 if (PyErr_Occurred()) SWIG_fail;
6114 }
6115 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
6116 return resultobj;
6117 fail:
6118 return NULL;
6119 }
6120
6121
6122 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6123 PyObject *resultobj;
6124 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6125 PyObject * obj0 = 0 ;
6126 char *kwnames[] = {
6127 (char *) "self", NULL
6128 };
6129
6130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6132 {
6133 PyThreadState* __tstate = wxPyBeginAllowThreads();
6134 delete arg1;
6135
6136 wxPyEndAllowThreads(__tstate);
6137 if (PyErr_Occurred()) SWIG_fail;
6138 }
6139 Py_INCREF(Py_None); resultobj = Py_None;
6140 return resultobj;
6141 fail:
6142 return NULL;
6143 }
6144
6145
6146 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6147 PyObject *resultobj;
6148 wxFontMapper *result;
6149 char *kwnames[] = {
6150 NULL
6151 };
6152
6153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6154 {
6155 PyThreadState* __tstate = wxPyBeginAllowThreads();
6156 result = (wxFontMapper *)wxFontMapper::Get();
6157
6158 wxPyEndAllowThreads(__tstate);
6159 if (PyErr_Occurred()) SWIG_fail;
6160 }
6161 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6162 return resultobj;
6163 fail:
6164 return NULL;
6165 }
6166
6167
6168 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6169 PyObject *resultobj;
6170 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6171 wxFontMapper *result;
6172 PyObject * obj0 = 0 ;
6173 char *kwnames[] = {
6174 (char *) "mapper", NULL
6175 };
6176
6177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6179 {
6180 PyThreadState* __tstate = wxPyBeginAllowThreads();
6181 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6182
6183 wxPyEndAllowThreads(__tstate);
6184 if (PyErr_Occurred()) SWIG_fail;
6185 }
6186 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6187 return resultobj;
6188 fail:
6189 return NULL;
6190 }
6191
6192
6193 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6194 PyObject *resultobj;
6195 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6196 wxString *arg2 = 0 ;
6197 bool arg3 = (bool) True ;
6198 int result;
6199 bool temp2 = False ;
6200 PyObject * obj0 = 0 ;
6201 PyObject * obj1 = 0 ;
6202 PyObject * obj2 = 0 ;
6203 char *kwnames[] = {
6204 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6205 };
6206
6207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6209 {
6210 arg2 = wxString_in_helper(obj1);
6211 if (arg2 == NULL) SWIG_fail;
6212 temp2 = True;
6213 }
6214 if (obj2) {
6215 {
6216 arg3 = (bool) SPyObj_AsBool(obj2);
6217 if (PyErr_Occurred()) SWIG_fail;
6218 }
6219 }
6220 {
6221 PyThreadState* __tstate = wxPyBeginAllowThreads();
6222 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6223
6224 wxPyEndAllowThreads(__tstate);
6225 if (PyErr_Occurred()) SWIG_fail;
6226 }
6227 resultobj = PyInt_FromLong((long)result);
6228 {
6229 if (temp2)
6230 delete arg2;
6231 }
6232 return resultobj;
6233 fail:
6234 {
6235 if (temp2)
6236 delete arg2;
6237 }
6238 return NULL;
6239 }
6240
6241
6242 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6243 PyObject *resultobj;
6244 size_t result;
6245 char *kwnames[] = {
6246 NULL
6247 };
6248
6249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6250 {
6251 PyThreadState* __tstate = wxPyBeginAllowThreads();
6252 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6253
6254 wxPyEndAllowThreads(__tstate);
6255 if (PyErr_Occurred()) SWIG_fail;
6256 }
6257 resultobj = SPyObj_FromUnsignedLong((unsigned long)result);
6258 return resultobj;
6259 fail:
6260 return NULL;
6261 }
6262
6263
6264 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6265 PyObject *resultobj;
6266 size_t arg1 ;
6267 int result;
6268 PyObject * obj0 = 0 ;
6269 char *kwnames[] = {
6270 (char *) "n", NULL
6271 };
6272
6273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6274 {
6275 arg1 = (size_t) SPyObj_AsUnsignedLong(obj0);
6276 if (PyErr_Occurred()) SWIG_fail;
6277 }
6278 {
6279 PyThreadState* __tstate = wxPyBeginAllowThreads();
6280 result = (int)wxFontMapper::GetEncoding(arg1);
6281
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 resultobj = PyInt_FromLong((long)result);
6286 return resultobj;
6287 fail:
6288 return NULL;
6289 }
6290
6291
6292 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj;
6294 int arg1 ;
6295 wxString result;
6296 char *kwnames[] = {
6297 (char *) "encoding", NULL
6298 };
6299
6300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6301 {
6302 PyThreadState* __tstate = wxPyBeginAllowThreads();
6303 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6304
6305 wxPyEndAllowThreads(__tstate);
6306 if (PyErr_Occurred()) SWIG_fail;
6307 }
6308 {
6309 #if wxUSE_UNICODE
6310 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6311 #else
6312 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6313 #endif
6314 }
6315 return resultobj;
6316 fail:
6317 return NULL;
6318 }
6319
6320
6321 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6322 PyObject *resultobj;
6323 int arg1 ;
6324 wxString result;
6325 char *kwnames[] = {
6326 (char *) "encoding", NULL
6327 };
6328
6329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6330 {
6331 PyThreadState* __tstate = wxPyBeginAllowThreads();
6332 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6333
6334 wxPyEndAllowThreads(__tstate);
6335 if (PyErr_Occurred()) SWIG_fail;
6336 }
6337 {
6338 #if wxUSE_UNICODE
6339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6340 #else
6341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6342 #endif
6343 }
6344 return resultobj;
6345 fail:
6346 return NULL;
6347 }
6348
6349
6350 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6351 PyObject *resultobj;
6352 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6353 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6354 PyObject * obj0 = 0 ;
6355 PyObject * obj1 = 0 ;
6356 char *kwnames[] = {
6357 (char *) "self",(char *) "config", NULL
6358 };
6359
6360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6362 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6363 {
6364 PyThreadState* __tstate = wxPyBeginAllowThreads();
6365 (arg1)->SetConfig(arg2);
6366
6367 wxPyEndAllowThreads(__tstate);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 Py_INCREF(Py_None); resultobj = Py_None;
6371 return resultobj;
6372 fail:
6373 return NULL;
6374 }
6375
6376
6377 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6378 PyObject *resultobj;
6379 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6380 wxString *arg2 = 0 ;
6381 bool temp2 = False ;
6382 PyObject * obj0 = 0 ;
6383 PyObject * obj1 = 0 ;
6384 char *kwnames[] = {
6385 (char *) "self",(char *) "prefix", NULL
6386 };
6387
6388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6390 {
6391 arg2 = wxString_in_helper(obj1);
6392 if (arg2 == NULL) SWIG_fail;
6393 temp2 = True;
6394 }
6395 {
6396 PyThreadState* __tstate = wxPyBeginAllowThreads();
6397 (arg1)->SetConfigPath((wxString const &)*arg2);
6398
6399 wxPyEndAllowThreads(__tstate);
6400 if (PyErr_Occurred()) SWIG_fail;
6401 }
6402 Py_INCREF(Py_None); resultobj = Py_None;
6403 {
6404 if (temp2)
6405 delete arg2;
6406 }
6407 return resultobj;
6408 fail:
6409 {
6410 if (temp2)
6411 delete arg2;
6412 }
6413 return NULL;
6414 }
6415
6416
6417 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6418 PyObject *resultobj;
6419 wxString result;
6420 char *kwnames[] = {
6421 NULL
6422 };
6423
6424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6425 {
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 result = wxFontMapper::GetDefaultConfigPath();
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 {
6433 #if wxUSE_UNICODE
6434 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6435 #else
6436 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6437 #endif
6438 }
6439 return resultobj;
6440 fail:
6441 return NULL;
6442 }
6443
6444
6445 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6446 PyObject *resultobj;
6447 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6448 int arg2 ;
6449 wxString const &arg3_defvalue = wxPyEmptyString ;
6450 wxString *arg3 = (wxString *) &arg3_defvalue ;
6451 bool arg4 = (bool) True ;
6452 PyObject *result;
6453 bool temp3 = False ;
6454 PyObject * obj0 = 0 ;
6455 PyObject * obj2 = 0 ;
6456 PyObject * obj3 = 0 ;
6457 char *kwnames[] = {
6458 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6459 };
6460
6461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6463 if (obj2) {
6464 {
6465 arg3 = wxString_in_helper(obj2);
6466 if (arg3 == NULL) SWIG_fail;
6467 temp3 = True;
6468 }
6469 }
6470 if (obj3) {
6471 {
6472 arg4 = (bool) SPyObj_AsBool(obj3);
6473 if (PyErr_Occurred()) SWIG_fail;
6474 }
6475 }
6476 {
6477 PyThreadState* __tstate = wxPyBeginAllowThreads();
6478 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6479
6480 wxPyEndAllowThreads(__tstate);
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
6483 resultobj = result;
6484 {
6485 if (temp3)
6486 delete arg3;
6487 }
6488 return resultobj;
6489 fail:
6490 {
6491 if (temp3)
6492 delete arg3;
6493 }
6494 return NULL;
6495 }
6496
6497
6498 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6499 PyObject *resultobj;
6500 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6501 int arg2 ;
6502 wxString const &arg3_defvalue = wxPyEmptyString ;
6503 wxString *arg3 = (wxString *) &arg3_defvalue ;
6504 bool result;
6505 bool temp3 = False ;
6506 PyObject * obj0 = 0 ;
6507 PyObject * obj2 = 0 ;
6508 char *kwnames[] = {
6509 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6510 };
6511
6512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6514 if (obj2) {
6515 {
6516 arg3 = wxString_in_helper(obj2);
6517 if (arg3 == NULL) SWIG_fail;
6518 temp3 = True;
6519 }
6520 }
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6524
6525 wxPyEndAllowThreads(__tstate);
6526 if (PyErr_Occurred()) SWIG_fail;
6527 }
6528 resultobj = PyInt_FromLong((long)result);
6529 {
6530 if (temp3)
6531 delete arg3;
6532 }
6533 return resultobj;
6534 fail:
6535 {
6536 if (temp3)
6537 delete arg3;
6538 }
6539 return NULL;
6540 }
6541
6542
6543 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6544 PyObject *resultobj;
6545 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6546 wxWindow *arg2 = (wxWindow *) 0 ;
6547 PyObject * obj0 = 0 ;
6548 PyObject * obj1 = 0 ;
6549 char *kwnames[] = {
6550 (char *) "self",(char *) "parent", NULL
6551 };
6552
6553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6555 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6556 {
6557 PyThreadState* __tstate = wxPyBeginAllowThreads();
6558 (arg1)->SetDialogParent(arg2);
6559
6560 wxPyEndAllowThreads(__tstate);
6561 if (PyErr_Occurred()) SWIG_fail;
6562 }
6563 Py_INCREF(Py_None); resultobj = Py_None;
6564 return resultobj;
6565 fail:
6566 return NULL;
6567 }
6568
6569
6570 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6571 PyObject *resultobj;
6572 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6573 wxString *arg2 = 0 ;
6574 bool temp2 = False ;
6575 PyObject * obj0 = 0 ;
6576 PyObject * obj1 = 0 ;
6577 char *kwnames[] = {
6578 (char *) "self",(char *) "title", NULL
6579 };
6580
6581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6583 {
6584 arg2 = wxString_in_helper(obj1);
6585 if (arg2 == NULL) SWIG_fail;
6586 temp2 = True;
6587 }
6588 {
6589 PyThreadState* __tstate = wxPyBeginAllowThreads();
6590 (arg1)->SetDialogTitle((wxString const &)*arg2);
6591
6592 wxPyEndAllowThreads(__tstate);
6593 if (PyErr_Occurred()) SWIG_fail;
6594 }
6595 Py_INCREF(Py_None); resultobj = Py_None;
6596 {
6597 if (temp2)
6598 delete arg2;
6599 }
6600 return resultobj;
6601 fail:
6602 {
6603 if (temp2)
6604 delete arg2;
6605 }
6606 return NULL;
6607 }
6608
6609
6610 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6611 PyObject *obj;
6612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6613 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6614 Py_INCREF(obj);
6615 return Py_BuildValue((char *)"");
6616 }
6617 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6618 PyObject *resultobj;
6619 int arg1 ;
6620 int arg2 ;
6621 int arg3 ;
6622 int arg4 ;
6623 bool arg5 = (bool) False ;
6624 wxString const &arg6_defvalue = wxPyEmptyString ;
6625 wxString *arg6 = (wxString *) &arg6_defvalue ;
6626 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6627 wxFont *result;
6628 bool temp6 = False ;
6629 PyObject * obj4 = 0 ;
6630 PyObject * obj5 = 0 ;
6631 char *kwnames[] = {
6632 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6633 };
6634
6635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6636 if (obj4) {
6637 {
6638 arg5 = (bool) SPyObj_AsBool(obj4);
6639 if (PyErr_Occurred()) SWIG_fail;
6640 }
6641 }
6642 if (obj5) {
6643 {
6644 arg6 = wxString_in_helper(obj5);
6645 if (arg6 == NULL) SWIG_fail;
6646 temp6 = True;
6647 }
6648 }
6649 {
6650 PyThreadState* __tstate = wxPyBeginAllowThreads();
6651 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
6652
6653 wxPyEndAllowThreads(__tstate);
6654 if (PyErr_Occurred()) SWIG_fail;
6655 }
6656 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6657 {
6658 if (temp6)
6659 delete arg6;
6660 }
6661 return resultobj;
6662 fail:
6663 {
6664 if (temp6)
6665 delete arg6;
6666 }
6667 return NULL;
6668 }
6669
6670
6671 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6672 PyObject *resultobj;
6673 wxFont *arg1 = (wxFont *) 0 ;
6674 PyObject * obj0 = 0 ;
6675 char *kwnames[] = {
6676 (char *) "self", NULL
6677 };
6678
6679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
6680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6681 {
6682 PyThreadState* __tstate = wxPyBeginAllowThreads();
6683 delete arg1;
6684
6685 wxPyEndAllowThreads(__tstate);
6686 if (PyErr_Occurred()) SWIG_fail;
6687 }
6688 Py_INCREF(Py_None); resultobj = Py_None;
6689 return resultobj;
6690 fail:
6691 return NULL;
6692 }
6693
6694
6695 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6696 PyObject *resultobj;
6697 wxNativeFontInfo *arg1 = 0 ;
6698 wxFont *result;
6699 PyObject * obj0 = 0 ;
6700 char *kwnames[] = {
6701 (char *) "info", NULL
6702 };
6703
6704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
6705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6706 if (arg1 == NULL) {
6707 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6708 }
6709 {
6710 PyThreadState* __tstate = wxPyBeginAllowThreads();
6711 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
6712
6713 wxPyEndAllowThreads(__tstate);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
6716 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6717 return resultobj;
6718 fail:
6719 return NULL;
6720 }
6721
6722
6723 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
6724 PyObject *resultobj;
6725 wxString *arg1 = 0 ;
6726 wxFont *result;
6727 bool temp1 = False ;
6728 PyObject * obj0 = 0 ;
6729 char *kwnames[] = {
6730 (char *) "info", NULL
6731 };
6732
6733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
6734 {
6735 arg1 = wxString_in_helper(obj0);
6736 if (arg1 == NULL) SWIG_fail;
6737 temp1 = True;
6738 }
6739 {
6740 PyThreadState* __tstate = wxPyBeginAllowThreads();
6741 result = (wxFont *)new_wxFont((wxString const &)*arg1);
6742
6743 wxPyEndAllowThreads(__tstate);
6744 if (PyErr_Occurred()) SWIG_fail;
6745 }
6746 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6747 {
6748 if (temp1)
6749 delete arg1;
6750 }
6751 return resultobj;
6752 fail:
6753 {
6754 if (temp1)
6755 delete arg1;
6756 }
6757 return NULL;
6758 }
6759
6760
6761 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
6762 PyObject *resultobj;
6763 int arg1 ;
6764 int arg2 ;
6765 int arg3 = (int) wxFONTFLAG_DEFAULT ;
6766 wxString const &arg4_defvalue = wxPyEmptyString ;
6767 wxString *arg4 = (wxString *) &arg4_defvalue ;
6768 int arg5 = (int) wxFONTENCODING_DEFAULT ;
6769 wxFont *result;
6770 bool temp4 = False ;
6771 PyObject * obj3 = 0 ;
6772 char *kwnames[] = {
6773 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
6774 };
6775
6776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
6777 if (obj3) {
6778 {
6779 arg4 = wxString_in_helper(obj3);
6780 if (arg4 == NULL) SWIG_fail;
6781 temp4 = True;
6782 }
6783 }
6784 {
6785 PyThreadState* __tstate = wxPyBeginAllowThreads();
6786 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
6787
6788 wxPyEndAllowThreads(__tstate);
6789 if (PyErr_Occurred()) SWIG_fail;
6790 }
6791 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6792 {
6793 if (temp4)
6794 delete arg4;
6795 }
6796 return resultobj;
6797 fail:
6798 {
6799 if (temp4)
6800 delete arg4;
6801 }
6802 return NULL;
6803 }
6804
6805
6806 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6807 PyObject *resultobj;
6808 wxFont *arg1 = (wxFont *) 0 ;
6809 bool result;
6810 PyObject * obj0 = 0 ;
6811 char *kwnames[] = {
6812 (char *) "self", NULL
6813 };
6814
6815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
6816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6817 {
6818 PyThreadState* __tstate = wxPyBeginAllowThreads();
6819 result = (bool)((wxFont const *)arg1)->Ok();
6820
6821 wxPyEndAllowThreads(__tstate);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 resultobj = PyInt_FromLong((long)result);
6825 return resultobj;
6826 fail:
6827 return NULL;
6828 }
6829
6830
6831 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
6832 PyObject *resultobj;
6833 wxFont *arg1 = (wxFont *) 0 ;
6834 wxFont *arg2 = 0 ;
6835 bool result;
6836 PyObject * obj0 = 0 ;
6837 PyObject * obj1 = 0 ;
6838 char *kwnames[] = {
6839 (char *) "self",(char *) "font", NULL
6840 };
6841
6842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
6843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6844 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6845 if (arg2 == NULL) {
6846 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6847 }
6848 {
6849 PyThreadState* __tstate = wxPyBeginAllowThreads();
6850 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
6851
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 resultobj = PyInt_FromLong((long)result);
6856 return resultobj;
6857 fail:
6858 return NULL;
6859 }
6860
6861
6862 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
6863 PyObject *resultobj;
6864 wxFont *arg1 = (wxFont *) 0 ;
6865 wxFont *arg2 = 0 ;
6866 bool result;
6867 PyObject * obj0 = 0 ;
6868 PyObject * obj1 = 0 ;
6869 char *kwnames[] = {
6870 (char *) "self",(char *) "font", NULL
6871 };
6872
6873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
6874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6875 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6876 if (arg2 == NULL) {
6877 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6878 }
6879 {
6880 PyThreadState* __tstate = wxPyBeginAllowThreads();
6881 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
6882
6883 wxPyEndAllowThreads(__tstate);
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
6886 resultobj = PyInt_FromLong((long)result);
6887 return resultobj;
6888 fail:
6889 return NULL;
6890 }
6891
6892
6893 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6894 PyObject *resultobj;
6895 wxFont *arg1 = (wxFont *) 0 ;
6896 int result;
6897 PyObject * obj0 = 0 ;
6898 char *kwnames[] = {
6899 (char *) "self", NULL
6900 };
6901
6902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
6903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 result = (int)((wxFont const *)arg1)->GetPointSize();
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 resultobj = PyInt_FromLong((long)result);
6912 return resultobj;
6913 fail:
6914 return NULL;
6915 }
6916
6917
6918 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6919 PyObject *resultobj;
6920 wxFont *arg1 = (wxFont *) 0 ;
6921 int result;
6922 PyObject * obj0 = 0 ;
6923 char *kwnames[] = {
6924 (char *) "self", NULL
6925 };
6926
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
6928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6929 {
6930 PyThreadState* __tstate = wxPyBeginAllowThreads();
6931 result = (int)((wxFont const *)arg1)->GetFamily();
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_GetStyle(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_GetStyle",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)->GetStyle();
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_GetWeight(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_GetWeight",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)->GetWeight();
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_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6994 PyObject *resultobj;
6995 wxFont *arg1 = (wxFont *) 0 ;
6996 bool result;
6997 PyObject * obj0 = 0 ;
6998 char *kwnames[] = {
6999 (char *) "self", NULL
7000 };
7001
7002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",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 = (bool)((wxFont const *)arg1)->GetUnderlined();
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_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7019 PyObject *resultobj;
7020 wxFont *arg1 = (wxFont *) 0 ;
7021 wxString result;
7022 PyObject * obj0 = 0 ;
7023 char *kwnames[] = {
7024 (char *) "self", NULL
7025 };
7026
7027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",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 = ((wxFont const *)arg1)->GetFaceName();
7032
7033 wxPyEndAllowThreads(__tstate);
7034 if (PyErr_Occurred()) SWIG_fail;
7035 }
7036 {
7037 #if wxUSE_UNICODE
7038 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7039 #else
7040 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7041 #endif
7042 }
7043 return resultobj;
7044 fail:
7045 return NULL;
7046 }
7047
7048
7049 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7050 PyObject *resultobj;
7051 wxFont *arg1 = (wxFont *) 0 ;
7052 int result;
7053 PyObject * obj0 = 0 ;
7054 char *kwnames[] = {
7055 (char *) "self", NULL
7056 };
7057
7058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7060 {
7061 PyThreadState* __tstate = wxPyBeginAllowThreads();
7062 result = (int)((wxFont const *)arg1)->GetEncoding();
7063
7064 wxPyEndAllowThreads(__tstate);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 resultobj = PyInt_FromLong((long)result);
7068 return resultobj;
7069 fail:
7070 return NULL;
7071 }
7072
7073
7074 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7075 PyObject *resultobj;
7076 wxFont *arg1 = (wxFont *) 0 ;
7077 wxNativeFontInfo *result;
7078 PyObject * obj0 = 0 ;
7079 char *kwnames[] = {
7080 (char *) "self", NULL
7081 };
7082
7083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7088
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
7093 return resultobj;
7094 fail:
7095 return NULL;
7096 }
7097
7098
7099 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7100 PyObject *resultobj;
7101 wxFont *arg1 = (wxFont *) 0 ;
7102 bool result;
7103 PyObject * obj0 = 0 ;
7104 char *kwnames[] = {
7105 (char *) "self", NULL
7106 };
7107
7108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",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 = (bool)((wxFont const *)arg1)->IsFixedWidth();
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_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7125 PyObject *resultobj;
7126 wxFont *arg1 = (wxFont *) 0 ;
7127 wxString result;
7128 PyObject * obj0 = 0 ;
7129 char *kwnames[] = {
7130 (char *) "self", NULL
7131 };
7132
7133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",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 = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7138
7139 wxPyEndAllowThreads(__tstate);
7140 if (PyErr_Occurred()) SWIG_fail;
7141 }
7142 {
7143 #if wxUSE_UNICODE
7144 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7145 #else
7146 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7147 #endif
7148 }
7149 return resultobj;
7150 fail:
7151 return NULL;
7152 }
7153
7154
7155 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7156 PyObject *resultobj;
7157 wxFont *arg1 = (wxFont *) 0 ;
7158 wxString result;
7159 PyObject * obj0 = 0 ;
7160 char *kwnames[] = {
7161 (char *) "self", NULL
7162 };
7163
7164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7169
7170 wxPyEndAllowThreads(__tstate);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 {
7174 #if wxUSE_UNICODE
7175 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7176 #else
7177 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7178 #endif
7179 }
7180 return resultobj;
7181 fail:
7182 return NULL;
7183 }
7184
7185
7186 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7187 PyObject *resultobj;
7188 wxFont *arg1 = (wxFont *) 0 ;
7189 int arg2 ;
7190 PyObject * obj0 = 0 ;
7191 char *kwnames[] = {
7192 (char *) "self",(char *) "pointSize", NULL
7193 };
7194
7195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
7196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7197 {
7198 PyThreadState* __tstate = wxPyBeginAllowThreads();
7199 (arg1)->SetPointSize(arg2);
7200
7201 wxPyEndAllowThreads(__tstate);
7202 if (PyErr_Occurred()) SWIG_fail;
7203 }
7204 Py_INCREF(Py_None); resultobj = Py_None;
7205 return resultobj;
7206 fail:
7207 return NULL;
7208 }
7209
7210
7211 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7212 PyObject *resultobj;
7213 wxFont *arg1 = (wxFont *) 0 ;
7214 int arg2 ;
7215 PyObject * obj0 = 0 ;
7216 char *kwnames[] = {
7217 (char *) "self",(char *) "family", NULL
7218 };
7219
7220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
7221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7222 {
7223 PyThreadState* __tstate = wxPyBeginAllowThreads();
7224 (arg1)->SetFamily(arg2);
7225
7226 wxPyEndAllowThreads(__tstate);
7227 if (PyErr_Occurred()) SWIG_fail;
7228 }
7229 Py_INCREF(Py_None); resultobj = Py_None;
7230 return resultobj;
7231 fail:
7232 return NULL;
7233 }
7234
7235
7236 static PyObject *_wrap_Font_SetStyle(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 *) "style", NULL
7243 };
7244
7245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",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)->SetStyle(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_SetWeight(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 *) "weight", NULL
7268 };
7269
7270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",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)->SetWeight(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_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7287 PyObject *resultobj;
7288 wxFont *arg1 = (wxFont *) 0 ;
7289 wxString *arg2 = 0 ;
7290 bool temp2 = False ;
7291 PyObject * obj0 = 0 ;
7292 PyObject * obj1 = 0 ;
7293 char *kwnames[] = {
7294 (char *) "self",(char *) "faceName", NULL
7295 };
7296
7297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7299 {
7300 arg2 = wxString_in_helper(obj1);
7301 if (arg2 == NULL) SWIG_fail;
7302 temp2 = True;
7303 }
7304 {
7305 PyThreadState* __tstate = wxPyBeginAllowThreads();
7306 (arg1)->SetFaceName((wxString const &)*arg2);
7307
7308 wxPyEndAllowThreads(__tstate);
7309 if (PyErr_Occurred()) SWIG_fail;
7310 }
7311 Py_INCREF(Py_None); resultobj = Py_None;
7312 {
7313 if (temp2)
7314 delete arg2;
7315 }
7316 return resultobj;
7317 fail:
7318 {
7319 if (temp2)
7320 delete arg2;
7321 }
7322 return NULL;
7323 }
7324
7325
7326 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7327 PyObject *resultobj;
7328 wxFont *arg1 = (wxFont *) 0 ;
7329 bool arg2 ;
7330 PyObject * obj0 = 0 ;
7331 PyObject * obj1 = 0 ;
7332 char *kwnames[] = {
7333 (char *) "self",(char *) "underlined", NULL
7334 };
7335
7336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7338 {
7339 arg2 = (bool) SPyObj_AsBool(obj1);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 {
7343 PyThreadState* __tstate = wxPyBeginAllowThreads();
7344 (arg1)->SetUnderlined(arg2);
7345
7346 wxPyEndAllowThreads(__tstate);
7347 if (PyErr_Occurred()) SWIG_fail;
7348 }
7349 Py_INCREF(Py_None); resultobj = Py_None;
7350 return resultobj;
7351 fail:
7352 return NULL;
7353 }
7354
7355
7356 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7357 PyObject *resultobj;
7358 wxFont *arg1 = (wxFont *) 0 ;
7359 int arg2 ;
7360 PyObject * obj0 = 0 ;
7361 char *kwnames[] = {
7362 (char *) "self",(char *) "encoding", NULL
7363 };
7364
7365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 (arg1)->SetEncoding((wxFontEncoding )arg2);
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 Py_INCREF(Py_None); resultobj = Py_None;
7375 return resultobj;
7376 fail:
7377 return NULL;
7378 }
7379
7380
7381 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7382 PyObject *resultobj;
7383 wxFont *arg1 = (wxFont *) 0 ;
7384 wxNativeFontInfo *arg2 = 0 ;
7385 PyObject * obj0 = 0 ;
7386 PyObject * obj1 = 0 ;
7387 char *kwnames[] = {
7388 (char *) "self",(char *) "info", NULL
7389 };
7390
7391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7392 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7393 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7394 if (arg2 == NULL) {
7395 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7396 }
7397 {
7398 PyThreadState* __tstate = wxPyBeginAllowThreads();
7399 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7400
7401 wxPyEndAllowThreads(__tstate);
7402 if (PyErr_Occurred()) SWIG_fail;
7403 }
7404 Py_INCREF(Py_None); resultobj = Py_None;
7405 return resultobj;
7406 fail:
7407 return NULL;
7408 }
7409
7410
7411 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7412 PyObject *resultobj;
7413 wxFont *arg1 = (wxFont *) 0 ;
7414 wxString *arg2 = 0 ;
7415 bool temp2 = False ;
7416 PyObject * obj0 = 0 ;
7417 PyObject * obj1 = 0 ;
7418 char *kwnames[] = {
7419 (char *) "self",(char *) "info", NULL
7420 };
7421
7422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7424 {
7425 arg2 = wxString_in_helper(obj1);
7426 if (arg2 == NULL) SWIG_fail;
7427 temp2 = True;
7428 }
7429 {
7430 PyThreadState* __tstate = wxPyBeginAllowThreads();
7431 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7432
7433 wxPyEndAllowThreads(__tstate);
7434 if (PyErr_Occurred()) SWIG_fail;
7435 }
7436 Py_INCREF(Py_None); resultobj = Py_None;
7437 {
7438 if (temp2)
7439 delete arg2;
7440 }
7441 return resultobj;
7442 fail:
7443 {
7444 if (temp2)
7445 delete arg2;
7446 }
7447 return NULL;
7448 }
7449
7450
7451 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7452 PyObject *resultobj;
7453 wxFont *arg1 = (wxFont *) 0 ;
7454 wxString *arg2 = 0 ;
7455 bool temp2 = False ;
7456 PyObject * obj0 = 0 ;
7457 PyObject * obj1 = 0 ;
7458 char *kwnames[] = {
7459 (char *) "self",(char *) "info", NULL
7460 };
7461
7462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7464 {
7465 arg2 = wxString_in_helper(obj1);
7466 if (arg2 == NULL) SWIG_fail;
7467 temp2 = True;
7468 }
7469 {
7470 PyThreadState* __tstate = wxPyBeginAllowThreads();
7471 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7472
7473 wxPyEndAllowThreads(__tstate);
7474 if (PyErr_Occurred()) SWIG_fail;
7475 }
7476 Py_INCREF(Py_None); resultobj = Py_None;
7477 {
7478 if (temp2)
7479 delete arg2;
7480 }
7481 return resultobj;
7482 fail:
7483 {
7484 if (temp2)
7485 delete arg2;
7486 }
7487 return NULL;
7488 }
7489
7490
7491 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7492 PyObject *resultobj;
7493 wxFont *arg1 = (wxFont *) 0 ;
7494 wxString result;
7495 PyObject * obj0 = 0 ;
7496 char *kwnames[] = {
7497 (char *) "self", NULL
7498 };
7499
7500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7502 {
7503 PyThreadState* __tstate = wxPyBeginAllowThreads();
7504 result = ((wxFont const *)arg1)->GetFamilyString();
7505
7506 wxPyEndAllowThreads(__tstate);
7507 if (PyErr_Occurred()) SWIG_fail;
7508 }
7509 {
7510 #if wxUSE_UNICODE
7511 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7512 #else
7513 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7514 #endif
7515 }
7516 return resultobj;
7517 fail:
7518 return NULL;
7519 }
7520
7521
7522 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7523 PyObject *resultobj;
7524 wxFont *arg1 = (wxFont *) 0 ;
7525 wxString result;
7526 PyObject * obj0 = 0 ;
7527 char *kwnames[] = {
7528 (char *) "self", NULL
7529 };
7530
7531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7533 {
7534 PyThreadState* __tstate = wxPyBeginAllowThreads();
7535 result = ((wxFont const *)arg1)->GetStyleString();
7536
7537 wxPyEndAllowThreads(__tstate);
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 {
7541 #if wxUSE_UNICODE
7542 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7543 #else
7544 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7545 #endif
7546 }
7547 return resultobj;
7548 fail:
7549 return NULL;
7550 }
7551
7552
7553 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7554 PyObject *resultobj;
7555 wxFont *arg1 = (wxFont *) 0 ;
7556 wxString result;
7557 PyObject * obj0 = 0 ;
7558 char *kwnames[] = {
7559 (char *) "self", NULL
7560 };
7561
7562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7564 {
7565 PyThreadState* __tstate = wxPyBeginAllowThreads();
7566 result = ((wxFont const *)arg1)->GetWeightString();
7567
7568 wxPyEndAllowThreads(__tstate);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 {
7572 #if wxUSE_UNICODE
7573 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7574 #else
7575 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7576 #endif
7577 }
7578 return resultobj;
7579 fail:
7580 return NULL;
7581 }
7582
7583
7584 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7585 PyObject *resultobj;
7586 wxFont *arg1 = (wxFont *) 0 ;
7587 bool arg2 = (bool) True ;
7588 PyObject * obj0 = 0 ;
7589 PyObject * obj1 = 0 ;
7590 char *kwnames[] = {
7591 (char *) "self",(char *) "no", NULL
7592 };
7593
7594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7596 if (obj1) {
7597 {
7598 arg2 = (bool) SPyObj_AsBool(obj1);
7599 if (PyErr_Occurred()) SWIG_fail;
7600 }
7601 }
7602 {
7603 PyThreadState* __tstate = wxPyBeginAllowThreads();
7604 (arg1)->SetNoAntiAliasing(arg2);
7605
7606 wxPyEndAllowThreads(__tstate);
7607 if (PyErr_Occurred()) SWIG_fail;
7608 }
7609 Py_INCREF(Py_None); resultobj = Py_None;
7610 return resultobj;
7611 fail:
7612 return NULL;
7613 }
7614
7615
7616 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7617 PyObject *resultobj;
7618 wxFont *arg1 = (wxFont *) 0 ;
7619 bool result;
7620 PyObject * obj0 = 0 ;
7621 char *kwnames[] = {
7622 (char *) "self", NULL
7623 };
7624
7625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7627 {
7628 PyThreadState* __tstate = wxPyBeginAllowThreads();
7629 result = (bool)(arg1)->GetNoAntiAliasing();
7630
7631 wxPyEndAllowThreads(__tstate);
7632 if (PyErr_Occurred()) SWIG_fail;
7633 }
7634 resultobj = PyInt_FromLong((long)result);
7635 return resultobj;
7636 fail:
7637 return NULL;
7638 }
7639
7640
7641 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7642 PyObject *resultobj;
7643 int result;
7644 char *kwnames[] = {
7645 NULL
7646 };
7647
7648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7649 {
7650 PyThreadState* __tstate = wxPyBeginAllowThreads();
7651 result = (int)wxFont::GetDefaultEncoding();
7652
7653 wxPyEndAllowThreads(__tstate);
7654 if (PyErr_Occurred()) SWIG_fail;
7655 }
7656 resultobj = PyInt_FromLong((long)result);
7657 return resultobj;
7658 fail:
7659 return NULL;
7660 }
7661
7662
7663 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7664 PyObject *resultobj;
7665 int arg1 ;
7666 char *kwnames[] = {
7667 (char *) "encoding", NULL
7668 };
7669
7670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
7671 {
7672 PyThreadState* __tstate = wxPyBeginAllowThreads();
7673 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
7674
7675 wxPyEndAllowThreads(__tstate);
7676 if (PyErr_Occurred()) SWIG_fail;
7677 }
7678 Py_INCREF(Py_None); resultobj = Py_None;
7679 return resultobj;
7680 fail:
7681 return NULL;
7682 }
7683
7684
7685 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
7686 PyObject *obj;
7687 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7688 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
7689 Py_INCREF(obj);
7690 return Py_BuildValue((char *)"");
7691 }
7692 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7693 PyObject *resultobj;
7694 wxPyFontEnumerator *result;
7695 char *kwnames[] = {
7696 NULL
7697 };
7698
7699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
7700 {
7701 PyThreadState* __tstate = wxPyBeginAllowThreads();
7702 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
7703
7704 wxPyEndAllowThreads(__tstate);
7705 if (PyErr_Occurred()) SWIG_fail;
7706 }
7707 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
7708 return resultobj;
7709 fail:
7710 return NULL;
7711 }
7712
7713
7714 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7715 PyObject *resultobj;
7716 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7717 PyObject * obj0 = 0 ;
7718 char *kwnames[] = {
7719 (char *) "self", NULL
7720 };
7721
7722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
7723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7724 {
7725 PyThreadState* __tstate = wxPyBeginAllowThreads();
7726 delete arg1;
7727
7728 wxPyEndAllowThreads(__tstate);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 Py_INCREF(Py_None); resultobj = Py_None;
7732 return resultobj;
7733 fail:
7734 return NULL;
7735 }
7736
7737
7738 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7739 PyObject *resultobj;
7740 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7741 PyObject *arg2 = (PyObject *) 0 ;
7742 PyObject *arg3 = (PyObject *) 0 ;
7743 bool arg4 ;
7744 PyObject * obj0 = 0 ;
7745 PyObject * obj1 = 0 ;
7746 PyObject * obj2 = 0 ;
7747 PyObject * obj3 = 0 ;
7748 char *kwnames[] = {
7749 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
7750 };
7751
7752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7754 arg2 = obj1;
7755 arg3 = obj2;
7756 {
7757 arg4 = (bool) SPyObj_AsBool(obj3);
7758 if (PyErr_Occurred()) SWIG_fail;
7759 }
7760 {
7761 PyThreadState* __tstate = wxPyBeginAllowThreads();
7762 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
7763
7764 wxPyEndAllowThreads(__tstate);
7765 if (PyErr_Occurred()) SWIG_fail;
7766 }
7767 Py_INCREF(Py_None); resultobj = Py_None;
7768 return resultobj;
7769 fail:
7770 return NULL;
7771 }
7772
7773
7774 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7775 PyObject *resultobj;
7776 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7777 int arg2 = (int) wxFONTENCODING_SYSTEM ;
7778 bool arg3 = (bool) False ;
7779 bool result;
7780 PyObject * obj0 = 0 ;
7781 PyObject * obj2 = 0 ;
7782 char *kwnames[] = {
7783 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
7784 };
7785
7786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
7787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7788 if (obj2) {
7789 {
7790 arg3 = (bool) SPyObj_AsBool(obj2);
7791 if (PyErr_Occurred()) SWIG_fail;
7792 }
7793 }
7794 {
7795 PyThreadState* __tstate = wxPyBeginAllowThreads();
7796 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
7797
7798 wxPyEndAllowThreads(__tstate);
7799 if (PyErr_Occurred()) SWIG_fail;
7800 }
7801 resultobj = PyInt_FromLong((long)result);
7802 return resultobj;
7803 fail:
7804 return NULL;
7805 }
7806
7807
7808 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7809 PyObject *resultobj;
7810 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7811 wxString const &arg2_defvalue = wxPyEmptyString ;
7812 wxString *arg2 = (wxString *) &arg2_defvalue ;
7813 bool result;
7814 bool temp2 = False ;
7815 PyObject * obj0 = 0 ;
7816 PyObject * obj1 = 0 ;
7817 char *kwnames[] = {
7818 (char *) "self",(char *) "facename", NULL
7819 };
7820
7821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
7822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7823 if (obj1) {
7824 {
7825 arg2 = wxString_in_helper(obj1);
7826 if (arg2 == NULL) SWIG_fail;
7827 temp2 = True;
7828 }
7829 }
7830 {
7831 PyThreadState* __tstate = wxPyBeginAllowThreads();
7832 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
7833
7834 wxPyEndAllowThreads(__tstate);
7835 if (PyErr_Occurred()) SWIG_fail;
7836 }
7837 resultobj = PyInt_FromLong((long)result);
7838 {
7839 if (temp2)
7840 delete arg2;
7841 }
7842 return resultobj;
7843 fail:
7844 {
7845 if (temp2)
7846 delete arg2;
7847 }
7848 return NULL;
7849 }
7850
7851
7852 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7853 PyObject *resultobj;
7854 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7855 PyObject *result;
7856 PyObject * obj0 = 0 ;
7857 char *kwnames[] = {
7858 (char *) "self", NULL
7859 };
7860
7861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
7862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7863 {
7864 PyThreadState* __tstate = wxPyBeginAllowThreads();
7865 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
7866
7867 wxPyEndAllowThreads(__tstate);
7868 if (PyErr_Occurred()) SWIG_fail;
7869 }
7870 resultobj = result;
7871 return resultobj;
7872 fail:
7873 return NULL;
7874 }
7875
7876
7877 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7878 PyObject *resultobj;
7879 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7880 PyObject *result;
7881 PyObject * obj0 = 0 ;
7882 char *kwnames[] = {
7883 (char *) "self", NULL
7884 };
7885
7886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
7887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7888 {
7889 PyThreadState* __tstate = wxPyBeginAllowThreads();
7890 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
7891
7892 wxPyEndAllowThreads(__tstate);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 resultobj = result;
7896 return resultobj;
7897 fail:
7898 return NULL;
7899 }
7900
7901
7902 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
7903 PyObject *obj;
7904 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7905 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
7906 Py_INCREF(obj);
7907 return Py_BuildValue((char *)"");
7908 }
7909 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7910 PyObject *resultobj;
7911 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7912 int arg2 ;
7913 PyObject * obj0 = 0 ;
7914 char *kwnames[] = {
7915 (char *) "self",(char *) "Language", NULL
7916 };
7917
7918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
7919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7920 if (arg1) (arg1)->Language = arg2;
7921
7922 Py_INCREF(Py_None); resultobj = Py_None;
7923 return resultobj;
7924 fail:
7925 return NULL;
7926 }
7927
7928
7929 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7930 PyObject *resultobj;
7931 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7932 int result;
7933 PyObject * obj0 = 0 ;
7934 char *kwnames[] = {
7935 (char *) "self", NULL
7936 };
7937
7938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
7939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7940 result = (int) ((arg1)->Language);
7941
7942 resultobj = PyInt_FromLong((long)result);
7943 return resultobj;
7944 fail:
7945 return NULL;
7946 }
7947
7948
7949 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7950 PyObject *resultobj;
7951 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7952 wxString *arg2 = (wxString *) 0 ;
7953 bool temp2 = False ;
7954 PyObject * obj0 = 0 ;
7955 PyObject * obj1 = 0 ;
7956 char *kwnames[] = {
7957 (char *) "self",(char *) "CanonicalName", NULL
7958 };
7959
7960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
7961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7962 {
7963 arg2 = wxString_in_helper(obj1);
7964 if (arg2 == NULL) SWIG_fail;
7965 temp2 = True;
7966 }
7967 if (arg1) (arg1)->CanonicalName = *arg2;
7968
7969 Py_INCREF(Py_None); resultobj = Py_None;
7970 {
7971 if (temp2)
7972 delete arg2;
7973 }
7974 return resultobj;
7975 fail:
7976 {
7977 if (temp2)
7978 delete arg2;
7979 }
7980 return NULL;
7981 }
7982
7983
7984 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7985 PyObject *resultobj;
7986 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7987 wxString *result;
7988 PyObject * obj0 = 0 ;
7989 char *kwnames[] = {
7990 (char *) "self", NULL
7991 };
7992
7993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
7994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7995 result = (wxString *)& ((arg1)->CanonicalName);
7996
7997 {
7998 #if wxUSE_UNICODE
7999 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8000 #else
8001 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8002 #endif
8003 }
8004 return resultobj;
8005 fail:
8006 return NULL;
8007 }
8008
8009
8010 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8011 PyObject *resultobj;
8012 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8013 wxString *arg2 = (wxString *) 0 ;
8014 bool temp2 = False ;
8015 PyObject * obj0 = 0 ;
8016 PyObject * obj1 = 0 ;
8017 char *kwnames[] = {
8018 (char *) "self",(char *) "Description", NULL
8019 };
8020
8021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8023 {
8024 arg2 = wxString_in_helper(obj1);
8025 if (arg2 == NULL) SWIG_fail;
8026 temp2 = True;
8027 }
8028 if (arg1) (arg1)->Description = *arg2;
8029
8030 Py_INCREF(Py_None); resultobj = Py_None;
8031 {
8032 if (temp2)
8033 delete arg2;
8034 }
8035 return resultobj;
8036 fail:
8037 {
8038 if (temp2)
8039 delete arg2;
8040 }
8041 return NULL;
8042 }
8043
8044
8045 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8046 PyObject *resultobj;
8047 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8048 wxString *result;
8049 PyObject * obj0 = 0 ;
8050 char *kwnames[] = {
8051 (char *) "self", NULL
8052 };
8053
8054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8056 result = (wxString *)& ((arg1)->Description);
8057
8058 {
8059 #if wxUSE_UNICODE
8060 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8061 #else
8062 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8063 #endif
8064 }
8065 return resultobj;
8066 fail:
8067 return NULL;
8068 }
8069
8070
8071 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8072 PyObject *obj;
8073 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8074 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8075 Py_INCREF(obj);
8076 return Py_BuildValue((char *)"");
8077 }
8078 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8079 PyObject *resultobj;
8080 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8081 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8082 wxLocale *result;
8083 char *kwnames[] = {
8084 (char *) "language",(char *) "flags", NULL
8085 };
8086
8087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
8088 {
8089 PyThreadState* __tstate = wxPyBeginAllowThreads();
8090 result = (wxLocale *)new wxLocale(arg1,arg2);
8091
8092 wxPyEndAllowThreads(__tstate);
8093 if (PyErr_Occurred()) SWIG_fail;
8094 }
8095 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
8096 return resultobj;
8097 fail:
8098 return NULL;
8099 }
8100
8101
8102 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8103 PyObject *resultobj;
8104 wxLocale *arg1 = (wxLocale *) 0 ;
8105 PyObject * obj0 = 0 ;
8106 char *kwnames[] = {
8107 (char *) "self", NULL
8108 };
8109
8110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
8111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8112 {
8113 PyThreadState* __tstate = wxPyBeginAllowThreads();
8114 delete arg1;
8115
8116 wxPyEndAllowThreads(__tstate);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 Py_INCREF(Py_None); resultobj = Py_None;
8120 return resultobj;
8121 fail:
8122 return NULL;
8123 }
8124
8125
8126 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
8127 PyObject *resultobj;
8128 wxLocale *arg1 = (wxLocale *) 0 ;
8129 wxString *arg2 = 0 ;
8130 wxString const &arg3_defvalue = wxPyEmptyString ;
8131 wxString *arg3 = (wxString *) &arg3_defvalue ;
8132 wxString const &arg4_defvalue = wxPyEmptyString ;
8133 wxString *arg4 = (wxString *) &arg4_defvalue ;
8134 bool arg5 = (bool) True ;
8135 bool arg6 = (bool) False ;
8136 bool result;
8137 bool temp2 = False ;
8138 bool temp3 = False ;
8139 bool temp4 = False ;
8140 PyObject * obj0 = 0 ;
8141 PyObject * obj1 = 0 ;
8142 PyObject * obj2 = 0 ;
8143 PyObject * obj3 = 0 ;
8144 PyObject * obj4 = 0 ;
8145 PyObject * obj5 = 0 ;
8146 char *kwnames[] = {
8147 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
8148 };
8149
8150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8152 {
8153 arg2 = wxString_in_helper(obj1);
8154 if (arg2 == NULL) SWIG_fail;
8155 temp2 = True;
8156 }
8157 if (obj2) {
8158 {
8159 arg3 = wxString_in_helper(obj2);
8160 if (arg3 == NULL) SWIG_fail;
8161 temp3 = True;
8162 }
8163 }
8164 if (obj3) {
8165 {
8166 arg4 = wxString_in_helper(obj3);
8167 if (arg4 == NULL) SWIG_fail;
8168 temp4 = True;
8169 }
8170 }
8171 if (obj4) {
8172 {
8173 arg5 = (bool) SPyObj_AsBool(obj4);
8174 if (PyErr_Occurred()) SWIG_fail;
8175 }
8176 }
8177 if (obj5) {
8178 {
8179 arg6 = (bool) SPyObj_AsBool(obj5);
8180 if (PyErr_Occurred()) SWIG_fail;
8181 }
8182 }
8183 {
8184 PyThreadState* __tstate = wxPyBeginAllowThreads();
8185 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
8186
8187 wxPyEndAllowThreads(__tstate);
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 resultobj = PyInt_FromLong((long)result);
8191 {
8192 if (temp2)
8193 delete arg2;
8194 }
8195 {
8196 if (temp3)
8197 delete arg3;
8198 }
8199 {
8200 if (temp4)
8201 delete arg4;
8202 }
8203 return resultobj;
8204 fail:
8205 {
8206 if (temp2)
8207 delete arg2;
8208 }
8209 {
8210 if (temp3)
8211 delete arg3;
8212 }
8213 {
8214 if (temp4)
8215 delete arg4;
8216 }
8217 return NULL;
8218 }
8219
8220
8221 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8222 PyObject *resultobj;
8223 wxLocale *arg1 = (wxLocale *) 0 ;
8224 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8225 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8226 bool result;
8227 PyObject * obj0 = 0 ;
8228 char *kwnames[] = {
8229 (char *) "self",(char *) "language",(char *) "flags", NULL
8230 };
8231
8232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
8233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8234 {
8235 PyThreadState* __tstate = wxPyBeginAllowThreads();
8236 result = (bool)(arg1)->Init(arg2,arg3);
8237
8238 wxPyEndAllowThreads(__tstate);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 resultobj = PyInt_FromLong((long)result);
8242 return resultobj;
8243 fail:
8244 return NULL;
8245 }
8246
8247
8248 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8249 PyObject *resultobj;
8250 int result;
8251 char *kwnames[] = {
8252 NULL
8253 };
8254
8255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8256 {
8257 PyThreadState* __tstate = wxPyBeginAllowThreads();
8258 result = (int)wxLocale::GetSystemLanguage();
8259
8260 wxPyEndAllowThreads(__tstate);
8261 if (PyErr_Occurred()) SWIG_fail;
8262 }
8263 resultobj = PyInt_FromLong((long)result);
8264 return resultobj;
8265 fail:
8266 return NULL;
8267 }
8268
8269
8270 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8271 PyObject *resultobj;
8272 int result;
8273 char *kwnames[] = {
8274 NULL
8275 };
8276
8277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8278 {
8279 PyThreadState* __tstate = wxPyBeginAllowThreads();
8280 result = (int)wxLocale::GetSystemEncoding();
8281
8282 wxPyEndAllowThreads(__tstate);
8283 if (PyErr_Occurred()) SWIG_fail;
8284 }
8285 resultobj = PyInt_FromLong((long)result);
8286 return resultobj;
8287 fail:
8288 return NULL;
8289 }
8290
8291
8292 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8293 PyObject *resultobj;
8294 wxString result;
8295 char *kwnames[] = {
8296 NULL
8297 };
8298
8299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8300 {
8301 PyThreadState* __tstate = wxPyBeginAllowThreads();
8302 result = wxLocale::GetSystemEncodingName();
8303
8304 wxPyEndAllowThreads(__tstate);
8305 if (PyErr_Occurred()) SWIG_fail;
8306 }
8307 {
8308 #if wxUSE_UNICODE
8309 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8310 #else
8311 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8312 #endif
8313 }
8314 return resultobj;
8315 fail:
8316 return NULL;
8317 }
8318
8319
8320 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8321 PyObject *resultobj;
8322 wxLocale *arg1 = (wxLocale *) 0 ;
8323 bool result;
8324 PyObject * obj0 = 0 ;
8325 char *kwnames[] = {
8326 (char *) "self", NULL
8327 };
8328
8329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8331 {
8332 PyThreadState* __tstate = wxPyBeginAllowThreads();
8333 result = (bool)((wxLocale const *)arg1)->IsOk();
8334
8335 wxPyEndAllowThreads(__tstate);
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 resultobj = PyInt_FromLong((long)result);
8339 return resultobj;
8340 fail:
8341 return NULL;
8342 }
8343
8344
8345 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8346 PyObject *resultobj;
8347 wxLocale *arg1 = (wxLocale *) 0 ;
8348 wxString result;
8349 PyObject * obj0 = 0 ;
8350 char *kwnames[] = {
8351 (char *) "self", NULL
8352 };
8353
8354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8356 {
8357 PyThreadState* __tstate = wxPyBeginAllowThreads();
8358 result = ((wxLocale const *)arg1)->GetLocale();
8359
8360 wxPyEndAllowThreads(__tstate);
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 {
8364 #if wxUSE_UNICODE
8365 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8366 #else
8367 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8368 #endif
8369 }
8370 return resultobj;
8371 fail:
8372 return NULL;
8373 }
8374
8375
8376 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8377 PyObject *resultobj;
8378 wxLocale *arg1 = (wxLocale *) 0 ;
8379 int result;
8380 PyObject * obj0 = 0 ;
8381 char *kwnames[] = {
8382 (char *) "self", NULL
8383 };
8384
8385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8387 {
8388 PyThreadState* __tstate = wxPyBeginAllowThreads();
8389 result = (int)((wxLocale const *)arg1)->GetLanguage();
8390
8391 wxPyEndAllowThreads(__tstate);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
8394 resultobj = PyInt_FromLong((long)result);
8395 return resultobj;
8396 fail:
8397 return NULL;
8398 }
8399
8400
8401 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8402 PyObject *resultobj;
8403 wxLocale *arg1 = (wxLocale *) 0 ;
8404 wxString result;
8405 PyObject * obj0 = 0 ;
8406 char *kwnames[] = {
8407 (char *) "self", NULL
8408 };
8409
8410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8412 {
8413 PyThreadState* __tstate = wxPyBeginAllowThreads();
8414 result = ((wxLocale const *)arg1)->GetSysName();
8415
8416 wxPyEndAllowThreads(__tstate);
8417 if (PyErr_Occurred()) SWIG_fail;
8418 }
8419 {
8420 #if wxUSE_UNICODE
8421 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8422 #else
8423 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8424 #endif
8425 }
8426 return resultobj;
8427 fail:
8428 return NULL;
8429 }
8430
8431
8432 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8433 PyObject *resultobj;
8434 wxLocale *arg1 = (wxLocale *) 0 ;
8435 wxString result;
8436 PyObject * obj0 = 0 ;
8437 char *kwnames[] = {
8438 (char *) "self", NULL
8439 };
8440
8441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8443 {
8444 PyThreadState* __tstate = wxPyBeginAllowThreads();
8445 result = ((wxLocale const *)arg1)->GetCanonicalName();
8446
8447 wxPyEndAllowThreads(__tstate);
8448 if (PyErr_Occurred()) SWIG_fail;
8449 }
8450 {
8451 #if wxUSE_UNICODE
8452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8453 #else
8454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8455 #endif
8456 }
8457 return resultobj;
8458 fail:
8459 return NULL;
8460 }
8461
8462
8463 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8464 PyObject *resultobj;
8465 wxString *arg1 = 0 ;
8466 bool temp1 = False ;
8467 PyObject * obj0 = 0 ;
8468 char *kwnames[] = {
8469 (char *) "prefix", NULL
8470 };
8471
8472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8473 {
8474 arg1 = wxString_in_helper(obj0);
8475 if (arg1 == NULL) SWIG_fail;
8476 temp1 = True;
8477 }
8478 {
8479 PyThreadState* __tstate = wxPyBeginAllowThreads();
8480 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8481
8482 wxPyEndAllowThreads(__tstate);
8483 if (PyErr_Occurred()) SWIG_fail;
8484 }
8485 Py_INCREF(Py_None); resultobj = Py_None;
8486 {
8487 if (temp1)
8488 delete arg1;
8489 }
8490 return resultobj;
8491 fail:
8492 {
8493 if (temp1)
8494 delete arg1;
8495 }
8496 return NULL;
8497 }
8498
8499
8500 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8501 PyObject *resultobj;
8502 wxLocale *arg1 = (wxLocale *) 0 ;
8503 wxString *arg2 = 0 ;
8504 bool result;
8505 bool temp2 = False ;
8506 PyObject * obj0 = 0 ;
8507 PyObject * obj1 = 0 ;
8508 char *kwnames[] = {
8509 (char *) "self",(char *) "szDomain", NULL
8510 };
8511
8512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8514 {
8515 arg2 = wxString_in_helper(obj1);
8516 if (arg2 == NULL) SWIG_fail;
8517 temp2 = True;
8518 }
8519 {
8520 PyThreadState* __tstate = wxPyBeginAllowThreads();
8521 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8522
8523 wxPyEndAllowThreads(__tstate);
8524 if (PyErr_Occurred()) SWIG_fail;
8525 }
8526 resultobj = PyInt_FromLong((long)result);
8527 {
8528 if (temp2)
8529 delete arg2;
8530 }
8531 return resultobj;
8532 fail:
8533 {
8534 if (temp2)
8535 delete arg2;
8536 }
8537 return NULL;
8538 }
8539
8540
8541 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8542 PyObject *resultobj;
8543 wxLocale *arg1 = (wxLocale *) 0 ;
8544 wxString *arg2 = 0 ;
8545 bool result;
8546 bool temp2 = False ;
8547 PyObject * obj0 = 0 ;
8548 PyObject * obj1 = 0 ;
8549 char *kwnames[] = {
8550 (char *) "self",(char *) "szDomain", NULL
8551 };
8552
8553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8555 {
8556 arg2 = wxString_in_helper(obj1);
8557 if (arg2 == NULL) SWIG_fail;
8558 temp2 = True;
8559 }
8560 {
8561 PyThreadState* __tstate = wxPyBeginAllowThreads();
8562 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8563
8564 wxPyEndAllowThreads(__tstate);
8565 if (PyErr_Occurred()) SWIG_fail;
8566 }
8567 resultobj = PyInt_FromLong((long)result);
8568 {
8569 if (temp2)
8570 delete arg2;
8571 }
8572 return resultobj;
8573 fail:
8574 {
8575 if (temp2)
8576 delete arg2;
8577 }
8578 return NULL;
8579 }
8580
8581
8582 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8583 PyObject *resultobj;
8584 int arg1 ;
8585 wxLanguageInfo *result;
8586 char *kwnames[] = {
8587 (char *) "lang", NULL
8588 };
8589
8590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8591 {
8592 PyThreadState* __tstate = wxPyBeginAllowThreads();
8593 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8594
8595 wxPyEndAllowThreads(__tstate);
8596 if (PyErr_Occurred()) SWIG_fail;
8597 }
8598 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8599 return resultobj;
8600 fail:
8601 return NULL;
8602 }
8603
8604
8605 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8606 PyObject *resultobj;
8607 int arg1 ;
8608 wxString result;
8609 char *kwnames[] = {
8610 (char *) "lang", NULL
8611 };
8612
8613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8614 {
8615 PyThreadState* __tstate = wxPyBeginAllowThreads();
8616 result = wxLocale::GetLanguageName(arg1);
8617
8618 wxPyEndAllowThreads(__tstate);
8619 if (PyErr_Occurred()) SWIG_fail;
8620 }
8621 {
8622 #if wxUSE_UNICODE
8623 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8624 #else
8625 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8626 #endif
8627 }
8628 return resultobj;
8629 fail:
8630 return NULL;
8631 }
8632
8633
8634 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8635 PyObject *resultobj;
8636 wxString *arg1 = 0 ;
8637 wxLanguageInfo *result;
8638 bool temp1 = False ;
8639 PyObject * obj0 = 0 ;
8640 char *kwnames[] = {
8641 (char *) "locale", NULL
8642 };
8643
8644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8645 {
8646 arg1 = wxString_in_helper(obj0);
8647 if (arg1 == NULL) SWIG_fail;
8648 temp1 = True;
8649 }
8650 {
8651 PyThreadState* __tstate = wxPyBeginAllowThreads();
8652 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8653
8654 wxPyEndAllowThreads(__tstate);
8655 if (PyErr_Occurred()) SWIG_fail;
8656 }
8657 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8658 {
8659 if (temp1)
8660 delete arg1;
8661 }
8662 return resultobj;
8663 fail:
8664 {
8665 if (temp1)
8666 delete arg1;
8667 }
8668 return NULL;
8669 }
8670
8671
8672 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8673 PyObject *resultobj;
8674 wxLanguageInfo *arg1 = 0 ;
8675 PyObject * obj0 = 0 ;
8676 char *kwnames[] = {
8677 (char *) "info", NULL
8678 };
8679
8680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
8681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8682 if (arg1 == NULL) {
8683 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8684 }
8685 {
8686 PyThreadState* __tstate = wxPyBeginAllowThreads();
8687 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
8688
8689 wxPyEndAllowThreads(__tstate);
8690 if (PyErr_Occurred()) SWIG_fail;
8691 }
8692 Py_INCREF(Py_None); resultobj = Py_None;
8693 return resultobj;
8694 fail:
8695 return NULL;
8696 }
8697
8698
8699 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8700 PyObject *resultobj;
8701 wxLocale *arg1 = (wxLocale *) 0 ;
8702 wxString *arg2 = 0 ;
8703 wxString const &arg3_defvalue = wxPyEmptyString ;
8704 wxString *arg3 = (wxString *) &arg3_defvalue ;
8705 wxString result;
8706 bool temp2 = False ;
8707 bool temp3 = False ;
8708 PyObject * obj0 = 0 ;
8709 PyObject * obj1 = 0 ;
8710 PyObject * obj2 = 0 ;
8711 char *kwnames[] = {
8712 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
8713 };
8714
8715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
8716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8717 {
8718 arg2 = wxString_in_helper(obj1);
8719 if (arg2 == NULL) SWIG_fail;
8720 temp2 = True;
8721 }
8722 if (obj2) {
8723 {
8724 arg3 = wxString_in_helper(obj2);
8725 if (arg3 == NULL) SWIG_fail;
8726 temp3 = True;
8727 }
8728 }
8729 {
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
8732
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) SWIG_fail;
8735 }
8736 {
8737 #if wxUSE_UNICODE
8738 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8739 #else
8740 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8741 #endif
8742 }
8743 {
8744 if (temp2)
8745 delete arg2;
8746 }
8747 {
8748 if (temp3)
8749 delete arg3;
8750 }
8751 return resultobj;
8752 fail:
8753 {
8754 if (temp2)
8755 delete arg2;
8756 }
8757 {
8758 if (temp3)
8759 delete arg3;
8760 }
8761 return NULL;
8762 }
8763
8764
8765 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8766 PyObject *resultobj;
8767 wxLocale *arg1 = (wxLocale *) 0 ;
8768 wxString *result;
8769 PyObject * obj0 = 0 ;
8770 char *kwnames[] = {
8771 (char *) "self", NULL
8772 };
8773
8774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
8775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8776 {
8777 PyThreadState* __tstate = wxPyBeginAllowThreads();
8778 {
8779 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
8780 result = (wxString *) &_result_ref;
8781 }
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 return resultobj;
8794 fail:
8795 return NULL;
8796 }
8797
8798
8799 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
8800 PyObject *obj;
8801 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8802 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
8803 Py_INCREF(obj);
8804 return Py_BuildValue((char *)"");
8805 }
8806 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8807 PyObject *resultobj;
8808 wxLocale *result;
8809 char *kwnames[] = {
8810 NULL
8811 };
8812
8813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
8814 {
8815 PyThreadState* __tstate = wxPyBeginAllowThreads();
8816 result = (wxLocale *)wxGetLocale();
8817
8818 wxPyEndAllowThreads(__tstate);
8819 if (PyErr_Occurred()) SWIG_fail;
8820 }
8821 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
8822 return resultobj;
8823 fail:
8824 return NULL;
8825 }
8826
8827
8828 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
8829 PyObject *resultobj;
8830 wxString *arg1 = 0 ;
8831 wxString result;
8832 bool temp1 = False ;
8833 PyObject * obj0 = 0 ;
8834
8835 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
8836 {
8837 arg1 = wxString_in_helper(obj0);
8838 if (arg1 == NULL) SWIG_fail;
8839 temp1 = True;
8840 }
8841 {
8842 PyThreadState* __tstate = wxPyBeginAllowThreads();
8843 result = wxGetTranslation((wxString const &)*arg1);
8844
8845 wxPyEndAllowThreads(__tstate);
8846 if (PyErr_Occurred()) SWIG_fail;
8847 }
8848 {
8849 #if wxUSE_UNICODE
8850 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8851 #else
8852 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8853 #endif
8854 }
8855 {
8856 if (temp1)
8857 delete arg1;
8858 }
8859 return resultobj;
8860 fail:
8861 {
8862 if (temp1)
8863 delete arg1;
8864 }
8865 return NULL;
8866 }
8867
8868
8869 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
8870 PyObject *resultobj;
8871 wxString *arg1 = 0 ;
8872 wxString *arg2 = 0 ;
8873 size_t arg3 ;
8874 wxString result;
8875 bool temp1 = False ;
8876 bool temp2 = False ;
8877 PyObject * obj0 = 0 ;
8878 PyObject * obj1 = 0 ;
8879 PyObject * obj2 = 0 ;
8880
8881 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
8882 {
8883 arg1 = wxString_in_helper(obj0);
8884 if (arg1 == NULL) SWIG_fail;
8885 temp1 = True;
8886 }
8887 {
8888 arg2 = wxString_in_helper(obj1);
8889 if (arg2 == NULL) SWIG_fail;
8890 temp2 = True;
8891 }
8892 {
8893 arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 {
8897 PyThreadState* __tstate = wxPyBeginAllowThreads();
8898 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8899
8900 wxPyEndAllowThreads(__tstate);
8901 if (PyErr_Occurred()) SWIG_fail;
8902 }
8903 {
8904 #if wxUSE_UNICODE
8905 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8906 #else
8907 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8908 #endif
8909 }
8910 {
8911 if (temp1)
8912 delete arg1;
8913 }
8914 {
8915 if (temp2)
8916 delete arg2;
8917 }
8918 return resultobj;
8919 fail:
8920 {
8921 if (temp1)
8922 delete arg1;
8923 }
8924 {
8925 if (temp2)
8926 delete arg2;
8927 }
8928 return NULL;
8929 }
8930
8931
8932 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
8933 int argc;
8934 PyObject *argv[4];
8935 int ii;
8936
8937 argc = PyObject_Length(args);
8938 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8939 argv[ii] = PyTuple_GetItem(args,ii);
8940 }
8941 if (argc == 1) {
8942 int _v;
8943 {
8944 void *ptr;
8945 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8946 _v = 0;
8947 PyErr_Clear();
8948 } else {
8949 _v = 1;
8950 }
8951 }
8952 if (_v) {
8953 return _wrap_GetTranslation__SWIG_0(self,args);
8954 }
8955 }
8956 if (argc == 3) {
8957 int _v;
8958 {
8959 void *ptr;
8960 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8961 _v = 0;
8962 PyErr_Clear();
8963 } else {
8964 _v = 1;
8965 }
8966 }
8967 if (_v) {
8968 {
8969 void *ptr;
8970 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8971 _v = 0;
8972 PyErr_Clear();
8973 } else {
8974 _v = 1;
8975 }
8976 }
8977 if (_v) {
8978 {
8979 SPyObj_AsUnsignedInt(argv[2]);
8980 if (PyErr_Occurred()) {
8981 _v = 0;
8982 PyErr_Clear();
8983 } else {
8984 _v = 1;
8985 }
8986 }
8987 if (_v) {
8988 return _wrap_GetTranslation__SWIG_1(self,args);
8989 }
8990 }
8991 }
8992 }
8993
8994 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
8995 return NULL;
8996 }
8997
8998
8999 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj;
9001 wxEncodingConverter *result;
9002 char *kwnames[] = {
9003 NULL
9004 };
9005
9006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9007 {
9008 PyThreadState* __tstate = wxPyBeginAllowThreads();
9009 result = (wxEncodingConverter *)new wxEncodingConverter();
9010
9011 wxPyEndAllowThreads(__tstate);
9012 if (PyErr_Occurred()) SWIG_fail;
9013 }
9014 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
9015 return resultobj;
9016 fail:
9017 return NULL;
9018 }
9019
9020
9021 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9022 PyObject *resultobj;
9023 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9024 PyObject * obj0 = 0 ;
9025 char *kwnames[] = {
9026 (char *) "self", NULL
9027 };
9028
9029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9031 {
9032 PyThreadState* __tstate = wxPyBeginAllowThreads();
9033 delete arg1;
9034
9035 wxPyEndAllowThreads(__tstate);
9036 if (PyErr_Occurred()) SWIG_fail;
9037 }
9038 Py_INCREF(Py_None); resultobj = Py_None;
9039 return resultobj;
9040 fail:
9041 return NULL;
9042 }
9043
9044
9045 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9046 PyObject *resultobj;
9047 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9048 int arg2 ;
9049 int arg3 ;
9050 int arg4 = (int) wxCONVERT_STRICT ;
9051 bool result;
9052 PyObject * obj0 = 0 ;
9053 char *kwnames[] = {
9054 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9055 };
9056
9057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9059 {
9060 PyThreadState* __tstate = wxPyBeginAllowThreads();
9061 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
9062
9063 wxPyEndAllowThreads(__tstate);
9064 if (PyErr_Occurred()) SWIG_fail;
9065 }
9066 resultobj = PyInt_FromLong((long)result);
9067 return resultobj;
9068 fail:
9069 return NULL;
9070 }
9071
9072
9073 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
9074 PyObject *resultobj;
9075 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9076 wxString *arg2 = 0 ;
9077 wxString result;
9078 bool temp2 = False ;
9079 PyObject * obj0 = 0 ;
9080 PyObject * obj1 = 0 ;
9081 char *kwnames[] = {
9082 (char *) "self",(char *) "input", NULL
9083 };
9084
9085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
9086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9087 {
9088 arg2 = wxString_in_helper(obj1);
9089 if (arg2 == NULL) SWIG_fail;
9090 temp2 = True;
9091 }
9092 {
9093 PyThreadState* __tstate = wxPyBeginAllowThreads();
9094 result = (arg1)->Convert((wxString const &)*arg2);
9095
9096 wxPyEndAllowThreads(__tstate);
9097 if (PyErr_Occurred()) SWIG_fail;
9098 }
9099 {
9100 #if wxUSE_UNICODE
9101 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9102 #else
9103 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9104 #endif
9105 }
9106 {
9107 if (temp2)
9108 delete arg2;
9109 }
9110 return resultobj;
9111 fail:
9112 {
9113 if (temp2)
9114 delete arg2;
9115 }
9116 return NULL;
9117 }
9118
9119
9120 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9121 PyObject *resultobj;
9122 int arg1 ;
9123 int arg2 = (int) wxPLATFORM_CURRENT ;
9124 wxFontEncodingArray result;
9125 char *kwnames[] = {
9126 (char *) "enc",(char *) "platform", NULL
9127 };
9128
9129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
9130 {
9131 PyThreadState* __tstate = wxPyBeginAllowThreads();
9132 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
9133
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 {
9138 resultobj = PyList_New(0);
9139 for (size_t i=0; i < (&result)->GetCount(); i++) {
9140 PyObject* number = PyInt_FromLong((&result)->Item(i));
9141 PyList_Append(resultobj, number);
9142 Py_DECREF(number);
9143 }
9144 }
9145 return resultobj;
9146 fail:
9147 return NULL;
9148 }
9149
9150
9151 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9152 PyObject *resultobj;
9153 int arg1 ;
9154 wxFontEncodingArray result;
9155 char *kwnames[] = {
9156 (char *) "enc", NULL
9157 };
9158
9159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
9160 {
9161 PyThreadState* __tstate = wxPyBeginAllowThreads();
9162 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
9163
9164 wxPyEndAllowThreads(__tstate);
9165 if (PyErr_Occurred()) SWIG_fail;
9166 }
9167 {
9168 resultobj = PyList_New(0);
9169 for (size_t i=0; i < (&result)->GetCount(); i++) {
9170 PyObject* number = PyInt_FromLong((&result)->Item(i));
9171 PyList_Append(resultobj, number);
9172 Py_DECREF(number);
9173 }
9174 }
9175 return resultobj;
9176 fail:
9177 return NULL;
9178 }
9179
9180
9181 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
9182 PyObject *resultobj;
9183 int arg1 ;
9184 int arg2 ;
9185 bool result;
9186 char *kwnames[] = {
9187 (char *) "encIn",(char *) "encOut", NULL
9188 };
9189
9190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
9191 {
9192 PyThreadState* __tstate = wxPyBeginAllowThreads();
9193 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
9194
9195 wxPyEndAllowThreads(__tstate);
9196 if (PyErr_Occurred()) SWIG_fail;
9197 }
9198 resultobj = PyInt_FromLong((long)result);
9199 return resultobj;
9200 fail:
9201 return NULL;
9202 }
9203
9204
9205 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
9206 PyObject *obj;
9207 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9208 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
9209 Py_INCREF(obj);
9210 return Py_BuildValue((char *)"");
9211 }
9212 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
9213 PyObject *resultobj;
9214 wxDC *arg1 = (wxDC *) 0 ;
9215 PyObject * obj0 = 0 ;
9216 char *kwnames[] = {
9217 (char *) "self", NULL
9218 };
9219
9220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
9221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9222 {
9223 PyThreadState* __tstate = wxPyBeginAllowThreads();
9224 delete arg1;
9225
9226 wxPyEndAllowThreads(__tstate);
9227 if (PyErr_Occurred()) SWIG_fail;
9228 }
9229 Py_INCREF(Py_None); resultobj = Py_None;
9230 return resultobj;
9231 fail:
9232 return NULL;
9233 }
9234
9235
9236 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9237 PyObject *resultobj;
9238 wxDC *arg1 = (wxDC *) 0 ;
9239 PyObject * obj0 = 0 ;
9240 char *kwnames[] = {
9241 (char *) "self", NULL
9242 };
9243
9244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9246 {
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 (arg1)->BeginDrawing();
9249
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 Py_INCREF(Py_None); resultobj = Py_None;
9254 return resultobj;
9255 fail:
9256 return NULL;
9257 }
9258
9259
9260 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9261 PyObject *resultobj;
9262 wxDC *arg1 = (wxDC *) 0 ;
9263 PyObject * obj0 = 0 ;
9264 char *kwnames[] = {
9265 (char *) "self", NULL
9266 };
9267
9268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 (arg1)->EndDrawing();
9273
9274 wxPyEndAllowThreads(__tstate);
9275 if (PyErr_Occurred()) SWIG_fail;
9276 }
9277 Py_INCREF(Py_None); resultobj = Py_None;
9278 return resultobj;
9279 fail:
9280 return NULL;
9281 }
9282
9283
9284 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9285 PyObject *resultobj;
9286 wxDC *arg1 = (wxDC *) 0 ;
9287 int arg2 ;
9288 int arg3 ;
9289 wxColour *arg4 = 0 ;
9290 int arg5 = (int) wxFLOOD_SURFACE ;
9291 bool result;
9292 wxColour temp4 ;
9293 PyObject * obj0 = 0 ;
9294 PyObject * obj3 = 0 ;
9295 char *kwnames[] = {
9296 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9297 };
9298
9299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
9300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9301 {
9302 arg4 = &temp4;
9303 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9304 }
9305 {
9306 PyThreadState* __tstate = wxPyBeginAllowThreads();
9307 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9308
9309 wxPyEndAllowThreads(__tstate);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 }
9312 resultobj = PyInt_FromLong((long)result);
9313 return resultobj;
9314 fail:
9315 return NULL;
9316 }
9317
9318
9319 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9320 PyObject *resultobj;
9321 wxDC *arg1 = (wxDC *) 0 ;
9322 wxPoint *arg2 = 0 ;
9323 wxColour *arg3 = 0 ;
9324 int arg4 = (int) wxFLOOD_SURFACE ;
9325 bool result;
9326 wxPoint temp2 ;
9327 wxColour temp3 ;
9328 PyObject * obj0 = 0 ;
9329 PyObject * obj1 = 0 ;
9330 PyObject * obj2 = 0 ;
9331 char *kwnames[] = {
9332 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9333 };
9334
9335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9337 {
9338 arg2 = &temp2;
9339 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9340 }
9341 {
9342 arg3 = &temp3;
9343 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9344 }
9345 {
9346 PyThreadState* __tstate = wxPyBeginAllowThreads();
9347 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9348
9349 wxPyEndAllowThreads(__tstate);
9350 if (PyErr_Occurred()) SWIG_fail;
9351 }
9352 resultobj = PyInt_FromLong((long)result);
9353 return resultobj;
9354 fail:
9355 return NULL;
9356 }
9357
9358
9359 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9360 PyObject *resultobj;
9361 wxDC *arg1 = (wxDC *) 0 ;
9362 int arg2 ;
9363 int arg3 ;
9364 wxColour result;
9365 PyObject * obj0 = 0 ;
9366 char *kwnames[] = {
9367 (char *) "self",(char *) "x",(char *) "y", NULL
9368 };
9369
9370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9372 {
9373 PyThreadState* __tstate = wxPyBeginAllowThreads();
9374 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9375
9376 wxPyEndAllowThreads(__tstate);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 {
9380 wxColour * resultptr;
9381 resultptr = new wxColour((wxColour &) result);
9382 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9383 }
9384 return resultobj;
9385 fail:
9386 return NULL;
9387 }
9388
9389
9390 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9391 PyObject *resultobj;
9392 wxDC *arg1 = (wxDC *) 0 ;
9393 wxPoint *arg2 = 0 ;
9394 wxColour result;
9395 wxPoint temp2 ;
9396 PyObject * obj0 = 0 ;
9397 PyObject * obj1 = 0 ;
9398 char *kwnames[] = {
9399 (char *) "self",(char *) "pt", NULL
9400 };
9401
9402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9404 {
9405 arg2 = &temp2;
9406 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9407 }
9408 {
9409 PyThreadState* __tstate = wxPyBeginAllowThreads();
9410 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9411
9412 wxPyEndAllowThreads(__tstate);
9413 if (PyErr_Occurred()) SWIG_fail;
9414 }
9415 {
9416 wxColour * resultptr;
9417 resultptr = new wxColour((wxColour &) result);
9418 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9419 }
9420 return resultobj;
9421 fail:
9422 return NULL;
9423 }
9424
9425
9426 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9427 PyObject *resultobj;
9428 wxDC *arg1 = (wxDC *) 0 ;
9429 int arg2 ;
9430 int arg3 ;
9431 int arg4 ;
9432 int arg5 ;
9433 PyObject * obj0 = 0 ;
9434 char *kwnames[] = {
9435 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9436 };
9437
9438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9443
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 }
9447 Py_INCREF(Py_None); resultobj = Py_None;
9448 return resultobj;
9449 fail:
9450 return NULL;
9451 }
9452
9453
9454 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9455 PyObject *resultobj;
9456 wxDC *arg1 = (wxDC *) 0 ;
9457 wxPoint *arg2 = 0 ;
9458 wxPoint *arg3 = 0 ;
9459 wxPoint temp2 ;
9460 wxPoint temp3 ;
9461 PyObject * obj0 = 0 ;
9462 PyObject * obj1 = 0 ;
9463 PyObject * obj2 = 0 ;
9464 char *kwnames[] = {
9465 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9466 };
9467
9468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9470 {
9471 arg2 = &temp2;
9472 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9473 }
9474 {
9475 arg3 = &temp3;
9476 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9477 }
9478 {
9479 PyThreadState* __tstate = wxPyBeginAllowThreads();
9480 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9481
9482 wxPyEndAllowThreads(__tstate);
9483 if (PyErr_Occurred()) SWIG_fail;
9484 }
9485 Py_INCREF(Py_None); resultobj = Py_None;
9486 return resultobj;
9487 fail:
9488 return NULL;
9489 }
9490
9491
9492 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9493 PyObject *resultobj;
9494 wxDC *arg1 = (wxDC *) 0 ;
9495 int arg2 ;
9496 int arg3 ;
9497 PyObject * obj0 = 0 ;
9498 char *kwnames[] = {
9499 (char *) "self",(char *) "x",(char *) "y", NULL
9500 };
9501
9502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 (arg1)->CrossHair(arg2,arg3);
9507
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 Py_INCREF(Py_None); resultobj = Py_None;
9512 return resultobj;
9513 fail:
9514 return NULL;
9515 }
9516
9517
9518 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9519 PyObject *resultobj;
9520 wxDC *arg1 = (wxDC *) 0 ;
9521 wxPoint *arg2 = 0 ;
9522 wxPoint temp2 ;
9523 PyObject * obj0 = 0 ;
9524 PyObject * obj1 = 0 ;
9525 char *kwnames[] = {
9526 (char *) "self",(char *) "pt", NULL
9527 };
9528
9529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9531 {
9532 arg2 = &temp2;
9533 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9534 }
9535 {
9536 PyThreadState* __tstate = wxPyBeginAllowThreads();
9537 (arg1)->CrossHair((wxPoint const &)*arg2);
9538
9539 wxPyEndAllowThreads(__tstate);
9540 if (PyErr_Occurred()) SWIG_fail;
9541 }
9542 Py_INCREF(Py_None); resultobj = Py_None;
9543 return resultobj;
9544 fail:
9545 return NULL;
9546 }
9547
9548
9549 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9550 PyObject *resultobj;
9551 wxDC *arg1 = (wxDC *) 0 ;
9552 int arg2 ;
9553 int arg3 ;
9554 int arg4 ;
9555 int arg5 ;
9556 int arg6 ;
9557 int arg7 ;
9558 PyObject * obj0 = 0 ;
9559 char *kwnames[] = {
9560 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9561 };
9562
9563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9565 {
9566 PyThreadState* __tstate = wxPyBeginAllowThreads();
9567 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9568
9569 wxPyEndAllowThreads(__tstate);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 }
9572 Py_INCREF(Py_None); resultobj = Py_None;
9573 return resultobj;
9574 fail:
9575 return NULL;
9576 }
9577
9578
9579 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9580 PyObject *resultobj;
9581 wxDC *arg1 = (wxDC *) 0 ;
9582 wxPoint *arg2 = 0 ;
9583 wxPoint *arg3 = 0 ;
9584 wxPoint *arg4 = 0 ;
9585 wxPoint temp2 ;
9586 wxPoint temp3 ;
9587 wxPoint temp4 ;
9588 PyObject * obj0 = 0 ;
9589 PyObject * obj1 = 0 ;
9590 PyObject * obj2 = 0 ;
9591 PyObject * obj3 = 0 ;
9592 char *kwnames[] = {
9593 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9594 };
9595
9596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9598 {
9599 arg2 = &temp2;
9600 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9601 }
9602 {
9603 arg3 = &temp3;
9604 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9605 }
9606 {
9607 arg4 = &temp4;
9608 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9609 }
9610 {
9611 PyThreadState* __tstate = wxPyBeginAllowThreads();
9612 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9613
9614 wxPyEndAllowThreads(__tstate);
9615 if (PyErr_Occurred()) SWIG_fail;
9616 }
9617 Py_INCREF(Py_None); resultobj = Py_None;
9618 return resultobj;
9619 fail:
9620 return NULL;
9621 }
9622
9623
9624 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9625 PyObject *resultobj;
9626 wxDC *arg1 = (wxDC *) 0 ;
9627 int arg2 ;
9628 int arg3 ;
9629 int arg4 ;
9630 int arg5 ;
9631 PyObject * obj0 = 0 ;
9632 char *kwnames[] = {
9633 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9634 };
9635
9636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9638 {
9639 PyThreadState* __tstate = wxPyBeginAllowThreads();
9640 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
9641
9642 wxPyEndAllowThreads(__tstate);
9643 if (PyErr_Occurred()) SWIG_fail;
9644 }
9645 Py_INCREF(Py_None); resultobj = Py_None;
9646 return resultobj;
9647 fail:
9648 return NULL;
9649 }
9650
9651
9652 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9653 PyObject *resultobj;
9654 wxDC *arg1 = (wxDC *) 0 ;
9655 wxRect *arg2 = 0 ;
9656 wxRect temp2 ;
9657 PyObject * obj0 = 0 ;
9658 PyObject * obj1 = 0 ;
9659 char *kwnames[] = {
9660 (char *) "self",(char *) "rect", NULL
9661 };
9662
9663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9665 {
9666 arg2 = &temp2;
9667 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9668 }
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 (arg1)->DrawCheckMark((wxRect const &)*arg2);
9672
9673 wxPyEndAllowThreads(__tstate);
9674 if (PyErr_Occurred()) SWIG_fail;
9675 }
9676 Py_INCREF(Py_None); resultobj = Py_None;
9677 return resultobj;
9678 fail:
9679 return NULL;
9680 }
9681
9682
9683 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9684 PyObject *resultobj;
9685 wxDC *arg1 = (wxDC *) 0 ;
9686 int arg2 ;
9687 int arg3 ;
9688 int arg4 ;
9689 int arg5 ;
9690 double arg6 ;
9691 double arg7 ;
9692 PyObject * obj0 = 0 ;
9693 char *kwnames[] = {
9694 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
9695 };
9696
9697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9699 {
9700 PyThreadState* __tstate = wxPyBeginAllowThreads();
9701 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
9702
9703 wxPyEndAllowThreads(__tstate);
9704 if (PyErr_Occurred()) SWIG_fail;
9705 }
9706 Py_INCREF(Py_None); resultobj = Py_None;
9707 return resultobj;
9708 fail:
9709 return NULL;
9710 }
9711
9712
9713 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9714 PyObject *resultobj;
9715 wxDC *arg1 = (wxDC *) 0 ;
9716 wxPoint *arg2 = 0 ;
9717 wxSize *arg3 = 0 ;
9718 double arg4 ;
9719 double arg5 ;
9720 wxPoint temp2 ;
9721 wxSize temp3 ;
9722 PyObject * obj0 = 0 ;
9723 PyObject * obj1 = 0 ;
9724 PyObject * obj2 = 0 ;
9725 char *kwnames[] = {
9726 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
9727 };
9728
9729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
9730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9731 {
9732 arg2 = &temp2;
9733 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9734 }
9735 {
9736 arg3 = &temp3;
9737 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9738 }
9739 {
9740 PyThreadState* __tstate = wxPyBeginAllowThreads();
9741 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
9742
9743 wxPyEndAllowThreads(__tstate);
9744 if (PyErr_Occurred()) SWIG_fail;
9745 }
9746 Py_INCREF(Py_None); resultobj = Py_None;
9747 return resultobj;
9748 fail:
9749 return NULL;
9750 }
9751
9752
9753 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9754 PyObject *resultobj;
9755 wxDC *arg1 = (wxDC *) 0 ;
9756 int arg2 ;
9757 int arg3 ;
9758 PyObject * obj0 = 0 ;
9759 char *kwnames[] = {
9760 (char *) "self",(char *) "x",(char *) "y", NULL
9761 };
9762
9763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9765 {
9766 PyThreadState* __tstate = wxPyBeginAllowThreads();
9767 (arg1)->DrawPoint(arg2,arg3);
9768
9769 wxPyEndAllowThreads(__tstate);
9770 if (PyErr_Occurred()) SWIG_fail;
9771 }
9772 Py_INCREF(Py_None); resultobj = Py_None;
9773 return resultobj;
9774 fail:
9775 return NULL;
9776 }
9777
9778
9779 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9780 PyObject *resultobj;
9781 wxDC *arg1 = (wxDC *) 0 ;
9782 wxPoint *arg2 = 0 ;
9783 wxPoint temp2 ;
9784 PyObject * obj0 = 0 ;
9785 PyObject * obj1 = 0 ;
9786 char *kwnames[] = {
9787 (char *) "self",(char *) "pt", NULL
9788 };
9789
9790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
9791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9792 {
9793 arg2 = &temp2;
9794 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9795 }
9796 {
9797 PyThreadState* __tstate = wxPyBeginAllowThreads();
9798 (arg1)->DrawPoint((wxPoint const &)*arg2);
9799
9800 wxPyEndAllowThreads(__tstate);
9801 if (PyErr_Occurred()) SWIG_fail;
9802 }
9803 Py_INCREF(Py_None); resultobj = Py_None;
9804 return resultobj;
9805 fail:
9806 return NULL;
9807 }
9808
9809
9810 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9811 PyObject *resultobj;
9812 wxDC *arg1 = (wxDC *) 0 ;
9813 int arg2 ;
9814 int arg3 ;
9815 int arg4 ;
9816 int arg5 ;
9817 PyObject * obj0 = 0 ;
9818 char *kwnames[] = {
9819 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9820 };
9821
9822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9824 {
9825 PyThreadState* __tstate = wxPyBeginAllowThreads();
9826 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
9827
9828 wxPyEndAllowThreads(__tstate);
9829 if (PyErr_Occurred()) SWIG_fail;
9830 }
9831 Py_INCREF(Py_None); resultobj = Py_None;
9832 return resultobj;
9833 fail:
9834 return NULL;
9835 }
9836
9837
9838 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9839 PyObject *resultobj;
9840 wxDC *arg1 = (wxDC *) 0 ;
9841 wxPoint *arg2 = 0 ;
9842 wxSize *arg3 = 0 ;
9843 wxPoint temp2 ;
9844 wxSize temp3 ;
9845 PyObject * obj0 = 0 ;
9846 PyObject * obj1 = 0 ;
9847 PyObject * obj2 = 0 ;
9848 char *kwnames[] = {
9849 (char *) "self",(char *) "pt",(char *) "sz", NULL
9850 };
9851
9852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9854 {
9855 arg2 = &temp2;
9856 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9857 }
9858 {
9859 arg3 = &temp3;
9860 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9861 }
9862 {
9863 PyThreadState* __tstate = wxPyBeginAllowThreads();
9864 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
9865
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 Py_INCREF(Py_None); resultobj = Py_None;
9870 return resultobj;
9871 fail:
9872 return NULL;
9873 }
9874
9875
9876 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj;
9878 wxDC *arg1 = (wxDC *) 0 ;
9879 wxRect *arg2 = 0 ;
9880 wxRect temp2 ;
9881 PyObject * obj0 = 0 ;
9882 PyObject * obj1 = 0 ;
9883 char *kwnames[] = {
9884 (char *) "self",(char *) "rect", NULL
9885 };
9886
9887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
9888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9889 {
9890 arg2 = &temp2;
9891 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9892 }
9893 {
9894 PyThreadState* __tstate = wxPyBeginAllowThreads();
9895 (arg1)->DrawRectangle((wxRect const &)*arg2);
9896
9897 wxPyEndAllowThreads(__tstate);
9898 if (PyErr_Occurred()) SWIG_fail;
9899 }
9900 Py_INCREF(Py_None); resultobj = Py_None;
9901 return resultobj;
9902 fail:
9903 return NULL;
9904 }
9905
9906
9907 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj;
9909 wxDC *arg1 = (wxDC *) 0 ;
9910 int arg2 ;
9911 int arg3 ;
9912 int arg4 ;
9913 int arg5 ;
9914 double arg6 ;
9915 PyObject * obj0 = 0 ;
9916 char *kwnames[] = {
9917 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
9918 };
9919
9920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
9921 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9922 {
9923 PyThreadState* __tstate = wxPyBeginAllowThreads();
9924 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
9925
9926 wxPyEndAllowThreads(__tstate);
9927 if (PyErr_Occurred()) SWIG_fail;
9928 }
9929 Py_INCREF(Py_None); resultobj = Py_None;
9930 return resultobj;
9931 fail:
9932 return NULL;
9933 }
9934
9935
9936 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9937 PyObject *resultobj;
9938 wxDC *arg1 = (wxDC *) 0 ;
9939 wxPoint *arg2 = 0 ;
9940 wxSize *arg3 = 0 ;
9941 double arg4 ;
9942 wxPoint temp2 ;
9943 wxSize temp3 ;
9944 PyObject * obj0 = 0 ;
9945 PyObject * obj1 = 0 ;
9946 PyObject * obj2 = 0 ;
9947 char *kwnames[] = {
9948 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
9949 };
9950
9951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9953 {
9954 arg2 = &temp2;
9955 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9956 }
9957 {
9958 arg3 = &temp3;
9959 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9960 }
9961 {
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
9963 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
9964
9965 wxPyEndAllowThreads(__tstate);
9966 if (PyErr_Occurred()) SWIG_fail;
9967 }
9968 Py_INCREF(Py_None); resultobj = Py_None;
9969 return resultobj;
9970 fail:
9971 return NULL;
9972 }
9973
9974
9975 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9976 PyObject *resultobj;
9977 wxDC *arg1 = (wxDC *) 0 ;
9978 wxRect *arg2 = 0 ;
9979 double arg3 ;
9980 wxRect temp2 ;
9981 PyObject * obj0 = 0 ;
9982 PyObject * obj1 = 0 ;
9983 char *kwnames[] = {
9984 (char *) "self",(char *) "r",(char *) "radius", NULL
9985 };
9986
9987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
9988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9989 {
9990 arg2 = &temp2;
9991 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9992 }
9993 {
9994 PyThreadState* __tstate = wxPyBeginAllowThreads();
9995 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
9996
9997 wxPyEndAllowThreads(__tstate);
9998 if (PyErr_Occurred()) SWIG_fail;
9999 }
10000 Py_INCREF(Py_None); resultobj = Py_None;
10001 return resultobj;
10002 fail:
10003 return NULL;
10004 }
10005
10006
10007 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10008 PyObject *resultobj;
10009 wxDC *arg1 = (wxDC *) 0 ;
10010 int arg2 ;
10011 int arg3 ;
10012 int arg4 ;
10013 PyObject * obj0 = 0 ;
10014 char *kwnames[] = {
10015 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
10016 };
10017
10018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
10019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10020 {
10021 PyThreadState* __tstate = wxPyBeginAllowThreads();
10022 (arg1)->DrawCircle(arg2,arg3,arg4);
10023
10024 wxPyEndAllowThreads(__tstate);
10025 if (PyErr_Occurred()) SWIG_fail;
10026 }
10027 Py_INCREF(Py_None); resultobj = Py_None;
10028 return resultobj;
10029 fail:
10030 return NULL;
10031 }
10032
10033
10034 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
10035 PyObject *resultobj;
10036 wxDC *arg1 = (wxDC *) 0 ;
10037 wxPoint *arg2 = 0 ;
10038 int arg3 ;
10039 wxPoint temp2 ;
10040 PyObject * obj0 = 0 ;
10041 PyObject * obj1 = 0 ;
10042 char *kwnames[] = {
10043 (char *) "self",(char *) "pt",(char *) "radius", NULL
10044 };
10045
10046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
10047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10048 {
10049 arg2 = &temp2;
10050 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10051 }
10052 {
10053 PyThreadState* __tstate = wxPyBeginAllowThreads();
10054 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
10055
10056 wxPyEndAllowThreads(__tstate);
10057 if (PyErr_Occurred()) SWIG_fail;
10058 }
10059 Py_INCREF(Py_None); resultobj = Py_None;
10060 return resultobj;
10061 fail:
10062 return NULL;
10063 }
10064
10065
10066 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10067 PyObject *resultobj;
10068 wxDC *arg1 = (wxDC *) 0 ;
10069 int arg2 ;
10070 int arg3 ;
10071 int arg4 ;
10072 int arg5 ;
10073 PyObject * obj0 = 0 ;
10074 char *kwnames[] = {
10075 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10076 };
10077
10078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10080 {
10081 PyThreadState* __tstate = wxPyBeginAllowThreads();
10082 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
10083
10084 wxPyEndAllowThreads(__tstate);
10085 if (PyErr_Occurred()) SWIG_fail;
10086 }
10087 Py_INCREF(Py_None); resultobj = Py_None;
10088 return resultobj;
10089 fail:
10090 return NULL;
10091 }
10092
10093
10094 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
10095 PyObject *resultobj;
10096 wxDC *arg1 = (wxDC *) 0 ;
10097 wxPoint *arg2 = 0 ;
10098 wxSize *arg3 = 0 ;
10099 wxPoint temp2 ;
10100 wxSize temp3 ;
10101 PyObject * obj0 = 0 ;
10102 PyObject * obj1 = 0 ;
10103 PyObject * obj2 = 0 ;
10104 char *kwnames[] = {
10105 (char *) "self",(char *) "pt",(char *) "sz", NULL
10106 };
10107
10108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
10109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10110 {
10111 arg2 = &temp2;
10112 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10113 }
10114 {
10115 arg3 = &temp3;
10116 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10117 }
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
10121
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
10125 Py_INCREF(Py_None); resultobj = Py_None;
10126 return resultobj;
10127 fail:
10128 return NULL;
10129 }
10130
10131
10132 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10133 PyObject *resultobj;
10134 wxDC *arg1 = (wxDC *) 0 ;
10135 wxRect *arg2 = 0 ;
10136 wxRect temp2 ;
10137 PyObject * obj0 = 0 ;
10138 PyObject * obj1 = 0 ;
10139 char *kwnames[] = {
10140 (char *) "self",(char *) "rect", NULL
10141 };
10142
10143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
10144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10145 {
10146 arg2 = &temp2;
10147 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10148 }
10149 {
10150 PyThreadState* __tstate = wxPyBeginAllowThreads();
10151 (arg1)->DrawEllipse((wxRect const &)*arg2);
10152
10153 wxPyEndAllowThreads(__tstate);
10154 if (PyErr_Occurred()) SWIG_fail;
10155 }
10156 Py_INCREF(Py_None); resultobj = Py_None;
10157 return resultobj;
10158 fail:
10159 return NULL;
10160 }
10161
10162
10163 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10164 PyObject *resultobj;
10165 wxDC *arg1 = (wxDC *) 0 ;
10166 wxIcon *arg2 = 0 ;
10167 int arg3 ;
10168 int arg4 ;
10169 PyObject * obj0 = 0 ;
10170 PyObject * obj1 = 0 ;
10171 char *kwnames[] = {
10172 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
10173 };
10174
10175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10177 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10178 if (arg2 == NULL) {
10179 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10180 }
10181 {
10182 PyThreadState* __tstate = wxPyBeginAllowThreads();
10183 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
10184
10185 wxPyEndAllowThreads(__tstate);
10186 if (PyErr_Occurred()) SWIG_fail;
10187 }
10188 Py_INCREF(Py_None); resultobj = Py_None;
10189 return resultobj;
10190 fail:
10191 return NULL;
10192 }
10193
10194
10195 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10196 PyObject *resultobj;
10197 wxDC *arg1 = (wxDC *) 0 ;
10198 wxIcon *arg2 = 0 ;
10199 wxPoint *arg3 = 0 ;
10200 wxPoint temp3 ;
10201 PyObject * obj0 = 0 ;
10202 PyObject * obj1 = 0 ;
10203 PyObject * obj2 = 0 ;
10204 char *kwnames[] = {
10205 (char *) "self",(char *) "icon",(char *) "pt", NULL
10206 };
10207
10208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
10209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10210 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10211 if (arg2 == NULL) {
10212 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10213 }
10214 {
10215 arg3 = &temp3;
10216 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10217 }
10218 {
10219 PyThreadState* __tstate = wxPyBeginAllowThreads();
10220 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
10221
10222 wxPyEndAllowThreads(__tstate);
10223 if (PyErr_Occurred()) SWIG_fail;
10224 }
10225 Py_INCREF(Py_None); resultobj = Py_None;
10226 return resultobj;
10227 fail:
10228 return NULL;
10229 }
10230
10231
10232 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10233 PyObject *resultobj;
10234 wxDC *arg1 = (wxDC *) 0 ;
10235 wxBitmap *arg2 = 0 ;
10236 int arg3 ;
10237 int arg4 ;
10238 bool arg5 = (bool) False ;
10239 PyObject * obj0 = 0 ;
10240 PyObject * obj1 = 0 ;
10241 PyObject * obj4 = 0 ;
10242 char *kwnames[] = {
10243 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
10244 };
10245
10246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
10247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10248 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10249 if (arg2 == NULL) {
10250 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10251 }
10252 if (obj4) {
10253 {
10254 arg5 = (bool) SPyObj_AsBool(obj4);
10255 if (PyErr_Occurred()) SWIG_fail;
10256 }
10257 }
10258 {
10259 PyThreadState* __tstate = wxPyBeginAllowThreads();
10260 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
10261
10262 wxPyEndAllowThreads(__tstate);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 }
10265 Py_INCREF(Py_None); resultobj = Py_None;
10266 return resultobj;
10267 fail:
10268 return NULL;
10269 }
10270
10271
10272 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10273 PyObject *resultobj;
10274 wxDC *arg1 = (wxDC *) 0 ;
10275 wxBitmap *arg2 = 0 ;
10276 wxPoint *arg3 = 0 ;
10277 bool arg4 = (bool) False ;
10278 wxPoint temp3 ;
10279 PyObject * obj0 = 0 ;
10280 PyObject * obj1 = 0 ;
10281 PyObject * obj2 = 0 ;
10282 PyObject * obj3 = 0 ;
10283 char *kwnames[] = {
10284 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
10285 };
10286
10287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10289 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10290 if (arg2 == NULL) {
10291 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10292 }
10293 {
10294 arg3 = &temp3;
10295 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10296 }
10297 if (obj3) {
10298 {
10299 arg4 = (bool) SPyObj_AsBool(obj3);
10300 if (PyErr_Occurred()) SWIG_fail;
10301 }
10302 }
10303 {
10304 PyThreadState* __tstate = wxPyBeginAllowThreads();
10305 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
10306
10307 wxPyEndAllowThreads(__tstate);
10308 if (PyErr_Occurred()) SWIG_fail;
10309 }
10310 Py_INCREF(Py_None); resultobj = Py_None;
10311 return resultobj;
10312 fail:
10313 return NULL;
10314 }
10315
10316
10317 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10318 PyObject *resultobj;
10319 wxDC *arg1 = (wxDC *) 0 ;
10320 wxString *arg2 = 0 ;
10321 int arg3 ;
10322 int arg4 ;
10323 bool temp2 = False ;
10324 PyObject * obj0 = 0 ;
10325 PyObject * obj1 = 0 ;
10326 char *kwnames[] = {
10327 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10328 };
10329
10330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10332 {
10333 arg2 = wxString_in_helper(obj1);
10334 if (arg2 == NULL) SWIG_fail;
10335 temp2 = True;
10336 }
10337 {
10338 PyThreadState* __tstate = wxPyBeginAllowThreads();
10339 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10340
10341 wxPyEndAllowThreads(__tstate);
10342 if (PyErr_Occurred()) SWIG_fail;
10343 }
10344 Py_INCREF(Py_None); resultobj = Py_None;
10345 {
10346 if (temp2)
10347 delete arg2;
10348 }
10349 return resultobj;
10350 fail:
10351 {
10352 if (temp2)
10353 delete arg2;
10354 }
10355 return NULL;
10356 }
10357
10358
10359 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10360 PyObject *resultobj;
10361 wxDC *arg1 = (wxDC *) 0 ;
10362 wxString *arg2 = 0 ;
10363 wxPoint *arg3 = 0 ;
10364 bool temp2 = False ;
10365 wxPoint temp3 ;
10366 PyObject * obj0 = 0 ;
10367 PyObject * obj1 = 0 ;
10368 PyObject * obj2 = 0 ;
10369 char *kwnames[] = {
10370 (char *) "self",(char *) "text",(char *) "pt", NULL
10371 };
10372
10373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10375 {
10376 arg2 = wxString_in_helper(obj1);
10377 if (arg2 == NULL) SWIG_fail;
10378 temp2 = True;
10379 }
10380 {
10381 arg3 = &temp3;
10382 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10383 }
10384 {
10385 PyThreadState* __tstate = wxPyBeginAllowThreads();
10386 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10387
10388 wxPyEndAllowThreads(__tstate);
10389 if (PyErr_Occurred()) SWIG_fail;
10390 }
10391 Py_INCREF(Py_None); resultobj = Py_None;
10392 {
10393 if (temp2)
10394 delete arg2;
10395 }
10396 return resultobj;
10397 fail:
10398 {
10399 if (temp2)
10400 delete arg2;
10401 }
10402 return NULL;
10403 }
10404
10405
10406 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10407 PyObject *resultobj;
10408 wxDC *arg1 = (wxDC *) 0 ;
10409 wxString *arg2 = 0 ;
10410 int arg3 ;
10411 int arg4 ;
10412 double arg5 ;
10413 bool temp2 = False ;
10414 PyObject * obj0 = 0 ;
10415 PyObject * obj1 = 0 ;
10416 char *kwnames[] = {
10417 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10418 };
10419
10420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10422 {
10423 arg2 = wxString_in_helper(obj1);
10424 if (arg2 == NULL) SWIG_fail;
10425 temp2 = True;
10426 }
10427 {
10428 PyThreadState* __tstate = wxPyBeginAllowThreads();
10429 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10430
10431 wxPyEndAllowThreads(__tstate);
10432 if (PyErr_Occurred()) SWIG_fail;
10433 }
10434 Py_INCREF(Py_None); resultobj = Py_None;
10435 {
10436 if (temp2)
10437 delete arg2;
10438 }
10439 return resultobj;
10440 fail:
10441 {
10442 if (temp2)
10443 delete arg2;
10444 }
10445 return NULL;
10446 }
10447
10448
10449 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10450 PyObject *resultobj;
10451 wxDC *arg1 = (wxDC *) 0 ;
10452 wxString *arg2 = 0 ;
10453 wxPoint *arg3 = 0 ;
10454 double arg4 ;
10455 bool temp2 = False ;
10456 wxPoint temp3 ;
10457 PyObject * obj0 = 0 ;
10458 PyObject * obj1 = 0 ;
10459 PyObject * obj2 = 0 ;
10460 char *kwnames[] = {
10461 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10462 };
10463
10464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10466 {
10467 arg2 = wxString_in_helper(obj1);
10468 if (arg2 == NULL) SWIG_fail;
10469 temp2 = True;
10470 }
10471 {
10472 arg3 = &temp3;
10473 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10474 }
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10478
10479 wxPyEndAllowThreads(__tstate);
10480 if (PyErr_Occurred()) SWIG_fail;
10481 }
10482 Py_INCREF(Py_None); resultobj = Py_None;
10483 {
10484 if (temp2)
10485 delete arg2;
10486 }
10487 return resultobj;
10488 fail:
10489 {
10490 if (temp2)
10491 delete arg2;
10492 }
10493 return NULL;
10494 }
10495
10496
10497 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10498 PyObject *resultobj;
10499 wxDC *arg1 = (wxDC *) 0 ;
10500 int arg2 ;
10501 int arg3 ;
10502 int arg4 ;
10503 int arg5 ;
10504 wxDC *arg6 = (wxDC *) 0 ;
10505 int arg7 ;
10506 int arg8 ;
10507 int arg9 = (int) wxCOPY ;
10508 bool arg10 = (bool) False ;
10509 int arg11 = (int) -1 ;
10510 int arg12 = (int) -1 ;
10511 bool result;
10512 PyObject * obj0 = 0 ;
10513 PyObject * obj5 = 0 ;
10514 PyObject * obj9 = 0 ;
10515 char *kwnames[] = {
10516 (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
10517 };
10518
10519 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;
10520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10521 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10522 if (obj9) {
10523 {
10524 arg10 = (bool) SPyObj_AsBool(obj9);
10525 if (PyErr_Occurred()) SWIG_fail;
10526 }
10527 }
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10531
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = PyInt_FromLong((long)result);
10536 return resultobj;
10537 fail:
10538 return NULL;
10539 }
10540
10541
10542 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10543 PyObject *resultobj;
10544 wxDC *arg1 = (wxDC *) 0 ;
10545 wxPoint *arg2 = 0 ;
10546 wxSize *arg3 = 0 ;
10547 wxDC *arg4 = (wxDC *) 0 ;
10548 wxPoint *arg5 = 0 ;
10549 int arg6 = (int) wxCOPY ;
10550 bool arg7 = (bool) False ;
10551 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10552 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10553 bool result;
10554 wxPoint temp2 ;
10555 wxSize temp3 ;
10556 wxPoint temp5 ;
10557 wxPoint temp8 ;
10558 PyObject * obj0 = 0 ;
10559 PyObject * obj1 = 0 ;
10560 PyObject * obj2 = 0 ;
10561 PyObject * obj3 = 0 ;
10562 PyObject * obj4 = 0 ;
10563 PyObject * obj6 = 0 ;
10564 PyObject * obj7 = 0 ;
10565 char *kwnames[] = {
10566 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10567 };
10568
10569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10571 {
10572 arg2 = &temp2;
10573 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10574 }
10575 {
10576 arg3 = &temp3;
10577 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10578 }
10579 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10580 {
10581 arg5 = &temp5;
10582 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10583 }
10584 if (obj6) {
10585 {
10586 arg7 = (bool) SPyObj_AsBool(obj6);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 }
10589 }
10590 if (obj7) {
10591 {
10592 arg8 = &temp8;
10593 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10594 }
10595 }
10596 {
10597 PyThreadState* __tstate = wxPyBeginAllowThreads();
10598 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10599
10600 wxPyEndAllowThreads(__tstate);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 }
10603 resultobj = PyInt_FromLong((long)result);
10604 return resultobj;
10605 fail:
10606 return NULL;
10607 }
10608
10609
10610 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10611 PyObject *resultobj;
10612 wxDC *arg1 = (wxDC *) 0 ;
10613 int arg2 ;
10614 wxPoint *arg3 = (wxPoint *) 0 ;
10615 int arg4 = (int) 0 ;
10616 int arg5 = (int) 0 ;
10617 PyObject * obj0 = 0 ;
10618 PyObject * obj1 = 0 ;
10619 char *kwnames[] = {
10620 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10621 };
10622
10623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10625 {
10626 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10627 if (arg3 == NULL) SWIG_fail;
10628 }
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10632
10633 wxPyEndAllowThreads(__tstate);
10634 if (PyErr_Occurred()) SWIG_fail;
10635 }
10636 Py_INCREF(Py_None); resultobj = Py_None;
10637 {
10638 if (arg3) delete [] arg3;
10639 }
10640 return resultobj;
10641 fail:
10642 {
10643 if (arg3) delete [] arg3;
10644 }
10645 return NULL;
10646 }
10647
10648
10649 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10650 PyObject *resultobj;
10651 wxDC *arg1 = (wxDC *) 0 ;
10652 int arg2 ;
10653 wxPoint *arg3 = (wxPoint *) 0 ;
10654 int arg4 = (int) 0 ;
10655 int arg5 = (int) 0 ;
10656 int arg6 = (int) wxODDEVEN_RULE ;
10657 PyObject * obj0 = 0 ;
10658 PyObject * obj1 = 0 ;
10659 char *kwnames[] = {
10660 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10661 };
10662
10663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10665 {
10666 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10667 if (arg3 == NULL) SWIG_fail;
10668 }
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10672
10673 wxPyEndAllowThreads(__tstate);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 }
10676 Py_INCREF(Py_None); resultobj = Py_None;
10677 {
10678 if (arg3) delete [] arg3;
10679 }
10680 return resultobj;
10681 fail:
10682 {
10683 if (arg3) delete [] arg3;
10684 }
10685 return NULL;
10686 }
10687
10688
10689 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10690 PyObject *resultobj;
10691 wxDC *arg1 = (wxDC *) 0 ;
10692 wxString *arg2 = 0 ;
10693 wxRect *arg3 = 0 ;
10694 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10695 int arg5 = (int) -1 ;
10696 bool temp2 = False ;
10697 wxRect temp3 ;
10698 PyObject * obj0 = 0 ;
10699 PyObject * obj1 = 0 ;
10700 PyObject * obj2 = 0 ;
10701 char *kwnames[] = {
10702 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10703 };
10704
10705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10707 {
10708 arg2 = wxString_in_helper(obj1);
10709 if (arg2 == NULL) SWIG_fail;
10710 temp2 = True;
10711 }
10712 {
10713 arg3 = &temp3;
10714 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
10715 }
10716 {
10717 PyThreadState* __tstate = wxPyBeginAllowThreads();
10718 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
10719
10720 wxPyEndAllowThreads(__tstate);
10721 if (PyErr_Occurred()) SWIG_fail;
10722 }
10723 Py_INCREF(Py_None); resultobj = Py_None;
10724 {
10725 if (temp2)
10726 delete arg2;
10727 }
10728 return resultobj;
10729 fail:
10730 {
10731 if (temp2)
10732 delete arg2;
10733 }
10734 return NULL;
10735 }
10736
10737
10738 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10739 PyObject *resultobj;
10740 wxDC *arg1 = (wxDC *) 0 ;
10741 wxString *arg2 = 0 ;
10742 wxBitmap *arg3 = 0 ;
10743 wxRect *arg4 = 0 ;
10744 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10745 int arg6 = (int) -1 ;
10746 wxRect result;
10747 bool temp2 = False ;
10748 wxRect temp4 ;
10749 PyObject * obj0 = 0 ;
10750 PyObject * obj1 = 0 ;
10751 PyObject * obj2 = 0 ;
10752 PyObject * obj3 = 0 ;
10753 char *kwnames[] = {
10754 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10755 };
10756
10757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
10758 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10759 {
10760 arg2 = wxString_in_helper(obj1);
10761 if (arg2 == NULL) SWIG_fail;
10762 temp2 = True;
10763 }
10764 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10765 if (arg3 == NULL) {
10766 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10767 }
10768 {
10769 arg4 = &temp4;
10770 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
10771 }
10772 {
10773 PyThreadState* __tstate = wxPyBeginAllowThreads();
10774 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
10775
10776 wxPyEndAllowThreads(__tstate);
10777 if (PyErr_Occurred()) SWIG_fail;
10778 }
10779 {
10780 wxRect * resultptr;
10781 resultptr = new wxRect((wxRect &) result);
10782 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
10783 }
10784 {
10785 if (temp2)
10786 delete arg2;
10787 }
10788 return resultobj;
10789 fail:
10790 {
10791 if (temp2)
10792 delete arg2;
10793 }
10794 return NULL;
10795 }
10796
10797
10798 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
10799 PyObject *resultobj;
10800 wxDC *arg1 = (wxDC *) 0 ;
10801 int arg2 ;
10802 wxPoint *arg3 = (wxPoint *) 0 ;
10803 PyObject * obj0 = 0 ;
10804 PyObject * obj1 = 0 ;
10805 char *kwnames[] = {
10806 (char *) "self",(char *) "points", NULL
10807 };
10808
10809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
10810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10811 {
10812 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10813 if (arg3 == NULL) SWIG_fail;
10814 }
10815 {
10816 PyThreadState* __tstate = wxPyBeginAllowThreads();
10817 (arg1)->DrawSpline(arg2,arg3);
10818
10819 wxPyEndAllowThreads(__tstate);
10820 if (PyErr_Occurred()) SWIG_fail;
10821 }
10822 Py_INCREF(Py_None); resultobj = Py_None;
10823 {
10824 if (arg3) delete [] arg3;
10825 }
10826 return resultobj;
10827 fail:
10828 {
10829 if (arg3) delete [] arg3;
10830 }
10831 return NULL;
10832 }
10833
10834
10835 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10836 PyObject *resultobj;
10837 wxDC *arg1 = (wxDC *) 0 ;
10838 PyObject * obj0 = 0 ;
10839 char *kwnames[] = {
10840 (char *) "self", NULL
10841 };
10842
10843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
10844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10845 {
10846 PyThreadState* __tstate = wxPyBeginAllowThreads();
10847 (arg1)->Clear();
10848
10849 wxPyEndAllowThreads(__tstate);
10850 if (PyErr_Occurred()) SWIG_fail;
10851 }
10852 Py_INCREF(Py_None); resultobj = Py_None;
10853 return resultobj;
10854 fail:
10855 return NULL;
10856 }
10857
10858
10859 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10860 PyObject *resultobj;
10861 wxDC *arg1 = (wxDC *) 0 ;
10862 wxString *arg2 = 0 ;
10863 bool result;
10864 bool temp2 = False ;
10865 PyObject * obj0 = 0 ;
10866 PyObject * obj1 = 0 ;
10867 char *kwnames[] = {
10868 (char *) "self",(char *) "message", NULL
10869 };
10870
10871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
10872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10873 {
10874 arg2 = wxString_in_helper(obj1);
10875 if (arg2 == NULL) SWIG_fail;
10876 temp2 = True;
10877 }
10878 {
10879 PyThreadState* __tstate = wxPyBeginAllowThreads();
10880 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
10881
10882 wxPyEndAllowThreads(__tstate);
10883 if (PyErr_Occurred()) SWIG_fail;
10884 }
10885 resultobj = PyInt_FromLong((long)result);
10886 {
10887 if (temp2)
10888 delete arg2;
10889 }
10890 return resultobj;
10891 fail:
10892 {
10893 if (temp2)
10894 delete arg2;
10895 }
10896 return NULL;
10897 }
10898
10899
10900 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10901 PyObject *resultobj;
10902 wxDC *arg1 = (wxDC *) 0 ;
10903 PyObject * obj0 = 0 ;
10904 char *kwnames[] = {
10905 (char *) "self", NULL
10906 };
10907
10908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
10909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10910 {
10911 PyThreadState* __tstate = wxPyBeginAllowThreads();
10912 (arg1)->EndDoc();
10913
10914 wxPyEndAllowThreads(__tstate);
10915 if (PyErr_Occurred()) SWIG_fail;
10916 }
10917 Py_INCREF(Py_None); resultobj = Py_None;
10918 return resultobj;
10919 fail:
10920 return NULL;
10921 }
10922
10923
10924 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10925 PyObject *resultobj;
10926 wxDC *arg1 = (wxDC *) 0 ;
10927 PyObject * obj0 = 0 ;
10928 char *kwnames[] = {
10929 (char *) "self", NULL
10930 };
10931
10932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
10933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10934 {
10935 PyThreadState* __tstate = wxPyBeginAllowThreads();
10936 (arg1)->StartPage();
10937
10938 wxPyEndAllowThreads(__tstate);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 Py_INCREF(Py_None); resultobj = Py_None;
10942 return resultobj;
10943 fail:
10944 return NULL;
10945 }
10946
10947
10948 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10949 PyObject *resultobj;
10950 wxDC *arg1 = (wxDC *) 0 ;
10951 PyObject * obj0 = 0 ;
10952 char *kwnames[] = {
10953 (char *) "self", NULL
10954 };
10955
10956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
10957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 (arg1)->EndPage();
10961
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 Py_INCREF(Py_None); resultobj = Py_None;
10966 return resultobj;
10967 fail:
10968 return NULL;
10969 }
10970
10971
10972 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10973 PyObject *resultobj;
10974 wxDC *arg1 = (wxDC *) 0 ;
10975 wxFont *arg2 = 0 ;
10976 PyObject * obj0 = 0 ;
10977 PyObject * obj1 = 0 ;
10978 char *kwnames[] = {
10979 (char *) "self",(char *) "font", NULL
10980 };
10981
10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
10983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10984 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10985 if (arg2 == NULL) {
10986 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10987 }
10988 {
10989 PyThreadState* __tstate = wxPyBeginAllowThreads();
10990 (arg1)->SetFont((wxFont const &)*arg2);
10991
10992 wxPyEndAllowThreads(__tstate);
10993 if (PyErr_Occurred()) SWIG_fail;
10994 }
10995 Py_INCREF(Py_None); resultobj = Py_None;
10996 return resultobj;
10997 fail:
10998 return NULL;
10999 }
11000
11001
11002 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
11003 PyObject *resultobj;
11004 wxDC *arg1 = (wxDC *) 0 ;
11005 wxPen *arg2 = 0 ;
11006 PyObject * obj0 = 0 ;
11007 PyObject * obj1 = 0 ;
11008 char *kwnames[] = {
11009 (char *) "self",(char *) "pen", NULL
11010 };
11011
11012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
11013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11014 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11015 if (arg2 == NULL) {
11016 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11017 }
11018 {
11019 PyThreadState* __tstate = wxPyBeginAllowThreads();
11020 (arg1)->SetPen((wxPen const &)*arg2);
11021
11022 wxPyEndAllowThreads(__tstate);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 }
11025 Py_INCREF(Py_None); resultobj = Py_None;
11026 return resultobj;
11027 fail:
11028 return NULL;
11029 }
11030
11031
11032 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11033 PyObject *resultobj;
11034 wxDC *arg1 = (wxDC *) 0 ;
11035 wxBrush *arg2 = 0 ;
11036 PyObject * obj0 = 0 ;
11037 PyObject * obj1 = 0 ;
11038 char *kwnames[] = {
11039 (char *) "self",(char *) "brush", NULL
11040 };
11041
11042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
11043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11044 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11045 if (arg2 == NULL) {
11046 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11047 }
11048 {
11049 PyThreadState* __tstate = wxPyBeginAllowThreads();
11050 (arg1)->SetBrush((wxBrush const &)*arg2);
11051
11052 wxPyEndAllowThreads(__tstate);
11053 if (PyErr_Occurred()) SWIG_fail;
11054 }
11055 Py_INCREF(Py_None); resultobj = Py_None;
11056 return resultobj;
11057 fail:
11058 return NULL;
11059 }
11060
11061
11062 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11063 PyObject *resultobj;
11064 wxDC *arg1 = (wxDC *) 0 ;
11065 wxBrush *arg2 = 0 ;
11066 PyObject * obj0 = 0 ;
11067 PyObject * obj1 = 0 ;
11068 char *kwnames[] = {
11069 (char *) "self",(char *) "brush", NULL
11070 };
11071
11072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
11073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11074 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11075 if (arg2 == NULL) {
11076 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11077 }
11078 {
11079 PyThreadState* __tstate = wxPyBeginAllowThreads();
11080 (arg1)->SetBackground((wxBrush const &)*arg2);
11081
11082 wxPyEndAllowThreads(__tstate);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 }
11085 Py_INCREF(Py_None); resultobj = Py_None;
11086 return resultobj;
11087 fail:
11088 return NULL;
11089 }
11090
11091
11092 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11093 PyObject *resultobj;
11094 wxDC *arg1 = (wxDC *) 0 ;
11095 int arg2 ;
11096 PyObject * obj0 = 0 ;
11097 char *kwnames[] = {
11098 (char *) "self",(char *) "mode", NULL
11099 };
11100
11101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
11102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11103 {
11104 PyThreadState* __tstate = wxPyBeginAllowThreads();
11105 (arg1)->SetBackgroundMode(arg2);
11106
11107 wxPyEndAllowThreads(__tstate);
11108 if (PyErr_Occurred()) SWIG_fail;
11109 }
11110 Py_INCREF(Py_None); resultobj = Py_None;
11111 return resultobj;
11112 fail:
11113 return NULL;
11114 }
11115
11116
11117 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11118 PyObject *resultobj;
11119 wxDC *arg1 = (wxDC *) 0 ;
11120 wxPalette *arg2 = 0 ;
11121 PyObject * obj0 = 0 ;
11122 PyObject * obj1 = 0 ;
11123 char *kwnames[] = {
11124 (char *) "self",(char *) "palette", NULL
11125 };
11126
11127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
11128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11129 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11130 if (arg2 == NULL) {
11131 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11132 }
11133 {
11134 PyThreadState* __tstate = wxPyBeginAllowThreads();
11135 (arg1)->SetPalette((wxPalette const &)*arg2);
11136
11137 wxPyEndAllowThreads(__tstate);
11138 if (PyErr_Occurred()) SWIG_fail;
11139 }
11140 Py_INCREF(Py_None); resultobj = Py_None;
11141 return resultobj;
11142 fail:
11143 return NULL;
11144 }
11145
11146
11147 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11148 PyObject *resultobj;
11149 wxDC *arg1 = (wxDC *) 0 ;
11150 int arg2 ;
11151 int arg3 ;
11152 int arg4 ;
11153 int arg5 ;
11154 PyObject * obj0 = 0 ;
11155 char *kwnames[] = {
11156 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11157 };
11158
11159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
11160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11161 {
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
11163 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11164
11165 wxPyEndAllowThreads(__tstate);
11166 if (PyErr_Occurred()) SWIG_fail;
11167 }
11168 Py_INCREF(Py_None); resultobj = Py_None;
11169 return resultobj;
11170 fail:
11171 return NULL;
11172 }
11173
11174
11175 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11176 PyObject *resultobj;
11177 wxDC *arg1 = (wxDC *) 0 ;
11178 wxPoint *arg2 = 0 ;
11179 wxSize *arg3 = 0 ;
11180 wxPoint temp2 ;
11181 wxSize temp3 ;
11182 PyObject * obj0 = 0 ;
11183 PyObject * obj1 = 0 ;
11184 PyObject * obj2 = 0 ;
11185 char *kwnames[] = {
11186 (char *) "self",(char *) "pt",(char *) "sz", NULL
11187 };
11188
11189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
11190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11191 {
11192 arg2 = &temp2;
11193 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11194 }
11195 {
11196 arg3 = &temp3;
11197 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11198 }
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
11201 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
11202
11203 wxPyEndAllowThreads(__tstate);
11204 if (PyErr_Occurred()) SWIG_fail;
11205 }
11206 Py_INCREF(Py_None); resultobj = Py_None;
11207 return resultobj;
11208 fail:
11209 return NULL;
11210 }
11211
11212
11213 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11214 PyObject *resultobj;
11215 wxDC *arg1 = (wxDC *) 0 ;
11216 wxRect *arg2 = 0 ;
11217 wxRect temp2 ;
11218 PyObject * obj0 = 0 ;
11219 PyObject * obj1 = 0 ;
11220 char *kwnames[] = {
11221 (char *) "self",(char *) "rect", NULL
11222 };
11223
11224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
11225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11226 {
11227 arg2 = &temp2;
11228 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11229 }
11230 {
11231 PyThreadState* __tstate = wxPyBeginAllowThreads();
11232 (arg1)->SetClippingRegion((wxRect const &)*arg2);
11233
11234 wxPyEndAllowThreads(__tstate);
11235 if (PyErr_Occurred()) SWIG_fail;
11236 }
11237 Py_INCREF(Py_None); resultobj = Py_None;
11238 return resultobj;
11239 fail:
11240 return NULL;
11241 }
11242
11243
11244 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11245 PyObject *resultobj;
11246 wxDC *arg1 = (wxDC *) 0 ;
11247 wxRegion *arg2 = 0 ;
11248 PyObject * obj0 = 0 ;
11249 PyObject * obj1 = 0 ;
11250 char *kwnames[] = {
11251 (char *) "self",(char *) "region", NULL
11252 };
11253
11254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
11255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11256 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11257 if (arg2 == NULL) {
11258 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11259 }
11260 {
11261 PyThreadState* __tstate = wxPyBeginAllowThreads();
11262 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
11263
11264 wxPyEndAllowThreads(__tstate);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 }
11267 Py_INCREF(Py_None); resultobj = Py_None;
11268 return resultobj;
11269 fail:
11270 return NULL;
11271 }
11272
11273
11274 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11275 PyObject *resultobj;
11276 wxDC *arg1 = (wxDC *) 0 ;
11277 PyObject * obj0 = 0 ;
11278 char *kwnames[] = {
11279 (char *) "self", NULL
11280 };
11281
11282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
11283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11284 {
11285 PyThreadState* __tstate = wxPyBeginAllowThreads();
11286 (arg1)->DestroyClippingRegion();
11287
11288 wxPyEndAllowThreads(__tstate);
11289 if (PyErr_Occurred()) SWIG_fail;
11290 }
11291 Py_INCREF(Py_None); resultobj = Py_None;
11292 return resultobj;
11293 fail:
11294 return NULL;
11295 }
11296
11297
11298 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11299 PyObject *resultobj;
11300 wxDC *arg1 = (wxDC *) 0 ;
11301 int *arg2 = (int *) 0 ;
11302 int *arg3 = (int *) 0 ;
11303 int *arg4 = (int *) 0 ;
11304 int *arg5 = (int *) 0 ;
11305 int temp2 ;
11306 int temp3 ;
11307 int temp4 ;
11308 int temp5 ;
11309 PyObject * obj0 = 0 ;
11310 char *kwnames[] = {
11311 (char *) "self", NULL
11312 };
11313
11314 arg2 = &temp2;
11315 arg3 = &temp3;
11316 arg4 = &temp4;
11317 arg5 = &temp5;
11318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
11319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11320 {
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
11322 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
11323
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 Py_INCREF(Py_None); resultobj = Py_None;
11328 {
11329 PyObject *o = PyInt_FromLong((long) (*arg2));
11330 resultobj = t_output_helper(resultobj,o);
11331 }
11332 {
11333 PyObject *o = PyInt_FromLong((long) (*arg3));
11334 resultobj = t_output_helper(resultobj,o);
11335 }
11336 {
11337 PyObject *o = PyInt_FromLong((long) (*arg4));
11338 resultobj = t_output_helper(resultobj,o);
11339 }
11340 {
11341 PyObject *o = PyInt_FromLong((long) (*arg5));
11342 resultobj = t_output_helper(resultobj,o);
11343 }
11344 return resultobj;
11345 fail:
11346 return NULL;
11347 }
11348
11349
11350 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11351 PyObject *resultobj;
11352 wxDC *arg1 = (wxDC *) 0 ;
11353 wxRect result;
11354 PyObject * obj0 = 0 ;
11355 char *kwnames[] = {
11356 (char *) "self", NULL
11357 };
11358
11359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
11360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11361 {
11362 PyThreadState* __tstate = wxPyBeginAllowThreads();
11363 result = wxDC_GetClippingRect(arg1);
11364
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 {
11369 wxRect * resultptr;
11370 resultptr = new wxRect((wxRect &) result);
11371 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11372 }
11373 return resultobj;
11374 fail:
11375 return NULL;
11376 }
11377
11378
11379 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11380 PyObject *resultobj;
11381 wxDC *arg1 = (wxDC *) 0 ;
11382 int result;
11383 PyObject * obj0 = 0 ;
11384 char *kwnames[] = {
11385 (char *) "self", NULL
11386 };
11387
11388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 result = (int)((wxDC const *)arg1)->GetCharHeight();
11393
11394 wxPyEndAllowThreads(__tstate);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 resultobj = PyInt_FromLong((long)result);
11398 return resultobj;
11399 fail:
11400 return NULL;
11401 }
11402
11403
11404 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11405 PyObject *resultobj;
11406 wxDC *arg1 = (wxDC *) 0 ;
11407 int result;
11408 PyObject * obj0 = 0 ;
11409 char *kwnames[] = {
11410 (char *) "self", NULL
11411 };
11412
11413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11415 {
11416 PyThreadState* __tstate = wxPyBeginAllowThreads();
11417 result = (int)((wxDC const *)arg1)->GetCharWidth();
11418
11419 wxPyEndAllowThreads(__tstate);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 }
11422 resultobj = PyInt_FromLong((long)result);
11423 return resultobj;
11424 fail:
11425 return NULL;
11426 }
11427
11428
11429 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11430 PyObject *resultobj;
11431 wxDC *arg1 = (wxDC *) 0 ;
11432 wxString *arg2 = 0 ;
11433 int *arg3 = (int *) 0 ;
11434 int *arg4 = (int *) 0 ;
11435 bool temp2 = False ;
11436 int temp3 ;
11437 int temp4 ;
11438 PyObject * obj0 = 0 ;
11439 PyObject * obj1 = 0 ;
11440 char *kwnames[] = {
11441 (char *) "self",(char *) "string", NULL
11442 };
11443
11444 arg3 = &temp3;
11445 arg4 = &temp4;
11446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11448 {
11449 arg2 = wxString_in_helper(obj1);
11450 if (arg2 == NULL) SWIG_fail;
11451 temp2 = True;
11452 }
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
11455 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11456
11457 wxPyEndAllowThreads(__tstate);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 Py_INCREF(Py_None); resultobj = Py_None;
11461 {
11462 PyObject *o = PyInt_FromLong((long) (*arg3));
11463 resultobj = t_output_helper(resultobj,o);
11464 }
11465 {
11466 PyObject *o = PyInt_FromLong((long) (*arg4));
11467 resultobj = t_output_helper(resultobj,o);
11468 }
11469 {
11470 if (temp2)
11471 delete arg2;
11472 }
11473 return resultobj;
11474 fail:
11475 {
11476 if (temp2)
11477 delete arg2;
11478 }
11479 return NULL;
11480 }
11481
11482
11483 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11484 PyObject *resultobj;
11485 wxDC *arg1 = (wxDC *) 0 ;
11486 wxString *arg2 = 0 ;
11487 int *arg3 = (int *) 0 ;
11488 int *arg4 = (int *) 0 ;
11489 int *arg5 = (int *) 0 ;
11490 int *arg6 = (int *) 0 ;
11491 wxFont *arg7 = (wxFont *) NULL ;
11492 bool temp2 = False ;
11493 int temp3 ;
11494 int temp4 ;
11495 int temp5 ;
11496 int temp6 ;
11497 PyObject * obj0 = 0 ;
11498 PyObject * obj1 = 0 ;
11499 PyObject * obj2 = 0 ;
11500 char *kwnames[] = {
11501 (char *) "self",(char *) "string",(char *) "font", NULL
11502 };
11503
11504 arg3 = &temp3;
11505 arg4 = &temp4;
11506 arg5 = &temp5;
11507 arg6 = &temp6;
11508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11510 {
11511 arg2 = wxString_in_helper(obj1);
11512 if (arg2 == NULL) SWIG_fail;
11513 temp2 = True;
11514 }
11515 if (obj2) {
11516 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11517 }
11518 {
11519 PyThreadState* __tstate = wxPyBeginAllowThreads();
11520 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11521
11522 wxPyEndAllowThreads(__tstate);
11523 if (PyErr_Occurred()) SWIG_fail;
11524 }
11525 Py_INCREF(Py_None); resultobj = Py_None;
11526 {
11527 PyObject *o = PyInt_FromLong((long) (*arg3));
11528 resultobj = t_output_helper(resultobj,o);
11529 }
11530 {
11531 PyObject *o = PyInt_FromLong((long) (*arg4));
11532 resultobj = t_output_helper(resultobj,o);
11533 }
11534 {
11535 PyObject *o = PyInt_FromLong((long) (*arg5));
11536 resultobj = t_output_helper(resultobj,o);
11537 }
11538 {
11539 PyObject *o = PyInt_FromLong((long) (*arg6));
11540 resultobj = t_output_helper(resultobj,o);
11541 }
11542 {
11543 if (temp2)
11544 delete arg2;
11545 }
11546 return resultobj;
11547 fail:
11548 {
11549 if (temp2)
11550 delete arg2;
11551 }
11552 return NULL;
11553 }
11554
11555
11556 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11557 PyObject *resultobj;
11558 wxDC *arg1 = (wxDC *) 0 ;
11559 wxString *arg2 = 0 ;
11560 int *arg3 = (int *) 0 ;
11561 int *arg4 = (int *) 0 ;
11562 int *arg5 = (int *) 0 ;
11563 wxFont *arg6 = (wxFont *) NULL ;
11564 bool temp2 = False ;
11565 int temp3 ;
11566 int temp4 ;
11567 int temp5 ;
11568 PyObject * obj0 = 0 ;
11569 PyObject * obj1 = 0 ;
11570 PyObject * obj2 = 0 ;
11571 char *kwnames[] = {
11572 (char *) "self",(char *) "text",(char *) "font", NULL
11573 };
11574
11575 arg3 = &temp3;
11576 arg4 = &temp4;
11577 arg5 = &temp5;
11578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11580 {
11581 arg2 = wxString_in_helper(obj1);
11582 if (arg2 == NULL) SWIG_fail;
11583 temp2 = True;
11584 }
11585 if (obj2) {
11586 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11587 }
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
11591
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 Py_INCREF(Py_None); resultobj = Py_None;
11596 {
11597 PyObject *o = PyInt_FromLong((long) (*arg3));
11598 resultobj = t_output_helper(resultobj,o);
11599 }
11600 {
11601 PyObject *o = PyInt_FromLong((long) (*arg4));
11602 resultobj = t_output_helper(resultobj,o);
11603 }
11604 {
11605 PyObject *o = PyInt_FromLong((long) (*arg5));
11606 resultobj = t_output_helper(resultobj,o);
11607 }
11608 {
11609 if (temp2)
11610 delete arg2;
11611 }
11612 return resultobj;
11613 fail:
11614 {
11615 if (temp2)
11616 delete arg2;
11617 }
11618 return NULL;
11619 }
11620
11621
11622 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11623 PyObject *resultobj;
11624 wxDC *arg1 = (wxDC *) 0 ;
11625 wxSize result;
11626 PyObject * obj0 = 0 ;
11627 char *kwnames[] = {
11628 (char *) "self", NULL
11629 };
11630
11631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11633 {
11634 PyThreadState* __tstate = wxPyBeginAllowThreads();
11635 result = (arg1)->GetSize();
11636
11637 wxPyEndAllowThreads(__tstate);
11638 if (PyErr_Occurred()) SWIG_fail;
11639 }
11640 {
11641 wxSize * resultptr;
11642 resultptr = new wxSize((wxSize &) result);
11643 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11644 }
11645 return resultobj;
11646 fail:
11647 return NULL;
11648 }
11649
11650
11651 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11652 PyObject *resultobj;
11653 wxDC *arg1 = (wxDC *) 0 ;
11654 int *arg2 = (int *) 0 ;
11655 int *arg3 = (int *) 0 ;
11656 int temp2 ;
11657 int temp3 ;
11658 PyObject * obj0 = 0 ;
11659 char *kwnames[] = {
11660 (char *) "self", NULL
11661 };
11662
11663 arg2 = &temp2;
11664 arg3 = &temp3;
11665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11667 {
11668 PyThreadState* __tstate = wxPyBeginAllowThreads();
11669 (arg1)->GetSize(arg2,arg3);
11670
11671 wxPyEndAllowThreads(__tstate);
11672 if (PyErr_Occurred()) SWIG_fail;
11673 }
11674 Py_INCREF(Py_None); resultobj = Py_None;
11675 {
11676 PyObject *o = PyInt_FromLong((long) (*arg2));
11677 resultobj = t_output_helper(resultobj,o);
11678 }
11679 {
11680 PyObject *o = PyInt_FromLong((long) (*arg3));
11681 resultobj = t_output_helper(resultobj,o);
11682 }
11683 return resultobj;
11684 fail:
11685 return NULL;
11686 }
11687
11688
11689 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
11690 PyObject *resultobj;
11691 wxDC *arg1 = (wxDC *) 0 ;
11692 wxSize result;
11693 PyObject * obj0 = 0 ;
11694 char *kwnames[] = {
11695 (char *) "self", NULL
11696 };
11697
11698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
11699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11700 {
11701 PyThreadState* __tstate = wxPyBeginAllowThreads();
11702 result = ((wxDC const *)arg1)->GetSizeMM();
11703
11704 wxPyEndAllowThreads(__tstate);
11705 if (PyErr_Occurred()) SWIG_fail;
11706 }
11707 {
11708 wxSize * resultptr;
11709 resultptr = new wxSize((wxSize &) result);
11710 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11711 }
11712 return resultobj;
11713 fail:
11714 return NULL;
11715 }
11716
11717
11718 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11719 PyObject *resultobj;
11720 wxDC *arg1 = (wxDC *) 0 ;
11721 int *arg2 = (int *) 0 ;
11722 int *arg3 = (int *) 0 ;
11723 int temp2 ;
11724 int temp3 ;
11725 PyObject * obj0 = 0 ;
11726 char *kwnames[] = {
11727 (char *) "self", NULL
11728 };
11729
11730 arg2 = &temp2;
11731 arg3 = &temp3;
11732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
11733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11734 {
11735 PyThreadState* __tstate = wxPyBeginAllowThreads();
11736 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
11737
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 Py_INCREF(Py_None); resultobj = Py_None;
11742 {
11743 PyObject *o = PyInt_FromLong((long) (*arg2));
11744 resultobj = t_output_helper(resultobj,o);
11745 }
11746 {
11747 PyObject *o = PyInt_FromLong((long) (*arg3));
11748 resultobj = t_output_helper(resultobj,o);
11749 }
11750 return resultobj;
11751 fail:
11752 return NULL;
11753 }
11754
11755
11756 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
11757 PyObject *resultobj;
11758 wxDC *arg1 = (wxDC *) 0 ;
11759 int arg2 ;
11760 int result;
11761 PyObject * obj0 = 0 ;
11762 char *kwnames[] = {
11763 (char *) "self",(char *) "x", NULL
11764 };
11765
11766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
11767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11768 {
11769 PyThreadState* __tstate = wxPyBeginAllowThreads();
11770 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
11771
11772 wxPyEndAllowThreads(__tstate);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 }
11775 resultobj = PyInt_FromLong((long)result);
11776 return resultobj;
11777 fail:
11778 return NULL;
11779 }
11780
11781
11782 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
11783 PyObject *resultobj;
11784 wxDC *arg1 = (wxDC *) 0 ;
11785 int arg2 ;
11786 int result;
11787 PyObject * obj0 = 0 ;
11788 char *kwnames[] = {
11789 (char *) "self",(char *) "y", NULL
11790 };
11791
11792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
11793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11794 {
11795 PyThreadState* __tstate = wxPyBeginAllowThreads();
11796 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
11797
11798 wxPyEndAllowThreads(__tstate);
11799 if (PyErr_Occurred()) SWIG_fail;
11800 }
11801 resultobj = PyInt_FromLong((long)result);
11802 return resultobj;
11803 fail:
11804 return NULL;
11805 }
11806
11807
11808 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11809 PyObject *resultobj;
11810 wxDC *arg1 = (wxDC *) 0 ;
11811 int arg2 ;
11812 int result;
11813 PyObject * obj0 = 0 ;
11814 char *kwnames[] = {
11815 (char *) "self",(char *) "x", NULL
11816 };
11817
11818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
11819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11820 {
11821 PyThreadState* __tstate = wxPyBeginAllowThreads();
11822 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
11823
11824 wxPyEndAllowThreads(__tstate);
11825 if (PyErr_Occurred()) SWIG_fail;
11826 }
11827 resultobj = PyInt_FromLong((long)result);
11828 return resultobj;
11829 fail:
11830 return NULL;
11831 }
11832
11833
11834 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11835 PyObject *resultobj;
11836 wxDC *arg1 = (wxDC *) 0 ;
11837 int arg2 ;
11838 int result;
11839 PyObject * obj0 = 0 ;
11840 char *kwnames[] = {
11841 (char *) "self",(char *) "y", NULL
11842 };
11843
11844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
11845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11846 {
11847 PyThreadState* __tstate = wxPyBeginAllowThreads();
11848 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
11849
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 resultobj = PyInt_FromLong((long)result);
11854 return resultobj;
11855 fail:
11856 return NULL;
11857 }
11858
11859
11860 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
11861 PyObject *resultobj;
11862 wxDC *arg1 = (wxDC *) 0 ;
11863 int arg2 ;
11864 int result;
11865 PyObject * obj0 = 0 ;
11866 char *kwnames[] = {
11867 (char *) "self",(char *) "x", NULL
11868 };
11869
11870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
11871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11872 {
11873 PyThreadState* __tstate = wxPyBeginAllowThreads();
11874 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
11875
11876 wxPyEndAllowThreads(__tstate);
11877 if (PyErr_Occurred()) SWIG_fail;
11878 }
11879 resultobj = PyInt_FromLong((long)result);
11880 return resultobj;
11881 fail:
11882 return NULL;
11883 }
11884
11885
11886 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
11887 PyObject *resultobj;
11888 wxDC *arg1 = (wxDC *) 0 ;
11889 int arg2 ;
11890 int result;
11891 PyObject * obj0 = 0 ;
11892 char *kwnames[] = {
11893 (char *) "self",(char *) "y", NULL
11894 };
11895
11896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
11897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11898 {
11899 PyThreadState* __tstate = wxPyBeginAllowThreads();
11900 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
11901
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 resultobj = PyInt_FromLong((long)result);
11906 return resultobj;
11907 fail:
11908 return NULL;
11909 }
11910
11911
11912 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11913 PyObject *resultobj;
11914 wxDC *arg1 = (wxDC *) 0 ;
11915 int arg2 ;
11916 int result;
11917 PyObject * obj0 = 0 ;
11918 char *kwnames[] = {
11919 (char *) "self",(char *) "x", NULL
11920 };
11921
11922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
11923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11924 {
11925 PyThreadState* __tstate = wxPyBeginAllowThreads();
11926 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
11927
11928 wxPyEndAllowThreads(__tstate);
11929 if (PyErr_Occurred()) SWIG_fail;
11930 }
11931 resultobj = PyInt_FromLong((long)result);
11932 return resultobj;
11933 fail:
11934 return NULL;
11935 }
11936
11937
11938 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11939 PyObject *resultobj;
11940 wxDC *arg1 = (wxDC *) 0 ;
11941 int arg2 ;
11942 int result;
11943 PyObject * obj0 = 0 ;
11944 char *kwnames[] = {
11945 (char *) "self",(char *) "y", NULL
11946 };
11947
11948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail;
11949 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11950 {
11951 PyThreadState* __tstate = wxPyBeginAllowThreads();
11952 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
11953
11954 wxPyEndAllowThreads(__tstate);
11955 if (PyErr_Occurred()) SWIG_fail;
11956 }
11957 resultobj = PyInt_FromLong((long)result);
11958 return resultobj;
11959 fail:
11960 return NULL;
11961 }
11962
11963
11964 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11965 PyObject *resultobj;
11966 wxDC *arg1 = (wxDC *) 0 ;
11967 bool result;
11968 PyObject * obj0 = 0 ;
11969 char *kwnames[] = {
11970 (char *) "self", NULL
11971 };
11972
11973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
11974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
11978
11979 wxPyEndAllowThreads(__tstate);
11980 if (PyErr_Occurred()) SWIG_fail;
11981 }
11982 resultobj = PyInt_FromLong((long)result);
11983 return resultobj;
11984 fail:
11985 return NULL;
11986 }
11987
11988
11989 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11990 PyObject *resultobj;
11991 wxDC *arg1 = (wxDC *) 0 ;
11992 bool result;
11993 PyObject * obj0 = 0 ;
11994 char *kwnames[] = {
11995 (char *) "self", NULL
11996 };
11997
11998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) 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 = (bool)((wxDC const *)arg1)->CanGetTextExtent();
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_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
12015 PyObject *resultobj;
12016 wxDC *arg1 = (wxDC *) 0 ;
12017 int result;
12018 PyObject * obj0 = 0 ;
12019 char *kwnames[] = {
12020 (char *) "self", NULL
12021 };
12022
12023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",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 = (int)((wxDC const *)arg1)->GetDepth();
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_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
12040 PyObject *resultobj;
12041 wxDC *arg1 = (wxDC *) 0 ;
12042 wxSize result;
12043 PyObject * obj0 = 0 ;
12044 char *kwnames[] = {
12045 (char *) "self", NULL
12046 };
12047
12048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",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 = ((wxDC const *)arg1)->GetPPI();
12053
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 {
12058 wxSize * resultptr;
12059 resultptr = new wxSize((wxSize &) result);
12060 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12061 }
12062 return resultobj;
12063 fail:
12064 return NULL;
12065 }
12066
12067
12068 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
12069 PyObject *resultobj;
12070 wxDC *arg1 = (wxDC *) 0 ;
12071 bool result;
12072 PyObject * obj0 = 0 ;
12073 char *kwnames[] = {
12074 (char *) "self", NULL
12075 };
12076
12077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
12078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 result = (bool)((wxDC const *)arg1)->Ok();
12082
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 resultobj = PyInt_FromLong((long)result);
12087 return resultobj;
12088 fail:
12089 return NULL;
12090 }
12091
12092
12093 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj;
12095 wxDC *arg1 = (wxDC *) 0 ;
12096 int result;
12097 PyObject * obj0 = 0 ;
12098 char *kwnames[] = {
12099 (char *) "self", NULL
12100 };
12101
12102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
12103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12104 {
12105 PyThreadState* __tstate = wxPyBeginAllowThreads();
12106 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
12107
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 resultobj = PyInt_FromLong((long)result);
12112 return resultobj;
12113 fail:
12114 return NULL;
12115 }
12116
12117
12118 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12119 PyObject *resultobj;
12120 wxDC *arg1 = (wxDC *) 0 ;
12121 wxBrush *result;
12122 PyObject * obj0 = 0 ;
12123 char *kwnames[] = {
12124 (char *) "self", NULL
12125 };
12126
12127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",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 {
12132 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
12133 result = (wxBrush *) &_result_ref;
12134 }
12135
12136 wxPyEndAllowThreads(__tstate);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
12140 return resultobj;
12141 fail:
12142 return NULL;
12143 }
12144
12145
12146 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12147 PyObject *resultobj;
12148 wxDC *arg1 = (wxDC *) 0 ;
12149 wxBrush *result;
12150 PyObject * obj0 = 0 ;
12151 char *kwnames[] = {
12152 (char *) "self", NULL
12153 };
12154
12155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
12156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12157 {
12158 PyThreadState* __tstate = wxPyBeginAllowThreads();
12159 {
12160 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
12161 result = (wxBrush *) &_result_ref;
12162 }
12163
12164 wxPyEndAllowThreads(__tstate);
12165 if (PyErr_Occurred()) SWIG_fail;
12166 }
12167 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
12168 return resultobj;
12169 fail:
12170 return NULL;
12171 }
12172
12173
12174 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12175 PyObject *resultobj;
12176 wxDC *arg1 = (wxDC *) 0 ;
12177 wxFont *result;
12178 PyObject * obj0 = 0 ;
12179 char *kwnames[] = {
12180 (char *) "self", NULL
12181 };
12182
12183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
12184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12185 {
12186 PyThreadState* __tstate = wxPyBeginAllowThreads();
12187 {
12188 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
12189 result = (wxFont *) &_result_ref;
12190 }
12191
12192 wxPyEndAllowThreads(__tstate);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
12196 return resultobj;
12197 fail:
12198 return NULL;
12199 }
12200
12201
12202 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12203 PyObject *resultobj;
12204 wxDC *arg1 = (wxDC *) 0 ;
12205 wxPen *result;
12206 PyObject * obj0 = 0 ;
12207 char *kwnames[] = {
12208 (char *) "self", NULL
12209 };
12210
12211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
12212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12213 {
12214 PyThreadState* __tstate = wxPyBeginAllowThreads();
12215 {
12216 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
12217 result = (wxPen *) &_result_ref;
12218 }
12219
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
12224 return resultobj;
12225 fail:
12226 return NULL;
12227 }
12228
12229
12230 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj;
12232 wxDC *arg1 = (wxDC *) 0 ;
12233 wxColour *result;
12234 PyObject * obj0 = 0 ;
12235 char *kwnames[] = {
12236 (char *) "self", NULL
12237 };
12238
12239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
12240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 {
12244 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
12245 result = (wxColour *) &_result_ref;
12246 }
12247
12248 wxPyEndAllowThreads(__tstate);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12252 return resultobj;
12253 fail:
12254 return NULL;
12255 }
12256
12257
12258 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12259 PyObject *resultobj;
12260 wxDC *arg1 = (wxDC *) 0 ;
12261 wxColour *result;
12262 PyObject * obj0 = 0 ;
12263 char *kwnames[] = {
12264 (char *) "self", NULL
12265 };
12266
12267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
12268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12269 {
12270 PyThreadState* __tstate = wxPyBeginAllowThreads();
12271 {
12272 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
12273 result = (wxColour *) &_result_ref;
12274 }
12275
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 }
12279 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12280 return resultobj;
12281 fail:
12282 return NULL;
12283 }
12284
12285
12286 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12287 PyObject *resultobj;
12288 wxDC *arg1 = (wxDC *) 0 ;
12289 wxColour *arg2 = 0 ;
12290 wxColour temp2 ;
12291 PyObject * obj0 = 0 ;
12292 PyObject * obj1 = 0 ;
12293 char *kwnames[] = {
12294 (char *) "self",(char *) "colour", NULL
12295 };
12296
12297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
12298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12299 {
12300 arg2 = &temp2;
12301 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12302 }
12303 {
12304 PyThreadState* __tstate = wxPyBeginAllowThreads();
12305 (arg1)->SetTextForeground((wxColour const &)*arg2);
12306
12307 wxPyEndAllowThreads(__tstate);
12308 if (PyErr_Occurred()) SWIG_fail;
12309 }
12310 Py_INCREF(Py_None); resultobj = Py_None;
12311 return resultobj;
12312 fail:
12313 return NULL;
12314 }
12315
12316
12317 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12318 PyObject *resultobj;
12319 wxDC *arg1 = (wxDC *) 0 ;
12320 wxColour *arg2 = 0 ;
12321 wxColour temp2 ;
12322 PyObject * obj0 = 0 ;
12323 PyObject * obj1 = 0 ;
12324 char *kwnames[] = {
12325 (char *) "self",(char *) "colour", NULL
12326 };
12327
12328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
12329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12330 {
12331 arg2 = &temp2;
12332 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12333 }
12334 {
12335 PyThreadState* __tstate = wxPyBeginAllowThreads();
12336 (arg1)->SetTextBackground((wxColour const &)*arg2);
12337
12338 wxPyEndAllowThreads(__tstate);
12339 if (PyErr_Occurred()) SWIG_fail;
12340 }
12341 Py_INCREF(Py_None); resultobj = Py_None;
12342 return resultobj;
12343 fail:
12344 return NULL;
12345 }
12346
12347
12348 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12349 PyObject *resultobj;
12350 wxDC *arg1 = (wxDC *) 0 ;
12351 int result;
12352 PyObject * obj0 = 0 ;
12353 char *kwnames[] = {
12354 (char *) "self", NULL
12355 };
12356
12357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
12358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12359 {
12360 PyThreadState* __tstate = wxPyBeginAllowThreads();
12361 result = (int)((wxDC const *)arg1)->GetMapMode();
12362
12363 wxPyEndAllowThreads(__tstate);
12364 if (PyErr_Occurred()) SWIG_fail;
12365 }
12366 resultobj = PyInt_FromLong((long)result);
12367 return resultobj;
12368 fail:
12369 return NULL;
12370 }
12371
12372
12373 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12374 PyObject *resultobj;
12375 wxDC *arg1 = (wxDC *) 0 ;
12376 int arg2 ;
12377 PyObject * obj0 = 0 ;
12378 char *kwnames[] = {
12379 (char *) "self",(char *) "mode", NULL
12380 };
12381
12382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail;
12383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12384 {
12385 PyThreadState* __tstate = wxPyBeginAllowThreads();
12386 (arg1)->SetMapMode(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_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12399 PyObject *resultobj;
12400 wxDC *arg1 = (wxDC *) 0 ;
12401 double *arg2 = (double *) 0 ;
12402 double *arg3 = (double *) 0 ;
12403 double temp2 ;
12404 double temp3 ;
12405 PyObject * obj0 = 0 ;
12406 char *kwnames[] = {
12407 (char *) "self", NULL
12408 };
12409
12410 arg2 = &temp2;
12411 arg3 = &temp3;
12412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12414 {
12415 PyThreadState* __tstate = wxPyBeginAllowThreads();
12416 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12417
12418 wxPyEndAllowThreads(__tstate);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 }
12421 Py_INCREF(Py_None); resultobj = Py_None;
12422 {
12423 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12424 resultobj = t_output_helper(resultobj,o);
12425 }
12426 {
12427 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12428 resultobj = t_output_helper(resultobj,o);
12429 }
12430 return resultobj;
12431 fail:
12432 return NULL;
12433 }
12434
12435
12436 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12437 PyObject *resultobj;
12438 wxDC *arg1 = (wxDC *) 0 ;
12439 double arg2 ;
12440 double arg3 ;
12441 PyObject * obj0 = 0 ;
12442 char *kwnames[] = {
12443 (char *) "self",(char *) "x",(char *) "y", NULL
12444 };
12445
12446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12448 {
12449 PyThreadState* __tstate = wxPyBeginAllowThreads();
12450 (arg1)->SetUserScale(arg2,arg3);
12451
12452 wxPyEndAllowThreads(__tstate);
12453 if (PyErr_Occurred()) SWIG_fail;
12454 }
12455 Py_INCREF(Py_None); resultobj = Py_None;
12456 return resultobj;
12457 fail:
12458 return NULL;
12459 }
12460
12461
12462 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12463 PyObject *resultobj;
12464 wxDC *arg1 = (wxDC *) 0 ;
12465 double *arg2 = (double *) 0 ;
12466 double *arg3 = (double *) 0 ;
12467 double temp2 ;
12468 double temp3 ;
12469 PyObject * obj0 = 0 ;
12470 char *kwnames[] = {
12471 (char *) "self", NULL
12472 };
12473
12474 arg2 = &temp2;
12475 arg3 = &temp3;
12476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 (arg1)->GetLogicalScale(arg2,arg3);
12481
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 Py_INCREF(Py_None); resultobj = Py_None;
12486 {
12487 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12488 resultobj = t_output_helper(resultobj,o);
12489 }
12490 {
12491 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12492 resultobj = t_output_helper(resultobj,o);
12493 }
12494 return resultobj;
12495 fail:
12496 return NULL;
12497 }
12498
12499
12500 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12501 PyObject *resultobj;
12502 wxDC *arg1 = (wxDC *) 0 ;
12503 double arg2 ;
12504 double arg3 ;
12505 PyObject * obj0 = 0 ;
12506 char *kwnames[] = {
12507 (char *) "self",(char *) "x",(char *) "y", NULL
12508 };
12509
12510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12512 {
12513 PyThreadState* __tstate = wxPyBeginAllowThreads();
12514 (arg1)->SetLogicalScale(arg2,arg3);
12515
12516 wxPyEndAllowThreads(__tstate);
12517 if (PyErr_Occurred()) SWIG_fail;
12518 }
12519 Py_INCREF(Py_None); resultobj = Py_None;
12520 return resultobj;
12521 fail:
12522 return NULL;
12523 }
12524
12525
12526 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12527 PyObject *resultobj;
12528 wxDC *arg1 = (wxDC *) 0 ;
12529 wxPoint result;
12530 PyObject * obj0 = 0 ;
12531 char *kwnames[] = {
12532 (char *) "self", NULL
12533 };
12534
12535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
12536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 result = ((wxDC const *)arg1)->GetLogicalOrigin();
12540
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 {
12545 wxPoint * resultptr;
12546 resultptr = new wxPoint((wxPoint &) result);
12547 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12548 }
12549 return resultobj;
12550 fail:
12551 return NULL;
12552 }
12553
12554
12555 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12556 PyObject *resultobj;
12557 wxDC *arg1 = (wxDC *) 0 ;
12558 int *arg2 = (int *) 0 ;
12559 int *arg3 = (int *) 0 ;
12560 int temp2 ;
12561 int temp3 ;
12562 PyObject * obj0 = 0 ;
12563 char *kwnames[] = {
12564 (char *) "self", NULL
12565 };
12566
12567 arg2 = &temp2;
12568 arg3 = &temp3;
12569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
12570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12571 {
12572 PyThreadState* __tstate = wxPyBeginAllowThreads();
12573 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
12574
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 Py_INCREF(Py_None); resultobj = Py_None;
12579 {
12580 PyObject *o = PyInt_FromLong((long) (*arg2));
12581 resultobj = t_output_helper(resultobj,o);
12582 }
12583 {
12584 PyObject *o = PyInt_FromLong((long) (*arg3));
12585 resultobj = t_output_helper(resultobj,o);
12586 }
12587 return resultobj;
12588 fail:
12589 return NULL;
12590 }
12591
12592
12593 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12594 PyObject *resultobj;
12595 wxDC *arg1 = (wxDC *) 0 ;
12596 int arg2 ;
12597 int arg3 ;
12598 PyObject * obj0 = 0 ;
12599 char *kwnames[] = {
12600 (char *) "self",(char *) "x",(char *) "y", NULL
12601 };
12602
12603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 (arg1)->SetLogicalOrigin(arg2,arg3);
12608
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 Py_INCREF(Py_None); resultobj = Py_None;
12613 return resultobj;
12614 fail:
12615 return NULL;
12616 }
12617
12618
12619 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12620 PyObject *resultobj;
12621 wxDC *arg1 = (wxDC *) 0 ;
12622 wxPoint result;
12623 PyObject * obj0 = 0 ;
12624 char *kwnames[] = {
12625 (char *) "self", NULL
12626 };
12627
12628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
12629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12630 {
12631 PyThreadState* __tstate = wxPyBeginAllowThreads();
12632 result = ((wxDC const *)arg1)->GetDeviceOrigin();
12633
12634 wxPyEndAllowThreads(__tstate);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 }
12637 {
12638 wxPoint * resultptr;
12639 resultptr = new wxPoint((wxPoint &) result);
12640 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12641 }
12642 return resultobj;
12643 fail:
12644 return NULL;
12645 }
12646
12647
12648 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12649 PyObject *resultobj;
12650 wxDC *arg1 = (wxDC *) 0 ;
12651 int *arg2 = (int *) 0 ;
12652 int *arg3 = (int *) 0 ;
12653 int temp2 ;
12654 int temp3 ;
12655 PyObject * obj0 = 0 ;
12656 char *kwnames[] = {
12657 (char *) "self", NULL
12658 };
12659
12660 arg2 = &temp2;
12661 arg3 = &temp3;
12662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
12663 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12664 {
12665 PyThreadState* __tstate = wxPyBeginAllowThreads();
12666 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
12667
12668 wxPyEndAllowThreads(__tstate);
12669 if (PyErr_Occurred()) SWIG_fail;
12670 }
12671 Py_INCREF(Py_None); resultobj = Py_None;
12672 {
12673 PyObject *o = PyInt_FromLong((long) (*arg2));
12674 resultobj = t_output_helper(resultobj,o);
12675 }
12676 {
12677 PyObject *o = PyInt_FromLong((long) (*arg3));
12678 resultobj = t_output_helper(resultobj,o);
12679 }
12680 return resultobj;
12681 fail:
12682 return NULL;
12683 }
12684
12685
12686 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12687 PyObject *resultobj;
12688 wxDC *arg1 = (wxDC *) 0 ;
12689 int arg2 ;
12690 int arg3 ;
12691 PyObject * obj0 = 0 ;
12692 char *kwnames[] = {
12693 (char *) "self",(char *) "x",(char *) "y", NULL
12694 };
12695
12696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12698 {
12699 PyThreadState* __tstate = wxPyBeginAllowThreads();
12700 (arg1)->SetDeviceOrigin(arg2,arg3);
12701
12702 wxPyEndAllowThreads(__tstate);
12703 if (PyErr_Occurred()) SWIG_fail;
12704 }
12705 Py_INCREF(Py_None); resultobj = Py_None;
12706 return resultobj;
12707 fail:
12708 return NULL;
12709 }
12710
12711
12712 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12713 PyObject *resultobj;
12714 wxDC *arg1 = (wxDC *) 0 ;
12715 bool arg2 ;
12716 bool arg3 ;
12717 PyObject * obj0 = 0 ;
12718 PyObject * obj1 = 0 ;
12719 PyObject * obj2 = 0 ;
12720 char *kwnames[] = {
12721 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
12722 };
12723
12724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
12725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12726 {
12727 arg2 = (bool) SPyObj_AsBool(obj1);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 }
12730 {
12731 arg3 = (bool) SPyObj_AsBool(obj2);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 {
12735 PyThreadState* __tstate = wxPyBeginAllowThreads();
12736 (arg1)->SetAxisOrientation(arg2,arg3);
12737
12738 wxPyEndAllowThreads(__tstate);
12739 if (PyErr_Occurred()) SWIG_fail;
12740 }
12741 Py_INCREF(Py_None); resultobj = Py_None;
12742 return resultobj;
12743 fail:
12744 return NULL;
12745 }
12746
12747
12748 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12749 PyObject *resultobj;
12750 wxDC *arg1 = (wxDC *) 0 ;
12751 int result;
12752 PyObject * obj0 = 0 ;
12753 char *kwnames[] = {
12754 (char *) "self", NULL
12755 };
12756
12757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
12758 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12759 {
12760 PyThreadState* __tstate = wxPyBeginAllowThreads();
12761 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
12762
12763 wxPyEndAllowThreads(__tstate);
12764 if (PyErr_Occurred()) SWIG_fail;
12765 }
12766 resultobj = PyInt_FromLong((long)result);
12767 return resultobj;
12768 fail:
12769 return NULL;
12770 }
12771
12772
12773 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12774 PyObject *resultobj;
12775 wxDC *arg1 = (wxDC *) 0 ;
12776 int arg2 ;
12777 PyObject * obj0 = 0 ;
12778 char *kwnames[] = {
12779 (char *) "self",(char *) "function", NULL
12780 };
12781
12782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
12783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12784 {
12785 PyThreadState* __tstate = wxPyBeginAllowThreads();
12786 (arg1)->SetLogicalFunction(arg2);
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_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12799 PyObject *resultobj;
12800 wxDC *arg1 = (wxDC *) 0 ;
12801 bool arg2 ;
12802 PyObject * obj0 = 0 ;
12803 PyObject * obj1 = 0 ;
12804 char *kwnames[] = {
12805 (char *) "self",(char *) "opt", NULL
12806 };
12807
12808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
12809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12810 {
12811 arg2 = (bool) SPyObj_AsBool(obj1);
12812 if (PyErr_Occurred()) SWIG_fail;
12813 }
12814 {
12815 PyThreadState* __tstate = wxPyBeginAllowThreads();
12816 (arg1)->SetOptimization(arg2);
12817
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 Py_INCREF(Py_None); resultobj = Py_None;
12822 return resultobj;
12823 fail:
12824 return NULL;
12825 }
12826
12827
12828 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12829 PyObject *resultobj;
12830 wxDC *arg1 = (wxDC *) 0 ;
12831 bool result;
12832 PyObject * obj0 = 0 ;
12833 char *kwnames[] = {
12834 (char *) "self", NULL
12835 };
12836
12837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
12838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 result = (bool)(arg1)->GetOptimization();
12842
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 resultobj = PyInt_FromLong((long)result);
12847 return resultobj;
12848 fail:
12849 return NULL;
12850 }
12851
12852
12853 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12854 PyObject *resultobj;
12855 wxDC *arg1 = (wxDC *) 0 ;
12856 int arg2 ;
12857 int arg3 ;
12858 PyObject * obj0 = 0 ;
12859 char *kwnames[] = {
12860 (char *) "self",(char *) "x",(char *) "y", NULL
12861 };
12862
12863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
12864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12865 {
12866 PyThreadState* __tstate = wxPyBeginAllowThreads();
12867 (arg1)->CalcBoundingBox(arg2,arg3);
12868
12869 wxPyEndAllowThreads(__tstate);
12870 if (PyErr_Occurred()) SWIG_fail;
12871 }
12872 Py_INCREF(Py_None); resultobj = Py_None;
12873 return resultobj;
12874 fail:
12875 return NULL;
12876 }
12877
12878
12879 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12880 PyObject *resultobj;
12881 wxDC *arg1 = (wxDC *) 0 ;
12882 PyObject * obj0 = 0 ;
12883 char *kwnames[] = {
12884 (char *) "self", NULL
12885 };
12886
12887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",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 (arg1)->ResetBoundingBox();
12892
12893 wxPyEndAllowThreads(__tstate);
12894 if (PyErr_Occurred()) SWIG_fail;
12895 }
12896 Py_INCREF(Py_None); resultobj = Py_None;
12897 return resultobj;
12898 fail:
12899 return NULL;
12900 }
12901
12902
12903 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
12904 PyObject *resultobj;
12905 wxDC *arg1 = (wxDC *) 0 ;
12906 int result;
12907 PyObject * obj0 = 0 ;
12908 char *kwnames[] = {
12909 (char *) "self", NULL
12910 };
12911
12912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
12913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12914 {
12915 PyThreadState* __tstate = wxPyBeginAllowThreads();
12916 result = (int)((wxDC const *)arg1)->MinX();
12917
12918 wxPyEndAllowThreads(__tstate);
12919 if (PyErr_Occurred()) SWIG_fail;
12920 }
12921 resultobj = PyInt_FromLong((long)result);
12922 return resultobj;
12923 fail:
12924 return NULL;
12925 }
12926
12927
12928 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
12929 PyObject *resultobj;
12930 wxDC *arg1 = (wxDC *) 0 ;
12931 int result;
12932 PyObject * obj0 = 0 ;
12933 char *kwnames[] = {
12934 (char *) "self", NULL
12935 };
12936
12937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",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 result = (int)((wxDC const *)arg1)->MaxX();
12942
12943 wxPyEndAllowThreads(__tstate);
12944 if (PyErr_Occurred()) SWIG_fail;
12945 }
12946 resultobj = PyInt_FromLong((long)result);
12947 return resultobj;
12948 fail:
12949 return NULL;
12950 }
12951
12952
12953 static PyObject *_wrap_DC_MinY(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_MinY",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)->MinY();
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_MaxY(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_MaxY",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)->MaxY();
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_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13004 PyObject *resultobj;
13005 wxDC *arg1 = (wxDC *) 0 ;
13006 int *arg2 = (int *) 0 ;
13007 int *arg3 = (int *) 0 ;
13008 int *arg4 = (int *) 0 ;
13009 int *arg5 = (int *) 0 ;
13010 int temp2 ;
13011 int temp3 ;
13012 int temp4 ;
13013 int temp5 ;
13014 PyObject * obj0 = 0 ;
13015 char *kwnames[] = {
13016 (char *) "self", NULL
13017 };
13018
13019 arg2 = &temp2;
13020 arg3 = &temp3;
13021 arg4 = &temp4;
13022 arg5 = &temp5;
13023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
13024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13025 {
13026 PyThreadState* __tstate = wxPyBeginAllowThreads();
13027 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
13028
13029 wxPyEndAllowThreads(__tstate);
13030 if (PyErr_Occurred()) SWIG_fail;
13031 }
13032 Py_INCREF(Py_None); resultobj = Py_None;
13033 {
13034 PyObject *o = PyInt_FromLong((long) (*arg2));
13035 resultobj = t_output_helper(resultobj,o);
13036 }
13037 {
13038 PyObject *o = PyInt_FromLong((long) (*arg3));
13039 resultobj = t_output_helper(resultobj,o);
13040 }
13041 {
13042 PyObject *o = PyInt_FromLong((long) (*arg4));
13043 resultobj = t_output_helper(resultobj,o);
13044 }
13045 {
13046 PyObject *o = PyInt_FromLong((long) (*arg5));
13047 resultobj = t_output_helper(resultobj,o);
13048 }
13049 return resultobj;
13050 fail:
13051 return NULL;
13052 }
13053
13054
13055 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
13056 PyObject *resultobj;
13057 wxDC *arg1 = (wxDC *) 0 ;
13058 PyObject *arg2 = (PyObject *) 0 ;
13059 PyObject *arg3 = (PyObject *) 0 ;
13060 PyObject *arg4 = (PyObject *) 0 ;
13061 PyObject *result;
13062 PyObject * obj0 = 0 ;
13063 PyObject * obj1 = 0 ;
13064 PyObject * obj2 = 0 ;
13065 PyObject * obj3 = 0 ;
13066 char *kwnames[] = {
13067 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13068 };
13069
13070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13072 arg2 = obj1;
13073 arg3 = obj2;
13074 arg4 = obj3;
13075 {
13076 PyThreadState* __tstate = wxPyBeginAllowThreads();
13077 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
13078
13079 wxPyEndAllowThreads(__tstate);
13080 if (PyErr_Occurred()) SWIG_fail;
13081 }
13082 resultobj = result;
13083 return resultobj;
13084 fail:
13085 return NULL;
13086 }
13087
13088
13089 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
13090 PyObject *resultobj;
13091 wxDC *arg1 = (wxDC *) 0 ;
13092 PyObject *arg2 = (PyObject *) 0 ;
13093 PyObject *arg3 = (PyObject *) 0 ;
13094 PyObject *arg4 = (PyObject *) 0 ;
13095 PyObject *result;
13096 PyObject * obj0 = 0 ;
13097 PyObject * obj1 = 0 ;
13098 PyObject * obj2 = 0 ;
13099 PyObject * obj3 = 0 ;
13100 char *kwnames[] = {
13101 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13102 };
13103
13104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13106 arg2 = obj1;
13107 arg3 = obj2;
13108 arg4 = obj3;
13109 {
13110 PyThreadState* __tstate = wxPyBeginAllowThreads();
13111 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
13112
13113 wxPyEndAllowThreads(__tstate);
13114 if (PyErr_Occurred()) SWIG_fail;
13115 }
13116 resultobj = result;
13117 return resultobj;
13118 fail:
13119 return NULL;
13120 }
13121
13122
13123 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
13124 PyObject *resultobj;
13125 wxDC *arg1 = (wxDC *) 0 ;
13126 PyObject *arg2 = (PyObject *) 0 ;
13127 PyObject *arg3 = (PyObject *) 0 ;
13128 PyObject *arg4 = (PyObject *) 0 ;
13129 PyObject *result;
13130 PyObject * obj0 = 0 ;
13131 PyObject * obj1 = 0 ;
13132 PyObject * obj2 = 0 ;
13133 PyObject * obj3 = 0 ;
13134 char *kwnames[] = {
13135 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13136 };
13137
13138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13140 arg2 = obj1;
13141 arg3 = obj2;
13142 arg4 = obj3;
13143 {
13144 PyThreadState* __tstate = wxPyBeginAllowThreads();
13145 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
13146
13147 wxPyEndAllowThreads(__tstate);
13148 if (PyErr_Occurred()) SWIG_fail;
13149 }
13150 resultobj = result;
13151 return resultobj;
13152 fail:
13153 return NULL;
13154 }
13155
13156
13157 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
13158 PyObject *resultobj;
13159 wxDC *arg1 = (wxDC *) 0 ;
13160 PyObject *arg2 = (PyObject *) 0 ;
13161 PyObject *arg3 = (PyObject *) 0 ;
13162 PyObject *arg4 = (PyObject *) 0 ;
13163 PyObject *result;
13164 PyObject * obj0 = 0 ;
13165 PyObject * obj1 = 0 ;
13166 PyObject * obj2 = 0 ;
13167 PyObject * obj3 = 0 ;
13168 char *kwnames[] = {
13169 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13170 };
13171
13172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13174 arg2 = obj1;
13175 arg3 = obj2;
13176 arg4 = obj3;
13177 {
13178 PyThreadState* __tstate = wxPyBeginAllowThreads();
13179 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
13180
13181 wxPyEndAllowThreads(__tstate);
13182 if (PyErr_Occurred()) SWIG_fail;
13183 }
13184 resultobj = result;
13185 return resultobj;
13186 fail:
13187 return NULL;
13188 }
13189
13190
13191 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
13192 PyObject *resultobj;
13193 wxDC *arg1 = (wxDC *) 0 ;
13194 PyObject *arg2 = (PyObject *) 0 ;
13195 PyObject *arg3 = (PyObject *) 0 ;
13196 PyObject *arg4 = (PyObject *) 0 ;
13197 PyObject *result;
13198 PyObject * obj0 = 0 ;
13199 PyObject * obj1 = 0 ;
13200 PyObject * obj2 = 0 ;
13201 PyObject * obj3 = 0 ;
13202 char *kwnames[] = {
13203 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13204 };
13205
13206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13208 arg2 = obj1;
13209 arg3 = obj2;
13210 arg4 = obj3;
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
13214
13215 wxPyEndAllowThreads(__tstate);
13216 if (PyErr_Occurred()) SWIG_fail;
13217 }
13218 resultobj = result;
13219 return resultobj;
13220 fail:
13221 return NULL;
13222 }
13223
13224
13225 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
13226 PyObject *resultobj;
13227 wxDC *arg1 = (wxDC *) 0 ;
13228 PyObject *arg2 = (PyObject *) 0 ;
13229 PyObject *arg3 = (PyObject *) 0 ;
13230 PyObject *arg4 = (PyObject *) 0 ;
13231 PyObject *arg5 = (PyObject *) 0 ;
13232 PyObject *result;
13233 PyObject * obj0 = 0 ;
13234 PyObject * obj1 = 0 ;
13235 PyObject * obj2 = 0 ;
13236 PyObject * obj3 = 0 ;
13237 PyObject * obj4 = 0 ;
13238 char *kwnames[] = {
13239 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
13240 };
13241
13242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13244 arg2 = obj1;
13245 arg3 = obj2;
13246 arg4 = obj3;
13247 arg5 = obj4;
13248 {
13249 PyThreadState* __tstate = wxPyBeginAllowThreads();
13250 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
13251
13252 wxPyEndAllowThreads(__tstate);
13253 if (PyErr_Occurred()) SWIG_fail;
13254 }
13255 resultobj = result;
13256 return resultobj;
13257 fail:
13258 return NULL;
13259 }
13260
13261
13262 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
13263 PyObject *obj;
13264 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13265 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
13266 Py_INCREF(obj);
13267 return Py_BuildValue((char *)"");
13268 }
13269 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13270 PyObject *resultobj;
13271 wxMemoryDC *result;
13272 char *kwnames[] = {
13273 NULL
13274 };
13275
13276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
13277 {
13278 PyThreadState* __tstate = wxPyBeginAllowThreads();
13279 result = (wxMemoryDC *)new wxMemoryDC();
13280
13281 wxPyEndAllowThreads(__tstate);
13282 if (PyErr_Occurred()) SWIG_fail;
13283 }
13284 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13285 return resultobj;
13286 fail:
13287 return NULL;
13288 }
13289
13290
13291 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13292 PyObject *resultobj;
13293 wxDC *arg1 = (wxDC *) 0 ;
13294 wxMemoryDC *result;
13295 PyObject * obj0 = 0 ;
13296 char *kwnames[] = {
13297 (char *) "oldDC", NULL
13298 };
13299
13300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
13301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13302 {
13303 PyThreadState* __tstate = wxPyBeginAllowThreads();
13304 result = (wxMemoryDC *)new wxMemoryDC(arg1);
13305
13306 wxPyEndAllowThreads(__tstate);
13307 if (PyErr_Occurred()) SWIG_fail;
13308 }
13309 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13310 return resultobj;
13311 fail:
13312 return NULL;
13313 }
13314
13315
13316 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
13317 PyObject *resultobj;
13318 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
13319 wxBitmap *arg2 = 0 ;
13320 PyObject * obj0 = 0 ;
13321 PyObject * obj1 = 0 ;
13322 char *kwnames[] = {
13323 (char *) "self",(char *) "bitmap", NULL
13324 };
13325
13326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
13327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13328 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13329 if (arg2 == NULL) {
13330 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13331 }
13332 {
13333 PyThreadState* __tstate = wxPyBeginAllowThreads();
13334 (arg1)->SelectObject((wxBitmap const &)*arg2);
13335
13336 wxPyEndAllowThreads(__tstate);
13337 if (PyErr_Occurred()) SWIG_fail;
13338 }
13339 Py_INCREF(Py_None); resultobj = Py_None;
13340 return resultobj;
13341 fail:
13342 return NULL;
13343 }
13344
13345
13346 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
13347 PyObject *obj;
13348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13349 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
13350 Py_INCREF(obj);
13351 return Py_BuildValue((char *)"");
13352 }
13353 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13354 PyObject *resultobj;
13355 wxDC *arg1 = (wxDC *) 0 ;
13356 wxBitmap *arg2 = 0 ;
13357 wxBufferedDC *result;
13358 PyObject * obj0 = 0 ;
13359 PyObject * obj1 = 0 ;
13360 char *kwnames[] = {
13361 (char *) "dc",(char *) "buffer", NULL
13362 };
13363
13364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
13365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13366 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13367 if (arg2 == NULL) {
13368 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13369 }
13370 {
13371 PyThreadState* __tstate = wxPyBeginAllowThreads();
13372 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13373
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13378 return resultobj;
13379 fail:
13380 return NULL;
13381 }
13382
13383
13384 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13385 PyObject *resultobj;
13386 wxDC *arg1 = (wxDC *) 0 ;
13387 wxSize *arg2 = 0 ;
13388 wxBufferedDC *result;
13389 wxSize temp2 ;
13390 PyObject * obj0 = 0 ;
13391 PyObject * obj1 = 0 ;
13392 char *kwnames[] = {
13393 (char *) "dc",(char *) "area", NULL
13394 };
13395
13396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13398 {
13399 arg2 = &temp2;
13400 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13401 }
13402 {
13403 PyThreadState* __tstate = wxPyBeginAllowThreads();
13404 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13405
13406 wxPyEndAllowThreads(__tstate);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13410 return resultobj;
13411 fail:
13412 return NULL;
13413 }
13414
13415
13416 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13417 PyObject *resultobj;
13418 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13419 PyObject * obj0 = 0 ;
13420 char *kwnames[] = {
13421 (char *) "self", NULL
13422 };
13423
13424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 (arg1)->UnMask();
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 Py_INCREF(Py_None); resultobj = Py_None;
13434 return resultobj;
13435 fail:
13436 return NULL;
13437 }
13438
13439
13440 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13441 PyObject *obj;
13442 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13443 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13444 Py_INCREF(obj);
13445 return Py_BuildValue((char *)"");
13446 }
13447 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13448 PyObject *resultobj;
13449 wxWindow *arg1 = (wxWindow *) 0 ;
13450 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13451 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13452 wxBufferedPaintDC *result;
13453 PyObject * obj0 = 0 ;
13454 PyObject * obj1 = 0 ;
13455 char *kwnames[] = {
13456 (char *) "window",(char *) "buffer", NULL
13457 };
13458
13459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13461 if (obj1) {
13462 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13463 if (arg2 == NULL) {
13464 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13465 }
13466 }
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13470
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13475 return resultobj;
13476 fail:
13477 return NULL;
13478 }
13479
13480
13481 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13482 PyObject *obj;
13483 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13484 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13485 Py_INCREF(obj);
13486 return Py_BuildValue((char *)"");
13487 }
13488 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13489 PyObject *resultobj;
13490 wxScreenDC *result;
13491 char *kwnames[] = {
13492 NULL
13493 };
13494
13495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
13498 result = (wxScreenDC *)new wxScreenDC();
13499
13500 wxPyEndAllowThreads(__tstate);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 }
13503 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13504 return resultobj;
13505 fail:
13506 return NULL;
13507 }
13508
13509
13510 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13511 PyObject *resultobj;
13512 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13513 wxWindow *arg2 = (wxWindow *) 0 ;
13514 bool result;
13515 PyObject * obj0 = 0 ;
13516 PyObject * obj1 = 0 ;
13517 char *kwnames[] = {
13518 (char *) "self",(char *) "window", NULL
13519 };
13520
13521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13523 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13524 {
13525 PyThreadState* __tstate = wxPyBeginAllowThreads();
13526 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13527
13528 wxPyEndAllowThreads(__tstate);
13529 if (PyErr_Occurred()) SWIG_fail;
13530 }
13531 resultobj = PyInt_FromLong((long)result);
13532 return resultobj;
13533 fail:
13534 return NULL;
13535 }
13536
13537
13538 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13539 PyObject *resultobj;
13540 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13541 wxRect *arg2 = (wxRect *) NULL ;
13542 bool result;
13543 PyObject * obj0 = 0 ;
13544 PyObject * obj1 = 0 ;
13545 char *kwnames[] = {
13546 (char *) "self",(char *) "rect", NULL
13547 };
13548
13549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13550 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13551 if (obj1) {
13552 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13553 }
13554 {
13555 PyThreadState* __tstate = wxPyBeginAllowThreads();
13556 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13557
13558 wxPyEndAllowThreads(__tstate);
13559 if (PyErr_Occurred()) SWIG_fail;
13560 }
13561 resultobj = PyInt_FromLong((long)result);
13562 return resultobj;
13563 fail:
13564 return NULL;
13565 }
13566
13567
13568 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13569 PyObject *resultobj;
13570 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13571 bool result;
13572 PyObject * obj0 = 0 ;
13573 char *kwnames[] = {
13574 (char *) "self", NULL
13575 };
13576
13577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13579 {
13580 PyThreadState* __tstate = wxPyBeginAllowThreads();
13581 result = (bool)(arg1)->EndDrawingOnTop();
13582
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 resultobj = PyInt_FromLong((long)result);
13587 return resultobj;
13588 fail:
13589 return NULL;
13590 }
13591
13592
13593 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13594 PyObject *obj;
13595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13596 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13597 Py_INCREF(obj);
13598 return Py_BuildValue((char *)"");
13599 }
13600 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13601 PyObject *resultobj;
13602 wxWindow *arg1 = (wxWindow *) 0 ;
13603 wxClientDC *result;
13604 PyObject * obj0 = 0 ;
13605 char *kwnames[] = {
13606 (char *) "win", NULL
13607 };
13608
13609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13611 {
13612 PyThreadState* __tstate = wxPyBeginAllowThreads();
13613 result = (wxClientDC *)new wxClientDC(arg1);
13614
13615 wxPyEndAllowThreads(__tstate);
13616 if (PyErr_Occurred()) SWIG_fail;
13617 }
13618 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13619 return resultobj;
13620 fail:
13621 return NULL;
13622 }
13623
13624
13625 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13626 PyObject *obj;
13627 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13628 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13629 Py_INCREF(obj);
13630 return Py_BuildValue((char *)"");
13631 }
13632 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13633 PyObject *resultobj;
13634 wxWindow *arg1 = (wxWindow *) 0 ;
13635 wxPaintDC *result;
13636 PyObject * obj0 = 0 ;
13637 char *kwnames[] = {
13638 (char *) "win", NULL
13639 };
13640
13641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13643 {
13644 PyThreadState* __tstate = wxPyBeginAllowThreads();
13645 result = (wxPaintDC *)new wxPaintDC(arg1);
13646
13647 wxPyEndAllowThreads(__tstate);
13648 if (PyErr_Occurred()) SWIG_fail;
13649 }
13650 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13651 return resultobj;
13652 fail:
13653 return NULL;
13654 }
13655
13656
13657 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13658 PyObject *obj;
13659 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13660 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13661 Py_INCREF(obj);
13662 return Py_BuildValue((char *)"");
13663 }
13664 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13665 PyObject *resultobj;
13666 wxWindow *arg1 = (wxWindow *) 0 ;
13667 wxWindowDC *result;
13668 PyObject * obj0 = 0 ;
13669 char *kwnames[] = {
13670 (char *) "win", NULL
13671 };
13672
13673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13675 {
13676 PyThreadState* __tstate = wxPyBeginAllowThreads();
13677 result = (wxWindowDC *)new wxWindowDC(arg1);
13678
13679 wxPyEndAllowThreads(__tstate);
13680 if (PyErr_Occurred()) SWIG_fail;
13681 }
13682 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13683 return resultobj;
13684 fail:
13685 return NULL;
13686 }
13687
13688
13689 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
13690 PyObject *obj;
13691 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13692 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
13693 Py_INCREF(obj);
13694 return Py_BuildValue((char *)"");
13695 }
13696 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13697 PyObject *resultobj;
13698 wxDC *arg1 = 0 ;
13699 bool arg2 ;
13700 wxMirrorDC *result;
13701 PyObject * obj0 = 0 ;
13702 PyObject * obj1 = 0 ;
13703 char *kwnames[] = {
13704 (char *) "dc",(char *) "mirror", NULL
13705 };
13706
13707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
13708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13709 if (arg1 == NULL) {
13710 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13711 }
13712 {
13713 arg2 = (bool) SPyObj_AsBool(obj1);
13714 if (PyErr_Occurred()) SWIG_fail;
13715 }
13716 {
13717 PyThreadState* __tstate = wxPyBeginAllowThreads();
13718 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
13719
13720 wxPyEndAllowThreads(__tstate);
13721 if (PyErr_Occurred()) SWIG_fail;
13722 }
13723 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
13724 return resultobj;
13725 fail:
13726 return NULL;
13727 }
13728
13729
13730 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
13731 PyObject *obj;
13732 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13733 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
13734 Py_INCREF(obj);
13735 return Py_BuildValue((char *)"");
13736 }
13737 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13738 PyObject *resultobj;
13739 wxPrintData *arg1 = 0 ;
13740 wxPostScriptDC *result;
13741 PyObject * obj0 = 0 ;
13742 char *kwnames[] = {
13743 (char *) "printData", NULL
13744 };
13745
13746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
13747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13748 if (arg1 == NULL) {
13749 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13750 }
13751 {
13752 PyThreadState* __tstate = wxPyBeginAllowThreads();
13753 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
13754
13755 wxPyEndAllowThreads(__tstate);
13756 if (PyErr_Occurred()) SWIG_fail;
13757 }
13758 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
13759 return resultobj;
13760 fail:
13761 return NULL;
13762 }
13763
13764
13765 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13766 PyObject *resultobj;
13767 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13768 wxPrintData *result;
13769 PyObject * obj0 = 0 ;
13770 char *kwnames[] = {
13771 (char *) "self", NULL
13772 };
13773
13774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
13775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13776 {
13777 PyThreadState* __tstate = wxPyBeginAllowThreads();
13778 {
13779 wxPrintData &_result_ref = (arg1)->GetPrintData();
13780 result = (wxPrintData *) &_result_ref;
13781 }
13782
13783 wxPyEndAllowThreads(__tstate);
13784 if (PyErr_Occurred()) SWIG_fail;
13785 }
13786 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
13787 return resultobj;
13788 fail:
13789 return NULL;
13790 }
13791
13792
13793 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13794 PyObject *resultobj;
13795 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13796 wxPrintData *arg2 = 0 ;
13797 PyObject * obj0 = 0 ;
13798 PyObject * obj1 = 0 ;
13799 char *kwnames[] = {
13800 (char *) "self",(char *) "data", NULL
13801 };
13802
13803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
13804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13805 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13806 if (arg2 == NULL) {
13807 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13808 }
13809 {
13810 PyThreadState* __tstate = wxPyBeginAllowThreads();
13811 (arg1)->SetPrintData((wxPrintData const &)*arg2);
13812
13813 wxPyEndAllowThreads(__tstate);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
13816 Py_INCREF(Py_None); resultobj = Py_None;
13817 return resultobj;
13818 fail:
13819 return NULL;
13820 }
13821
13822
13823 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13824 PyObject *resultobj;
13825 int arg1 ;
13826 char *kwnames[] = {
13827 (char *) "ppi", NULL
13828 };
13829
13830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
13831 {
13832 PyThreadState* __tstate = wxPyBeginAllowThreads();
13833 wxPostScriptDC::SetResolution(arg1);
13834
13835 wxPyEndAllowThreads(__tstate);
13836 if (PyErr_Occurred()) SWIG_fail;
13837 }
13838 Py_INCREF(Py_None); resultobj = Py_None;
13839 return resultobj;
13840 fail:
13841 return NULL;
13842 }
13843
13844
13845 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13846 PyObject *resultobj;
13847 int result;
13848 char *kwnames[] = {
13849 NULL
13850 };
13851
13852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
13853 {
13854 PyThreadState* __tstate = wxPyBeginAllowThreads();
13855 result = (int)wxPostScriptDC::GetResolution();
13856
13857 wxPyEndAllowThreads(__tstate);
13858 if (PyErr_Occurred()) SWIG_fail;
13859 }
13860 resultobj = PyInt_FromLong((long)result);
13861 return resultobj;
13862 fail:
13863 return NULL;
13864 }
13865
13866
13867 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
13868 PyObject *obj;
13869 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13870 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
13871 Py_INCREF(obj);
13872 return Py_BuildValue((char *)"");
13873 }
13874 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
13875 PyObject *resultobj;
13876 wxString const &arg1_defvalue = wxPyEmptyString ;
13877 wxString *arg1 = (wxString *) &arg1_defvalue ;
13878 wxMetaFile *result;
13879 bool temp1 = False ;
13880 PyObject * obj0 = 0 ;
13881 char *kwnames[] = {
13882 (char *) "filename", NULL
13883 };
13884
13885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
13886 if (obj0) {
13887 {
13888 arg1 = wxString_in_helper(obj0);
13889 if (arg1 == NULL) SWIG_fail;
13890 temp1 = True;
13891 }
13892 }
13893 {
13894 PyThreadState* __tstate = wxPyBeginAllowThreads();
13895 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
13896
13897 wxPyEndAllowThreads(__tstate);
13898 if (PyErr_Occurred()) SWIG_fail;
13899 }
13900 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
13901 {
13902 if (temp1)
13903 delete arg1;
13904 }
13905 return resultobj;
13906 fail:
13907 {
13908 if (temp1)
13909 delete arg1;
13910 }
13911 return NULL;
13912 }
13913
13914
13915 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
13916 PyObject *obj;
13917 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13918 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
13919 Py_INCREF(obj);
13920 return Py_BuildValue((char *)"");
13921 }
13922 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13923 PyObject *resultobj;
13924 wxString const &arg1_defvalue = wxPyEmptyString ;
13925 wxString *arg1 = (wxString *) &arg1_defvalue ;
13926 int arg2 = (int) 0 ;
13927 int arg3 = (int) 0 ;
13928 wxString const &arg4_defvalue = wxPyEmptyString ;
13929 wxString *arg4 = (wxString *) &arg4_defvalue ;
13930 wxMetaFileDC *result;
13931 bool temp1 = False ;
13932 bool temp4 = False ;
13933 PyObject * obj0 = 0 ;
13934 PyObject * obj3 = 0 ;
13935 char *kwnames[] = {
13936 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
13937 };
13938
13939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
13940 if (obj0) {
13941 {
13942 arg1 = wxString_in_helper(obj0);
13943 if (arg1 == NULL) SWIG_fail;
13944 temp1 = True;
13945 }
13946 }
13947 if (obj3) {
13948 {
13949 arg4 = wxString_in_helper(obj3);
13950 if (arg4 == NULL) SWIG_fail;
13951 temp4 = True;
13952 }
13953 }
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
13957
13958 wxPyEndAllowThreads(__tstate);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
13962 {
13963 if (temp1)
13964 delete arg1;
13965 }
13966 {
13967 if (temp4)
13968 delete arg4;
13969 }
13970 return resultobj;
13971 fail:
13972 {
13973 if (temp1)
13974 delete arg1;
13975 }
13976 {
13977 if (temp4)
13978 delete arg4;
13979 }
13980 return NULL;
13981 }
13982
13983
13984 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
13985 PyObject *obj;
13986 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13987 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
13988 Py_INCREF(obj);
13989 return Py_BuildValue((char *)"");
13990 }
13991 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13992 PyObject *resultobj;
13993 wxPrintData *arg1 = 0 ;
13994 wxPrinterDC *result;
13995 PyObject * obj0 = 0 ;
13996 char *kwnames[] = {
13997 (char *) "printData", NULL
13998 };
13999
14000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
14001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14002 if (arg1 == NULL) {
14003 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14004 }
14005 {
14006 PyThreadState* __tstate = wxPyBeginAllowThreads();
14007 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
14008
14009 wxPyEndAllowThreads(__tstate);
14010 if (PyErr_Occurred()) SWIG_fail;
14011 }
14012 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
14013 return resultobj;
14014 fail:
14015 return NULL;
14016 }
14017
14018
14019 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
14020 PyObject *obj;
14021 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14022 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
14023 Py_INCREF(obj);
14024 return Py_BuildValue((char *)"");
14025 }
14026 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14027 PyObject *resultobj;
14028 int arg1 ;
14029 int arg2 ;
14030 int arg3 = (int) True ;
14031 int arg4 = (int) 1 ;
14032 wxImageList *result;
14033 char *kwnames[] = {
14034 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
14035 };
14036
14037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
14038 {
14039 PyThreadState* __tstate = wxPyBeginAllowThreads();
14040 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
14041
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 {
14046 resultobj = wxPyMake_wxObject(result);
14047 }
14048 return resultobj;
14049 fail:
14050 return NULL;
14051 }
14052
14053
14054 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14055 PyObject *resultobj;
14056 wxImageList *arg1 = (wxImageList *) 0 ;
14057 PyObject * obj0 = 0 ;
14058 char *kwnames[] = {
14059 (char *) "self", NULL
14060 };
14061
14062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
14063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14064 {
14065 PyThreadState* __tstate = wxPyBeginAllowThreads();
14066 delete arg1;
14067
14068 wxPyEndAllowThreads(__tstate);
14069 if (PyErr_Occurred()) SWIG_fail;
14070 }
14071 Py_INCREF(Py_None); resultobj = Py_None;
14072 return resultobj;
14073 fail:
14074 return NULL;
14075 }
14076
14077
14078 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
14079 PyObject *resultobj;
14080 wxImageList *arg1 = (wxImageList *) 0 ;
14081 wxBitmap *arg2 = 0 ;
14082 wxBitmap const &arg3_defvalue = wxNullBitmap ;
14083 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
14084 int result;
14085 PyObject * obj0 = 0 ;
14086 PyObject * obj1 = 0 ;
14087 PyObject * obj2 = 0 ;
14088 char *kwnames[] = {
14089 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
14090 };
14091
14092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
14093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14094 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14095 if (arg2 == NULL) {
14096 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14097 }
14098 if (obj2) {
14099 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14100 if (arg3 == NULL) {
14101 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14102 }
14103 }
14104 {
14105 PyThreadState* __tstate = wxPyBeginAllowThreads();
14106 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
14107
14108 wxPyEndAllowThreads(__tstate);
14109 if (PyErr_Occurred()) SWIG_fail;
14110 }
14111 resultobj = PyInt_FromLong((long)result);
14112 return resultobj;
14113 fail:
14114 return NULL;
14115 }
14116
14117
14118 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
14119 PyObject *resultobj;
14120 wxImageList *arg1 = (wxImageList *) 0 ;
14121 wxBitmap *arg2 = 0 ;
14122 wxColour *arg3 = 0 ;
14123 int result;
14124 wxColour temp3 ;
14125 PyObject * obj0 = 0 ;
14126 PyObject * obj1 = 0 ;
14127 PyObject * obj2 = 0 ;
14128 char *kwnames[] = {
14129 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
14130 };
14131
14132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
14133 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14134 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14135 if (arg2 == NULL) {
14136 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14137 }
14138 {
14139 arg3 = &temp3;
14140 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14141 }
14142 {
14143 PyThreadState* __tstate = wxPyBeginAllowThreads();
14144 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
14145
14146 wxPyEndAllowThreads(__tstate);
14147 if (PyErr_Occurred()) SWIG_fail;
14148 }
14149 resultobj = PyInt_FromLong((long)result);
14150 return resultobj;
14151 fail:
14152 return NULL;
14153 }
14154
14155
14156 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14157 PyObject *resultobj;
14158 wxImageList *arg1 = (wxImageList *) 0 ;
14159 wxIcon *arg2 = 0 ;
14160 int result;
14161 PyObject * obj0 = 0 ;
14162 PyObject * obj1 = 0 ;
14163 char *kwnames[] = {
14164 (char *) "self",(char *) "icon", NULL
14165 };
14166
14167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
14168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14169 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14170 if (arg2 == NULL) {
14171 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14172 }
14173 {
14174 PyThreadState* __tstate = wxPyBeginAllowThreads();
14175 result = (int)(arg1)->Add((wxIcon const &)*arg2);
14176
14177 wxPyEndAllowThreads(__tstate);
14178 if (PyErr_Occurred()) SWIG_fail;
14179 }
14180 resultobj = PyInt_FromLong((long)result);
14181 return resultobj;
14182 fail:
14183 return NULL;
14184 }
14185
14186
14187 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
14188 PyObject *resultobj;
14189 wxImageList *arg1 = (wxImageList *) 0 ;
14190 int arg2 ;
14191 wxBitmap *arg3 = 0 ;
14192 bool result;
14193 PyObject * obj0 = 0 ;
14194 PyObject * obj2 = 0 ;
14195 char *kwnames[] = {
14196 (char *) "self",(char *) "index",(char *) "bitmap", NULL
14197 };
14198
14199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ImageList_Replace",kwnames,&obj0,&arg2,&obj2)) goto fail;
14200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14201 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14202 if (arg3 == NULL) {
14203 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14204 }
14205 {
14206 PyThreadState* __tstate = wxPyBeginAllowThreads();
14207 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
14208
14209 wxPyEndAllowThreads(__tstate);
14210 if (PyErr_Occurred()) SWIG_fail;
14211 }
14212 resultobj = PyInt_FromLong((long)result);
14213 return resultobj;
14214 fail:
14215 return NULL;
14216 }
14217
14218
14219 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
14220 PyObject *resultobj;
14221 wxImageList *arg1 = (wxImageList *) 0 ;
14222 int arg2 ;
14223 wxDC *arg3 = 0 ;
14224 int arg4 ;
14225 int arg5 ;
14226 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
14227 bool arg7 = (bool) (bool)False ;
14228 bool result;
14229 PyObject * obj0 = 0 ;
14230 PyObject * obj2 = 0 ;
14231 PyObject * obj6 = 0 ;
14232 char *kwnames[] = {
14233 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
14234 };
14235
14236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
14237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14238 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14239 if (arg3 == NULL) {
14240 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14241 }
14242 if (obj6) {
14243 {
14244 arg7 = (bool const) SPyObj_AsBool(obj6);
14245 if (PyErr_Occurred()) SWIG_fail;
14246 }
14247 }
14248 {
14249 PyThreadState* __tstate = wxPyBeginAllowThreads();
14250 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
14251
14252 wxPyEndAllowThreads(__tstate);
14253 if (PyErr_Occurred()) SWIG_fail;
14254 }
14255 resultobj = PyInt_FromLong((long)result);
14256 return resultobj;
14257 fail:
14258 return NULL;
14259 }
14260
14261
14262 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14263 PyObject *resultobj;
14264 wxImageList *arg1 = (wxImageList *) 0 ;
14265 int result;
14266 PyObject * obj0 = 0 ;
14267 char *kwnames[] = {
14268 (char *) "self", NULL
14269 };
14270
14271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
14272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14273 {
14274 PyThreadState* __tstate = wxPyBeginAllowThreads();
14275 result = (int)(arg1)->GetImageCount();
14276
14277 wxPyEndAllowThreads(__tstate);
14278 if (PyErr_Occurred()) SWIG_fail;
14279 }
14280 resultobj = PyInt_FromLong((long)result);
14281 return resultobj;
14282 fail:
14283 return NULL;
14284 }
14285
14286
14287 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
14288 PyObject *resultobj;
14289 wxImageList *arg1 = (wxImageList *) 0 ;
14290 int arg2 ;
14291 bool result;
14292 PyObject * obj0 = 0 ;
14293 char *kwnames[] = {
14294 (char *) "self",(char *) "index", NULL
14295 };
14296
14297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
14298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14299 {
14300 PyThreadState* __tstate = wxPyBeginAllowThreads();
14301 result = (bool)(arg1)->Remove(arg2);
14302
14303 wxPyEndAllowThreads(__tstate);
14304 if (PyErr_Occurred()) SWIG_fail;
14305 }
14306 resultobj = PyInt_FromLong((long)result);
14307 return resultobj;
14308 fail:
14309 return NULL;
14310 }
14311
14312
14313 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14314 PyObject *resultobj;
14315 wxImageList *arg1 = (wxImageList *) 0 ;
14316 bool result;
14317 PyObject * obj0 = 0 ;
14318 char *kwnames[] = {
14319 (char *) "self", NULL
14320 };
14321
14322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
14323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14324 {
14325 PyThreadState* __tstate = wxPyBeginAllowThreads();
14326 result = (bool)(arg1)->RemoveAll();
14327
14328 wxPyEndAllowThreads(__tstate);
14329 if (PyErr_Occurred()) SWIG_fail;
14330 }
14331 resultobj = PyInt_FromLong((long)result);
14332 return resultobj;
14333 fail:
14334 return NULL;
14335 }
14336
14337
14338 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14339 PyObject *resultobj;
14340 wxImageList *arg1 = (wxImageList *) 0 ;
14341 int arg2 ;
14342 int *arg3 = 0 ;
14343 int *arg4 = 0 ;
14344 int temp3 ;
14345 int temp4 ;
14346 PyObject * obj0 = 0 ;
14347 char *kwnames[] = {
14348 (char *) "self",(char *) "index", NULL
14349 };
14350
14351 arg3 = &temp3;
14352 arg4 = &temp4;
14353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
14354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14355 {
14356 PyThreadState* __tstate = wxPyBeginAllowThreads();
14357 (arg1)->GetSize(arg2,*arg3,*arg4);
14358
14359 wxPyEndAllowThreads(__tstate);
14360 if (PyErr_Occurred()) SWIG_fail;
14361 }
14362 Py_INCREF(Py_None); resultobj = Py_None;
14363 {
14364 PyObject *o = PyInt_FromLong((long) (*arg3));
14365 resultobj = t_output_helper(resultobj,o);
14366 }
14367 {
14368 PyObject *o = PyInt_FromLong((long) (*arg4));
14369 resultobj = t_output_helper(resultobj,o);
14370 }
14371 return resultobj;
14372 fail:
14373 return NULL;
14374 }
14375
14376
14377 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14378 PyObject *obj;
14379 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14380 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14381 Py_INCREF(obj);
14382 return Py_BuildValue((char *)"");
14383 }
14384 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14385 PyObject *resultobj;
14386 wxPenList *arg1 = (wxPenList *) 0 ;
14387 wxPen *arg2 = (wxPen *) 0 ;
14388 PyObject * obj0 = 0 ;
14389 PyObject * obj1 = 0 ;
14390 char *kwnames[] = {
14391 (char *) "self",(char *) "pen", NULL
14392 };
14393
14394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14396 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14397 {
14398 PyThreadState* __tstate = wxPyBeginAllowThreads();
14399 (arg1)->AddPen(arg2);
14400
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 Py_INCREF(Py_None); resultobj = Py_None;
14405 return resultobj;
14406 fail:
14407 return NULL;
14408 }
14409
14410
14411 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14412 PyObject *resultobj;
14413 wxPenList *arg1 = (wxPenList *) 0 ;
14414 wxColour *arg2 = 0 ;
14415 int arg3 ;
14416 int arg4 ;
14417 wxPen *result;
14418 wxColour temp2 ;
14419 PyObject * obj0 = 0 ;
14420 PyObject * obj1 = 0 ;
14421 char *kwnames[] = {
14422 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14423 };
14424
14425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14427 {
14428 arg2 = &temp2;
14429 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14430 }
14431 {
14432 PyThreadState* __tstate = wxPyBeginAllowThreads();
14433 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14434
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14439 return resultobj;
14440 fail:
14441 return NULL;
14442 }
14443
14444
14445 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14446 PyObject *resultobj;
14447 wxPenList *arg1 = (wxPenList *) 0 ;
14448 wxPen *arg2 = (wxPen *) 0 ;
14449 PyObject * obj0 = 0 ;
14450 PyObject * obj1 = 0 ;
14451 char *kwnames[] = {
14452 (char *) "self",(char *) "pen", NULL
14453 };
14454
14455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14457 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14458 {
14459 PyThreadState* __tstate = wxPyBeginAllowThreads();
14460 (arg1)->RemovePen(arg2);
14461
14462 wxPyEndAllowThreads(__tstate);
14463 if (PyErr_Occurred()) SWIG_fail;
14464 }
14465 Py_INCREF(Py_None); resultobj = Py_None;
14466 return resultobj;
14467 fail:
14468 return NULL;
14469 }
14470
14471
14472 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14473 PyObject *resultobj;
14474 wxPenList *arg1 = (wxPenList *) 0 ;
14475 int result;
14476 PyObject * obj0 = 0 ;
14477 char *kwnames[] = {
14478 (char *) "self", NULL
14479 };
14480
14481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
14482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14483 {
14484 PyThreadState* __tstate = wxPyBeginAllowThreads();
14485 result = (int)(arg1)->GetCount();
14486
14487 wxPyEndAllowThreads(__tstate);
14488 if (PyErr_Occurred()) SWIG_fail;
14489 }
14490 resultobj = PyInt_FromLong((long)result);
14491 return resultobj;
14492 fail:
14493 return NULL;
14494 }
14495
14496
14497 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
14498 PyObject *obj;
14499 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14500 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
14501 Py_INCREF(obj);
14502 return Py_BuildValue((char *)"");
14503 }
14504 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14505 PyObject *resultobj;
14506 wxBrushList *arg1 = (wxBrushList *) 0 ;
14507 wxBrush *arg2 = (wxBrush *) 0 ;
14508 PyObject * obj0 = 0 ;
14509 PyObject * obj1 = 0 ;
14510 char *kwnames[] = {
14511 (char *) "self",(char *) "brush", NULL
14512 };
14513
14514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
14515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14516 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14517 {
14518 PyThreadState* __tstate = wxPyBeginAllowThreads();
14519 (arg1)->AddBrush(arg2);
14520
14521 wxPyEndAllowThreads(__tstate);
14522 if (PyErr_Occurred()) SWIG_fail;
14523 }
14524 Py_INCREF(Py_None); resultobj = Py_None;
14525 return resultobj;
14526 fail:
14527 return NULL;
14528 }
14529
14530
14531 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14532 PyObject *resultobj;
14533 wxBrushList *arg1 = (wxBrushList *) 0 ;
14534 wxColour *arg2 = 0 ;
14535 int arg3 ;
14536 wxBrush *result;
14537 wxColour temp2 ;
14538 PyObject * obj0 = 0 ;
14539 PyObject * obj1 = 0 ;
14540 char *kwnames[] = {
14541 (char *) "self",(char *) "colour",(char *) "style", NULL
14542 };
14543
14544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
14545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14546 {
14547 arg2 = &temp2;
14548 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14549 }
14550 {
14551 PyThreadState* __tstate = wxPyBeginAllowThreads();
14552 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
14553
14554 wxPyEndAllowThreads(__tstate);
14555 if (PyErr_Occurred()) SWIG_fail;
14556 }
14557 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
14558 return resultobj;
14559 fail:
14560 return NULL;
14561 }
14562
14563
14564 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14565 PyObject *resultobj;
14566 wxBrushList *arg1 = (wxBrushList *) 0 ;
14567 wxBrush *arg2 = (wxBrush *) 0 ;
14568 PyObject * obj0 = 0 ;
14569 PyObject * obj1 = 0 ;
14570 char *kwnames[] = {
14571 (char *) "self",(char *) "brush", NULL
14572 };
14573
14574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
14575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14576 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14577 {
14578 PyThreadState* __tstate = wxPyBeginAllowThreads();
14579 (arg1)->RemoveBrush(arg2);
14580
14581 wxPyEndAllowThreads(__tstate);
14582 if (PyErr_Occurred()) SWIG_fail;
14583 }
14584 Py_INCREF(Py_None); resultobj = Py_None;
14585 return resultobj;
14586 fail:
14587 return NULL;
14588 }
14589
14590
14591 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14592 PyObject *resultobj;
14593 wxBrushList *arg1 = (wxBrushList *) 0 ;
14594 int result;
14595 PyObject * obj0 = 0 ;
14596 char *kwnames[] = {
14597 (char *) "self", NULL
14598 };
14599
14600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
14601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14602 {
14603 PyThreadState* __tstate = wxPyBeginAllowThreads();
14604 result = (int)(arg1)->GetCount();
14605
14606 wxPyEndAllowThreads(__tstate);
14607 if (PyErr_Occurred()) SWIG_fail;
14608 }
14609 resultobj = PyInt_FromLong((long)result);
14610 return resultobj;
14611 fail:
14612 return NULL;
14613 }
14614
14615
14616 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
14617 PyObject *obj;
14618 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14619 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
14620 Py_INCREF(obj);
14621 return Py_BuildValue((char *)"");
14622 }
14623 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14624 PyObject *resultobj;
14625 wxColourDatabase *result;
14626 char *kwnames[] = {
14627 NULL
14628 };
14629
14630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 result = (wxColourDatabase *)new wxColourDatabase();
14634
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
14639 return resultobj;
14640 fail:
14641 return NULL;
14642 }
14643
14644
14645 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14646 PyObject *resultobj;
14647 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14648 PyObject * obj0 = 0 ;
14649 char *kwnames[] = {
14650 (char *) "self", NULL
14651 };
14652
14653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
14654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14655 {
14656 PyThreadState* __tstate = wxPyBeginAllowThreads();
14657 delete arg1;
14658
14659 wxPyEndAllowThreads(__tstate);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 }
14662 Py_INCREF(Py_None); resultobj = Py_None;
14663 return resultobj;
14664 fail:
14665 return NULL;
14666 }
14667
14668
14669 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
14670 PyObject *resultobj;
14671 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14672 wxString *arg2 = 0 ;
14673 wxColour result;
14674 bool temp2 = False ;
14675 PyObject * obj0 = 0 ;
14676 PyObject * obj1 = 0 ;
14677 char *kwnames[] = {
14678 (char *) "self",(char *) "name", NULL
14679 };
14680
14681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
14682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14683 {
14684 arg2 = wxString_in_helper(obj1);
14685 if (arg2 == NULL) SWIG_fail;
14686 temp2 = True;
14687 }
14688 {
14689 PyThreadState* __tstate = wxPyBeginAllowThreads();
14690 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
14691
14692 wxPyEndAllowThreads(__tstate);
14693 if (PyErr_Occurred()) SWIG_fail;
14694 }
14695 {
14696 wxColour * resultptr;
14697 resultptr = new wxColour((wxColour &) result);
14698 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
14699 }
14700 {
14701 if (temp2)
14702 delete arg2;
14703 }
14704 return resultobj;
14705 fail:
14706 {
14707 if (temp2)
14708 delete arg2;
14709 }
14710 return NULL;
14711 }
14712
14713
14714 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
14715 PyObject *resultobj;
14716 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14717 wxColour *arg2 = 0 ;
14718 wxString result;
14719 wxColour temp2 ;
14720 PyObject * obj0 = 0 ;
14721 PyObject * obj1 = 0 ;
14722 char *kwnames[] = {
14723 (char *) "self",(char *) "colour", NULL
14724 };
14725
14726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
14727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14728 {
14729 arg2 = &temp2;
14730 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14731 }
14732 {
14733 PyThreadState* __tstate = wxPyBeginAllowThreads();
14734 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
14735
14736 wxPyEndAllowThreads(__tstate);
14737 if (PyErr_Occurred()) SWIG_fail;
14738 }
14739 {
14740 #if wxUSE_UNICODE
14741 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14742 #else
14743 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14744 #endif
14745 }
14746 return resultobj;
14747 fail:
14748 return NULL;
14749 }
14750
14751
14752 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
14753 PyObject *resultobj;
14754 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14755 wxString *arg2 = 0 ;
14756 wxColour *arg3 = 0 ;
14757 bool temp2 = False ;
14758 wxColour temp3 ;
14759 PyObject * obj0 = 0 ;
14760 PyObject * obj1 = 0 ;
14761 PyObject * obj2 = 0 ;
14762 char *kwnames[] = {
14763 (char *) "self",(char *) "name",(char *) "colour", NULL
14764 };
14765
14766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
14767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14768 {
14769 arg2 = wxString_in_helper(obj1);
14770 if (arg2 == NULL) SWIG_fail;
14771 temp2 = True;
14772 }
14773 {
14774 arg3 = &temp3;
14775 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14776 }
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
14780
14781 wxPyEndAllowThreads(__tstate);
14782 if (PyErr_Occurred()) SWIG_fail;
14783 }
14784 Py_INCREF(Py_None); resultobj = Py_None;
14785 {
14786 if (temp2)
14787 delete arg2;
14788 }
14789 return resultobj;
14790 fail:
14791 {
14792 if (temp2)
14793 delete arg2;
14794 }
14795 return NULL;
14796 }
14797
14798
14799 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
14800 PyObject *resultobj;
14801 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14802 wxString *arg2 = 0 ;
14803 int arg3 ;
14804 int arg4 ;
14805 int arg5 ;
14806 bool temp2 = False ;
14807 PyObject * obj0 = 0 ;
14808 PyObject * obj1 = 0 ;
14809 char *kwnames[] = {
14810 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
14811 };
14812
14813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
14814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14815 {
14816 arg2 = wxString_in_helper(obj1);
14817 if (arg2 == NULL) SWIG_fail;
14818 temp2 = True;
14819 }
14820 {
14821 PyThreadState* __tstate = wxPyBeginAllowThreads();
14822 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
14823
14824 wxPyEndAllowThreads(__tstate);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 }
14827 Py_INCREF(Py_None); resultobj = Py_None;
14828 {
14829 if (temp2)
14830 delete arg2;
14831 }
14832 return resultobj;
14833 fail:
14834 {
14835 if (temp2)
14836 delete arg2;
14837 }
14838 return NULL;
14839 }
14840
14841
14842 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
14843 PyObject *obj;
14844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14845 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
14846 Py_INCREF(obj);
14847 return Py_BuildValue((char *)"");
14848 }
14849 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14850 PyObject *resultobj;
14851 wxFontList *arg1 = (wxFontList *) 0 ;
14852 wxFont *arg2 = (wxFont *) 0 ;
14853 PyObject * obj0 = 0 ;
14854 PyObject * obj1 = 0 ;
14855 char *kwnames[] = {
14856 (char *) "self",(char *) "font", NULL
14857 };
14858
14859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
14860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14861 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14862 {
14863 PyThreadState* __tstate = wxPyBeginAllowThreads();
14864 (arg1)->AddFont(arg2);
14865
14866 wxPyEndAllowThreads(__tstate);
14867 if (PyErr_Occurred()) SWIG_fail;
14868 }
14869 Py_INCREF(Py_None); resultobj = Py_None;
14870 return resultobj;
14871 fail:
14872 return NULL;
14873 }
14874
14875
14876 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14877 PyObject *resultobj;
14878 wxFontList *arg1 = (wxFontList *) 0 ;
14879 int arg2 ;
14880 int arg3 ;
14881 int arg4 ;
14882 int arg5 ;
14883 bool arg6 = (bool) False ;
14884 wxString const &arg7_defvalue = wxPyEmptyString ;
14885 wxString *arg7 = (wxString *) &arg7_defvalue ;
14886 int arg8 = (int) wxFONTENCODING_DEFAULT ;
14887 wxFont *result;
14888 bool temp7 = False ;
14889 PyObject * obj0 = 0 ;
14890 PyObject * obj5 = 0 ;
14891 PyObject * obj6 = 0 ;
14892 char *kwnames[] = {
14893 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
14894 };
14895
14896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
14897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14898 if (obj5) {
14899 {
14900 arg6 = (bool) SPyObj_AsBool(obj5);
14901 if (PyErr_Occurred()) SWIG_fail;
14902 }
14903 }
14904 if (obj6) {
14905 {
14906 arg7 = wxString_in_helper(obj6);
14907 if (arg7 == NULL) SWIG_fail;
14908 temp7 = True;
14909 }
14910 }
14911 {
14912 PyThreadState* __tstate = wxPyBeginAllowThreads();
14913 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
14914
14915 wxPyEndAllowThreads(__tstate);
14916 if (PyErr_Occurred()) SWIG_fail;
14917 }
14918 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
14919 {
14920 if (temp7)
14921 delete arg7;
14922 }
14923 return resultobj;
14924 fail:
14925 {
14926 if (temp7)
14927 delete arg7;
14928 }
14929 return NULL;
14930 }
14931
14932
14933 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14934 PyObject *resultobj;
14935 wxFontList *arg1 = (wxFontList *) 0 ;
14936 wxFont *arg2 = (wxFont *) 0 ;
14937 PyObject * obj0 = 0 ;
14938 PyObject * obj1 = 0 ;
14939 char *kwnames[] = {
14940 (char *) "self",(char *) "font", NULL
14941 };
14942
14943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
14944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14945 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14946 {
14947 PyThreadState* __tstate = wxPyBeginAllowThreads();
14948 (arg1)->RemoveFont(arg2);
14949
14950 wxPyEndAllowThreads(__tstate);
14951 if (PyErr_Occurred()) SWIG_fail;
14952 }
14953 Py_INCREF(Py_None); resultobj = Py_None;
14954 return resultobj;
14955 fail:
14956 return NULL;
14957 }
14958
14959
14960 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14961 PyObject *resultobj;
14962 wxFontList *arg1 = (wxFontList *) 0 ;
14963 int result;
14964 PyObject * obj0 = 0 ;
14965 char *kwnames[] = {
14966 (char *) "self", NULL
14967 };
14968
14969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
14970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14971 {
14972 PyThreadState* __tstate = wxPyBeginAllowThreads();
14973 result = (int)(arg1)->GetCount();
14974
14975 wxPyEndAllowThreads(__tstate);
14976 if (PyErr_Occurred()) SWIG_fail;
14977 }
14978 resultobj = PyInt_FromLong((long)result);
14979 return resultobj;
14980 fail:
14981 return NULL;
14982 }
14983
14984
14985 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
14986 PyObject *obj;
14987 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14988 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
14989 Py_INCREF(obj);
14990 return Py_BuildValue((char *)"");
14991 }
14992 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
14993 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
14994 return 1;
14995 }
14996
14997
14998 static PyObject *_wrap_NORMAL_FONT_get() {
14999 PyObject *pyobj;
15000
15001 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
15002 return pyobj;
15003 }
15004
15005
15006 static int _wrap_SMALL_FONT_set(PyObject *_val) {
15007 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
15008 return 1;
15009 }
15010
15011
15012 static PyObject *_wrap_SMALL_FONT_get() {
15013 PyObject *pyobj;
15014
15015 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
15016 return pyobj;
15017 }
15018
15019
15020 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
15021 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
15022 return 1;
15023 }
15024
15025
15026 static PyObject *_wrap_ITALIC_FONT_get() {
15027 PyObject *pyobj;
15028
15029 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
15030 return pyobj;
15031 }
15032
15033
15034 static int _wrap_SWISS_FONT_set(PyObject *_val) {
15035 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
15036 return 1;
15037 }
15038
15039
15040 static PyObject *_wrap_SWISS_FONT_get() {
15041 PyObject *pyobj;
15042
15043 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
15044 return pyobj;
15045 }
15046
15047
15048 static int _wrap_RED_PEN_set(PyObject *_val) {
15049 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
15050 return 1;
15051 }
15052
15053
15054 static PyObject *_wrap_RED_PEN_get() {
15055 PyObject *pyobj;
15056
15057 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
15058 return pyobj;
15059 }
15060
15061
15062 static int _wrap_CYAN_PEN_set(PyObject *_val) {
15063 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
15064 return 1;
15065 }
15066
15067
15068 static PyObject *_wrap_CYAN_PEN_get() {
15069 PyObject *pyobj;
15070
15071 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
15072 return pyobj;
15073 }
15074
15075
15076 static int _wrap_GREEN_PEN_set(PyObject *_val) {
15077 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
15078 return 1;
15079 }
15080
15081
15082 static PyObject *_wrap_GREEN_PEN_get() {
15083 PyObject *pyobj;
15084
15085 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
15086 return pyobj;
15087 }
15088
15089
15090 static int _wrap_BLACK_PEN_set(PyObject *_val) {
15091 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
15092 return 1;
15093 }
15094
15095
15096 static PyObject *_wrap_BLACK_PEN_get() {
15097 PyObject *pyobj;
15098
15099 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
15100 return pyobj;
15101 }
15102
15103
15104 static int _wrap_WHITE_PEN_set(PyObject *_val) {
15105 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
15106 return 1;
15107 }
15108
15109
15110 static PyObject *_wrap_WHITE_PEN_get() {
15111 PyObject *pyobj;
15112
15113 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
15114 return pyobj;
15115 }
15116
15117
15118 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
15119 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
15120 return 1;
15121 }
15122
15123
15124 static PyObject *_wrap_TRANSPARENT_PEN_get() {
15125 PyObject *pyobj;
15126
15127 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
15128 return pyobj;
15129 }
15130
15131
15132 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
15133 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
15134 return 1;
15135 }
15136
15137
15138 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
15139 PyObject *pyobj;
15140
15141 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
15142 return pyobj;
15143 }
15144
15145
15146 static int _wrap_GREY_PEN_set(PyObject *_val) {
15147 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
15148 return 1;
15149 }
15150
15151
15152 static PyObject *_wrap_GREY_PEN_get() {
15153 PyObject *pyobj;
15154
15155 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
15156 return pyobj;
15157 }
15158
15159
15160 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
15161 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
15162 return 1;
15163 }
15164
15165
15166 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
15167 PyObject *pyobj;
15168
15169 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15170 return pyobj;
15171 }
15172
15173
15174 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
15175 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
15176 return 1;
15177 }
15178
15179
15180 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
15181 PyObject *pyobj;
15182
15183 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15184 return pyobj;
15185 }
15186
15187
15188 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
15189 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
15190 return 1;
15191 }
15192
15193
15194 static PyObject *_wrap_BLUE_BRUSH_get() {
15195 PyObject *pyobj;
15196
15197 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15198 return pyobj;
15199 }
15200
15201
15202 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
15203 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
15204 return 1;
15205 }
15206
15207
15208 static PyObject *_wrap_GREEN_BRUSH_get() {
15209 PyObject *pyobj;
15210
15211 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15212 return pyobj;
15213 }
15214
15215
15216 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
15217 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
15218 return 1;
15219 }
15220
15221
15222 static PyObject *_wrap_WHITE_BRUSH_get() {
15223 PyObject *pyobj;
15224
15225 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15226 return pyobj;
15227 }
15228
15229
15230 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
15231 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
15232 return 1;
15233 }
15234
15235
15236 static PyObject *_wrap_BLACK_BRUSH_get() {
15237 PyObject *pyobj;
15238
15239 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
15240 return pyobj;
15241 }
15242
15243
15244 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
15245 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
15246 return 1;
15247 }
15248
15249
15250 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
15251 PyObject *pyobj;
15252
15253 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
15254 return pyobj;
15255 }
15256
15257
15258 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
15259 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
15260 return 1;
15261 }
15262
15263
15264 static PyObject *_wrap_CYAN_BRUSH_get() {
15265 PyObject *pyobj;
15266
15267 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15268 return pyobj;
15269 }
15270
15271
15272 static int _wrap_RED_BRUSH_set(PyObject *_val) {
15273 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
15274 return 1;
15275 }
15276
15277
15278 static PyObject *_wrap_RED_BRUSH_get() {
15279 PyObject *pyobj;
15280
15281 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
15282 return pyobj;
15283 }
15284
15285
15286 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
15287 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
15288 return 1;
15289 }
15290
15291
15292 static PyObject *_wrap_GREY_BRUSH_get() {
15293 PyObject *pyobj;
15294
15295 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15296 return pyobj;
15297 }
15298
15299
15300 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
15301 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
15302 return 1;
15303 }
15304
15305
15306 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
15307 PyObject *pyobj;
15308
15309 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15310 return pyobj;
15311 }
15312
15313
15314 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
15315 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15316 return 1;
15317 }
15318
15319
15320 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15321 PyObject *pyobj;
15322
15323 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15324 return pyobj;
15325 }
15326
15327
15328 static int _wrap_BLACK_set(PyObject *_val) {
15329 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15330 return 1;
15331 }
15332
15333
15334 static PyObject *_wrap_BLACK_get() {
15335 PyObject *pyobj;
15336
15337 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15338 return pyobj;
15339 }
15340
15341
15342 static int _wrap_WHITE_set(PyObject *_val) {
15343 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15344 return 1;
15345 }
15346
15347
15348 static PyObject *_wrap_WHITE_get() {
15349 PyObject *pyobj;
15350
15351 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15352 return pyobj;
15353 }
15354
15355
15356 static int _wrap_RED_set(PyObject *_val) {
15357 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15358 return 1;
15359 }
15360
15361
15362 static PyObject *_wrap_RED_get() {
15363 PyObject *pyobj;
15364
15365 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15366 return pyobj;
15367 }
15368
15369
15370 static int _wrap_BLUE_set(PyObject *_val) {
15371 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15372 return 1;
15373 }
15374
15375
15376 static PyObject *_wrap_BLUE_get() {
15377 PyObject *pyobj;
15378
15379 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15380 return pyobj;
15381 }
15382
15383
15384 static int _wrap_GREEN_set(PyObject *_val) {
15385 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15386 return 1;
15387 }
15388
15389
15390 static PyObject *_wrap_GREEN_get() {
15391 PyObject *pyobj;
15392
15393 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15394 return pyobj;
15395 }
15396
15397
15398 static int _wrap_CYAN_set(PyObject *_val) {
15399 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15400 return 1;
15401 }
15402
15403
15404 static PyObject *_wrap_CYAN_get() {
15405 PyObject *pyobj;
15406
15407 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15408 return pyobj;
15409 }
15410
15411
15412 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15413 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15414 return 1;
15415 }
15416
15417
15418 static PyObject *_wrap_LIGHT_GREY_get() {
15419 PyObject *pyobj;
15420
15421 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15422 return pyobj;
15423 }
15424
15425
15426 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15427 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15428 return 1;
15429 }
15430
15431
15432 static PyObject *_wrap_STANDARD_CURSOR_get() {
15433 PyObject *pyobj;
15434
15435 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15436 return pyobj;
15437 }
15438
15439
15440 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15441 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15442 return 1;
15443 }
15444
15445
15446 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15447 PyObject *pyobj;
15448
15449 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15450 return pyobj;
15451 }
15452
15453
15454 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15455 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15456 return 1;
15457 }
15458
15459
15460 static PyObject *_wrap_CROSS_CURSOR_get() {
15461 PyObject *pyobj;
15462
15463 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15464 return pyobj;
15465 }
15466
15467
15468 static int _wrap_NullBitmap_set(PyObject *_val) {
15469 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
15470 return 1;
15471 }
15472
15473
15474 static PyObject *_wrap_NullBitmap_get() {
15475 PyObject *pyobj;
15476
15477 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
15478 return pyobj;
15479 }
15480
15481
15482 static int _wrap_NullIcon_set(PyObject *_val) {
15483 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
15484 return 1;
15485 }
15486
15487
15488 static PyObject *_wrap_NullIcon_get() {
15489 PyObject *pyobj;
15490
15491 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
15492 return pyobj;
15493 }
15494
15495
15496 static int _wrap_NullCursor_set(PyObject *_val) {
15497 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
15498 return 1;
15499 }
15500
15501
15502 static PyObject *_wrap_NullCursor_get() {
15503 PyObject *pyobj;
15504
15505 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
15506 return pyobj;
15507 }
15508
15509
15510 static int _wrap_NullPen_set(PyObject *_val) {
15511 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
15512 return 1;
15513 }
15514
15515
15516 static PyObject *_wrap_NullPen_get() {
15517 PyObject *pyobj;
15518
15519 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
15520 return pyobj;
15521 }
15522
15523
15524 static int _wrap_NullBrush_set(PyObject *_val) {
15525 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
15526 return 1;
15527 }
15528
15529
15530 static PyObject *_wrap_NullBrush_get() {
15531 PyObject *pyobj;
15532
15533 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
15534 return pyobj;
15535 }
15536
15537
15538 static int _wrap_NullPalette_set(PyObject *_val) {
15539 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
15540 return 1;
15541 }
15542
15543
15544 static PyObject *_wrap_NullPalette_get() {
15545 PyObject *pyobj;
15546
15547 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
15548 return pyobj;
15549 }
15550
15551
15552 static int _wrap_NullFont_set(PyObject *_val) {
15553 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
15554 return 1;
15555 }
15556
15557
15558 static PyObject *_wrap_NullFont_get() {
15559 PyObject *pyobj;
15560
15561 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
15562 return pyobj;
15563 }
15564
15565
15566 static int _wrap_NullColour_set(PyObject *_val) {
15567 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
15568 return 1;
15569 }
15570
15571
15572 static PyObject *_wrap_NullColour_get() {
15573 PyObject *pyobj;
15574
15575 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
15576 return pyobj;
15577 }
15578
15579
15580 static int _wrap_TheFontList_set(PyObject *_val) {
15581 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
15582 return 1;
15583 }
15584
15585
15586 static PyObject *_wrap_TheFontList_get() {
15587 PyObject *pyobj;
15588
15589 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
15590 return pyobj;
15591 }
15592
15593
15594 static int _wrap_ThePenList_set(PyObject *_val) {
15595 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
15596 return 1;
15597 }
15598
15599
15600 static PyObject *_wrap_ThePenList_get() {
15601 PyObject *pyobj;
15602
15603 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
15604 return pyobj;
15605 }
15606
15607
15608 static int _wrap_TheBrushList_set(PyObject *_val) {
15609 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
15610 return 1;
15611 }
15612
15613
15614 static PyObject *_wrap_TheBrushList_get() {
15615 PyObject *pyobj;
15616
15617 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
15618 return pyobj;
15619 }
15620
15621
15622 static int _wrap_TheColourDatabase_set(PyObject *_val) {
15623 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
15624 return 1;
15625 }
15626
15627
15628 static PyObject *_wrap_TheColourDatabase_get() {
15629 PyObject *pyobj;
15630
15631 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
15632 return pyobj;
15633 }
15634
15635
15636 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
15637 PyObject *resultobj;
15638 wxEffects *result;
15639 char *kwnames[] = {
15640 NULL
15641 };
15642
15643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
15644 {
15645 PyThreadState* __tstate = wxPyBeginAllowThreads();
15646 result = (wxEffects *)new wxEffects();
15647
15648 wxPyEndAllowThreads(__tstate);
15649 if (PyErr_Occurred()) SWIG_fail;
15650 }
15651 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
15652 return resultobj;
15653 fail:
15654 return NULL;
15655 }
15656
15657
15658 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15659 PyObject *resultobj;
15660 wxEffects *arg1 = (wxEffects *) 0 ;
15661 wxColour result;
15662 PyObject * obj0 = 0 ;
15663 char *kwnames[] = {
15664 (char *) "self", NULL
15665 };
15666
15667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15669 {
15670 PyThreadState* __tstate = wxPyBeginAllowThreads();
15671 result = ((wxEffects const *)arg1)->GetHighlightColour();
15672
15673 wxPyEndAllowThreads(__tstate);
15674 if (PyErr_Occurred()) SWIG_fail;
15675 }
15676 {
15677 wxColour * resultptr;
15678 resultptr = new wxColour((wxColour &) result);
15679 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15680 }
15681 return resultobj;
15682 fail:
15683 return NULL;
15684 }
15685
15686
15687 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15688 PyObject *resultobj;
15689 wxEffects *arg1 = (wxEffects *) 0 ;
15690 wxColour result;
15691 PyObject * obj0 = 0 ;
15692 char *kwnames[] = {
15693 (char *) "self", NULL
15694 };
15695
15696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15698 {
15699 PyThreadState* __tstate = wxPyBeginAllowThreads();
15700 result = ((wxEffects const *)arg1)->GetLightShadow();
15701
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 {
15706 wxColour * resultptr;
15707 resultptr = new wxColour((wxColour &) result);
15708 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15709 }
15710 return resultobj;
15711 fail:
15712 return NULL;
15713 }
15714
15715
15716 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15717 PyObject *resultobj;
15718 wxEffects *arg1 = (wxEffects *) 0 ;
15719 wxColour result;
15720 PyObject * obj0 = 0 ;
15721 char *kwnames[] = {
15722 (char *) "self", NULL
15723 };
15724
15725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15727 {
15728 PyThreadState* __tstate = wxPyBeginAllowThreads();
15729 result = ((wxEffects const *)arg1)->GetFaceColour();
15730
15731 wxPyEndAllowThreads(__tstate);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 {
15735 wxColour * resultptr;
15736 resultptr = new wxColour((wxColour &) result);
15737 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15738 }
15739 return resultobj;
15740 fail:
15741 return NULL;
15742 }
15743
15744
15745 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15746 PyObject *resultobj;
15747 wxEffects *arg1 = (wxEffects *) 0 ;
15748 wxColour result;
15749 PyObject * obj0 = 0 ;
15750 char *kwnames[] = {
15751 (char *) "self", NULL
15752 };
15753
15754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15756 {
15757 PyThreadState* __tstate = wxPyBeginAllowThreads();
15758 result = ((wxEffects const *)arg1)->GetMediumShadow();
15759
15760 wxPyEndAllowThreads(__tstate);
15761 if (PyErr_Occurred()) SWIG_fail;
15762 }
15763 {
15764 wxColour * resultptr;
15765 resultptr = new wxColour((wxColour &) result);
15766 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15767 }
15768 return resultobj;
15769 fail:
15770 return NULL;
15771 }
15772
15773
15774 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15775 PyObject *resultobj;
15776 wxEffects *arg1 = (wxEffects *) 0 ;
15777 wxColour result;
15778 PyObject * obj0 = 0 ;
15779 char *kwnames[] = {
15780 (char *) "self", NULL
15781 };
15782
15783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15785 {
15786 PyThreadState* __tstate = wxPyBeginAllowThreads();
15787 result = ((wxEffects const *)arg1)->GetDarkShadow();
15788
15789 wxPyEndAllowThreads(__tstate);
15790 if (PyErr_Occurred()) SWIG_fail;
15791 }
15792 {
15793 wxColour * resultptr;
15794 resultptr = new wxColour((wxColour &) result);
15795 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15796 }
15797 return resultobj;
15798 fail:
15799 return NULL;
15800 }
15801
15802
15803 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15804 PyObject *resultobj;
15805 wxEffects *arg1 = (wxEffects *) 0 ;
15806 wxColour *arg2 = 0 ;
15807 wxColour temp2 ;
15808 PyObject * obj0 = 0 ;
15809 PyObject * obj1 = 0 ;
15810 char *kwnames[] = {
15811 (char *) "self",(char *) "c", NULL
15812 };
15813
15814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15816 {
15817 arg2 = &temp2;
15818 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15819 }
15820 {
15821 PyThreadState* __tstate = wxPyBeginAllowThreads();
15822 (arg1)->SetHighlightColour((wxColour const &)*arg2);
15823
15824 wxPyEndAllowThreads(__tstate);
15825 if (PyErr_Occurred()) SWIG_fail;
15826 }
15827 Py_INCREF(Py_None); resultobj = Py_None;
15828 return resultobj;
15829 fail:
15830 return NULL;
15831 }
15832
15833
15834 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15835 PyObject *resultobj;
15836 wxEffects *arg1 = (wxEffects *) 0 ;
15837 wxColour *arg2 = 0 ;
15838 wxColour temp2 ;
15839 PyObject * obj0 = 0 ;
15840 PyObject * obj1 = 0 ;
15841 char *kwnames[] = {
15842 (char *) "self",(char *) "c", NULL
15843 };
15844
15845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15847 {
15848 arg2 = &temp2;
15849 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15850 }
15851 {
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 (arg1)->SetLightShadow((wxColour const &)*arg2);
15854
15855 wxPyEndAllowThreads(__tstate);
15856 if (PyErr_Occurred()) SWIG_fail;
15857 }
15858 Py_INCREF(Py_None); resultobj = Py_None;
15859 return resultobj;
15860 fail:
15861 return NULL;
15862 }
15863
15864
15865 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15866 PyObject *resultobj;
15867 wxEffects *arg1 = (wxEffects *) 0 ;
15868 wxColour *arg2 = 0 ;
15869 wxColour temp2 ;
15870 PyObject * obj0 = 0 ;
15871 PyObject * obj1 = 0 ;
15872 char *kwnames[] = {
15873 (char *) "self",(char *) "c", NULL
15874 };
15875
15876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15878 {
15879 arg2 = &temp2;
15880 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15881 }
15882 {
15883 PyThreadState* __tstate = wxPyBeginAllowThreads();
15884 (arg1)->SetFaceColour((wxColour const &)*arg2);
15885
15886 wxPyEndAllowThreads(__tstate);
15887 if (PyErr_Occurred()) SWIG_fail;
15888 }
15889 Py_INCREF(Py_None); resultobj = Py_None;
15890 return resultobj;
15891 fail:
15892 return NULL;
15893 }
15894
15895
15896 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15897 PyObject *resultobj;
15898 wxEffects *arg1 = (wxEffects *) 0 ;
15899 wxColour *arg2 = 0 ;
15900 wxColour temp2 ;
15901 PyObject * obj0 = 0 ;
15902 PyObject * obj1 = 0 ;
15903 char *kwnames[] = {
15904 (char *) "self",(char *) "c", NULL
15905 };
15906
15907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15908 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15909 {
15910 arg2 = &temp2;
15911 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15912 }
15913 {
15914 PyThreadState* __tstate = wxPyBeginAllowThreads();
15915 (arg1)->SetMediumShadow((wxColour const &)*arg2);
15916
15917 wxPyEndAllowThreads(__tstate);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 }
15920 Py_INCREF(Py_None); resultobj = Py_None;
15921 return resultobj;
15922 fail:
15923 return NULL;
15924 }
15925
15926
15927 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15928 PyObject *resultobj;
15929 wxEffects *arg1 = (wxEffects *) 0 ;
15930 wxColour *arg2 = 0 ;
15931 wxColour temp2 ;
15932 PyObject * obj0 = 0 ;
15933 PyObject * obj1 = 0 ;
15934 char *kwnames[] = {
15935 (char *) "self",(char *) "c", NULL
15936 };
15937
15938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15940 {
15941 arg2 = &temp2;
15942 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15943 }
15944 {
15945 PyThreadState* __tstate = wxPyBeginAllowThreads();
15946 (arg1)->SetDarkShadow((wxColour const &)*arg2);
15947
15948 wxPyEndAllowThreads(__tstate);
15949 if (PyErr_Occurred()) SWIG_fail;
15950 }
15951 Py_INCREF(Py_None); resultobj = Py_None;
15952 return resultobj;
15953 fail:
15954 return NULL;
15955 }
15956
15957
15958 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
15959 PyObject *resultobj;
15960 wxEffects *arg1 = (wxEffects *) 0 ;
15961 wxColour *arg2 = 0 ;
15962 wxColour *arg3 = 0 ;
15963 wxColour *arg4 = 0 ;
15964 wxColour *arg5 = 0 ;
15965 wxColour *arg6 = 0 ;
15966 wxColour temp2 ;
15967 wxColour temp3 ;
15968 wxColour temp4 ;
15969 wxColour temp5 ;
15970 wxColour temp6 ;
15971 PyObject * obj0 = 0 ;
15972 PyObject * obj1 = 0 ;
15973 PyObject * obj2 = 0 ;
15974 PyObject * obj3 = 0 ;
15975 PyObject * obj4 = 0 ;
15976 PyObject * obj5 = 0 ;
15977 char *kwnames[] = {
15978 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
15979 };
15980
15981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15983 {
15984 arg2 = &temp2;
15985 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15986 }
15987 {
15988 arg3 = &temp3;
15989 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15990 }
15991 {
15992 arg4 = &temp4;
15993 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15994 }
15995 {
15996 arg5 = &temp5;
15997 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
15998 }
15999 {
16000 arg6 = &temp6;
16001 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
16002 }
16003 {
16004 PyThreadState* __tstate = wxPyBeginAllowThreads();
16005 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
16006
16007 wxPyEndAllowThreads(__tstate);
16008 if (PyErr_Occurred()) SWIG_fail;
16009 }
16010 Py_INCREF(Py_None); resultobj = Py_None;
16011 return resultobj;
16012 fail:
16013 return NULL;
16014 }
16015
16016
16017 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
16018 PyObject *resultobj;
16019 wxEffects *arg1 = (wxEffects *) 0 ;
16020 wxDC *arg2 = 0 ;
16021 wxRect *arg3 = 0 ;
16022 int arg4 = (int) 1 ;
16023 wxRect temp3 ;
16024 PyObject * obj0 = 0 ;
16025 PyObject * obj1 = 0 ;
16026 PyObject * obj2 = 0 ;
16027 char *kwnames[] = {
16028 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
16029 };
16030
16031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
16032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16033 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16034 if (arg2 == NULL) {
16035 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16036 }
16037 {
16038 arg3 = &temp3;
16039 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
16040 }
16041 {
16042 PyThreadState* __tstate = wxPyBeginAllowThreads();
16043 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
16044
16045 wxPyEndAllowThreads(__tstate);
16046 if (PyErr_Occurred()) SWIG_fail;
16047 }
16048 Py_INCREF(Py_None); resultobj = Py_None;
16049 return resultobj;
16050 fail:
16051 return NULL;
16052 }
16053
16054
16055 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj;
16057 wxEffects *arg1 = (wxEffects *) 0 ;
16058 wxRect *arg2 = 0 ;
16059 wxDC *arg3 = 0 ;
16060 wxBitmap *arg4 = 0 ;
16061 bool result;
16062 wxRect temp2 ;
16063 PyObject * obj0 = 0 ;
16064 PyObject * obj1 = 0 ;
16065 PyObject * obj2 = 0 ;
16066 PyObject * obj3 = 0 ;
16067 char *kwnames[] = {
16068 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
16069 };
16070
16071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16073 {
16074 arg2 = &temp2;
16075 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16076 }
16077 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16078 if (arg3 == NULL) {
16079 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16080 }
16081 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16082 if (arg4 == NULL) {
16083 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16084 }
16085 {
16086 PyThreadState* __tstate = wxPyBeginAllowThreads();
16087 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
16088
16089 wxPyEndAllowThreads(__tstate);
16090 if (PyErr_Occurred()) SWIG_fail;
16091 }
16092 resultobj = PyInt_FromLong((long)result);
16093 return resultobj;
16094 fail:
16095 return NULL;
16096 }
16097
16098
16099 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
16100 PyObject *obj;
16101 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16102 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
16103 Py_INCREF(obj);
16104 return Py_BuildValue((char *)"");
16105 }
16106 static PyMethodDef SwigMethods[] = {
16107 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
16108 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
16109 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
16110 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
16111 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
16112 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
16113 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
16114 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
16115 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
16116 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
16117 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
16118 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
16119 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
16120 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
16121 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
16122 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
16123 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
16124 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
16125 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
16126 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
16127 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
16128 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
16129 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
16130 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
16131 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
16132 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
16133 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
16134 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
16135 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
16136 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
16137 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
16138 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
16139 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
16140 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
16141 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
16142 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
16143 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
16144 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
16145 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
16146 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
16147 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
16148 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
16149 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
16150 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
16151 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
16152 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
16153 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
16154 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
16155 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
16156 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
16157 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
16158 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
16159 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
16160 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
16161 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
16162 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
16163 { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS },
16164 { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS },
16165 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
16166 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
16167 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
16168 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
16169 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
16170 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
16171 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
16172 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
16173 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
16174 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
16175 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
16176 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
16177 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
16178 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
16179 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
16180 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
16181 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
16182 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
16183 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
16184 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
16185 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
16186 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
16187 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
16188 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
16189 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
16190 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
16191 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
16192 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
16193 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
16194 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
16195 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
16196 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
16197 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
16198 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
16199 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
16200 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
16201 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
16202 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
16203 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
16204 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
16205 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
16206 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
16207 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
16208 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
16209 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
16210 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
16211 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
16212 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
16213 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
16214 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
16215 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
16216 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
16217 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
16218 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
16219 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
16220 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
16221 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
16222 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
16223 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
16224 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
16225 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
16226 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
16227 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
16228 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
16229 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
16230 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
16231 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
16232 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
16233 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
16234 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
16235 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
16236 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
16237 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
16238 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
16239 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
16240 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
16241 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
16242 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
16243 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
16244 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
16245 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
16246 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
16247 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
16248 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
16249 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
16250 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
16251 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
16252 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
16253 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
16254 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
16255 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
16256 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16257 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16258 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
16259 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
16260 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
16261 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
16262 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
16263 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
16264 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
16265 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
16266 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
16267 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
16268 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
16269 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
16270 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16271 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16272 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
16273 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
16274 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16275 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
16276 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
16277 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16278 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16279 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
16280 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16281 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16282 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
16283 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
16284 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16285 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16286 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
16287 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16288 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16289 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16290 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
16291 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
16292 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
16293 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
16294 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
16295 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
16296 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
16297 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
16298 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16299 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16300 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16301 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16302 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
16303 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
16304 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
16305 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
16306 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
16307 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
16308 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
16309 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
16310 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
16311 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16312 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
16313 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
16314 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
16315 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
16316 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
16317 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16318 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16319 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16320 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16321 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16322 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16323 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16324 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16325 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16326 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16327 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16328 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16329 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16330 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16331 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16332 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16333 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16334 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16335 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16336 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16337 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16338 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16339 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16340 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16341 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16342 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16343 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16344 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16345 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16346 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16347 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16348 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16349 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16350 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16351 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16352 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16353 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16354 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16355 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16356 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16357 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16358 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16359 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16360 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16361 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16362 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16363 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16364 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16365 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16366 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16367 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16368 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16369 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16370 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16371 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16372 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16373 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16374 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16375 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16376 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16377 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16378 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16379 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16380 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16381 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16382 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16383 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16384 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16385 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16386 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16387 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16388 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16389 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16390 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16391 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16392 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16393 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16394 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16395 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16396 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16397 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16398 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16399 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16400 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16401 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16402 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16403 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16404 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16405 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16406 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16407 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16408 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16409 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16410 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16411 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16412 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16413 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16414 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16415 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16416 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16417 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16418 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16419 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16420 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16421 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16422 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16423 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16424 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16425 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16426 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16427 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16428 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16429 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16430 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16431 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16432 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16433 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16434 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16435 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16436 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16437 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16438 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16439 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16440 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16441 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16442 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16443 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16444 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16445 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16446 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
16447 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
16448 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
16449 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
16450 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
16451 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
16452 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
16453 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
16454 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
16455 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
16456 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
16457 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
16458 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
16459 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
16460 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16461 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
16462 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
16463 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
16464 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
16465 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
16466 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
16467 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
16468 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
16469 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
16470 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
16471 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
16472 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
16473 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
16474 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
16475 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
16476 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
16477 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
16478 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
16479 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
16480 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
16481 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
16482 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
16483 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
16484 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
16485 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
16486 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
16487 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
16488 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
16489 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
16490 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
16491 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16492 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
16493 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
16494 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
16495 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
16496 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
16497 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
16498 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
16499 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
16500 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
16501 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
16502 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
16503 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
16504 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16505 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16506 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16507 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
16508 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16509 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16510 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
16511 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16512 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
16513 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16514 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16515 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
16516 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
16517 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
16518 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16519 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
16520 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
16521 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
16522 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
16523 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16524 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
16525 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
16526 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
16527 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
16528 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
16529 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
16530 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
16531 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
16532 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
16533 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
16534 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
16535 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
16536 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
16537 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
16538 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
16539 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
16540 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
16541 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
16542 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
16543 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16544 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16545 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
16546 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
16547 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
16548 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
16549 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
16550 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
16551 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
16552 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
16553 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
16554 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
16555 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
16556 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
16557 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
16558 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
16559 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
16560 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
16561 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
16562 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
16563 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
16564 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
16565 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
16566 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
16567 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
16568 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
16569 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
16570 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
16571 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
16572 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
16573 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
16574 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
16575 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
16576 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
16577 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
16578 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
16579 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
16580 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
16581 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
16582 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
16583 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
16584 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
16585 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
16586 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
16587 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
16588 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16589 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16590 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
16591 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
16592 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
16593 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
16594 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
16595 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
16596 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
16597 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
16598 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
16599 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
16600 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
16601 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16602 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
16603 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
16604 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16605 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16606 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16607 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
16608 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
16609 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16610 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16611 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
16612 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
16613 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
16614 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
16615 { NULL, NULL }
16616 };
16617
16618
16619 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16620
16621 static void *_p_wxControlTo_p_wxWindow(void *x) {
16622 return (void *)((wxWindow *) ((wxControl *) x));
16623 }
16624 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
16625 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
16626 }
16627 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
16628 return (void *)((wxWindow *) ((wxMenuBar *) x));
16629 }
16630 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
16631 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
16632 }
16633 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
16634 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
16635 }
16636 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16637 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16638 }
16639 static void *_p_wxPenTo_p_wxObject(void *x) {
16640 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
16641 }
16642 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
16643 return (void *)((wxObject *) ((wxRegionIterator *) x));
16644 }
16645 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16646 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16647 }
16648 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16649 return (void *)((wxObject *) ((wxSizerItem *) x));
16650 }
16651 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
16652 return (void *)((wxObject *) ((wxColourDatabase *) x));
16653 }
16654 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16655 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16656 }
16657 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16658 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16659 }
16660 static void *_p_wxIconTo_p_wxObject(void *x) {
16661 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
16662 }
16663 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16664 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16665 }
16666 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16667 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16668 }
16669 static void *_p_wxSizerTo_p_wxObject(void *x) {
16670 return (void *)((wxObject *) ((wxSizer *) x));
16671 }
16672 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16673 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16674 }
16675 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16676 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16677 }
16678 static void *_p_wxPenListTo_p_wxObject(void *x) {
16679 return (void *)((wxObject *) ((wxPenList *) x));
16680 }
16681 static void *_p_wxEventTo_p_wxObject(void *x) {
16682 return (void *)((wxObject *) ((wxEvent *) x));
16683 }
16684 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16685 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16686 }
16687 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16688 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16689 }
16690 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16691 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16692 }
16693 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16694 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16695 }
16696 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16697 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16698 }
16699 static void *_p_wxDCTo_p_wxObject(void *x) {
16700 return (void *)((wxObject *) ((wxDC *) x));
16701 }
16702 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16703 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16704 }
16705 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16706 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16707 }
16708 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16709 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16710 }
16711 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16712 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16713 }
16714 static void *_p_wxControlTo_p_wxObject(void *x) {
16715 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16716 }
16717 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16718 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16719 }
16720 static void *_p_wxClientDCTo_p_wxObject(void *x) {
16721 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
16722 }
16723 static void *_p_wxFSFileTo_p_wxObject(void *x) {
16724 return (void *)((wxObject *) ((wxFSFile *) x));
16725 }
16726 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
16727 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
16728 }
16729 static void *_p_wxRegionTo_p_wxObject(void *x) {
16730 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
16731 }
16732 static void *_p_wxPySizerTo_p_wxObject(void *x) {
16733 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16734 }
16735 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
16736 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
16737 }
16738 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
16739 return (void *)((wxObject *) ((wxGDIObject *) x));
16740 }
16741 static void *_p_wxEffectsTo_p_wxObject(void *x) {
16742 return (void *)((wxObject *) ((wxEffects *) x));
16743 }
16744 static void *_p_wxPyEventTo_p_wxObject(void *x) {
16745 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16746 }
16747 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16748 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16749 }
16750 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
16751 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
16752 }
16753 static void *_p_wxShowEventTo_p_wxObject(void *x) {
16754 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16755 }
16756 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16757 return (void *)((wxObject *) ((wxMenuItem *) x));
16758 }
16759 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16760 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16761 }
16762 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16763 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16764 }
16765 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16766 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16767 }
16768 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16769 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16770 }
16771 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16772 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16773 }
16774 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16775 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16776 }
16777 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16778 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16779 }
16780 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16781 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16782 }
16783 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16784 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16785 }
16786 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16787 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16788 }
16789 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16790 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16791 }
16792 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16793 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16794 }
16795 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16796 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16797 }
16798 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16799 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16800 }
16801 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16802 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16803 }
16804 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16805 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16806 }
16807 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16808 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16809 }
16810 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16811 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16812 }
16813 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16814 return (void *)((wxObject *) ((wxImageHandler *) x));
16815 }
16816 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16817 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16818 }
16819 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16820 return (void *)((wxObject *) ((wxEvtHandler *) x));
16821 }
16822 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
16823 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16824 }
16825 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
16826 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
16827 }
16828 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
16829 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
16830 }
16831 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
16832 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
16833 }
16834 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16835 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16836 }
16837 static void *_p_wxImageTo_p_wxObject(void *x) {
16838 return (void *)((wxObject *) ((wxImage *) x));
16839 }
16840 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16841 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16842 }
16843 static void *_p_wxPaletteTo_p_wxObject(void *x) {
16844 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
16845 }
16846 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
16847 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
16848 }
16849 static void *_p_wxImageListTo_p_wxObject(void *x) {
16850 return (void *)((wxObject *) ((wxImageList *) x));
16851 }
16852 static void *_p_wxCursorTo_p_wxObject(void *x) {
16853 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
16854 }
16855 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
16856 return (void *)((wxObject *) ((wxEncodingConverter *) x));
16857 }
16858 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
16859 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
16860 }
16861 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16862 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16863 }
16864 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16865 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16866 }
16867 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16868 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16869 }
16870 static void *_p_wxWindowTo_p_wxObject(void *x) {
16871 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16872 }
16873 static void *_p_wxMenuTo_p_wxObject(void *x) {
16874 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16875 }
16876 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16877 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16878 }
16879 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
16880 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
16881 }
16882 static void *_p_wxBrushListTo_p_wxObject(void *x) {
16883 return (void *)((wxObject *) ((wxBrushList *) x));
16884 }
16885 static void *_p_wxPyPenTo_p_wxObject(void *x) {
16886 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
16887 }
16888 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16889 return (void *)((wxObject *) ((wxFileSystem *) x));
16890 }
16891 static void *_p_wxBitmapTo_p_wxObject(void *x) {
16892 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
16893 }
16894 static void *_p_wxMaskTo_p_wxObject(void *x) {
16895 return (void *)((wxObject *) ((wxMask *) x));
16896 }
16897 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16898 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16899 }
16900 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16901 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16902 }
16903 static void *_p_wxPyAppTo_p_wxObject(void *x) {
16904 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16905 }
16906 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16907 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16908 }
16909 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16910 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16911 }
16912 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16913 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16914 }
16915 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16916 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16917 }
16918 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16919 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16920 }
16921 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16922 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16923 }
16924 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16925 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16926 }
16927 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16928 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16929 }
16930 static void *_p_wxFontTo_p_wxObject(void *x) {
16931 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
16932 }
16933 static void *_p_wxBrushTo_p_wxObject(void *x) {
16934 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
16935 }
16936 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
16937 return (void *)((wxObject *) ((wxMetaFile *) x));
16938 }
16939 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16940 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16941 }
16942 static void *_p_wxColourTo_p_wxObject(void *x) {
16943 return (void *)((wxObject *) ((wxColour *) x));
16944 }
16945 static void *_p_wxFontListTo_p_wxObject(void *x) {
16946 return (void *)((wxObject *) ((wxFontList *) x));
16947 }
16948 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
16949 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
16950 }
16951 static void *_p_wxValidatorTo_p_wxObject(void *x) {
16952 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
16953 }
16954 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
16955 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
16956 }
16957 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
16958 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
16959 }
16960 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
16961 return (void *)((wxDC *) ((wxScreenDC *) x));
16962 }
16963 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
16964 return (void *)((wxDC *) ((wxMirrorDC *) x));
16965 }
16966 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
16967 return (void *)((wxDC *) ((wxMemoryDC *) x));
16968 }
16969 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
16970 return (void *)((wxDC *) ((wxWindowDC *) x));
16971 }
16972 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
16973 return (void *)((wxDC *) ((wxMetaFileDC *) x));
16974 }
16975 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
16976 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16977 }
16978 static void *_p_wxClientDCTo_p_wxDC(void *x) {
16979 return (void *)((wxDC *) ((wxClientDC *) x));
16980 }
16981 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
16982 return (void *)((wxDC *) ((wxPaintDC *) x));
16983 }
16984 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
16985 return (void *)((wxDC *) ((wxPostScriptDC *) x));
16986 }
16987 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
16988 return (void *)((wxDC *) ((wxPrinterDC *) x));
16989 }
16990 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
16991 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
16992 }
16993 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
16994 return (void *)((wxGDIObject *) ((wxIcon *) x));
16995 }
16996 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
16997 return (void *)((wxGDIObject *) ((wxPalette *) x));
16998 }
16999 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
17000 return (void *)((wxGDIObject *) ((wxPen *) x));
17001 }
17002 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
17003 return (void *)((wxGDIObject *) ((wxFont *) x));
17004 }
17005 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
17006 return (void *)((wxGDIObject *) ((wxCursor *) x));
17007 }
17008 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
17009 return (void *)((wxGDIObject *) ((wxBitmap *) x));
17010 }
17011 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
17012 return (void *)((wxGDIObject *) ((wxRegion *) x));
17013 }
17014 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
17015 return (void *)((wxGDIObject *) ((wxBrush *) x));
17016 }
17017 static void *_p_wxPyPenTo_p_wxPen(void *x) {
17018 return (void *)((wxPen *) ((wxPyPen *) x));
17019 }
17020 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
17021 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
17022 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
17023 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}};
17024 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
17025 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
17026 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
17027 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
17028 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
17029 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
17030 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
17031 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
17032 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}};
17033 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
17034 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
17035 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}};
17036 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
17037 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
17038 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
17039 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
17040 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
17041 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}};
17042 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
17043 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
17044 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
17045 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
17046 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
17047 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
17048 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
17049 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
17050 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
17051 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
17052 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
17053 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
17054 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
17055 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}};
17056 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
17057 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
17058 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
17059 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
17060 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
17061 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
17062 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
17063 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
17064 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
17065 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
17066 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
17067 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
17068 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
17069 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
17070 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
17071 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
17072 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
17073 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
17074 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
17075
17076 static swig_type_info *swig_types_initial[] = {
17077 _swigt__p_wxPostScriptDC,
17078 _swigt__p_wxBrush,
17079 _swigt__p_wxColour,
17080 _swigt__p_wxDC,
17081 _swigt__p_wxMirrorDC,
17082 _swigt__p_byte,
17083 _swigt__p_wxPyFontEnumerator,
17084 _swigt__p_wxIconLocation,
17085 _swigt__p_wxImage,
17086 _swigt__p_wxMetaFileDC,
17087 _swigt__p_wxMask,
17088 _swigt__p_wxFont,
17089 _swigt__p_wxWindow,
17090 _swigt__p_wxSize,
17091 _swigt__p_double,
17092 _swigt__p_wxMemoryDC,
17093 _swigt__p_wxFontMapper,
17094 _swigt__p_wxEffects,
17095 _swigt__p_wxNativeEncodingInfo,
17096 _swigt__p_wxPalette,
17097 _swigt__p_wxBitmap,
17098 _swigt__p_wxObject,
17099 _swigt__p_wxRegionIterator,
17100 _swigt__p_wxRect,
17101 _swigt__p_wxString,
17102 _swigt__p_wxPrinterDC,
17103 _swigt__p_wxIconBundle,
17104 _swigt__p_wxPoint,
17105 _swigt__p_wxDash,
17106 _swigt__p_wxScreenDC,
17107 _swigt__p_wxCursor,
17108 _swigt__p_wxClientDC,
17109 _swigt__p_wxBufferedDC,
17110 _swigt__p_wxImageList,
17111 _swigt__p_unsigned_char,
17112 _swigt__p_wxGDIObject,
17113 _swigt__p_wxLocale,
17114 _swigt__p_wxIcon,
17115 _swigt__p_wxRegion,
17116 _swigt__p_wxLanguageInfo,
17117 _swigt__p_wxConfigBase,
17118 _swigt__p_wxWindowDC,
17119 _swigt__p_wxPrintData,
17120 _swigt__p_wxBrushList,
17121 _swigt__p_wxFontList,
17122 _swigt__p_wxPen,
17123 _swigt__p_wxBufferedPaintDC,
17124 _swigt__p_wxPaintDC,
17125 _swigt__p_wxPenList,
17126 _swigt__p_wxPyPen,
17127 _swigt__p_int,
17128 _swigt__p_wxMetaFile,
17129 _swigt__p_wxNativeFontInfo,
17130 _swigt__p_wxEncodingConverter,
17131 _swigt__p_wxColourDatabase,
17132 0
17133 };
17134
17135
17136 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
17137
17138 static swig_const_info swig_const_table[] = {
17139 { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
17140 { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
17141 { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
17142 { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
17143 { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
17144 { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
17145 { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
17146 { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
17147 { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
17148 { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
17149 { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
17150 { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
17151 { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
17152 { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
17153 { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
17154 { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
17155 { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
17156 { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
17157 { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
17158 { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
17159 { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
17160 { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
17161 { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
17162 { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
17163 { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
17164 { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
17165 { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
17166 { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
17167 { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
17168 { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
17169 { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
17170 { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
17171 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
17172 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
17173 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
17174 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
17175 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
17176 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
17177 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
17178 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
17179 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
17180 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
17181 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
17182 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
17183 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
17184 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
17185 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
17186 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
17187 { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
17188 { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
17189 { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
17190 { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
17191 { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
17192 { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
17193 { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
17194 { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
17195 { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
17196 { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
17197 { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
17198 { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
17199 { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
17200 { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
17201 { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
17202 { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
17203 { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
17204 { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
17205 { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
17206 { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
17207 { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
17208 { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
17209 { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
17210 { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
17211 { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
17212 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
17213 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
17214 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
17215 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
17216 { SWIG_PY_INT, (char *)"FONTENCODING_MACROMAN", (long) wxFONTENCODING_MACROMAN, 0, 0, 0},
17217 { SWIG_PY_INT, (char *)"FONTENCODING_MACJAPANESE", (long) wxFONTENCODING_MACJAPANESE, 0, 0, 0},
17218 { SWIG_PY_INT, (char *)"FONTENCODING_MACCHINESETRAD", (long) wxFONTENCODING_MACCHINESETRAD, 0, 0, 0},
17219 { SWIG_PY_INT, (char *)"FONTENCODING_MACKOREAN", (long) wxFONTENCODING_MACKOREAN, 0, 0, 0},
17220 { SWIG_PY_INT, (char *)"FONTENCODING_MACARABIC", (long) wxFONTENCODING_MACARABIC, 0, 0, 0},
17221 { SWIG_PY_INT, (char *)"FONTENCODING_MACHEBREW", (long) wxFONTENCODING_MACHEBREW, 0, 0, 0},
17222 { SWIG_PY_INT, (char *)"FONTENCODING_MACGREEK", (long) wxFONTENCODING_MACGREEK, 0, 0, 0},
17223 { SWIG_PY_INT, (char *)"FONTENCODING_MACCYRILLIC", (long) wxFONTENCODING_MACCYRILLIC, 0, 0, 0},
17224 { SWIG_PY_INT, (char *)"FONTENCODING_MACDEVANAGARI", (long) wxFONTENCODING_MACDEVANAGARI, 0, 0, 0},
17225 { SWIG_PY_INT, (char *)"FONTENCODING_MACGURMUKHI", (long) wxFONTENCODING_MACGURMUKHI, 0, 0, 0},
17226 { SWIG_PY_INT, (char *)"FONTENCODING_MACGUJARATI", (long) wxFONTENCODING_MACGUJARATI, 0, 0, 0},
17227 { SWIG_PY_INT, (char *)"FONTENCODING_MACORIYA", (long) wxFONTENCODING_MACORIYA, 0, 0, 0},
17228 { SWIG_PY_INT, (char *)"FONTENCODING_MACBENGALI", (long) wxFONTENCODING_MACBENGALI, 0, 0, 0},
17229 { SWIG_PY_INT, (char *)"FONTENCODING_MACTAMIL", (long) wxFONTENCODING_MACTAMIL, 0, 0, 0},
17230 { SWIG_PY_INT, (char *)"FONTENCODING_MACTELUGU", (long) wxFONTENCODING_MACTELUGU, 0, 0, 0},
17231 { SWIG_PY_INT, (char *)"FONTENCODING_MACKANNADA", (long) wxFONTENCODING_MACKANNADA, 0, 0, 0},
17232 { SWIG_PY_INT, (char *)"FONTENCODING_MACMALAJALAM", (long) wxFONTENCODING_MACMALAJALAM, 0, 0, 0},
17233 { SWIG_PY_INT, (char *)"FONTENCODING_MACSINHALESE", (long) wxFONTENCODING_MACSINHALESE, 0, 0, 0},
17234 { SWIG_PY_INT, (char *)"FONTENCODING_MACBURMESE", (long) wxFONTENCODING_MACBURMESE, 0, 0, 0},
17235 { SWIG_PY_INT, (char *)"FONTENCODING_MACKHMER", (long) wxFONTENCODING_MACKHMER, 0, 0, 0},
17236 { SWIG_PY_INT, (char *)"FONTENCODING_MACTHAI", (long) wxFONTENCODING_MACTHAI, 0, 0, 0},
17237 { SWIG_PY_INT, (char *)"FONTENCODING_MACLAOTIAN", (long) wxFONTENCODING_MACLAOTIAN, 0, 0, 0},
17238 { SWIG_PY_INT, (char *)"FONTENCODING_MACGEORGIAN", (long) wxFONTENCODING_MACGEORGIAN, 0, 0, 0},
17239 { SWIG_PY_INT, (char *)"FONTENCODING_MACARMENIAN", (long) wxFONTENCODING_MACARMENIAN, 0, 0, 0},
17240 { SWIG_PY_INT, (char *)"FONTENCODING_MACCHINESESIMP", (long) wxFONTENCODING_MACCHINESESIMP, 0, 0, 0},
17241 { SWIG_PY_INT, (char *)"FONTENCODING_MACTIBETAN", (long) wxFONTENCODING_MACTIBETAN, 0, 0, 0},
17242 { SWIG_PY_INT, (char *)"FONTENCODING_MACMONGOLIAN", (long) wxFONTENCODING_MACMONGOLIAN, 0, 0, 0},
17243 { SWIG_PY_INT, (char *)"FONTENCODING_MACETHIOPIC", (long) wxFONTENCODING_MACETHIOPIC, 0, 0, 0},
17244 { SWIG_PY_INT, (char *)"FONTENCODING_MACCENTRALEUR", (long) wxFONTENCODING_MACCENTRALEUR, 0, 0, 0},
17245 { SWIG_PY_INT, (char *)"FONTENCODING_MACVIATNAMESE", (long) wxFONTENCODING_MACVIATNAMESE, 0, 0, 0},
17246 { SWIG_PY_INT, (char *)"FONTENCODING_MACARABICEXT", (long) wxFONTENCODING_MACARABICEXT, 0, 0, 0},
17247 { SWIG_PY_INT, (char *)"FONTENCODING_MACSYMBOL", (long) wxFONTENCODING_MACSYMBOL, 0, 0, 0},
17248 { SWIG_PY_INT, (char *)"FONTENCODING_MACDINGBATS", (long) wxFONTENCODING_MACDINGBATS, 0, 0, 0},
17249 { SWIG_PY_INT, (char *)"FONTENCODING_MACTURKISH", (long) wxFONTENCODING_MACTURKISH, 0, 0, 0},
17250 { SWIG_PY_INT, (char *)"FONTENCODING_MACCROATIAN", (long) wxFONTENCODING_MACCROATIAN, 0, 0, 0},
17251 { SWIG_PY_INT, (char *)"FONTENCODING_MACICELANDIC", (long) wxFONTENCODING_MACICELANDIC, 0, 0, 0},
17252 { SWIG_PY_INT, (char *)"FONTENCODING_MACROMANIAN", (long) wxFONTENCODING_MACROMANIAN, 0, 0, 0},
17253 { SWIG_PY_INT, (char *)"FONTENCODING_MACCELTIC", (long) wxFONTENCODING_MACCELTIC, 0, 0, 0},
17254 { SWIG_PY_INT, (char *)"FONTENCODING_MACGAELIC", (long) wxFONTENCODING_MACGAELIC, 0, 0, 0},
17255 { SWIG_PY_INT, (char *)"FONTENCODING_MACKEYBOARD", (long) wxFONTENCODING_MACKEYBOARD, 0, 0, 0},
17256 { SWIG_PY_INT, (char *)"FONTENCODING_MACMIN", (long) wxFONTENCODING_MACMIN, 0, 0, 0},
17257 { SWIG_PY_INT, (char *)"FONTENCODING_MACMAX", (long) wxFONTENCODING_MACMAX, 0, 0, 0},
17258 { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
17259 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
17260 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
17261 { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
17262 { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
17263 { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
17264 { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
17265 { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
17266 { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
17267 { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
17268 { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
17269 { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
17270 { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
17271 { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
17272 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
17273 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
17274 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
17275 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
17276 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
17277 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
17278 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
17279 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
17280 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
17281 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
17282 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
17283 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
17284 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
17285 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
17286 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
17287 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
17288 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
17289 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
17290 { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
17291 { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
17292 { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
17293 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
17294 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
17295 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
17296 { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
17297 { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
17298 { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
17299 { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
17300 { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
17301 { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
17302 { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
17303 { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
17304 { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
17305 { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
17306 { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
17307 { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
17308 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
17309 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
17310 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
17311 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
17312 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
17313 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
17314 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
17315 { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
17316 { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
17317 { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
17318 { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
17319 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
17320 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
17321 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
17322 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
17323 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
17324 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
17325 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
17326 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
17327 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
17328 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
17329 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
17330 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
17331 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
17332 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
17333 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
17334 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
17335 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
17336 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
17337 { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
17338 { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
17339 { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
17340 { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
17341 { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
17342 { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
17343 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
17344 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
17345 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
17346 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
17347 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
17348 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
17349 { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
17350 { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
17351 { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
17352 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
17353 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
17354 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
17355 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
17356 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
17357 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
17358 { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
17359 { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17360 { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17361 { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17362 { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17363 { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17364 { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17365 { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17366 { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17367 { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17368 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17369 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17370 { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17371 { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17372 { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17373 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17374 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17375 { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17376 { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17377 { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17378 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17379 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17380 { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17381 { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17382 { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17383 { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17384 { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17385 { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17386 { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17387 { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17388 { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17389 { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17390 { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17391 { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17392 { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17393 { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17394 { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17395 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17396 { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17397 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17398 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17399 { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17400 { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17401 { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17402 { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17403 { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17404 { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17405 { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17406 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17407 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17408 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17409 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17410 { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17411 { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17412 { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17413 { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17414 { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17415 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17416 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17417 { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17418 { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17419 { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17420 { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17421 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17422 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17423 { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17424 { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17425 { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17426 { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17427 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17428 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17429 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17430 { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17431 { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17432 { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17433 { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17434 { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17435 { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17436 { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17437 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17438 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17439 { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17440 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17441 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17442 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17443 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17444 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17445 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17446 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17447 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17448 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17449 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17450 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17451 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17452 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17453 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17454 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17455 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17456 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17457 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17458 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17459 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17460 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17461 { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17462 { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17463 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17464 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17465 { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17466 { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17467 { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17468 { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17469 { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17470 { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17471 { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17472 { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17473 { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17474 { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17475 { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17476 { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17477 { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17478 { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17479 { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17480 { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
17481 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
17482 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
17483 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
17484 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
17485 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
17486 { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
17487 { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
17488 { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
17489 { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
17490 { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
17491 { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
17492 { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
17493 { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
17494 { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
17495 { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
17496 { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
17497 { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
17498 { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
17499 { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
17500 { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
17501 { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
17502 { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
17503 { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
17504 { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
17505 { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
17506 { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
17507 { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
17508 { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
17509 { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
17510 { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
17511 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
17512 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
17513 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
17514 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
17515 { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
17516 { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
17517 { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
17518 {0}};
17519
17520 #ifdef __cplusplus
17521 }
17522 #endif
17523
17524 #ifdef __cplusplus
17525 extern "C"
17526 #endif
17527 SWIGEXPORT(void) SWIG_init(void) {
17528 static PyObject *SWIG_globals = 0;
17529 static int typeinit = 0;
17530 PyObject *m, *d;
17531 int i;
17532 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
17533 m = Py_InitModule((char *) SWIG_name, SwigMethods);
17534 d = PyModule_GetDict(m);
17535
17536 if (!typeinit) {
17537 for (i = 0; swig_types_initial[i]; i++) {
17538 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
17539 }
17540 typeinit = 1;
17541 }
17542 SWIG_InstallConstants(d,swig_const_table);
17543
17544
17545 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
17546
17547 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
17548 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
17549 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
17550 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
17551 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
17552 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
17553 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
17554 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
17555 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
17556 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
17557 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
17558 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
17559 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
17560 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
17561 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
17562 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
17563 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
17564 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
17565 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
17566 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
17567 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
17568 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
17569 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
17570 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
17571 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
17572 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
17573 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
17574 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
17575 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
17576 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
17577 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
17578 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
17579 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
17580 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
17581 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
17582 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
17583 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
17584 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
17585 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
17586 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
17587 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
17588 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
17589 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
17590 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
17591 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
17592 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
17593 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
17594
17595 // Work around a chicken/egg problem in drawlist.cpp
17596 wxPyDrawList_SetAPIPtr();
17597
17598 }
17599