]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126
127 /***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137 #include "Python.h"
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198 /* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201 /* basic types */
202 /*
203 utilities
204 */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
219
220
221 /* Contract support */
222
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
224
225 #ifdef __cplusplus
226 }
227 #endif
228
229
230
231 /* -------- TYPES TABLE (BEGIN) -------- */
232
233 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
234 #define SWIGTYPE_p_wxBrush swig_types[1]
235 #define SWIGTYPE_p_wxColour swig_types[2]
236 #define SWIGTYPE_p_wxDC swig_types[3]
237 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
238 #define SWIGTYPE_p_byte swig_types[5]
239 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
240 #define SWIGTYPE_p_char swig_types[7]
241 #define SWIGTYPE_p_wxIconLocation swig_types[8]
242 #define SWIGTYPE_p_wxImage swig_types[9]
243 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
244 #define SWIGTYPE_p_wxMask swig_types[11]
245 #define SWIGTYPE_p_wxFont swig_types[12]
246 #define SWIGTYPE_p_wxWindow swig_types[13]
247 #define SWIGTYPE_p_wxSize swig_types[14]
248 #define SWIGTYPE_p_double swig_types[15]
249 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
250 #define SWIGTYPE_p_wxFontMapper swig_types[17]
251 #define SWIGTYPE_p_wxEffects swig_types[18]
252 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
253 #define SWIGTYPE_p_wxPalette swig_types[20]
254 #define SWIGTYPE_p_wxBitmap swig_types[21]
255 #define SWIGTYPE_p_wxObject swig_types[22]
256 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
257 #define SWIGTYPE_p_wxRect swig_types[24]
258 #define SWIGTYPE_p_wxString swig_types[25]
259 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
260 #define SWIGTYPE_p_wxIconBundle swig_types[27]
261 #define SWIGTYPE_p_wxPoint swig_types[28]
262 #define SWIGTYPE_p_wxDash swig_types[29]
263 #define SWIGTYPE_p_wxScreenDC swig_types[30]
264 #define SWIGTYPE_p_wxCursor swig_types[31]
265 #define SWIGTYPE_p_wxClientDC swig_types[32]
266 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
267 #define SWIGTYPE_p_wxImageList swig_types[34]
268 #define SWIGTYPE_p_unsigned_char swig_types[35]
269 #define SWIGTYPE_p_wxGDIObject swig_types[36]
270 #define SWIGTYPE_p_wxIcon swig_types[37]
271 #define SWIGTYPE_p_wxLocale swig_types[38]
272 #define SWIGTYPE_p_wxRegion swig_types[39]
273 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
274 #define SWIGTYPE_p_wxConfigBase swig_types[41]
275 #define SWIGTYPE_p_wxWindowDC swig_types[42]
276 #define SWIGTYPE_p_wxPrintData swig_types[43]
277 #define SWIGTYPE_p_wxBrushList swig_types[44]
278 #define SWIGTYPE_p_wxFontList swig_types[45]
279 #define SWIGTYPE_p_wxPen swig_types[46]
280 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
281 #define SWIGTYPE_p_wxPaintDC swig_types[48]
282 #define SWIGTYPE_p_wxPenList swig_types[49]
283 #define SWIGTYPE_p_wxPyPen swig_types[50]
284 #define SWIGTYPE_p_int swig_types[51]
285 #define SWIGTYPE_p_wxMetaFile swig_types[52]
286 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
287 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
288 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
289 static swig_type_info *swig_types[57];
290
291 /* -------- TYPES TABLE (END) -------- */
292
293
294 /*-----------------------------------------------
295 @(target):= _gdi.so
296 ------------------------------------------------*/
297 #define SWIG_init init_gdi
298
299 #define SWIG_name "_gdi"
300
301 #include <limits.h>
302 #include <float.h>
303 #include <string.h>
304
305 #ifndef SWIGSTATIC
306 #ifdef __cplusplus
307 #define SWIGSTATIC(a) static inline a
308 #else
309 #define SWIGSTATIC(a) static a
310 #endif
311 #endif
312
313 #ifndef numeric_cast
314 #ifdef __cplusplus
315 #ifdef HAVE_NUMERIC_CAST
316 #define numeric_cast(type,a) numeric_cast<type>(a)
317 #else
318 #define numeric_cast(type,a) static_cast<type>(a)
319 #endif
320 #else
321 #define numeric_cast(type,a) (type)(a)
322 #endif
323 #endif
324
325
326
327 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
328 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
329 #define SWIG_PyObj_FromShort PyInt_FromLong
330 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
331 #define SWIG_PyObj_FromInt PyInt_FromLong
332 #define SWIG_PyObj_FromLong PyInt_FromLong
333 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
334 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
335 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
336 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
337
338
339 #include "wx/wxPython/wxPython.h"
340 #include "wx/wxPython/pyclasses.h"
341
342
343 static const wxString wxPyEmptyString(wxEmptyString);
344
345 SWIGSTATIC(bool)
346 SWIG_PyObj_AsBool(PyObject *obj)
347 {
348 return PyObject_IsTrue(obj) ? true : false;
349 }
350
351
352 SWIGSTATIC(unsigned char)
353 SWIG_PyObj_AsUnsignedChar(PyObject *obj)
354 {
355 return numeric_cast(unsigned char,
356 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX));
357 }
358
359 PyObject *wxColour_Get(wxColour *self){
360 PyObject* rv = PyTuple_New(3);
361 int red = -1;
362 int green = -1;
363 int blue = -1;
364 if (self->Ok()) {
365 red = self->Red();
366 green = self->Green();
367 blue = self->Blue();
368 }
369 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
370 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
371 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
372 return rv;
373 }
374
375 SWIGSTATIC(int)
376 SWIG_PyObj_AsInt(PyObject *obj)
377 {
378 return numeric_cast(int,
379 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
380 }
381
382
383 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
384 PyObject* o2;
385 PyObject* o3;
386
387 if (!target) {
388 target = o;
389 } else if (target == Py_None) {
390 Py_DECREF(Py_None);
391 target = o;
392 } else {
393 if (!PyTuple_Check(target)) {
394 o2 = target;
395 target = PyTuple_New(1);
396 PyTuple_SetItem(target, 0, o2);
397 }
398 o3 = PyTuple_New(1);
399 PyTuple_SetItem(o3, 0, o);
400
401 o2 = target;
402 target = PySequence_Concat(o2, o3);
403 Py_DECREF(o2);
404 Py_DECREF(o3);
405 }
406 return target;
407 }
408
409 PyObject *wxPen_GetDashes(wxPen *self){
410 wxDash* dashes;
411 int count = self->GetDashes(&dashes);
412 wxPyBeginBlockThreads();
413 PyObject* retval = PyList_New(0);
414 for (int x=0; x<count; x++)
415 PyList_Append(retval, PyInt_FromLong(dashes[x]));
416 wxPyEndBlockThreads();
417 return retval;
418 }
419
420 wxPyPen::~wxPyPen()
421 {
422 if (m_dash)
423 delete [] m_dash;
424 }
425
426 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
427 {
428 if (m_dash)
429 delete [] m_dash;
430 m_dash = new wxDash[nb_dashes];
431 for (int i=0; i<nb_dashes; i++) {
432 m_dash[i] = dash[i];
433 }
434 wxPen::SetDashes(nb_dashes, m_dash);
435 }
436
437
438 #include <wx/image.h>
439
440 static char** ConvertListOfStrings(PyObject* listOfStrings) {
441 char** cArray = NULL;
442 int count;
443
444 if (!PyList_Check(listOfStrings)) {
445 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
446 return NULL;
447 }
448 count = PyList_Size(listOfStrings);
449 cArray = new char*[count];
450
451 for(int x=0; x<count; x++) {
452 // TODO: Need some validation and error checking here
453 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
454 }
455 return cArray;
456 }
457
458
459 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
460 char** cArray = NULL;
461 wxBitmap* bmp;
462
463 cArray = ConvertListOfStrings(listOfStrings);
464 if (! cArray)
465 return NULL;
466 bmp = new wxBitmap(cArray);
467 delete [] cArray;
468 return bmp;
469 }
470 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
471 char* buf;
472 int length;
473 PyString_AsStringAndSize(bits, &buf, &length);
474 return new wxBitmap(buf, width, height, depth);
475 }
476 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
477 wxMask *mask = new wxMask(*self, colour);
478 self->SetMask(mask);
479 }
480
481 #include <wx/iconbndl.h>
482
483 wxIcon *new_wxIcon(wxBitmap const &bmp){
484 wxIcon* icon = new wxIcon();
485 icon->CopyFromBitmap(bmp);
486 return icon;
487 }
488 wxIcon *new_wxIcon(PyObject *listOfStrings){
489 char** cArray = NULL;
490 wxIcon* icon;
491
492 cArray = ConvertListOfStrings(listOfStrings);
493 if (! cArray)
494 return NULL;
495 icon = new wxIcon(cArray);
496 delete [] cArray;
497 return icon;
498 }
499 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
500
501
502
503 return new wxIconLocation(*filename);
504
505 }
506 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
507
508
509
510 // do nothing
511
512 }
513 int wxIconLocation_GetIndex(wxIconLocation *self){
514
515
516
517 return -1;
518
519 }
520
521 SWIGSTATIC(long)
522 SWIG_PyObj_AsLong(PyObject * obj)
523 {
524 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
525 }
526
527 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
528
529 wxCHECK_MSG(False, NULL,
530 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
531
532
533
534 }
535 wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
536 char* bitsbuf;
537 char* maskbuf = NULL;
538 int length;
539 PyString_AsStringAndSize(bits, &bitsbuf, &length);
540 if (maskBits)
541 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
542 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
543 }
544
545
546 void wxRegionIterator_Next(wxRegionIterator *self){
547 (*self) ++;
548 }
549 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
550 return self->operator bool();
551 }
552
553 #include <wx/fontutil.h>
554 #include <wx/fontmap.h>
555 #include <wx/fontenum.h>
556
557 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
558 return self->ToString();
559 }
560
561 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
562 static wxNativeEncodingInfo info;
563 if ( wxGetNativeFontEncoding(encoding, &info) )
564 return &info;
565 else
566 return NULL;
567 }
568
569
570 SWIGSTATIC(PyObject* )
571 SWIG_PyObj_FromUnsignedLong(unsigned long value)
572 {
573 return (value > (unsigned long)(LONG_MAX)) ?
574 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
575 }
576
577 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
578 wxFontEncoding alt_enc;
579 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
580 return PyInt_FromLong(alt_enc);
581 else {
582 Py_INCREF(Py_None);
583 return Py_None;
584 }
585 }
586 wxFont *new_wxFont(wxString const &info){
587 wxNativeFontInfo nfi;
588 nfi.FromString(info);
589 return new wxFont(nfi);
590 }
591 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
592 return wxFont::New(pointSize, family, flags, face, encoding);
593 }
594
595 class wxPyFontEnumerator : public wxFontEnumerator {
596 public:
597 wxPyFontEnumerator() {}
598 ~wxPyFontEnumerator() {}
599
600 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
601 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
602
603 PYPRIVATE;
604 };
605
606 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
607 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
608
609
610 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
611 wxArrayString* arr = self->GetEncodings();
612 return wxArrayString2PyList_helper(*arr);
613 }
614 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
615 wxArrayString* arr = self->GetFacenames();
616 return wxArrayString2PyList_helper(*arr);
617 }
618
619
620
621 #include "wx/wxPython/pydrawxxx.h"
622
623 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
624 wxColour col;
625 self->GetPixel(x, y, &col);
626 return col;
627 }
628 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
629 wxColour col;
630 self->GetPixel(pt, &col);
631 return col;
632 }
633
634 SWIGSTATIC(double)
635 SWIG_PyObj_AsDouble(PyObject *obj)
636 {
637 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
638 #if HAVE_LONG_LONG
639 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
640 #else
641 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
642 #endif
643 if (PyErr_Occurred()) {
644 PyErr_Clear();
645 PyErr_SetString(PyExc_TypeError, "a double is expected");
646 }
647 }
648
649 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
650 wxRect rv;
651 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
652 return rv;
653 }
654 wxRect wxDC_GetClippingRect(wxDC *self){
655 wxRect rect;
656 self->GetClippingBox(rect);
657 return rect;
658 }
659 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
660 wxArrayInt widths;
661 self->GetPartialTextExtents(text, widths);
662 return widths;
663 }
664 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
665 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
666 }
667 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
668 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
669 }
670 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
671 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
672 }
673 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
674 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
675 }
676 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
677 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
678 }
679 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
680 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
681 }
682
683 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
684 *x1 = dc->MinX();
685 *y1 = dc->MinY();
686 *x2 = dc->MaxX();
687 *y2 = dc->MaxY();
688 }
689
690
691 #include <wx/dcps.h>
692
693
694 class wxMetaFile : public wxObject {
695 public:
696 wxMetaFile(const wxString&)
697 { wxPyRaiseNotImplemented(); }
698 };
699
700 class wxMetaFileDC : public wxClientDC {
701 public:
702 wxMetaFileDC(const wxString&, int, int, const wxString&)
703 { wxPyRaiseNotImplemented(); }
704 };
705
706
707
708 class wxPrinterDC : public wxClientDC {
709 public:
710 wxPrinterDC(const wxPrintData&)
711 { wxPyRaiseNotImplemented(); }
712
713 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
714 // { wxPyRaiseNotImplemented(); }
715 };
716
717
718
719 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
720 self->AddColour(name, wxColour(red, green, blue));
721 }
722
723 #include <wx/effects.h>
724
725 #ifdef __cplusplus
726 extern "C" {
727 #endif
728 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
729 PyObject *resultobj;
730 wxGDIObject *result;
731 char *kwnames[] = {
732 NULL
733 };
734
735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
736 {
737 PyThreadState* __tstate = wxPyBeginAllowThreads();
738 result = (wxGDIObject *)new wxGDIObject();
739
740 wxPyEndAllowThreads(__tstate);
741 if (PyErr_Occurred()) SWIG_fail;
742 }
743 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
744 return resultobj;
745 fail:
746 return NULL;
747 }
748
749
750 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
751 PyObject *resultobj;
752 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
753 PyObject * obj0 = 0 ;
754 char *kwnames[] = {
755 (char *) "self", NULL
756 };
757
758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
760 {
761 PyThreadState* __tstate = wxPyBeginAllowThreads();
762 delete arg1;
763
764 wxPyEndAllowThreads(__tstate);
765 if (PyErr_Occurred()) SWIG_fail;
766 }
767 Py_INCREF(Py_None); resultobj = Py_None;
768 return resultobj;
769 fail:
770 return NULL;
771 }
772
773
774 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
775 PyObject *resultobj;
776 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
777 bool result;
778 PyObject * obj0 = 0 ;
779 char *kwnames[] = {
780 (char *) "self", NULL
781 };
782
783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
785 {
786 PyThreadState* __tstate = wxPyBeginAllowThreads();
787 result = (bool)(arg1)->GetVisible();
788
789 wxPyEndAllowThreads(__tstate);
790 if (PyErr_Occurred()) SWIG_fail;
791 }
792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
793 return resultobj;
794 fail:
795 return NULL;
796 }
797
798
799 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
800 PyObject *resultobj;
801 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
802 bool arg2 ;
803 PyObject * obj0 = 0 ;
804 PyObject * obj1 = 0 ;
805 char *kwnames[] = {
806 (char *) "self",(char *) "visible", NULL
807 };
808
809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
811 {
812 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
813 if (PyErr_Occurred()) SWIG_fail;
814 }
815 {
816 PyThreadState* __tstate = wxPyBeginAllowThreads();
817 (arg1)->SetVisible(arg2);
818
819 wxPyEndAllowThreads(__tstate);
820 if (PyErr_Occurred()) SWIG_fail;
821 }
822 Py_INCREF(Py_None); resultobj = Py_None;
823 return resultobj;
824 fail:
825 return NULL;
826 }
827
828
829 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
830 PyObject *resultobj;
831 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
832 bool result;
833 PyObject * obj0 = 0 ;
834 char *kwnames[] = {
835 (char *) "self", NULL
836 };
837
838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
840 {
841 PyThreadState* __tstate = wxPyBeginAllowThreads();
842 result = (bool)(arg1)->IsNull();
843
844 wxPyEndAllowThreads(__tstate);
845 if (PyErr_Occurred()) SWIG_fail;
846 }
847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
848 return resultobj;
849 fail:
850 return NULL;
851 }
852
853
854 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
855 PyObject *obj;
856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
857 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
858 Py_INCREF(obj);
859 return Py_BuildValue((char *)"");
860 }
861 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
862 PyObject *resultobj;
863 unsigned char arg1 = (unsigned char) 0 ;
864 unsigned char arg2 = (unsigned char) 0 ;
865 unsigned char arg3 = (unsigned char) 0 ;
866 wxColour *result;
867 PyObject * obj0 = 0 ;
868 PyObject * obj1 = 0 ;
869 PyObject * obj2 = 0 ;
870 char *kwnames[] = {
871 (char *) "red",(char *) "green",(char *) "blue", NULL
872 };
873
874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
875 if (obj0) {
876 {
877 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
878 if (PyErr_Occurred()) SWIG_fail;
879 }
880 }
881 if (obj1) {
882 {
883 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
884 if (PyErr_Occurred()) SWIG_fail;
885 }
886 }
887 if (obj2) {
888 {
889 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
890 if (PyErr_Occurred()) SWIG_fail;
891 }
892 }
893 {
894 PyThreadState* __tstate = wxPyBeginAllowThreads();
895 result = (wxColour *)new wxColour(arg1,arg2,arg3);
896
897 wxPyEndAllowThreads(__tstate);
898 if (PyErr_Occurred()) SWIG_fail;
899 }
900 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
901 return resultobj;
902 fail:
903 return NULL;
904 }
905
906
907 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
908 PyObject *resultobj;
909 wxColour *arg1 = (wxColour *) 0 ;
910 PyObject * obj0 = 0 ;
911 char *kwnames[] = {
912 (char *) "self", NULL
913 };
914
915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
917 {
918 PyThreadState* __tstate = wxPyBeginAllowThreads();
919 delete arg1;
920
921 wxPyEndAllowThreads(__tstate);
922 if (PyErr_Occurred()) SWIG_fail;
923 }
924 Py_INCREF(Py_None); resultobj = Py_None;
925 return resultobj;
926 fail:
927 return NULL;
928 }
929
930
931 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
932 PyObject *resultobj;
933 wxString *arg1 = 0 ;
934 wxColour *result;
935 bool temp1 = False ;
936 PyObject * obj0 = 0 ;
937 char *kwnames[] = {
938 (char *) "colorName", NULL
939 };
940
941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
942 {
943 arg1 = wxString_in_helper(obj0);
944 if (arg1 == NULL) SWIG_fail;
945 temp1 = True;
946 }
947 {
948 PyThreadState* __tstate = wxPyBeginAllowThreads();
949 result = (wxColour *)new wxColour((wxString const &)*arg1);
950
951 wxPyEndAllowThreads(__tstate);
952 if (PyErr_Occurred()) SWIG_fail;
953 }
954 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
955 {
956 if (temp1)
957 delete arg1;
958 }
959 return resultobj;
960 fail:
961 {
962 if (temp1)
963 delete arg1;
964 }
965 return NULL;
966 }
967
968
969 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
970 PyObject *resultobj;
971 unsigned long arg1 ;
972 wxColour *result;
973 PyObject * obj0 = 0 ;
974 char *kwnames[] = {
975 (char *) "colRGB", NULL
976 };
977
978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
979 {
980 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
981 if (PyErr_Occurred()) SWIG_fail;
982 }
983 {
984 PyThreadState* __tstate = wxPyBeginAllowThreads();
985 result = (wxColour *)new wxColour(arg1);
986
987 wxPyEndAllowThreads(__tstate);
988 if (PyErr_Occurred()) SWIG_fail;
989 }
990 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
991 return resultobj;
992 fail:
993 return NULL;
994 }
995
996
997 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
998 PyObject *resultobj;
999 wxColour *arg1 = (wxColour *) 0 ;
1000 unsigned char result;
1001 PyObject * obj0 = 0 ;
1002 char *kwnames[] = {
1003 (char *) "self", NULL
1004 };
1005
1006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1008 {
1009 PyThreadState* __tstate = wxPyBeginAllowThreads();
1010 result = (unsigned char)(arg1)->Red();
1011
1012 wxPyEndAllowThreads(__tstate);
1013 if (PyErr_Occurred()) SWIG_fail;
1014 }
1015 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1016 return resultobj;
1017 fail:
1018 return NULL;
1019 }
1020
1021
1022 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1023 PyObject *resultobj;
1024 wxColour *arg1 = (wxColour *) 0 ;
1025 unsigned char result;
1026 PyObject * obj0 = 0 ;
1027 char *kwnames[] = {
1028 (char *) "self", NULL
1029 };
1030
1031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1033 {
1034 PyThreadState* __tstate = wxPyBeginAllowThreads();
1035 result = (unsigned char)(arg1)->Green();
1036
1037 wxPyEndAllowThreads(__tstate);
1038 if (PyErr_Occurred()) SWIG_fail;
1039 }
1040 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1041 return resultobj;
1042 fail:
1043 return NULL;
1044 }
1045
1046
1047 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1048 PyObject *resultobj;
1049 wxColour *arg1 = (wxColour *) 0 ;
1050 unsigned char result;
1051 PyObject * obj0 = 0 ;
1052 char *kwnames[] = {
1053 (char *) "self", NULL
1054 };
1055
1056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1058 {
1059 PyThreadState* __tstate = wxPyBeginAllowThreads();
1060 result = (unsigned char)(arg1)->Blue();
1061
1062 wxPyEndAllowThreads(__tstate);
1063 if (PyErr_Occurred()) SWIG_fail;
1064 }
1065 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1066 return resultobj;
1067 fail:
1068 return NULL;
1069 }
1070
1071
1072 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1073 PyObject *resultobj;
1074 wxColour *arg1 = (wxColour *) 0 ;
1075 bool result;
1076 PyObject * obj0 = 0 ;
1077 char *kwnames[] = {
1078 (char *) "self", NULL
1079 };
1080
1081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1083 {
1084 PyThreadState* __tstate = wxPyBeginAllowThreads();
1085 result = (bool)(arg1)->Ok();
1086
1087 wxPyEndAllowThreads(__tstate);
1088 if (PyErr_Occurred()) SWIG_fail;
1089 }
1090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1091 return resultobj;
1092 fail:
1093 return NULL;
1094 }
1095
1096
1097 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1098 PyObject *resultobj;
1099 wxColour *arg1 = (wxColour *) 0 ;
1100 unsigned char arg2 ;
1101 unsigned char arg3 ;
1102 unsigned char arg4 ;
1103 PyObject * obj0 = 0 ;
1104 PyObject * obj1 = 0 ;
1105 PyObject * obj2 = 0 ;
1106 PyObject * obj3 = 0 ;
1107 char *kwnames[] = {
1108 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1109 };
1110
1111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1113 {
1114 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
1115 if (PyErr_Occurred()) SWIG_fail;
1116 }
1117 {
1118 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
1119 if (PyErr_Occurred()) SWIG_fail;
1120 }
1121 {
1122 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
1123 if (PyErr_Occurred()) SWIG_fail;
1124 }
1125 {
1126 PyThreadState* __tstate = wxPyBeginAllowThreads();
1127 (arg1)->Set(arg2,arg3,arg4);
1128
1129 wxPyEndAllowThreads(__tstate);
1130 if (PyErr_Occurred()) SWIG_fail;
1131 }
1132 Py_INCREF(Py_None); resultobj = Py_None;
1133 return resultobj;
1134 fail:
1135 return NULL;
1136 }
1137
1138
1139 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1140 PyObject *resultobj;
1141 wxColour *arg1 = (wxColour *) 0 ;
1142 unsigned long arg2 ;
1143 PyObject * obj0 = 0 ;
1144 PyObject * obj1 = 0 ;
1145 char *kwnames[] = {
1146 (char *) "self",(char *) "colRGB", NULL
1147 };
1148
1149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1151 {
1152 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
1153 if (PyErr_Occurred()) SWIG_fail;
1154 }
1155 {
1156 PyThreadState* __tstate = wxPyBeginAllowThreads();
1157 (arg1)->Set(arg2);
1158
1159 wxPyEndAllowThreads(__tstate);
1160 if (PyErr_Occurred()) SWIG_fail;
1161 }
1162 Py_INCREF(Py_None); resultobj = Py_None;
1163 return resultobj;
1164 fail:
1165 return NULL;
1166 }
1167
1168
1169 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1170 PyObject *resultobj;
1171 wxColour *arg1 = (wxColour *) 0 ;
1172 wxColour *arg2 = 0 ;
1173 bool result;
1174 wxColour temp2 ;
1175 PyObject * obj0 = 0 ;
1176 PyObject * obj1 = 0 ;
1177 char *kwnames[] = {
1178 (char *) "self",(char *) "colour", NULL
1179 };
1180
1181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1183 {
1184 arg2 = &temp2;
1185 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1186 }
1187 {
1188 PyThreadState* __tstate = wxPyBeginAllowThreads();
1189 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1190
1191 wxPyEndAllowThreads(__tstate);
1192 if (PyErr_Occurred()) SWIG_fail;
1193 }
1194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1195 return resultobj;
1196 fail:
1197 return NULL;
1198 }
1199
1200
1201 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1202 PyObject *resultobj;
1203 wxColour *arg1 = (wxColour *) 0 ;
1204 wxColour *arg2 = 0 ;
1205 bool result;
1206 wxColour temp2 ;
1207 PyObject * obj0 = 0 ;
1208 PyObject * obj1 = 0 ;
1209 char *kwnames[] = {
1210 (char *) "self",(char *) "colour", NULL
1211 };
1212
1213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1215 {
1216 arg2 = &temp2;
1217 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1218 }
1219 {
1220 PyThreadState* __tstate = wxPyBeginAllowThreads();
1221 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1222
1223 wxPyEndAllowThreads(__tstate);
1224 if (PyErr_Occurred()) SWIG_fail;
1225 }
1226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1227 return resultobj;
1228 fail:
1229 return NULL;
1230 }
1231
1232
1233 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1234 PyObject *resultobj;
1235 wxColour *arg1 = (wxColour *) 0 ;
1236 wxString *arg2 = 0 ;
1237 bool temp2 = False ;
1238 PyObject * obj0 = 0 ;
1239 PyObject * obj1 = 0 ;
1240 char *kwnames[] = {
1241 (char *) "self",(char *) "colourName", NULL
1242 };
1243
1244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1246 {
1247 arg2 = wxString_in_helper(obj1);
1248 if (arg2 == NULL) SWIG_fail;
1249 temp2 = True;
1250 }
1251 {
1252 PyThreadState* __tstate = wxPyBeginAllowThreads();
1253 (arg1)->InitFromName((wxString const &)*arg2);
1254
1255 wxPyEndAllowThreads(__tstate);
1256 if (PyErr_Occurred()) SWIG_fail;
1257 }
1258 Py_INCREF(Py_None); resultobj = Py_None;
1259 {
1260 if (temp2)
1261 delete arg2;
1262 }
1263 return resultobj;
1264 fail:
1265 {
1266 if (temp2)
1267 delete arg2;
1268 }
1269 return NULL;
1270 }
1271
1272
1273 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1274 PyObject *resultobj;
1275 wxColour *arg1 = (wxColour *) 0 ;
1276 PyObject *result;
1277 PyObject * obj0 = 0 ;
1278 char *kwnames[] = {
1279 (char *) "self", NULL
1280 };
1281
1282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1284 {
1285 PyThreadState* __tstate = wxPyBeginAllowThreads();
1286 result = (PyObject *)wxColour_Get(arg1);
1287
1288 wxPyEndAllowThreads(__tstate);
1289 if (PyErr_Occurred()) SWIG_fail;
1290 }
1291 resultobj = result;
1292 return resultobj;
1293 fail:
1294 return NULL;
1295 }
1296
1297
1298 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1299 PyObject *obj;
1300 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1301 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1302 Py_INCREF(obj);
1303 return Py_BuildValue((char *)"");
1304 }
1305 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1306 PyObject *resultobj;
1307 int arg1 ;
1308 unsigned char *arg2 = (unsigned char *) 0 ;
1309 unsigned char *arg3 = (unsigned char *) 0 ;
1310 unsigned char *arg4 = (unsigned char *) 0 ;
1311 wxPalette *result;
1312 PyObject * obj0 = 0 ;
1313 PyObject * obj1 = 0 ;
1314 PyObject * obj2 = 0 ;
1315 PyObject * obj3 = 0 ;
1316 char *kwnames[] = {
1317 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1318 };
1319
1320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1321 {
1322 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1323 if (PyErr_Occurred()) SWIG_fail;
1324 }
1325 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1326 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1327 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1328 {
1329 PyThreadState* __tstate = wxPyBeginAllowThreads();
1330 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1331
1332 wxPyEndAllowThreads(__tstate);
1333 if (PyErr_Occurred()) SWIG_fail;
1334 }
1335 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1336 return resultobj;
1337 fail:
1338 return NULL;
1339 }
1340
1341
1342 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1343 PyObject *resultobj;
1344 wxPalette *arg1 = (wxPalette *) 0 ;
1345 PyObject * obj0 = 0 ;
1346 char *kwnames[] = {
1347 (char *) "self", NULL
1348 };
1349
1350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1352 {
1353 PyThreadState* __tstate = wxPyBeginAllowThreads();
1354 delete arg1;
1355
1356 wxPyEndAllowThreads(__tstate);
1357 if (PyErr_Occurred()) SWIG_fail;
1358 }
1359 Py_INCREF(Py_None); resultobj = Py_None;
1360 return resultobj;
1361 fail:
1362 return NULL;
1363 }
1364
1365
1366 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1367 PyObject *resultobj;
1368 wxPalette *arg1 = (wxPalette *) 0 ;
1369 byte arg2 ;
1370 byte arg3 ;
1371 byte arg4 ;
1372 int result;
1373 PyObject * obj0 = 0 ;
1374 PyObject * obj1 = 0 ;
1375 PyObject * obj2 = 0 ;
1376 PyObject * obj3 = 0 ;
1377 char *kwnames[] = {
1378 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1379 };
1380
1381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1382 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1383 {
1384 arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
1385 if (PyErr_Occurred()) SWIG_fail;
1386 }
1387 {
1388 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
1389 if (PyErr_Occurred()) SWIG_fail;
1390 }
1391 {
1392 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
1393 if (PyErr_Occurred()) SWIG_fail;
1394 }
1395 {
1396 PyThreadState* __tstate = wxPyBeginAllowThreads();
1397 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1398
1399 wxPyEndAllowThreads(__tstate);
1400 if (PyErr_Occurred()) SWIG_fail;
1401 }
1402 resultobj = SWIG_PyObj_FromInt((int)result);
1403 return resultobj;
1404 fail:
1405 return NULL;
1406 }
1407
1408
1409 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1410 PyObject *resultobj;
1411 wxPalette *arg1 = (wxPalette *) 0 ;
1412 int arg2 ;
1413 byte *arg3 = (byte *) 0 ;
1414 byte *arg4 = (byte *) 0 ;
1415 byte *arg5 = (byte *) 0 ;
1416 bool result;
1417 byte temp3 ;
1418 byte temp4 ;
1419 byte temp5 ;
1420 PyObject * obj0 = 0 ;
1421 PyObject * obj1 = 0 ;
1422 char *kwnames[] = {
1423 (char *) "self",(char *) "pixel", NULL
1424 };
1425
1426 arg3 = &temp3;
1427 arg4 = &temp4;
1428 arg5 = &temp5;
1429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1431 {
1432 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1433 if (PyErr_Occurred()) SWIG_fail;
1434 }
1435 {
1436 PyThreadState* __tstate = wxPyBeginAllowThreads();
1437 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1438
1439 wxPyEndAllowThreads(__tstate);
1440 if (PyErr_Occurred()) SWIG_fail;
1441 }
1442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1443 {
1444 PyObject *o = PyInt_FromLong((long) (*arg3));
1445 resultobj = t_output_helper(resultobj,o);
1446 }
1447 {
1448 PyObject *o = PyInt_FromLong((long) (*arg4));
1449 resultobj = t_output_helper(resultobj,o);
1450 }
1451 {
1452 PyObject *o = PyInt_FromLong((long) (*arg5));
1453 resultobj = t_output_helper(resultobj,o);
1454 }
1455 return resultobj;
1456 fail:
1457 return NULL;
1458 }
1459
1460
1461 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1462 PyObject *resultobj;
1463 wxPalette *arg1 = (wxPalette *) 0 ;
1464 bool result;
1465 PyObject * obj0 = 0 ;
1466 char *kwnames[] = {
1467 (char *) "self", NULL
1468 };
1469
1470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) 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)->Ok();
1475
1476 wxPyEndAllowThreads(__tstate);
1477 if (PyErr_Occurred()) SWIG_fail;
1478 }
1479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1480 return resultobj;
1481 fail:
1482 return NULL;
1483 }
1484
1485
1486 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1487 PyObject *obj;
1488 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1489 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1490 Py_INCREF(obj);
1491 return Py_BuildValue((char *)"");
1492 }
1493 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1494 PyObject *resultobj;
1495 wxColour *arg1 = 0 ;
1496 int arg2 = (int) 1 ;
1497 int arg3 = (int) wxSOLID ;
1498 wxPen *result;
1499 wxColour temp1 ;
1500 PyObject * obj0 = 0 ;
1501 PyObject * obj1 = 0 ;
1502 PyObject * obj2 = 0 ;
1503 char *kwnames[] = {
1504 (char *) "colour",(char *) "width",(char *) "style", NULL
1505 };
1506
1507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1508 {
1509 arg1 = &temp1;
1510 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1511 }
1512 if (obj1) {
1513 {
1514 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1515 if (PyErr_Occurred()) SWIG_fail;
1516 }
1517 }
1518 if (obj2) {
1519 {
1520 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1521 if (PyErr_Occurred()) SWIG_fail;
1522 }
1523 }
1524 {
1525 PyThreadState* __tstate = wxPyBeginAllowThreads();
1526 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1527
1528 wxPyEndAllowThreads(__tstate);
1529 if (PyErr_Occurred()) SWIG_fail;
1530 }
1531 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1532 return resultobj;
1533 fail:
1534 return NULL;
1535 }
1536
1537
1538 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1539 PyObject *resultobj;
1540 wxPen *arg1 = (wxPen *) 0 ;
1541 PyObject * obj0 = 0 ;
1542 char *kwnames[] = {
1543 (char *) "self", NULL
1544 };
1545
1546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1548 {
1549 PyThreadState* __tstate = wxPyBeginAllowThreads();
1550 delete arg1;
1551
1552 wxPyEndAllowThreads(__tstate);
1553 if (PyErr_Occurred()) SWIG_fail;
1554 }
1555 Py_INCREF(Py_None); resultobj = Py_None;
1556 return resultobj;
1557 fail:
1558 return NULL;
1559 }
1560
1561
1562 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1563 PyObject *resultobj;
1564 wxPen *arg1 = (wxPen *) 0 ;
1565 int result;
1566 PyObject * obj0 = 0 ;
1567 char *kwnames[] = {
1568 (char *) "self", NULL
1569 };
1570
1571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1573 {
1574 PyThreadState* __tstate = wxPyBeginAllowThreads();
1575 result = (int)(arg1)->GetCap();
1576
1577 wxPyEndAllowThreads(__tstate);
1578 if (PyErr_Occurred()) SWIG_fail;
1579 }
1580 resultobj = SWIG_PyObj_FromInt((int)result);
1581 return resultobj;
1582 fail:
1583 return NULL;
1584 }
1585
1586
1587 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1588 PyObject *resultobj;
1589 wxPen *arg1 = (wxPen *) 0 ;
1590 wxColour result;
1591 PyObject * obj0 = 0 ;
1592 char *kwnames[] = {
1593 (char *) "self", NULL
1594 };
1595
1596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1598 {
1599 PyThreadState* __tstate = wxPyBeginAllowThreads();
1600 result = (arg1)->GetColour();
1601
1602 wxPyEndAllowThreads(__tstate);
1603 if (PyErr_Occurred()) SWIG_fail;
1604 }
1605 {
1606 wxColour * resultptr;
1607 resultptr = new wxColour((wxColour &) result);
1608 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1609 }
1610 return resultobj;
1611 fail:
1612 return NULL;
1613 }
1614
1615
1616 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1617 PyObject *resultobj;
1618 wxPen *arg1 = (wxPen *) 0 ;
1619 int result;
1620 PyObject * obj0 = 0 ;
1621 char *kwnames[] = {
1622 (char *) "self", NULL
1623 };
1624
1625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1627 {
1628 PyThreadState* __tstate = wxPyBeginAllowThreads();
1629 result = (int)(arg1)->GetJoin();
1630
1631 wxPyEndAllowThreads(__tstate);
1632 if (PyErr_Occurred()) SWIG_fail;
1633 }
1634 resultobj = SWIG_PyObj_FromInt((int)result);
1635 return resultobj;
1636 fail:
1637 return NULL;
1638 }
1639
1640
1641 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1642 PyObject *resultobj;
1643 wxPen *arg1 = (wxPen *) 0 ;
1644 int result;
1645 PyObject * obj0 = 0 ;
1646 char *kwnames[] = {
1647 (char *) "self", NULL
1648 };
1649
1650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1652 {
1653 PyThreadState* __tstate = wxPyBeginAllowThreads();
1654 result = (int)(arg1)->GetStyle();
1655
1656 wxPyEndAllowThreads(__tstate);
1657 if (PyErr_Occurred()) SWIG_fail;
1658 }
1659 resultobj = SWIG_PyObj_FromInt((int)result);
1660 return resultobj;
1661 fail:
1662 return NULL;
1663 }
1664
1665
1666 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1667 PyObject *resultobj;
1668 wxPen *arg1 = (wxPen *) 0 ;
1669 int result;
1670 PyObject * obj0 = 0 ;
1671 char *kwnames[] = {
1672 (char *) "self", NULL
1673 };
1674
1675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1677 {
1678 PyThreadState* __tstate = wxPyBeginAllowThreads();
1679 result = (int)(arg1)->GetWidth();
1680
1681 wxPyEndAllowThreads(__tstate);
1682 if (PyErr_Occurred()) SWIG_fail;
1683 }
1684 resultobj = SWIG_PyObj_FromInt((int)result);
1685 return resultobj;
1686 fail:
1687 return NULL;
1688 }
1689
1690
1691 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1692 PyObject *resultobj;
1693 wxPen *arg1 = (wxPen *) 0 ;
1694 bool result;
1695 PyObject * obj0 = 0 ;
1696 char *kwnames[] = {
1697 (char *) "self", NULL
1698 };
1699
1700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1702 {
1703 PyThreadState* __tstate = wxPyBeginAllowThreads();
1704 result = (bool)(arg1)->Ok();
1705
1706 wxPyEndAllowThreads(__tstate);
1707 if (PyErr_Occurred()) SWIG_fail;
1708 }
1709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1710 return resultobj;
1711 fail:
1712 return NULL;
1713 }
1714
1715
1716 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1717 PyObject *resultobj;
1718 wxPen *arg1 = (wxPen *) 0 ;
1719 int arg2 ;
1720 PyObject * obj0 = 0 ;
1721 PyObject * obj1 = 0 ;
1722 char *kwnames[] = {
1723 (char *) "self",(char *) "cap_style", NULL
1724 };
1725
1726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1728 {
1729 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1730 if (PyErr_Occurred()) SWIG_fail;
1731 }
1732 {
1733 PyThreadState* __tstate = wxPyBeginAllowThreads();
1734 (arg1)->SetCap(arg2);
1735
1736 wxPyEndAllowThreads(__tstate);
1737 if (PyErr_Occurred()) SWIG_fail;
1738 }
1739 Py_INCREF(Py_None); resultobj = Py_None;
1740 return resultobj;
1741 fail:
1742 return NULL;
1743 }
1744
1745
1746 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1747 PyObject *resultobj;
1748 wxPen *arg1 = (wxPen *) 0 ;
1749 wxColour *arg2 = 0 ;
1750 wxColour temp2 ;
1751 PyObject * obj0 = 0 ;
1752 PyObject * obj1 = 0 ;
1753 char *kwnames[] = {
1754 (char *) "self",(char *) "colour", NULL
1755 };
1756
1757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1758 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1759 {
1760 arg2 = &temp2;
1761 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1762 }
1763 {
1764 PyThreadState* __tstate = wxPyBeginAllowThreads();
1765 (arg1)->SetColour(*arg2);
1766
1767 wxPyEndAllowThreads(__tstate);
1768 if (PyErr_Occurred()) SWIG_fail;
1769 }
1770 Py_INCREF(Py_None); resultobj = Py_None;
1771 return resultobj;
1772 fail:
1773 return NULL;
1774 }
1775
1776
1777 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1778 PyObject *resultobj;
1779 wxPen *arg1 = (wxPen *) 0 ;
1780 int arg2 ;
1781 PyObject * obj0 = 0 ;
1782 PyObject * obj1 = 0 ;
1783 char *kwnames[] = {
1784 (char *) "self",(char *) "join_style", NULL
1785 };
1786
1787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1789 {
1790 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1791 if (PyErr_Occurred()) SWIG_fail;
1792 }
1793 {
1794 PyThreadState* __tstate = wxPyBeginAllowThreads();
1795 (arg1)->SetJoin(arg2);
1796
1797 wxPyEndAllowThreads(__tstate);
1798 if (PyErr_Occurred()) SWIG_fail;
1799 }
1800 Py_INCREF(Py_None); resultobj = Py_None;
1801 return resultobj;
1802 fail:
1803 return NULL;
1804 }
1805
1806
1807 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1808 PyObject *resultobj;
1809 wxPen *arg1 = (wxPen *) 0 ;
1810 int arg2 ;
1811 PyObject * obj0 = 0 ;
1812 PyObject * obj1 = 0 ;
1813 char *kwnames[] = {
1814 (char *) "self",(char *) "style", NULL
1815 };
1816
1817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
1818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1819 {
1820 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1821 if (PyErr_Occurred()) SWIG_fail;
1822 }
1823 {
1824 PyThreadState* __tstate = wxPyBeginAllowThreads();
1825 (arg1)->SetStyle(arg2);
1826
1827 wxPyEndAllowThreads(__tstate);
1828 if (PyErr_Occurred()) SWIG_fail;
1829 }
1830 Py_INCREF(Py_None); resultobj = Py_None;
1831 return resultobj;
1832 fail:
1833 return NULL;
1834 }
1835
1836
1837 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1838 PyObject *resultobj;
1839 wxPen *arg1 = (wxPen *) 0 ;
1840 int arg2 ;
1841 PyObject * obj0 = 0 ;
1842 PyObject * obj1 = 0 ;
1843 char *kwnames[] = {
1844 (char *) "self",(char *) "width", NULL
1845 };
1846
1847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1849 {
1850 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1851 if (PyErr_Occurred()) SWIG_fail;
1852 }
1853 {
1854 PyThreadState* __tstate = wxPyBeginAllowThreads();
1855 (arg1)->SetWidth(arg2);
1856
1857 wxPyEndAllowThreads(__tstate);
1858 if (PyErr_Occurred()) SWIG_fail;
1859 }
1860 Py_INCREF(Py_None); resultobj = Py_None;
1861 return resultobj;
1862 fail:
1863 return NULL;
1864 }
1865
1866
1867 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1868 PyObject *resultobj;
1869 wxPen *arg1 = (wxPen *) 0 ;
1870 int arg2 ;
1871 wxDash *arg3 = (wxDash *) 0 ;
1872 PyObject * obj0 = 0 ;
1873 PyObject * obj1 = 0 ;
1874 char *kwnames[] = {
1875 (char *) "self",(char *) "dashes", NULL
1876 };
1877
1878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1880 {
1881 arg2 = PyList_Size(obj1);
1882 arg3 = (wxDash*)byte_LIST_helper(obj1);
1883 if (arg3 == NULL) SWIG_fail;
1884 }
1885 {
1886 PyThreadState* __tstate = wxPyBeginAllowThreads();
1887 (arg1)->SetDashes(arg2,arg3);
1888
1889 wxPyEndAllowThreads(__tstate);
1890 if (PyErr_Occurred()) SWIG_fail;
1891 }
1892 Py_INCREF(Py_None); resultobj = Py_None;
1893 {
1894 if (arg3) delete [] arg3;
1895 }
1896 return resultobj;
1897 fail:
1898 {
1899 if (arg3) delete [] arg3;
1900 }
1901 return NULL;
1902 }
1903
1904
1905 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1906 PyObject *resultobj;
1907 wxPen *arg1 = (wxPen *) 0 ;
1908 PyObject *result;
1909 PyObject * obj0 = 0 ;
1910 char *kwnames[] = {
1911 (char *) "self", NULL
1912 };
1913
1914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1916 {
1917 PyThreadState* __tstate = wxPyBeginAllowThreads();
1918 result = (PyObject *)wxPen_GetDashes(arg1);
1919
1920 wxPyEndAllowThreads(__tstate);
1921 if (PyErr_Occurred()) SWIG_fail;
1922 }
1923 resultobj = result;
1924 return resultobj;
1925 fail:
1926 return NULL;
1927 }
1928
1929
1930 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1931 PyObject *resultobj;
1932 wxPen *arg1 = (wxPen *) 0 ;
1933 wxPen *arg2 = 0 ;
1934 bool result;
1935 PyObject * obj0 = 0 ;
1936 PyObject * obj1 = 0 ;
1937 char *kwnames[] = {
1938 (char *) "self",(char *) "pen", NULL
1939 };
1940
1941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
1942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1943 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1944 if (arg2 == NULL) {
1945 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1946 }
1947 {
1948 PyThreadState* __tstate = wxPyBeginAllowThreads();
1949 result = (bool)((wxPen const *)arg1)->operator ==((wxPen const &)*arg2);
1950
1951 wxPyEndAllowThreads(__tstate);
1952 if (PyErr_Occurred()) SWIG_fail;
1953 }
1954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1955 return resultobj;
1956 fail:
1957 return NULL;
1958 }
1959
1960
1961 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1962 PyObject *resultobj;
1963 wxPen *arg1 = (wxPen *) 0 ;
1964 int result;
1965 PyObject * obj0 = 0 ;
1966 char *kwnames[] = {
1967 (char *) "self", NULL
1968 };
1969
1970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
1971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1972 {
1973 PyThreadState* __tstate = wxPyBeginAllowThreads();
1974 result = (int)((wxPen const *)arg1)->GetDashCount();
1975
1976 wxPyEndAllowThreads(__tstate);
1977 if (PyErr_Occurred()) SWIG_fail;
1978 }
1979 resultobj = SWIG_PyObj_FromInt((int)result);
1980 return resultobj;
1981 fail:
1982 return NULL;
1983 }
1984
1985
1986 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1987 PyObject *obj;
1988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1989 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1990 Py_INCREF(obj);
1991 return Py_BuildValue((char *)"");
1992 }
1993 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1994 PyObject *resultobj;
1995 wxColour *arg1 = 0 ;
1996 int arg2 = (int) 1 ;
1997 int arg3 = (int) wxSOLID ;
1998 wxPyPen *result;
1999 wxColour temp1 ;
2000 PyObject * obj0 = 0 ;
2001 PyObject * obj1 = 0 ;
2002 PyObject * obj2 = 0 ;
2003 char *kwnames[] = {
2004 (char *) "colour",(char *) "width",(char *) "style", NULL
2005 };
2006
2007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2008 {
2009 arg1 = &temp1;
2010 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2011 }
2012 if (obj1) {
2013 {
2014 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2015 if (PyErr_Occurred()) SWIG_fail;
2016 }
2017 }
2018 if (obj2) {
2019 {
2020 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2021 if (PyErr_Occurred()) SWIG_fail;
2022 }
2023 }
2024 {
2025 PyThreadState* __tstate = wxPyBeginAllowThreads();
2026 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2027
2028 wxPyEndAllowThreads(__tstate);
2029 if (PyErr_Occurred()) SWIG_fail;
2030 }
2031 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
2032 return resultobj;
2033 fail:
2034 return NULL;
2035 }
2036
2037
2038 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2039 PyObject *resultobj;
2040 wxPyPen *arg1 = (wxPyPen *) 0 ;
2041 PyObject * obj0 = 0 ;
2042 char *kwnames[] = {
2043 (char *) "self", NULL
2044 };
2045
2046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2048 {
2049 PyThreadState* __tstate = wxPyBeginAllowThreads();
2050 delete arg1;
2051
2052 wxPyEndAllowThreads(__tstate);
2053 if (PyErr_Occurred()) SWIG_fail;
2054 }
2055 Py_INCREF(Py_None); resultobj = Py_None;
2056 return resultobj;
2057 fail:
2058 return NULL;
2059 }
2060
2061
2062 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2063 PyObject *resultobj;
2064 wxPyPen *arg1 = (wxPyPen *) 0 ;
2065 int arg2 ;
2066 wxDash *arg3 = (wxDash *) 0 ;
2067 PyObject * obj0 = 0 ;
2068 PyObject * obj1 = 0 ;
2069 char *kwnames[] = {
2070 (char *) "self",(char *) "dashes", NULL
2071 };
2072
2073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2075 {
2076 arg2 = PyList_Size(obj1);
2077 arg3 = (wxDash*)byte_LIST_helper(obj1);
2078 if (arg3 == NULL) SWIG_fail;
2079 }
2080 {
2081 PyThreadState* __tstate = wxPyBeginAllowThreads();
2082 (arg1)->SetDashes(arg2,arg3);
2083
2084 wxPyEndAllowThreads(__tstate);
2085 if (PyErr_Occurred()) SWIG_fail;
2086 }
2087 Py_INCREF(Py_None); resultobj = Py_None;
2088 {
2089 if (arg3) delete [] arg3;
2090 }
2091 return resultobj;
2092 fail:
2093 {
2094 if (arg3) delete [] arg3;
2095 }
2096 return NULL;
2097 }
2098
2099
2100 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2101 PyObject *obj;
2102 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2103 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2104 Py_INCREF(obj);
2105 return Py_BuildValue((char *)"");
2106 }
2107 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2108 PyObject *resultobj;
2109 wxColour *arg1 = 0 ;
2110 int arg2 = (int) wxSOLID ;
2111 wxBrush *result;
2112 wxColour temp1 ;
2113 PyObject * obj0 = 0 ;
2114 PyObject * obj1 = 0 ;
2115 char *kwnames[] = {
2116 (char *) "colour",(char *) "style", NULL
2117 };
2118
2119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2120 {
2121 arg1 = &temp1;
2122 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2123 }
2124 if (obj1) {
2125 {
2126 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2127 if (PyErr_Occurred()) SWIG_fail;
2128 }
2129 }
2130 {
2131 PyThreadState* __tstate = wxPyBeginAllowThreads();
2132 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2133
2134 wxPyEndAllowThreads(__tstate);
2135 if (PyErr_Occurred()) SWIG_fail;
2136 }
2137 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2138 return resultobj;
2139 fail:
2140 return NULL;
2141 }
2142
2143
2144 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2145 PyObject *resultobj;
2146 wxBrush *arg1 = (wxBrush *) 0 ;
2147 PyObject * obj0 = 0 ;
2148 char *kwnames[] = {
2149 (char *) "self", NULL
2150 };
2151
2152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2154 {
2155 PyThreadState* __tstate = wxPyBeginAllowThreads();
2156 delete arg1;
2157
2158 wxPyEndAllowThreads(__tstate);
2159 if (PyErr_Occurred()) SWIG_fail;
2160 }
2161 Py_INCREF(Py_None); resultobj = Py_None;
2162 return resultobj;
2163 fail:
2164 return NULL;
2165 }
2166
2167
2168 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2169 PyObject *resultobj;
2170 wxBrush *arg1 = (wxBrush *) 0 ;
2171 wxColour *arg2 = 0 ;
2172 wxColour temp2 ;
2173 PyObject * obj0 = 0 ;
2174 PyObject * obj1 = 0 ;
2175 char *kwnames[] = {
2176 (char *) "self",(char *) "col", NULL
2177 };
2178
2179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2180 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2181 {
2182 arg2 = &temp2;
2183 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2184 }
2185 {
2186 PyThreadState* __tstate = wxPyBeginAllowThreads();
2187 (arg1)->SetColour((wxColour const &)*arg2);
2188
2189 wxPyEndAllowThreads(__tstate);
2190 if (PyErr_Occurred()) SWIG_fail;
2191 }
2192 Py_INCREF(Py_None); resultobj = Py_None;
2193 return resultobj;
2194 fail:
2195 return NULL;
2196 }
2197
2198
2199 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2200 PyObject *resultobj;
2201 wxBrush *arg1 = (wxBrush *) 0 ;
2202 int arg2 ;
2203 PyObject * obj0 = 0 ;
2204 PyObject * obj1 = 0 ;
2205 char *kwnames[] = {
2206 (char *) "self",(char *) "style", NULL
2207 };
2208
2209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2211 {
2212 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2213 if (PyErr_Occurred()) SWIG_fail;
2214 }
2215 {
2216 PyThreadState* __tstate = wxPyBeginAllowThreads();
2217 (arg1)->SetStyle(arg2);
2218
2219 wxPyEndAllowThreads(__tstate);
2220 if (PyErr_Occurred()) SWIG_fail;
2221 }
2222 Py_INCREF(Py_None); resultobj = Py_None;
2223 return resultobj;
2224 fail:
2225 return NULL;
2226 }
2227
2228
2229 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2230 PyObject *resultobj;
2231 wxBrush *arg1 = (wxBrush *) 0 ;
2232 wxBitmap *arg2 = 0 ;
2233 PyObject * obj0 = 0 ;
2234 PyObject * obj1 = 0 ;
2235 char *kwnames[] = {
2236 (char *) "self",(char *) "stipple", NULL
2237 };
2238
2239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2241 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2242 if (arg2 == NULL) {
2243 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2244 }
2245 {
2246 PyThreadState* __tstate = wxPyBeginAllowThreads();
2247 (arg1)->SetStipple((wxBitmap const &)*arg2);
2248
2249 wxPyEndAllowThreads(__tstate);
2250 if (PyErr_Occurred()) SWIG_fail;
2251 }
2252 Py_INCREF(Py_None); resultobj = Py_None;
2253 return resultobj;
2254 fail:
2255 return NULL;
2256 }
2257
2258
2259 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2260 PyObject *resultobj;
2261 wxBrush *arg1 = (wxBrush *) 0 ;
2262 wxColour result;
2263 PyObject * obj0 = 0 ;
2264 char *kwnames[] = {
2265 (char *) "self", NULL
2266 };
2267
2268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",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 = ((wxBrush const *)arg1)->GetColour();
2273
2274 wxPyEndAllowThreads(__tstate);
2275 if (PyErr_Occurred()) SWIG_fail;
2276 }
2277 {
2278 wxColour * resultptr;
2279 resultptr = new wxColour((wxColour &) result);
2280 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2281 }
2282 return resultobj;
2283 fail:
2284 return NULL;
2285 }
2286
2287
2288 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2289 PyObject *resultobj;
2290 wxBrush *arg1 = (wxBrush *) 0 ;
2291 int result;
2292 PyObject * obj0 = 0 ;
2293 char *kwnames[] = {
2294 (char *) "self", NULL
2295 };
2296
2297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2299 {
2300 PyThreadState* __tstate = wxPyBeginAllowThreads();
2301 result = (int)((wxBrush const *)arg1)->GetStyle();
2302
2303 wxPyEndAllowThreads(__tstate);
2304 if (PyErr_Occurred()) SWIG_fail;
2305 }
2306 resultobj = SWIG_PyObj_FromInt((int)result);
2307 return resultobj;
2308 fail:
2309 return NULL;
2310 }
2311
2312
2313 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2314 PyObject *resultobj;
2315 wxBrush *arg1 = (wxBrush *) 0 ;
2316 wxBitmap *result;
2317 PyObject * obj0 = 0 ;
2318 char *kwnames[] = {
2319 (char *) "self", NULL
2320 };
2321
2322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2324 {
2325 PyThreadState* __tstate = wxPyBeginAllowThreads();
2326 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2327
2328 wxPyEndAllowThreads(__tstate);
2329 if (PyErr_Occurred()) SWIG_fail;
2330 }
2331 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2332 return resultobj;
2333 fail:
2334 return NULL;
2335 }
2336
2337
2338 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2339 PyObject *resultobj;
2340 wxBrush *arg1 = (wxBrush *) 0 ;
2341 bool result;
2342 PyObject * obj0 = 0 ;
2343 char *kwnames[] = {
2344 (char *) "self", NULL
2345 };
2346
2347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2349 {
2350 PyThreadState* __tstate = wxPyBeginAllowThreads();
2351 result = (bool)(arg1)->Ok();
2352
2353 wxPyEndAllowThreads(__tstate);
2354 if (PyErr_Occurred()) SWIG_fail;
2355 }
2356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2357 return resultobj;
2358 fail:
2359 return NULL;
2360 }
2361
2362
2363 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2364 PyObject *obj;
2365 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2366 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2367 Py_INCREF(obj);
2368 return Py_BuildValue((char *)"");
2369 }
2370 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2371 PyObject *resultobj;
2372 wxString *arg1 = 0 ;
2373 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2374 wxBitmap *result;
2375 bool temp1 = False ;
2376 PyObject * obj0 = 0 ;
2377 PyObject * obj1 = 0 ;
2378 char *kwnames[] = {
2379 (char *) "name",(char *) "type", NULL
2380 };
2381
2382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2383 {
2384 arg1 = wxString_in_helper(obj0);
2385 if (arg1 == NULL) SWIG_fail;
2386 temp1 = True;
2387 }
2388 if (obj1) {
2389 {
2390 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
2391 if (PyErr_Occurred()) SWIG_fail;
2392 }
2393 }
2394 {
2395 PyThreadState* __tstate = wxPyBeginAllowThreads();
2396 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2397
2398 wxPyEndAllowThreads(__tstate);
2399 if (PyErr_Occurred()) SWIG_fail;
2400 }
2401 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2402 {
2403 if (temp1)
2404 delete arg1;
2405 }
2406 return resultobj;
2407 fail:
2408 {
2409 if (temp1)
2410 delete arg1;
2411 }
2412 return NULL;
2413 }
2414
2415
2416 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2417 PyObject *resultobj;
2418 wxBitmap *arg1 = (wxBitmap *) 0 ;
2419 PyObject * obj0 = 0 ;
2420 char *kwnames[] = {
2421 (char *) "self", NULL
2422 };
2423
2424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2426 {
2427 PyThreadState* __tstate = wxPyBeginAllowThreads();
2428 delete arg1;
2429
2430 wxPyEndAllowThreads(__tstate);
2431 if (PyErr_Occurred()) SWIG_fail;
2432 }
2433 Py_INCREF(Py_None); resultobj = Py_None;
2434 return resultobj;
2435 fail:
2436 return NULL;
2437 }
2438
2439
2440 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2441 PyObject *resultobj;
2442 int arg1 ;
2443 int arg2 ;
2444 int arg3 = (int) -1 ;
2445 wxBitmap *result;
2446 PyObject * obj0 = 0 ;
2447 PyObject * obj1 = 0 ;
2448 PyObject * obj2 = 0 ;
2449 char *kwnames[] = {
2450 (char *) "width",(char *) "height",(char *) "depth", NULL
2451 };
2452
2453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2454 {
2455 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2456 if (PyErr_Occurred()) SWIG_fail;
2457 }
2458 {
2459 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2460 if (PyErr_Occurred()) SWIG_fail;
2461 }
2462 if (obj2) {
2463 {
2464 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2465 if (PyErr_Occurred()) SWIG_fail;
2466 }
2467 }
2468 {
2469 PyThreadState* __tstate = wxPyBeginAllowThreads();
2470 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2471
2472 wxPyEndAllowThreads(__tstate);
2473 if (PyErr_Occurred()) SWIG_fail;
2474 }
2475 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2476 return resultobj;
2477 fail:
2478 return NULL;
2479 }
2480
2481
2482 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2483 PyObject *resultobj;
2484 wxIcon *arg1 = 0 ;
2485 wxBitmap *result;
2486 PyObject * obj0 = 0 ;
2487 char *kwnames[] = {
2488 (char *) "icon", NULL
2489 };
2490
2491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2493 if (arg1 == NULL) {
2494 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2495 }
2496 {
2497 PyThreadState* __tstate = wxPyBeginAllowThreads();
2498 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2499
2500 wxPyEndAllowThreads(__tstate);
2501 if (PyErr_Occurred()) SWIG_fail;
2502 }
2503 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2504 return resultobj;
2505 fail:
2506 return NULL;
2507 }
2508
2509
2510 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2511 PyObject *resultobj;
2512 wxImage *arg1 = 0 ;
2513 int arg2 = (int) -1 ;
2514 wxBitmap *result;
2515 PyObject * obj0 = 0 ;
2516 PyObject * obj1 = 0 ;
2517 char *kwnames[] = {
2518 (char *) "image",(char *) "depth", NULL
2519 };
2520
2521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2523 if (arg1 == NULL) {
2524 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2525 }
2526 if (obj1) {
2527 {
2528 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2529 if (PyErr_Occurred()) SWIG_fail;
2530 }
2531 }
2532 {
2533 PyThreadState* __tstate = wxPyBeginAllowThreads();
2534 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2535
2536 wxPyEndAllowThreads(__tstate);
2537 if (PyErr_Occurred()) SWIG_fail;
2538 }
2539 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2540 return resultobj;
2541 fail:
2542 return NULL;
2543 }
2544
2545
2546 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2547 PyObject *resultobj;
2548 PyObject *arg1 = (PyObject *) 0 ;
2549 wxBitmap *result;
2550 PyObject * obj0 = 0 ;
2551 char *kwnames[] = {
2552 (char *) "listOfStrings", NULL
2553 };
2554
2555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2556 arg1 = obj0;
2557 {
2558 PyThreadState* __tstate = wxPyBeginAllowThreads();
2559 result = (wxBitmap *)new_wxBitmap(arg1);
2560
2561 wxPyEndAllowThreads(__tstate);
2562 if (PyErr_Occurred()) SWIG_fail;
2563 }
2564 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2565 return resultobj;
2566 fail:
2567 return NULL;
2568 }
2569
2570
2571 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2572 PyObject *resultobj;
2573 PyObject *arg1 = (PyObject *) 0 ;
2574 int arg2 ;
2575 int arg3 ;
2576 int arg4 = (int) 1 ;
2577 wxBitmap *result;
2578 PyObject * obj0 = 0 ;
2579 PyObject * obj1 = 0 ;
2580 PyObject * obj2 = 0 ;
2581 PyObject * obj3 = 0 ;
2582 char *kwnames[] = {
2583 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2584 };
2585
2586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2587 arg1 = obj0;
2588 {
2589 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2590 if (PyErr_Occurred()) SWIG_fail;
2591 }
2592 {
2593 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2594 if (PyErr_Occurred()) SWIG_fail;
2595 }
2596 if (obj3) {
2597 {
2598 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2599 if (PyErr_Occurred()) SWIG_fail;
2600 }
2601 }
2602 {
2603 PyThreadState* __tstate = wxPyBeginAllowThreads();
2604 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2605
2606 wxPyEndAllowThreads(__tstate);
2607 if (PyErr_Occurred()) SWIG_fail;
2608 }
2609 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2610 return resultobj;
2611 fail:
2612 return NULL;
2613 }
2614
2615
2616 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2617 PyObject *resultobj;
2618 wxBitmap *arg1 = (wxBitmap *) 0 ;
2619 bool result;
2620 PyObject * obj0 = 0 ;
2621 char *kwnames[] = {
2622 (char *) "self", NULL
2623 };
2624
2625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2627 {
2628 PyThreadState* __tstate = wxPyBeginAllowThreads();
2629 result = (bool)(arg1)->Ok();
2630
2631 wxPyEndAllowThreads(__tstate);
2632 if (PyErr_Occurred()) SWIG_fail;
2633 }
2634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2635 return resultobj;
2636 fail:
2637 return NULL;
2638 }
2639
2640
2641 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2642 PyObject *resultobj;
2643 wxBitmap *arg1 = (wxBitmap *) 0 ;
2644 int result;
2645 PyObject * obj0 = 0 ;
2646 char *kwnames[] = {
2647 (char *) "self", NULL
2648 };
2649
2650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2652 {
2653 PyThreadState* __tstate = wxPyBeginAllowThreads();
2654 result = (int)(arg1)->GetWidth();
2655
2656 wxPyEndAllowThreads(__tstate);
2657 if (PyErr_Occurred()) SWIG_fail;
2658 }
2659 resultobj = SWIG_PyObj_FromInt((int)result);
2660 return resultobj;
2661 fail:
2662 return NULL;
2663 }
2664
2665
2666 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2667 PyObject *resultobj;
2668 wxBitmap *arg1 = (wxBitmap *) 0 ;
2669 int result;
2670 PyObject * obj0 = 0 ;
2671 char *kwnames[] = {
2672 (char *) "self", NULL
2673 };
2674
2675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2677 {
2678 PyThreadState* __tstate = wxPyBeginAllowThreads();
2679 result = (int)(arg1)->GetHeight();
2680
2681 wxPyEndAllowThreads(__tstate);
2682 if (PyErr_Occurred()) SWIG_fail;
2683 }
2684 resultobj = SWIG_PyObj_FromInt((int)result);
2685 return resultobj;
2686 fail:
2687 return NULL;
2688 }
2689
2690
2691 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2692 PyObject *resultobj;
2693 wxBitmap *arg1 = (wxBitmap *) 0 ;
2694 int result;
2695 PyObject * obj0 = 0 ;
2696 char *kwnames[] = {
2697 (char *) "self", NULL
2698 };
2699
2700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2702 {
2703 PyThreadState* __tstate = wxPyBeginAllowThreads();
2704 result = (int)(arg1)->GetDepth();
2705
2706 wxPyEndAllowThreads(__tstate);
2707 if (PyErr_Occurred()) SWIG_fail;
2708 }
2709 resultobj = SWIG_PyObj_FromInt((int)result);
2710 return resultobj;
2711 fail:
2712 return NULL;
2713 }
2714
2715
2716 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2717 PyObject *resultobj;
2718 wxBitmap *arg1 = (wxBitmap *) 0 ;
2719 SwigValueWrapper< wxImage > result;
2720 PyObject * obj0 = 0 ;
2721 char *kwnames[] = {
2722 (char *) "self", NULL
2723 };
2724
2725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2727 {
2728 PyThreadState* __tstate = wxPyBeginAllowThreads();
2729 result = ((wxBitmap const *)arg1)->ConvertToImage();
2730
2731 wxPyEndAllowThreads(__tstate);
2732 if (PyErr_Occurred()) SWIG_fail;
2733 }
2734 {
2735 wxImage * resultptr;
2736 resultptr = new wxImage((wxImage &) result);
2737 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2738 }
2739 return resultobj;
2740 fail:
2741 return NULL;
2742 }
2743
2744
2745 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2746 PyObject *resultobj;
2747 wxBitmap *arg1 = (wxBitmap *) 0 ;
2748 wxMask *result;
2749 PyObject * obj0 = 0 ;
2750 char *kwnames[] = {
2751 (char *) "self", NULL
2752 };
2753
2754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2756 {
2757 PyThreadState* __tstate = wxPyBeginAllowThreads();
2758 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2759
2760 wxPyEndAllowThreads(__tstate);
2761 if (PyErr_Occurred()) SWIG_fail;
2762 }
2763 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2764 return resultobj;
2765 fail:
2766 return NULL;
2767 }
2768
2769
2770 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2771 PyObject *resultobj;
2772 wxBitmap *arg1 = (wxBitmap *) 0 ;
2773 wxMask *arg2 = (wxMask *) 0 ;
2774 PyObject * obj0 = 0 ;
2775 PyObject * obj1 = 0 ;
2776 char *kwnames[] = {
2777 (char *) "self",(char *) "mask", NULL
2778 };
2779
2780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2782 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2783 {
2784 PyThreadState* __tstate = wxPyBeginAllowThreads();
2785 (arg1)->SetMask(arg2);
2786
2787 wxPyEndAllowThreads(__tstate);
2788 if (PyErr_Occurred()) SWIG_fail;
2789 }
2790 Py_INCREF(Py_None); resultobj = Py_None;
2791 return resultobj;
2792 fail:
2793 return NULL;
2794 }
2795
2796
2797 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2798 PyObject *resultobj;
2799 wxBitmap *arg1 = (wxBitmap *) 0 ;
2800 wxColour *arg2 = 0 ;
2801 wxColour temp2 ;
2802 PyObject * obj0 = 0 ;
2803 PyObject * obj1 = 0 ;
2804 char *kwnames[] = {
2805 (char *) "self",(char *) "colour", NULL
2806 };
2807
2808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2810 {
2811 arg2 = &temp2;
2812 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2813 }
2814 {
2815 PyThreadState* __tstate = wxPyBeginAllowThreads();
2816 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2817
2818 wxPyEndAllowThreads(__tstate);
2819 if (PyErr_Occurred()) SWIG_fail;
2820 }
2821 Py_INCREF(Py_None); resultobj = Py_None;
2822 return resultobj;
2823 fail:
2824 return NULL;
2825 }
2826
2827
2828 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2829 PyObject *resultobj;
2830 wxBitmap *arg1 = (wxBitmap *) 0 ;
2831 wxRect *arg2 = 0 ;
2832 SwigValueWrapper< wxBitmap > result;
2833 wxRect temp2 ;
2834 PyObject * obj0 = 0 ;
2835 PyObject * obj1 = 0 ;
2836 char *kwnames[] = {
2837 (char *) "self",(char *) "rect", NULL
2838 };
2839
2840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2842 {
2843 arg2 = &temp2;
2844 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2845 }
2846 {
2847 PyThreadState* __tstate = wxPyBeginAllowThreads();
2848 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2849
2850 wxPyEndAllowThreads(__tstate);
2851 if (PyErr_Occurred()) SWIG_fail;
2852 }
2853 {
2854 wxBitmap * resultptr;
2855 resultptr = new wxBitmap((wxBitmap &) result);
2856 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2857 }
2858 return resultobj;
2859 fail:
2860 return NULL;
2861 }
2862
2863
2864 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2865 PyObject *resultobj;
2866 wxBitmap *arg1 = (wxBitmap *) 0 ;
2867 wxString *arg2 = 0 ;
2868 int arg3 ;
2869 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2870 bool result;
2871 bool temp2 = False ;
2872 PyObject * obj0 = 0 ;
2873 PyObject * obj1 = 0 ;
2874 PyObject * obj2 = 0 ;
2875 PyObject * obj3 = 0 ;
2876 char *kwnames[] = {
2877 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2878 };
2879
2880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2881 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2882 {
2883 arg2 = wxString_in_helper(obj1);
2884 if (arg2 == NULL) SWIG_fail;
2885 temp2 = True;
2886 }
2887 {
2888 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2889 if (PyErr_Occurred()) SWIG_fail;
2890 }
2891 if (obj3) {
2892 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2893 }
2894 {
2895 PyThreadState* __tstate = wxPyBeginAllowThreads();
2896 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2897
2898 wxPyEndAllowThreads(__tstate);
2899 if (PyErr_Occurred()) SWIG_fail;
2900 }
2901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2902 {
2903 if (temp2)
2904 delete arg2;
2905 }
2906 return resultobj;
2907 fail:
2908 {
2909 if (temp2)
2910 delete arg2;
2911 }
2912 return NULL;
2913 }
2914
2915
2916 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2917 PyObject *resultobj;
2918 wxBitmap *arg1 = (wxBitmap *) 0 ;
2919 wxString *arg2 = 0 ;
2920 int arg3 ;
2921 bool result;
2922 bool temp2 = False ;
2923 PyObject * obj0 = 0 ;
2924 PyObject * obj1 = 0 ;
2925 PyObject * obj2 = 0 ;
2926 char *kwnames[] = {
2927 (char *) "self",(char *) "name",(char *) "type", NULL
2928 };
2929
2930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2932 {
2933 arg2 = wxString_in_helper(obj1);
2934 if (arg2 == NULL) SWIG_fail;
2935 temp2 = True;
2936 }
2937 {
2938 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2939 if (PyErr_Occurred()) SWIG_fail;
2940 }
2941 {
2942 PyThreadState* __tstate = wxPyBeginAllowThreads();
2943 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2944
2945 wxPyEndAllowThreads(__tstate);
2946 if (PyErr_Occurred()) SWIG_fail;
2947 }
2948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2949 {
2950 if (temp2)
2951 delete arg2;
2952 }
2953 return resultobj;
2954 fail:
2955 {
2956 if (temp2)
2957 delete arg2;
2958 }
2959 return NULL;
2960 }
2961
2962
2963 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2964 PyObject *resultobj;
2965 wxBitmap *arg1 = (wxBitmap *) 0 ;
2966 wxIcon *arg2 = 0 ;
2967 bool result;
2968 PyObject * obj0 = 0 ;
2969 PyObject * obj1 = 0 ;
2970 char *kwnames[] = {
2971 (char *) "self",(char *) "icon", NULL
2972 };
2973
2974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2976 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2977 if (arg2 == NULL) {
2978 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2979 }
2980 {
2981 PyThreadState* __tstate = wxPyBeginAllowThreads();
2982 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2983
2984 wxPyEndAllowThreads(__tstate);
2985 if (PyErr_Occurred()) SWIG_fail;
2986 }
2987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2988 return resultobj;
2989 fail:
2990 return NULL;
2991 }
2992
2993
2994 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2995 PyObject *resultobj;
2996 wxBitmap *arg1 = (wxBitmap *) 0 ;
2997 int arg2 ;
2998 PyObject * obj0 = 0 ;
2999 PyObject * obj1 = 0 ;
3000 char *kwnames[] = {
3001 (char *) "self",(char *) "height", NULL
3002 };
3003
3004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3006 {
3007 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3008 if (PyErr_Occurred()) SWIG_fail;
3009 }
3010 {
3011 PyThreadState* __tstate = wxPyBeginAllowThreads();
3012 (arg1)->SetHeight(arg2);
3013
3014 wxPyEndAllowThreads(__tstate);
3015 if (PyErr_Occurred()) SWIG_fail;
3016 }
3017 Py_INCREF(Py_None); resultobj = Py_None;
3018 return resultobj;
3019 fail:
3020 return NULL;
3021 }
3022
3023
3024 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3025 PyObject *resultobj;
3026 wxBitmap *arg1 = (wxBitmap *) 0 ;
3027 int arg2 ;
3028 PyObject * obj0 = 0 ;
3029 PyObject * obj1 = 0 ;
3030 char *kwnames[] = {
3031 (char *) "self",(char *) "width", NULL
3032 };
3033
3034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3036 {
3037 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3038 if (PyErr_Occurred()) SWIG_fail;
3039 }
3040 {
3041 PyThreadState* __tstate = wxPyBeginAllowThreads();
3042 (arg1)->SetWidth(arg2);
3043
3044 wxPyEndAllowThreads(__tstate);
3045 if (PyErr_Occurred()) SWIG_fail;
3046 }
3047 Py_INCREF(Py_None); resultobj = Py_None;
3048 return resultobj;
3049 fail:
3050 return NULL;
3051 }
3052
3053
3054 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3055 PyObject *resultobj;
3056 wxBitmap *arg1 = (wxBitmap *) 0 ;
3057 int arg2 ;
3058 PyObject * obj0 = 0 ;
3059 PyObject * obj1 = 0 ;
3060 char *kwnames[] = {
3061 (char *) "self",(char *) "depth", NULL
3062 };
3063
3064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3066 {
3067 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3068 if (PyErr_Occurred()) SWIG_fail;
3069 }
3070 {
3071 PyThreadState* __tstate = wxPyBeginAllowThreads();
3072 (arg1)->SetDepth(arg2);
3073
3074 wxPyEndAllowThreads(__tstate);
3075 if (PyErr_Occurred()) SWIG_fail;
3076 }
3077 Py_INCREF(Py_None); resultobj = Py_None;
3078 return resultobj;
3079 fail:
3080 return NULL;
3081 }
3082
3083
3084 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3085 PyObject *obj;
3086 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3087 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3088 Py_INCREF(obj);
3089 return Py_BuildValue((char *)"");
3090 }
3091 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3092 PyObject *resultobj;
3093 wxBitmap *arg1 = 0 ;
3094 wxMask *result;
3095 PyObject * obj0 = 0 ;
3096 char *kwnames[] = {
3097 (char *) "bitmap", NULL
3098 };
3099
3100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
3101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3102 if (arg1 == NULL) {
3103 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3104 }
3105 {
3106 PyThreadState* __tstate = wxPyBeginAllowThreads();
3107 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
3108
3109 wxPyEndAllowThreads(__tstate);
3110 if (PyErr_Occurred()) SWIG_fail;
3111 }
3112 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3113 return resultobj;
3114 fail:
3115 return NULL;
3116 }
3117
3118
3119 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3120 PyObject *resultobj;
3121 wxBitmap *arg1 = 0 ;
3122 wxColour *arg2 = 0 ;
3123 wxMask *result;
3124 wxColour temp2 ;
3125 PyObject * obj0 = 0 ;
3126 PyObject * obj1 = 0 ;
3127 char *kwnames[] = {
3128 (char *) "bitmap",(char *) "colour", NULL
3129 };
3130
3131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
3132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3133 if (arg1 == NULL) {
3134 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3135 }
3136 {
3137 arg2 = &temp2;
3138 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3139 }
3140 {
3141 PyThreadState* __tstate = wxPyBeginAllowThreads();
3142 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3143
3144 wxPyEndAllowThreads(__tstate);
3145 if (PyErr_Occurred()) SWIG_fail;
3146 }
3147 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3148 return resultobj;
3149 fail:
3150 return NULL;
3151 }
3152
3153
3154 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3155 PyObject *obj;
3156 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3157 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3158 Py_INCREF(obj);
3159 return Py_BuildValue((char *)"");
3160 }
3161 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3162 PyObject *resultobj;
3163 wxString *arg1 = 0 ;
3164 int arg2 ;
3165 int arg3 = (int) -1 ;
3166 int arg4 = (int) -1 ;
3167 wxIcon *result;
3168 bool temp1 = False ;
3169 PyObject * obj0 = 0 ;
3170 PyObject * obj1 = 0 ;
3171 PyObject * obj2 = 0 ;
3172 PyObject * obj3 = 0 ;
3173 char *kwnames[] = {
3174 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3175 };
3176
3177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3178 {
3179 arg1 = wxString_in_helper(obj0);
3180 if (arg1 == NULL) SWIG_fail;
3181 temp1 = True;
3182 }
3183 {
3184 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
3185 if (PyErr_Occurred()) SWIG_fail;
3186 }
3187 if (obj2) {
3188 {
3189 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3190 if (PyErr_Occurred()) SWIG_fail;
3191 }
3192 }
3193 if (obj3) {
3194 {
3195 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3196 if (PyErr_Occurred()) SWIG_fail;
3197 }
3198 }
3199 {
3200 PyThreadState* __tstate = wxPyBeginAllowThreads();
3201 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3202
3203 wxPyEndAllowThreads(__tstate);
3204 if (PyErr_Occurred()) SWIG_fail;
3205 }
3206 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3207 {
3208 if (temp1)
3209 delete arg1;
3210 }
3211 return resultobj;
3212 fail:
3213 {
3214 if (temp1)
3215 delete arg1;
3216 }
3217 return NULL;
3218 }
3219
3220
3221 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3222 PyObject *resultobj;
3223 wxIcon *arg1 = (wxIcon *) 0 ;
3224 PyObject * obj0 = 0 ;
3225 char *kwnames[] = {
3226 (char *) "self", NULL
3227 };
3228
3229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3231 {
3232 PyThreadState* __tstate = wxPyBeginAllowThreads();
3233 delete arg1;
3234
3235 wxPyEndAllowThreads(__tstate);
3236 if (PyErr_Occurred()) SWIG_fail;
3237 }
3238 Py_INCREF(Py_None); resultobj = Py_None;
3239 return resultobj;
3240 fail:
3241 return NULL;
3242 }
3243
3244
3245 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3246 PyObject *resultobj;
3247 wxIcon *result;
3248 char *kwnames[] = {
3249 NULL
3250 };
3251
3252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3253 {
3254 PyThreadState* __tstate = wxPyBeginAllowThreads();
3255 result = (wxIcon *)new wxIcon();
3256
3257 wxPyEndAllowThreads(__tstate);
3258 if (PyErr_Occurred()) SWIG_fail;
3259 }
3260 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3261 return resultobj;
3262 fail:
3263 return NULL;
3264 }
3265
3266
3267 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3268 PyObject *resultobj;
3269 wxIconLocation *arg1 = 0 ;
3270 wxIcon *result;
3271 PyObject * obj0 = 0 ;
3272 char *kwnames[] = {
3273 (char *) "loc", NULL
3274 };
3275
3276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3278 if (arg1 == NULL) {
3279 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3280 }
3281 {
3282 PyThreadState* __tstate = wxPyBeginAllowThreads();
3283 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3284
3285 wxPyEndAllowThreads(__tstate);
3286 if (PyErr_Occurred()) SWIG_fail;
3287 }
3288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3289 return resultobj;
3290 fail:
3291 return NULL;
3292 }
3293
3294
3295 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3296 PyObject *resultobj;
3297 wxBitmap *arg1 = 0 ;
3298 wxIcon *result;
3299 PyObject * obj0 = 0 ;
3300 char *kwnames[] = {
3301 (char *) "bmp", NULL
3302 };
3303
3304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3306 if (arg1 == NULL) {
3307 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3308 }
3309 {
3310 PyThreadState* __tstate = wxPyBeginAllowThreads();
3311 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3312
3313 wxPyEndAllowThreads(__tstate);
3314 if (PyErr_Occurred()) SWIG_fail;
3315 }
3316 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3317 return resultobj;
3318 fail:
3319 return NULL;
3320 }
3321
3322
3323 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3324 PyObject *resultobj;
3325 PyObject *arg1 = (PyObject *) 0 ;
3326 wxIcon *result;
3327 PyObject * obj0 = 0 ;
3328 char *kwnames[] = {
3329 (char *) "listOfStrings", NULL
3330 };
3331
3332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3333 arg1 = obj0;
3334 {
3335 PyThreadState* __tstate = wxPyBeginAllowThreads();
3336 result = (wxIcon *)new_wxIcon(arg1);
3337
3338 wxPyEndAllowThreads(__tstate);
3339 if (PyErr_Occurred()) SWIG_fail;
3340 }
3341 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3342 return resultobj;
3343 fail:
3344 return NULL;
3345 }
3346
3347
3348 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3349 PyObject *resultobj;
3350 wxIcon *arg1 = (wxIcon *) 0 ;
3351 wxString *arg2 = 0 ;
3352 int arg3 ;
3353 bool result;
3354 bool temp2 = False ;
3355 PyObject * obj0 = 0 ;
3356 PyObject * obj1 = 0 ;
3357 PyObject * obj2 = 0 ;
3358 char *kwnames[] = {
3359 (char *) "self",(char *) "name",(char *) "type", NULL
3360 };
3361
3362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3364 {
3365 arg2 = wxString_in_helper(obj1);
3366 if (arg2 == NULL) SWIG_fail;
3367 temp2 = True;
3368 }
3369 {
3370 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 }
3373 {
3374 PyThreadState* __tstate = wxPyBeginAllowThreads();
3375 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3376
3377 wxPyEndAllowThreads(__tstate);
3378 if (PyErr_Occurred()) SWIG_fail;
3379 }
3380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3381 {
3382 if (temp2)
3383 delete arg2;
3384 }
3385 return resultobj;
3386 fail:
3387 {
3388 if (temp2)
3389 delete arg2;
3390 }
3391 return NULL;
3392 }
3393
3394
3395 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3396 PyObject *resultobj;
3397 wxIcon *arg1 = (wxIcon *) 0 ;
3398 bool result;
3399 PyObject * obj0 = 0 ;
3400 char *kwnames[] = {
3401 (char *) "self", NULL
3402 };
3403
3404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3406 {
3407 PyThreadState* __tstate = wxPyBeginAllowThreads();
3408 result = (bool)(arg1)->Ok();
3409
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) SWIG_fail;
3412 }
3413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3414 return resultobj;
3415 fail:
3416 return NULL;
3417 }
3418
3419
3420 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3421 PyObject *resultobj;
3422 wxIcon *arg1 = (wxIcon *) 0 ;
3423 int result;
3424 PyObject * obj0 = 0 ;
3425 char *kwnames[] = {
3426 (char *) "self", NULL
3427 };
3428
3429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3431 {
3432 PyThreadState* __tstate = wxPyBeginAllowThreads();
3433 result = (int)(arg1)->GetWidth();
3434
3435 wxPyEndAllowThreads(__tstate);
3436 if (PyErr_Occurred()) SWIG_fail;
3437 }
3438 resultobj = SWIG_PyObj_FromInt((int)result);
3439 return resultobj;
3440 fail:
3441 return NULL;
3442 }
3443
3444
3445 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3446 PyObject *resultobj;
3447 wxIcon *arg1 = (wxIcon *) 0 ;
3448 int result;
3449 PyObject * obj0 = 0 ;
3450 char *kwnames[] = {
3451 (char *) "self", NULL
3452 };
3453
3454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3456 {
3457 PyThreadState* __tstate = wxPyBeginAllowThreads();
3458 result = (int)(arg1)->GetHeight();
3459
3460 wxPyEndAllowThreads(__tstate);
3461 if (PyErr_Occurred()) SWIG_fail;
3462 }
3463 resultobj = SWIG_PyObj_FromInt((int)result);
3464 return resultobj;
3465 fail:
3466 return NULL;
3467 }
3468
3469
3470 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3471 PyObject *resultobj;
3472 wxIcon *arg1 = (wxIcon *) 0 ;
3473 int result;
3474 PyObject * obj0 = 0 ;
3475 char *kwnames[] = {
3476 (char *) "self", NULL
3477 };
3478
3479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3481 {
3482 PyThreadState* __tstate = wxPyBeginAllowThreads();
3483 result = (int)(arg1)->GetDepth();
3484
3485 wxPyEndAllowThreads(__tstate);
3486 if (PyErr_Occurred()) SWIG_fail;
3487 }
3488 resultobj = SWIG_PyObj_FromInt((int)result);
3489 return resultobj;
3490 fail:
3491 return NULL;
3492 }
3493
3494
3495 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3496 PyObject *resultobj;
3497 wxIcon *arg1 = (wxIcon *) 0 ;
3498 int arg2 ;
3499 PyObject * obj0 = 0 ;
3500 PyObject * obj1 = 0 ;
3501 char *kwnames[] = {
3502 (char *) "self",(char *) "w", NULL
3503 };
3504
3505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3507 {
3508 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3509 if (PyErr_Occurred()) SWIG_fail;
3510 }
3511 {
3512 PyThreadState* __tstate = wxPyBeginAllowThreads();
3513 (arg1)->SetWidth(arg2);
3514
3515 wxPyEndAllowThreads(__tstate);
3516 if (PyErr_Occurred()) SWIG_fail;
3517 }
3518 Py_INCREF(Py_None); resultobj = Py_None;
3519 return resultobj;
3520 fail:
3521 return NULL;
3522 }
3523
3524
3525 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3526 PyObject *resultobj;
3527 wxIcon *arg1 = (wxIcon *) 0 ;
3528 int arg2 ;
3529 PyObject * obj0 = 0 ;
3530 PyObject * obj1 = 0 ;
3531 char *kwnames[] = {
3532 (char *) "self",(char *) "h", NULL
3533 };
3534
3535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3537 {
3538 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3539 if (PyErr_Occurred()) SWIG_fail;
3540 }
3541 {
3542 PyThreadState* __tstate = wxPyBeginAllowThreads();
3543 (arg1)->SetHeight(arg2);
3544
3545 wxPyEndAllowThreads(__tstate);
3546 if (PyErr_Occurred()) SWIG_fail;
3547 }
3548 Py_INCREF(Py_None); resultobj = Py_None;
3549 return resultobj;
3550 fail:
3551 return NULL;
3552 }
3553
3554
3555 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3556 PyObject *resultobj;
3557 wxIcon *arg1 = (wxIcon *) 0 ;
3558 int arg2 ;
3559 PyObject * obj0 = 0 ;
3560 PyObject * obj1 = 0 ;
3561 char *kwnames[] = {
3562 (char *) "self",(char *) "d", NULL
3563 };
3564
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3567 {
3568 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3569 if (PyErr_Occurred()) SWIG_fail;
3570 }
3571 {
3572 PyThreadState* __tstate = wxPyBeginAllowThreads();
3573 (arg1)->SetDepth(arg2);
3574
3575 wxPyEndAllowThreads(__tstate);
3576 if (PyErr_Occurred()) SWIG_fail;
3577 }
3578 Py_INCREF(Py_None); resultobj = Py_None;
3579 return resultobj;
3580 fail:
3581 return NULL;
3582 }
3583
3584
3585 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3586 PyObject *resultobj;
3587 wxIcon *arg1 = (wxIcon *) 0 ;
3588 wxBitmap *arg2 = 0 ;
3589 PyObject * obj0 = 0 ;
3590 PyObject * obj1 = 0 ;
3591 char *kwnames[] = {
3592 (char *) "self",(char *) "bmp", NULL
3593 };
3594
3595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3597 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3598 if (arg2 == NULL) {
3599 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3600 }
3601 {
3602 PyThreadState* __tstate = wxPyBeginAllowThreads();
3603 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3604
3605 wxPyEndAllowThreads(__tstate);
3606 if (PyErr_Occurred()) SWIG_fail;
3607 }
3608 Py_INCREF(Py_None); resultobj = Py_None;
3609 return resultobj;
3610 fail:
3611 return NULL;
3612 }
3613
3614
3615 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3616 PyObject *obj;
3617 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3618 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3619 Py_INCREF(obj);
3620 return Py_BuildValue((char *)"");
3621 }
3622 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3623 PyObject *resultobj;
3624 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3625 int arg2 = (int) 0 ;
3626 wxIconLocation *result;
3627 bool temp1 = False ;
3628 PyObject * obj0 = 0 ;
3629 PyObject * obj1 = 0 ;
3630 char *kwnames[] = {
3631 (char *) "filename",(char *) "num", NULL
3632 };
3633
3634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3635 if (obj0) {
3636 {
3637 arg1 = wxString_in_helper(obj0);
3638 if (arg1 == NULL) SWIG_fail;
3639 temp1 = True;
3640 }
3641 }
3642 if (obj1) {
3643 {
3644 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3645 if (PyErr_Occurred()) SWIG_fail;
3646 }
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3651
3652 wxPyEndAllowThreads(__tstate);
3653 if (PyErr_Occurred()) SWIG_fail;
3654 }
3655 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3656 {
3657 if (temp1)
3658 delete arg1;
3659 }
3660 return resultobj;
3661 fail:
3662 {
3663 if (temp1)
3664 delete arg1;
3665 }
3666 return NULL;
3667 }
3668
3669
3670 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3671 PyObject *resultobj;
3672 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3673 PyObject * obj0 = 0 ;
3674 char *kwnames[] = {
3675 (char *) "self", NULL
3676 };
3677
3678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3680 {
3681 PyThreadState* __tstate = wxPyBeginAllowThreads();
3682 delete arg1;
3683
3684 wxPyEndAllowThreads(__tstate);
3685 if (PyErr_Occurred()) SWIG_fail;
3686 }
3687 Py_INCREF(Py_None); resultobj = Py_None;
3688 return resultobj;
3689 fail:
3690 return NULL;
3691 }
3692
3693
3694 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3695 PyObject *resultobj;
3696 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3697 bool result;
3698 PyObject * obj0 = 0 ;
3699 char *kwnames[] = {
3700 (char *) "self", NULL
3701 };
3702
3703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3704 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3705 {
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
3707 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3708
3709 wxPyEndAllowThreads(__tstate);
3710 if (PyErr_Occurred()) SWIG_fail;
3711 }
3712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3713 return resultobj;
3714 fail:
3715 return NULL;
3716 }
3717
3718
3719 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3720 PyObject *resultobj;
3721 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3722 wxString *arg2 = 0 ;
3723 bool temp2 = False ;
3724 PyObject * obj0 = 0 ;
3725 PyObject * obj1 = 0 ;
3726 char *kwnames[] = {
3727 (char *) "self",(char *) "filename", NULL
3728 };
3729
3730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3732 {
3733 arg2 = wxString_in_helper(obj1);
3734 if (arg2 == NULL) SWIG_fail;
3735 temp2 = True;
3736 }
3737 {
3738 PyThreadState* __tstate = wxPyBeginAllowThreads();
3739 (arg1)->SetFileName((wxString const &)*arg2);
3740
3741 wxPyEndAllowThreads(__tstate);
3742 if (PyErr_Occurred()) SWIG_fail;
3743 }
3744 Py_INCREF(Py_None); resultobj = Py_None;
3745 {
3746 if (temp2)
3747 delete arg2;
3748 }
3749 return resultobj;
3750 fail:
3751 {
3752 if (temp2)
3753 delete arg2;
3754 }
3755 return NULL;
3756 }
3757
3758
3759 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3760 PyObject *resultobj;
3761 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3762 wxString *result;
3763 PyObject * obj0 = 0 ;
3764 char *kwnames[] = {
3765 (char *) "self", NULL
3766 };
3767
3768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3770 {
3771 PyThreadState* __tstate = wxPyBeginAllowThreads();
3772 {
3773 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3774 result = (wxString *) &_result_ref;
3775 }
3776
3777 wxPyEndAllowThreads(__tstate);
3778 if (PyErr_Occurred()) SWIG_fail;
3779 }
3780 {
3781 #if wxUSE_UNICODE
3782 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3783 #else
3784 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3785 #endif
3786 }
3787 return resultobj;
3788 fail:
3789 return NULL;
3790 }
3791
3792
3793 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3794 PyObject *resultobj;
3795 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3796 int arg2 ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 char *kwnames[] = {
3800 (char *) "self",(char *) "num", NULL
3801 };
3802
3803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
3804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3805 {
3806 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3807 if (PyErr_Occurred()) SWIG_fail;
3808 }
3809 {
3810 PyThreadState* __tstate = wxPyBeginAllowThreads();
3811 wxIconLocation_SetIndex(arg1,arg2);
3812
3813 wxPyEndAllowThreads(__tstate);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 }
3816 Py_INCREF(Py_None); resultobj = Py_None;
3817 return resultobj;
3818 fail:
3819 return NULL;
3820 }
3821
3822
3823 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3824 PyObject *resultobj;
3825 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3826 int result;
3827 PyObject * obj0 = 0 ;
3828 char *kwnames[] = {
3829 (char *) "self", NULL
3830 };
3831
3832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3834 {
3835 PyThreadState* __tstate = wxPyBeginAllowThreads();
3836 result = (int)wxIconLocation_GetIndex(arg1);
3837
3838 wxPyEndAllowThreads(__tstate);
3839 if (PyErr_Occurred()) SWIG_fail;
3840 }
3841 resultobj = SWIG_PyObj_FromInt((int)result);
3842 return resultobj;
3843 fail:
3844 return NULL;
3845 }
3846
3847
3848 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3849 PyObject *obj;
3850 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3851 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3852 Py_INCREF(obj);
3853 return Py_BuildValue((char *)"");
3854 }
3855 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3856 PyObject *resultobj;
3857 wxIconBundle *result;
3858 char *kwnames[] = {
3859 NULL
3860 };
3861
3862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3863 {
3864 PyThreadState* __tstate = wxPyBeginAllowThreads();
3865 result = (wxIconBundle *)new wxIconBundle();
3866
3867 wxPyEndAllowThreads(__tstate);
3868 if (PyErr_Occurred()) SWIG_fail;
3869 }
3870 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3871 return resultobj;
3872 fail:
3873 return NULL;
3874 }
3875
3876
3877 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3878 PyObject *resultobj;
3879 wxString *arg1 = 0 ;
3880 long arg2 ;
3881 wxIconBundle *result;
3882 bool temp1 = False ;
3883 PyObject * obj0 = 0 ;
3884 PyObject * obj1 = 0 ;
3885 char *kwnames[] = {
3886 (char *) "file",(char *) "type", NULL
3887 };
3888
3889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
3890 {
3891 arg1 = wxString_in_helper(obj0);
3892 if (arg1 == NULL) SWIG_fail;
3893 temp1 = True;
3894 }
3895 {
3896 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3897 if (PyErr_Occurred()) SWIG_fail;
3898 }
3899 {
3900 PyThreadState* __tstate = wxPyBeginAllowThreads();
3901 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3902
3903 wxPyEndAllowThreads(__tstate);
3904 if (PyErr_Occurred()) SWIG_fail;
3905 }
3906 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3907 {
3908 if (temp1)
3909 delete arg1;
3910 }
3911 return resultobj;
3912 fail:
3913 {
3914 if (temp1)
3915 delete arg1;
3916 }
3917 return NULL;
3918 }
3919
3920
3921 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3922 PyObject *resultobj;
3923 wxIcon *arg1 = 0 ;
3924 wxIconBundle *result;
3925 PyObject * obj0 = 0 ;
3926 char *kwnames[] = {
3927 (char *) "icon", NULL
3928 };
3929
3930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3932 if (arg1 == NULL) {
3933 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3934 }
3935 {
3936 PyThreadState* __tstate = wxPyBeginAllowThreads();
3937 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3938
3939 wxPyEndAllowThreads(__tstate);
3940 if (PyErr_Occurred()) SWIG_fail;
3941 }
3942 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3943 return resultobj;
3944 fail:
3945 return NULL;
3946 }
3947
3948
3949 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3950 PyObject *resultobj;
3951 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3952 PyObject * obj0 = 0 ;
3953 char *kwnames[] = {
3954 (char *) "self", NULL
3955 };
3956
3957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3959 {
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 delete arg1;
3962
3963 wxPyEndAllowThreads(__tstate);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 }
3966 Py_INCREF(Py_None); resultobj = Py_None;
3967 return resultobj;
3968 fail:
3969 return NULL;
3970 }
3971
3972
3973 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3974 PyObject *resultobj;
3975 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3976 wxIcon *arg2 = 0 ;
3977 PyObject * obj0 = 0 ;
3978 PyObject * obj1 = 0 ;
3979 char *kwnames[] = {
3980 (char *) "self",(char *) "icon", NULL
3981 };
3982
3983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3985 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3986 if (arg2 == NULL) {
3987 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3988 }
3989 {
3990 PyThreadState* __tstate = wxPyBeginAllowThreads();
3991 (arg1)->AddIcon((wxIcon const &)*arg2);
3992
3993 wxPyEndAllowThreads(__tstate);
3994 if (PyErr_Occurred()) SWIG_fail;
3995 }
3996 Py_INCREF(Py_None); resultobj = Py_None;
3997 return resultobj;
3998 fail:
3999 return NULL;
4000 }
4001
4002
4003 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4004 PyObject *resultobj;
4005 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4006 wxString *arg2 = 0 ;
4007 long arg3 ;
4008 bool temp2 = False ;
4009 PyObject * obj0 = 0 ;
4010 PyObject * obj1 = 0 ;
4011 PyObject * obj2 = 0 ;
4012 char *kwnames[] = {
4013 (char *) "self",(char *) "file",(char *) "type", NULL
4014 };
4015
4016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4018 {
4019 arg2 = wxString_in_helper(obj1);
4020 if (arg2 == NULL) SWIG_fail;
4021 temp2 = True;
4022 }
4023 {
4024 arg3 = (long) SWIG_PyObj_AsLong(obj2);
4025 if (PyErr_Occurred()) SWIG_fail;
4026 }
4027 {
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
4029 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4030
4031 wxPyEndAllowThreads(__tstate);
4032 if (PyErr_Occurred()) SWIG_fail;
4033 }
4034 Py_INCREF(Py_None); resultobj = Py_None;
4035 {
4036 if (temp2)
4037 delete arg2;
4038 }
4039 return resultobj;
4040 fail:
4041 {
4042 if (temp2)
4043 delete arg2;
4044 }
4045 return NULL;
4046 }
4047
4048
4049 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4050 PyObject *resultobj;
4051 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4052 wxSize *arg2 = 0 ;
4053 wxIcon *result;
4054 wxSize temp2 ;
4055 PyObject * obj0 = 0 ;
4056 PyObject * obj1 = 0 ;
4057 char *kwnames[] = {
4058 (char *) "self",(char *) "size", NULL
4059 };
4060
4061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4063 {
4064 arg2 = &temp2;
4065 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4066 }
4067 {
4068 PyThreadState* __tstate = wxPyBeginAllowThreads();
4069 {
4070 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4071 result = (wxIcon *) &_result_ref;
4072 }
4073
4074 wxPyEndAllowThreads(__tstate);
4075 if (PyErr_Occurred()) SWIG_fail;
4076 }
4077 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
4078 return resultobj;
4079 fail:
4080 return NULL;
4081 }
4082
4083
4084 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4085 PyObject *obj;
4086 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4087 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4088 Py_INCREF(obj);
4089 return Py_BuildValue((char *)"");
4090 }
4091 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4092 PyObject *resultobj;
4093 wxString *arg1 = (wxString *) 0 ;
4094 long arg2 ;
4095 int arg3 = (int) 0 ;
4096 int arg4 = (int) 0 ;
4097 wxCursor *result;
4098 bool temp1 = False ;
4099 PyObject * obj0 = 0 ;
4100 PyObject * obj1 = 0 ;
4101 PyObject * obj2 = 0 ;
4102 PyObject * obj3 = 0 ;
4103 char *kwnames[] = {
4104 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4105 };
4106
4107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4108 {
4109 arg1 = wxString_in_helper(obj0);
4110 if (arg1 == NULL) SWIG_fail;
4111 temp1 = True;
4112 }
4113 {
4114 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 if (obj2) {
4118 {
4119 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4120 if (PyErr_Occurred()) SWIG_fail;
4121 }
4122 }
4123 if (obj3) {
4124 {
4125 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4126 if (PyErr_Occurred()) SWIG_fail;
4127 }
4128 }
4129 {
4130 PyThreadState* __tstate = wxPyBeginAllowThreads();
4131 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4132
4133 wxPyEndAllowThreads(__tstate);
4134 if (PyErr_Occurred()) SWIG_fail;
4135 }
4136 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4137 {
4138 if (temp1)
4139 delete arg1;
4140 }
4141 return resultobj;
4142 fail:
4143 {
4144 if (temp1)
4145 delete arg1;
4146 }
4147 return NULL;
4148 }
4149
4150
4151 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4152 PyObject *resultobj;
4153 wxCursor *arg1 = (wxCursor *) 0 ;
4154 PyObject * obj0 = 0 ;
4155 char *kwnames[] = {
4156 (char *) "self", NULL
4157 };
4158
4159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4161 {
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
4163 delete arg1;
4164
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 Py_INCREF(Py_None); resultobj = Py_None;
4169 return resultobj;
4170 fail:
4171 return NULL;
4172 }
4173
4174
4175 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4176 PyObject *resultobj;
4177 int arg1 ;
4178 wxCursor *result;
4179 PyObject * obj0 = 0 ;
4180 char *kwnames[] = {
4181 (char *) "id", NULL
4182 };
4183
4184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4185 {
4186 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 result = (wxCursor *)new wxCursor(arg1);
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4197 return resultobj;
4198 fail:
4199 return NULL;
4200 }
4201
4202
4203 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj;
4205 wxImage *arg1 = 0 ;
4206 wxCursor *result;
4207 PyObject * obj0 = 0 ;
4208 char *kwnames[] = {
4209 (char *) "image", NULL
4210 };
4211
4212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4214 if (arg1 == NULL) {
4215 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4216 }
4217 {
4218 PyThreadState* __tstate = wxPyBeginAllowThreads();
4219 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4220
4221 wxPyEndAllowThreads(__tstate);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4225 return resultobj;
4226 fail:
4227 return NULL;
4228 }
4229
4230
4231 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4232 PyObject *resultobj;
4233 PyObject *arg1 = (PyObject *) 0 ;
4234 int arg2 ;
4235 int arg3 ;
4236 int arg4 = (int) -1 ;
4237 int arg5 = (int) -1 ;
4238 PyObject *arg6 = (PyObject *) 0 ;
4239 wxCursor *result;
4240 PyObject * obj0 = 0 ;
4241 PyObject * obj1 = 0 ;
4242 PyObject * obj2 = 0 ;
4243 PyObject * obj3 = 0 ;
4244 PyObject * obj4 = 0 ;
4245 PyObject * obj5 = 0 ;
4246 char *kwnames[] = {
4247 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4248 };
4249
4250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4251 arg1 = obj0;
4252 {
4253 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 {
4257 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4258 if (PyErr_Occurred()) SWIG_fail;
4259 }
4260 if (obj3) {
4261 {
4262 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 }
4266 if (obj4) {
4267 {
4268 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 }
4272 if (obj5) {
4273 arg6 = obj5;
4274 }
4275 {
4276 PyThreadState* __tstate = wxPyBeginAllowThreads();
4277 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4278
4279 wxPyEndAllowThreads(__tstate);
4280 if (PyErr_Occurred()) SWIG_fail;
4281 }
4282 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4283 return resultobj;
4284 fail:
4285 return NULL;
4286 }
4287
4288
4289 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4290 PyObject *resultobj;
4291 wxCursor *arg1 = (wxCursor *) 0 ;
4292 bool result;
4293 PyObject * obj0 = 0 ;
4294 char *kwnames[] = {
4295 (char *) "self", NULL
4296 };
4297
4298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 result = (bool)(arg1)->Ok();
4303
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) SWIG_fail;
4306 }
4307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4308 return resultobj;
4309 fail:
4310 return NULL;
4311 }
4312
4313
4314 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4315 PyObject *obj;
4316 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4317 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4318 Py_INCREF(obj);
4319 return Py_BuildValue((char *)"");
4320 }
4321 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4322 PyObject *resultobj;
4323 int arg1 = (int) 0 ;
4324 int arg2 = (int) 0 ;
4325 int arg3 = (int) 0 ;
4326 int arg4 = (int) 0 ;
4327 wxRegion *result;
4328 PyObject * obj0 = 0 ;
4329 PyObject * obj1 = 0 ;
4330 PyObject * obj2 = 0 ;
4331 PyObject * obj3 = 0 ;
4332 char *kwnames[] = {
4333 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4334 };
4335
4336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4337 if (obj0) {
4338 {
4339 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4340 if (PyErr_Occurred()) SWIG_fail;
4341 }
4342 }
4343 if (obj1) {
4344 {
4345 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4346 if (PyErr_Occurred()) SWIG_fail;
4347 }
4348 }
4349 if (obj2) {
4350 {
4351 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4352 if (PyErr_Occurred()) SWIG_fail;
4353 }
4354 }
4355 if (obj3) {
4356 {
4357 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4358 if (PyErr_Occurred()) SWIG_fail;
4359 }
4360 }
4361 {
4362 PyThreadState* __tstate = wxPyBeginAllowThreads();
4363 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4364
4365 wxPyEndAllowThreads(__tstate);
4366 if (PyErr_Occurred()) SWIG_fail;
4367 }
4368 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4369 return resultobj;
4370 fail:
4371 return NULL;
4372 }
4373
4374
4375 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4376 PyObject *resultobj;
4377 wxBitmap *arg1 = 0 ;
4378 wxColour const &arg2_defvalue = wxNullColour ;
4379 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4380 int arg3 = (int) 0 ;
4381 wxRegion *result;
4382 wxColour temp2 ;
4383 PyObject * obj0 = 0 ;
4384 PyObject * obj1 = 0 ;
4385 PyObject * obj2 = 0 ;
4386 char *kwnames[] = {
4387 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4388 };
4389
4390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4392 if (arg1 == NULL) {
4393 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4394 }
4395 if (obj1) {
4396 {
4397 arg2 = &temp2;
4398 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4399 }
4400 }
4401 if (obj2) {
4402 {
4403 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 }
4407 {
4408 PyThreadState* __tstate = wxPyBeginAllowThreads();
4409 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4410
4411 wxPyEndAllowThreads(__tstate);
4412 if (PyErr_Occurred()) SWIG_fail;
4413 }
4414 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4415 return resultobj;
4416 fail:
4417 return NULL;
4418 }
4419
4420
4421 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4422 PyObject *resultobj;
4423 int arg1 ;
4424 wxPoint *arg2 = (wxPoint *) 0 ;
4425 int arg3 = (int) wxWINDING_RULE ;
4426 wxRegion *result;
4427 PyObject * obj0 = 0 ;
4428 PyObject * obj1 = 0 ;
4429 char *kwnames[] = {
4430 (char *) "points",(char *) "fillStyle", NULL
4431 };
4432
4433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4434 {
4435 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4436 if (arg2 == NULL) SWIG_fail;
4437 }
4438 if (obj1) {
4439 {
4440 arg3 = (int) SWIG_PyObj_AsInt(obj1);
4441 if (PyErr_Occurred()) SWIG_fail;
4442 }
4443 }
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4452 {
4453 if (arg2) delete [] arg2;
4454 }
4455 return resultobj;
4456 fail:
4457 {
4458 if (arg2) delete [] arg2;
4459 }
4460 return NULL;
4461 }
4462
4463
4464 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4465 PyObject *resultobj;
4466 wxRegion *arg1 = (wxRegion *) 0 ;
4467 PyObject * obj0 = 0 ;
4468 char *kwnames[] = {
4469 (char *) "self", NULL
4470 };
4471
4472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4474 {
4475 PyThreadState* __tstate = wxPyBeginAllowThreads();
4476 delete arg1;
4477
4478 wxPyEndAllowThreads(__tstate);
4479 if (PyErr_Occurred()) SWIG_fail;
4480 }
4481 Py_INCREF(Py_None); resultobj = Py_None;
4482 return resultobj;
4483 fail:
4484 return NULL;
4485 }
4486
4487
4488 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4489 PyObject *resultobj;
4490 wxRegion *arg1 = (wxRegion *) 0 ;
4491 PyObject * obj0 = 0 ;
4492 char *kwnames[] = {
4493 (char *) "self", NULL
4494 };
4495
4496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) 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 (arg1)->Clear();
4501
4502 wxPyEndAllowThreads(__tstate);
4503 if (PyErr_Occurred()) SWIG_fail;
4504 }
4505 Py_INCREF(Py_None); resultobj = Py_None;
4506 return resultobj;
4507 fail:
4508 return NULL;
4509 }
4510
4511
4512 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4513 PyObject *resultobj;
4514 wxRegion *arg1 = (wxRegion *) 0 ;
4515 int arg2 ;
4516 int arg3 ;
4517 bool result;
4518 PyObject * obj0 = 0 ;
4519 PyObject * obj1 = 0 ;
4520 PyObject * obj2 = 0 ;
4521 char *kwnames[] = {
4522 (char *) "self",(char *) "x",(char *) "y", NULL
4523 };
4524
4525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
4526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4527 {
4528 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4529 if (PyErr_Occurred()) SWIG_fail;
4530 }
4531 {
4532 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4533 if (PyErr_Occurred()) SWIG_fail;
4534 }
4535 {
4536 PyThreadState* __tstate = wxPyBeginAllowThreads();
4537 result = (bool)(arg1)->Offset(arg2,arg3);
4538
4539 wxPyEndAllowThreads(__tstate);
4540 if (PyErr_Occurred()) SWIG_fail;
4541 }
4542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4543 return resultobj;
4544 fail:
4545 return NULL;
4546 }
4547
4548
4549 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4550 PyObject *resultobj;
4551 wxRegion *arg1 = (wxRegion *) 0 ;
4552 int arg2 ;
4553 int arg3 ;
4554 int result;
4555 PyObject * obj0 = 0 ;
4556 PyObject * obj1 = 0 ;
4557 PyObject * obj2 = 0 ;
4558 char *kwnames[] = {
4559 (char *) "self",(char *) "x",(char *) "y", NULL
4560 };
4561
4562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4564 {
4565 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4566 if (PyErr_Occurred()) SWIG_fail;
4567 }
4568 {
4569 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4570 if (PyErr_Occurred()) SWIG_fail;
4571 }
4572 {
4573 PyThreadState* __tstate = wxPyBeginAllowThreads();
4574 result = (int)(arg1)->Contains(arg2,arg3);
4575
4576 wxPyEndAllowThreads(__tstate);
4577 if (PyErr_Occurred()) SWIG_fail;
4578 }
4579 resultobj = SWIG_PyObj_FromInt((int)result);
4580 return resultobj;
4581 fail:
4582 return NULL;
4583 }
4584
4585
4586 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4587 PyObject *resultobj;
4588 wxRegion *arg1 = (wxRegion *) 0 ;
4589 wxPoint *arg2 = 0 ;
4590 int result;
4591 wxPoint temp2 ;
4592 PyObject * obj0 = 0 ;
4593 PyObject * obj1 = 0 ;
4594 char *kwnames[] = {
4595 (char *) "self",(char *) "pt", NULL
4596 };
4597
4598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4600 {
4601 arg2 = &temp2;
4602 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4603 }
4604 {
4605 PyThreadState* __tstate = wxPyBeginAllowThreads();
4606 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4607
4608 wxPyEndAllowThreads(__tstate);
4609 if (PyErr_Occurred()) SWIG_fail;
4610 }
4611 resultobj = SWIG_PyObj_FromInt((int)result);
4612 return resultobj;
4613 fail:
4614 return NULL;
4615 }
4616
4617
4618 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4619 PyObject *resultobj;
4620 wxRegion *arg1 = (wxRegion *) 0 ;
4621 wxRect *arg2 = 0 ;
4622 int result;
4623 wxRect temp2 ;
4624 PyObject * obj0 = 0 ;
4625 PyObject * obj1 = 0 ;
4626 char *kwnames[] = {
4627 (char *) "self",(char *) "rect", NULL
4628 };
4629
4630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4632 {
4633 arg2 = &temp2;
4634 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4635 }
4636 {
4637 PyThreadState* __tstate = wxPyBeginAllowThreads();
4638 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4639
4640 wxPyEndAllowThreads(__tstate);
4641 if (PyErr_Occurred()) SWIG_fail;
4642 }
4643 resultobj = SWIG_PyObj_FromInt((int)result);
4644 return resultobj;
4645 fail:
4646 return NULL;
4647 }
4648
4649
4650 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4651 PyObject *resultobj;
4652 wxRegion *arg1 = (wxRegion *) 0 ;
4653 int arg2 ;
4654 int arg3 ;
4655 int arg4 ;
4656 int arg5 ;
4657 int result;
4658 PyObject * obj0 = 0 ;
4659 PyObject * obj1 = 0 ;
4660 PyObject * obj2 = 0 ;
4661 PyObject * obj3 = 0 ;
4662 PyObject * obj4 = 0 ;
4663 char *kwnames[] = {
4664 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4665 };
4666
4667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4669 {
4670 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4671 if (PyErr_Occurred()) SWIG_fail;
4672 }
4673 {
4674 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 {
4678 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 }
4681 {
4682 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4683 if (PyErr_Occurred()) SWIG_fail;
4684 }
4685 {
4686 PyThreadState* __tstate = wxPyBeginAllowThreads();
4687 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4688
4689 wxPyEndAllowThreads(__tstate);
4690 if (PyErr_Occurred()) SWIG_fail;
4691 }
4692 resultobj = SWIG_PyObj_FromInt((int)result);
4693 return resultobj;
4694 fail:
4695 return NULL;
4696 }
4697
4698
4699 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4700 PyObject *resultobj;
4701 wxRegion *arg1 = (wxRegion *) 0 ;
4702 wxRect result;
4703 PyObject * obj0 = 0 ;
4704 char *kwnames[] = {
4705 (char *) "self", NULL
4706 };
4707
4708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4710 {
4711 PyThreadState* __tstate = wxPyBeginAllowThreads();
4712 result = (arg1)->GetBox();
4713
4714 wxPyEndAllowThreads(__tstate);
4715 if (PyErr_Occurred()) SWIG_fail;
4716 }
4717 {
4718 wxRect * resultptr;
4719 resultptr = new wxRect((wxRect &) result);
4720 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4721 }
4722 return resultobj;
4723 fail:
4724 return NULL;
4725 }
4726
4727
4728 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4729 PyObject *resultobj;
4730 wxRegion *arg1 = (wxRegion *) 0 ;
4731 int arg2 ;
4732 int arg3 ;
4733 int arg4 ;
4734 int arg5 ;
4735 bool result;
4736 PyObject * obj0 = 0 ;
4737 PyObject * obj1 = 0 ;
4738 PyObject * obj2 = 0 ;
4739 PyObject * obj3 = 0 ;
4740 PyObject * obj4 = 0 ;
4741 char *kwnames[] = {
4742 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4743 };
4744
4745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4747 {
4748 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4749 if (PyErr_Occurred()) SWIG_fail;
4750 }
4751 {
4752 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4753 if (PyErr_Occurred()) SWIG_fail;
4754 }
4755 {
4756 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4757 if (PyErr_Occurred()) SWIG_fail;
4758 }
4759 {
4760 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4761 if (PyErr_Occurred()) SWIG_fail;
4762 }
4763 {
4764 PyThreadState* __tstate = wxPyBeginAllowThreads();
4765 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4766
4767 wxPyEndAllowThreads(__tstate);
4768 if (PyErr_Occurred()) SWIG_fail;
4769 }
4770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4771 return resultobj;
4772 fail:
4773 return NULL;
4774 }
4775
4776
4777 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4778 PyObject *resultobj;
4779 wxRegion *arg1 = (wxRegion *) 0 ;
4780 wxRect *arg2 = 0 ;
4781 bool result;
4782 wxRect temp2 ;
4783 PyObject * obj0 = 0 ;
4784 PyObject * obj1 = 0 ;
4785 char *kwnames[] = {
4786 (char *) "self",(char *) "rect", NULL
4787 };
4788
4789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4791 {
4792 arg2 = &temp2;
4793 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4794 }
4795 {
4796 PyThreadState* __tstate = wxPyBeginAllowThreads();
4797 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4798
4799 wxPyEndAllowThreads(__tstate);
4800 if (PyErr_Occurred()) SWIG_fail;
4801 }
4802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4803 return resultobj;
4804 fail:
4805 return NULL;
4806 }
4807
4808
4809 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4810 PyObject *resultobj;
4811 wxRegion *arg1 = (wxRegion *) 0 ;
4812 wxRegion *arg2 = 0 ;
4813 bool result;
4814 PyObject * obj0 = 0 ;
4815 PyObject * obj1 = 0 ;
4816 char *kwnames[] = {
4817 (char *) "self",(char *) "region", NULL
4818 };
4819
4820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4822 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4823 if (arg2 == NULL) {
4824 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4825 }
4826 {
4827 PyThreadState* __tstate = wxPyBeginAllowThreads();
4828 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4829
4830 wxPyEndAllowThreads(__tstate);
4831 if (PyErr_Occurred()) SWIG_fail;
4832 }
4833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4834 return resultobj;
4835 fail:
4836 return NULL;
4837 }
4838
4839
4840 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4841 PyObject *resultobj;
4842 wxRegion *arg1 = (wxRegion *) 0 ;
4843 bool result;
4844 PyObject * obj0 = 0 ;
4845 char *kwnames[] = {
4846 (char *) "self", NULL
4847 };
4848
4849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 result = (bool)(arg1)->IsEmpty();
4854
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4859 return resultobj;
4860 fail:
4861 return NULL;
4862 }
4863
4864
4865 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj;
4867 wxRegion *arg1 = (wxRegion *) 0 ;
4868 int arg2 ;
4869 int arg3 ;
4870 int arg4 ;
4871 int arg5 ;
4872 bool result;
4873 PyObject * obj0 = 0 ;
4874 PyObject * obj1 = 0 ;
4875 PyObject * obj2 = 0 ;
4876 PyObject * obj3 = 0 ;
4877 PyObject * obj4 = 0 ;
4878 char *kwnames[] = {
4879 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4880 };
4881
4882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4884 {
4885 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4886 if (PyErr_Occurred()) SWIG_fail;
4887 }
4888 {
4889 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 {
4893 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4894 if (PyErr_Occurred()) SWIG_fail;
4895 }
4896 {
4897 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 }
4900 {
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4903
4904 wxPyEndAllowThreads(__tstate);
4905 if (PyErr_Occurred()) SWIG_fail;
4906 }
4907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4908 return resultobj;
4909 fail:
4910 return NULL;
4911 }
4912
4913
4914 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4915 PyObject *resultobj;
4916 wxRegion *arg1 = (wxRegion *) 0 ;
4917 wxRect *arg2 = 0 ;
4918 bool result;
4919 wxRect temp2 ;
4920 PyObject * obj0 = 0 ;
4921 PyObject * obj1 = 0 ;
4922 char *kwnames[] = {
4923 (char *) "self",(char *) "rect", NULL
4924 };
4925
4926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4928 {
4929 arg2 = &temp2;
4930 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4931 }
4932 {
4933 PyThreadState* __tstate = wxPyBeginAllowThreads();
4934 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4935
4936 wxPyEndAllowThreads(__tstate);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 }
4939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4940 return resultobj;
4941 fail:
4942 return NULL;
4943 }
4944
4945
4946 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4947 PyObject *resultobj;
4948 wxRegion *arg1 = (wxRegion *) 0 ;
4949 wxRegion *arg2 = 0 ;
4950 bool result;
4951 PyObject * obj0 = 0 ;
4952 PyObject * obj1 = 0 ;
4953 char *kwnames[] = {
4954 (char *) "self",(char *) "region", NULL
4955 };
4956
4957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4959 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4960 if (arg2 == NULL) {
4961 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4962 }
4963 {
4964 PyThreadState* __tstate = wxPyBeginAllowThreads();
4965 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4966
4967 wxPyEndAllowThreads(__tstate);
4968 if (PyErr_Occurred()) SWIG_fail;
4969 }
4970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4971 return resultobj;
4972 fail:
4973 return NULL;
4974 }
4975
4976
4977 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4978 PyObject *resultobj;
4979 wxRegion *arg1 = (wxRegion *) 0 ;
4980 int arg2 ;
4981 int arg3 ;
4982 int arg4 ;
4983 int arg5 ;
4984 bool result;
4985 PyObject * obj0 = 0 ;
4986 PyObject * obj1 = 0 ;
4987 PyObject * obj2 = 0 ;
4988 PyObject * obj3 = 0 ;
4989 PyObject * obj4 = 0 ;
4990 char *kwnames[] = {
4991 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4992 };
4993
4994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4996 {
4997 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4998 if (PyErr_Occurred()) SWIG_fail;
4999 }
5000 {
5001 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5002 if (PyErr_Occurred()) SWIG_fail;
5003 }
5004 {
5005 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 }
5008 {
5009 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 {
5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
5014 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5015
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 }
5019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5020 return resultobj;
5021 fail:
5022 return NULL;
5023 }
5024
5025
5026 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5027 PyObject *resultobj;
5028 wxRegion *arg1 = (wxRegion *) 0 ;
5029 wxRect *arg2 = 0 ;
5030 bool result;
5031 wxRect temp2 ;
5032 PyObject * obj0 = 0 ;
5033 PyObject * obj1 = 0 ;
5034 char *kwnames[] = {
5035 (char *) "self",(char *) "rect", NULL
5036 };
5037
5038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5040 {
5041 arg2 = &temp2;
5042 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5043 }
5044 {
5045 PyThreadState* __tstate = wxPyBeginAllowThreads();
5046 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5047
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5052 return resultobj;
5053 fail:
5054 return NULL;
5055 }
5056
5057
5058 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj;
5060 wxRegion *arg1 = (wxRegion *) 0 ;
5061 wxRegion *arg2 = 0 ;
5062 bool result;
5063 PyObject * obj0 = 0 ;
5064 PyObject * obj1 = 0 ;
5065 char *kwnames[] = {
5066 (char *) "self",(char *) "region", NULL
5067 };
5068
5069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5071 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5072 if (arg2 == NULL) {
5073 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5074 }
5075 {
5076 PyThreadState* __tstate = wxPyBeginAllowThreads();
5077 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5078
5079 wxPyEndAllowThreads(__tstate);
5080 if (PyErr_Occurred()) SWIG_fail;
5081 }
5082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5083 return resultobj;
5084 fail:
5085 return NULL;
5086 }
5087
5088
5089 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj;
5091 wxRegion *arg1 = (wxRegion *) 0 ;
5092 int arg2 ;
5093 int arg3 ;
5094 int arg4 ;
5095 int arg5 ;
5096 bool result;
5097 PyObject * obj0 = 0 ;
5098 PyObject * obj1 = 0 ;
5099 PyObject * obj2 = 0 ;
5100 PyObject * obj3 = 0 ;
5101 PyObject * obj4 = 0 ;
5102 char *kwnames[] = {
5103 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5104 };
5105
5106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5108 {
5109 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5110 if (PyErr_Occurred()) SWIG_fail;
5111 }
5112 {
5113 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5114 if (PyErr_Occurred()) SWIG_fail;
5115 }
5116 {
5117 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 }
5120 {
5121 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5122 if (PyErr_Occurred()) SWIG_fail;
5123 }
5124 {
5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
5126 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5127
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5132 return resultobj;
5133 fail:
5134 return NULL;
5135 }
5136
5137
5138 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5139 PyObject *resultobj;
5140 wxRegion *arg1 = (wxRegion *) 0 ;
5141 wxRect *arg2 = 0 ;
5142 bool result;
5143 wxRect temp2 ;
5144 PyObject * obj0 = 0 ;
5145 PyObject * obj1 = 0 ;
5146 char *kwnames[] = {
5147 (char *) "self",(char *) "rect", NULL
5148 };
5149
5150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5152 {
5153 arg2 = &temp2;
5154 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5155 }
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5159
5160 wxPyEndAllowThreads(__tstate);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 }
5163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5164 return resultobj;
5165 fail:
5166 return NULL;
5167 }
5168
5169
5170 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5171 PyObject *resultobj;
5172 wxRegion *arg1 = (wxRegion *) 0 ;
5173 wxRegion *arg2 = 0 ;
5174 bool result;
5175 PyObject * obj0 = 0 ;
5176 PyObject * obj1 = 0 ;
5177 char *kwnames[] = {
5178 (char *) "self",(char *) "region", NULL
5179 };
5180
5181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5183 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5184 if (arg2 == NULL) {
5185 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5186 }
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5190
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5195 return resultobj;
5196 fail:
5197 return NULL;
5198 }
5199
5200
5201 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5202 PyObject *resultobj;
5203 wxRegion *arg1 = (wxRegion *) 0 ;
5204 SwigValueWrapper< wxBitmap > result;
5205 PyObject * obj0 = 0 ;
5206 char *kwnames[] = {
5207 (char *) "self", NULL
5208 };
5209
5210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 result = (arg1)->ConvertToBitmap();
5215
5216 wxPyEndAllowThreads(__tstate);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 }
5219 {
5220 wxBitmap * resultptr;
5221 resultptr = new wxBitmap((wxBitmap &) result);
5222 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5223 }
5224 return resultobj;
5225 fail:
5226 return NULL;
5227 }
5228
5229
5230 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5231 PyObject *resultobj;
5232 wxRegion *arg1 = (wxRegion *) 0 ;
5233 wxBitmap *arg2 = 0 ;
5234 wxColour const &arg3_defvalue = wxNullColour ;
5235 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5236 int arg4 = (int) 0 ;
5237 bool result;
5238 wxColour temp3 ;
5239 PyObject * obj0 = 0 ;
5240 PyObject * obj1 = 0 ;
5241 PyObject * obj2 = 0 ;
5242 PyObject * obj3 = 0 ;
5243 char *kwnames[] = {
5244 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5245 };
5246
5247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5249 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5250 if (arg2 == NULL) {
5251 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5252 }
5253 if (obj2) {
5254 {
5255 arg3 = &temp3;
5256 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5257 }
5258 }
5259 if (obj3) {
5260 {
5261 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5262 if (PyErr_Occurred()) SWIG_fail;
5263 }
5264 }
5265 {
5266 PyThreadState* __tstate = wxPyBeginAllowThreads();
5267 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5268
5269 wxPyEndAllowThreads(__tstate);
5270 if (PyErr_Occurred()) SWIG_fail;
5271 }
5272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5273 return resultobj;
5274 fail:
5275 return NULL;
5276 }
5277
5278
5279 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5280 PyObject *obj;
5281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5282 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5283 Py_INCREF(obj);
5284 return Py_BuildValue((char *)"");
5285 }
5286 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj;
5288 wxRegion *arg1 = 0 ;
5289 wxRegionIterator *result;
5290 PyObject * obj0 = 0 ;
5291 char *kwnames[] = {
5292 (char *) "region", NULL
5293 };
5294
5295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5296 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5297 if (arg1 == NULL) {
5298 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5299 }
5300 {
5301 PyThreadState* __tstate = wxPyBeginAllowThreads();
5302 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5303
5304 wxPyEndAllowThreads(__tstate);
5305 if (PyErr_Occurred()) SWIG_fail;
5306 }
5307 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5308 return resultobj;
5309 fail:
5310 return NULL;
5311 }
5312
5313
5314 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5315 PyObject *resultobj;
5316 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5317 PyObject * obj0 = 0 ;
5318 char *kwnames[] = {
5319 (char *) "self", NULL
5320 };
5321
5322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5324 {
5325 PyThreadState* __tstate = wxPyBeginAllowThreads();
5326 delete arg1;
5327
5328 wxPyEndAllowThreads(__tstate);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 }
5331 Py_INCREF(Py_None); resultobj = Py_None;
5332 return resultobj;
5333 fail:
5334 return NULL;
5335 }
5336
5337
5338 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj;
5340 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5341 int result;
5342 PyObject * obj0 = 0 ;
5343 char *kwnames[] = {
5344 (char *) "self", NULL
5345 };
5346
5347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5349 {
5350 PyThreadState* __tstate = wxPyBeginAllowThreads();
5351 result = (int)(arg1)->GetX();
5352
5353 wxPyEndAllowThreads(__tstate);
5354 if (PyErr_Occurred()) SWIG_fail;
5355 }
5356 resultobj = SWIG_PyObj_FromInt((int)result);
5357 return resultobj;
5358 fail:
5359 return NULL;
5360 }
5361
5362
5363 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5364 PyObject *resultobj;
5365 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5366 int result;
5367 PyObject * obj0 = 0 ;
5368 char *kwnames[] = {
5369 (char *) "self", NULL
5370 };
5371
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 result = (int)(arg1)->GetY();
5377
5378 wxPyEndAllowThreads(__tstate);
5379 if (PyErr_Occurred()) SWIG_fail;
5380 }
5381 resultobj = SWIG_PyObj_FromInt((int)result);
5382 return resultobj;
5383 fail:
5384 return NULL;
5385 }
5386
5387
5388 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5389 PyObject *resultobj;
5390 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5391 int result;
5392 PyObject * obj0 = 0 ;
5393 char *kwnames[] = {
5394 (char *) "self", NULL
5395 };
5396
5397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5399 {
5400 PyThreadState* __tstate = wxPyBeginAllowThreads();
5401 result = (int)(arg1)->GetW();
5402
5403 wxPyEndAllowThreads(__tstate);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 resultobj = SWIG_PyObj_FromInt((int)result);
5407 return resultobj;
5408 fail:
5409 return NULL;
5410 }
5411
5412
5413 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5414 PyObject *resultobj;
5415 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5416 int result;
5417 PyObject * obj0 = 0 ;
5418 char *kwnames[] = {
5419 (char *) "self", NULL
5420 };
5421
5422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5424 {
5425 PyThreadState* __tstate = wxPyBeginAllowThreads();
5426 result = (int)(arg1)->GetWidth();
5427
5428 wxPyEndAllowThreads(__tstate);
5429 if (PyErr_Occurred()) SWIG_fail;
5430 }
5431 resultobj = SWIG_PyObj_FromInt((int)result);
5432 return resultobj;
5433 fail:
5434 return NULL;
5435 }
5436
5437
5438 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5439 PyObject *resultobj;
5440 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5441 int result;
5442 PyObject * obj0 = 0 ;
5443 char *kwnames[] = {
5444 (char *) "self", NULL
5445 };
5446
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5449 {
5450 PyThreadState* __tstate = wxPyBeginAllowThreads();
5451 result = (int)(arg1)->GetH();
5452
5453 wxPyEndAllowThreads(__tstate);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 }
5456 resultobj = SWIG_PyObj_FromInt((int)result);
5457 return resultobj;
5458 fail:
5459 return NULL;
5460 }
5461
5462
5463 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj;
5465 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5466 int result;
5467 PyObject * obj0 = 0 ;
5468 char *kwnames[] = {
5469 (char *) "self", NULL
5470 };
5471
5472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5474 {
5475 PyThreadState* __tstate = wxPyBeginAllowThreads();
5476 result = (int)(arg1)->GetHeight();
5477
5478 wxPyEndAllowThreads(__tstate);
5479 if (PyErr_Occurred()) SWIG_fail;
5480 }
5481 resultobj = SWIG_PyObj_FromInt((int)result);
5482 return resultobj;
5483 fail:
5484 return NULL;
5485 }
5486
5487
5488 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5489 PyObject *resultobj;
5490 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5491 wxRect result;
5492 PyObject * obj0 = 0 ;
5493 char *kwnames[] = {
5494 (char *) "self", NULL
5495 };
5496
5497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5499 {
5500 PyThreadState* __tstate = wxPyBeginAllowThreads();
5501 result = (arg1)->GetRect();
5502
5503 wxPyEndAllowThreads(__tstate);
5504 if (PyErr_Occurred()) SWIG_fail;
5505 }
5506 {
5507 wxRect * resultptr;
5508 resultptr = new wxRect((wxRect &) result);
5509 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5510 }
5511 return resultobj;
5512 fail:
5513 return NULL;
5514 }
5515
5516
5517 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5518 PyObject *resultobj;
5519 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5520 bool result;
5521 PyObject * obj0 = 0 ;
5522 char *kwnames[] = {
5523 (char *) "self", NULL
5524 };
5525
5526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5528 {
5529 PyThreadState* __tstate = wxPyBeginAllowThreads();
5530 result = (bool)(arg1)->HaveRects();
5531
5532 wxPyEndAllowThreads(__tstate);
5533 if (PyErr_Occurred()) SWIG_fail;
5534 }
5535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5536 return resultobj;
5537 fail:
5538 return NULL;
5539 }
5540
5541
5542 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5543 PyObject *resultobj;
5544 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5545 PyObject * obj0 = 0 ;
5546 char *kwnames[] = {
5547 (char *) "self", NULL
5548 };
5549
5550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5552 {
5553 PyThreadState* __tstate = wxPyBeginAllowThreads();
5554 (arg1)->Reset();
5555
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 Py_INCREF(Py_None); resultobj = Py_None;
5560 return resultobj;
5561 fail:
5562 return NULL;
5563 }
5564
5565
5566 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5567 PyObject *resultobj;
5568 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5569 PyObject * obj0 = 0 ;
5570 char *kwnames[] = {
5571 (char *) "self", NULL
5572 };
5573
5574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5576 {
5577 PyThreadState* __tstate = wxPyBeginAllowThreads();
5578 wxRegionIterator_Next(arg1);
5579
5580 wxPyEndAllowThreads(__tstate);
5581 if (PyErr_Occurred()) SWIG_fail;
5582 }
5583 Py_INCREF(Py_None); resultobj = Py_None;
5584 return resultobj;
5585 fail:
5586 return NULL;
5587 }
5588
5589
5590 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5591 PyObject *resultobj;
5592 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5593 bool result;
5594 PyObject * obj0 = 0 ;
5595 char *kwnames[] = {
5596 (char *) "self", NULL
5597 };
5598
5599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5600 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5601 {
5602 PyThreadState* __tstate = wxPyBeginAllowThreads();
5603 result = (bool)wxRegionIterator___nonzero__(arg1);
5604
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5609 return resultobj;
5610 fail:
5611 return NULL;
5612 }
5613
5614
5615 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5616 PyObject *obj;
5617 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5618 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5619 Py_INCREF(obj);
5620 return Py_BuildValue((char *)"");
5621 }
5622 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5623 PyObject *resultobj;
5624 wxNativeFontInfo *result;
5625 char *kwnames[] = {
5626 NULL
5627 };
5628
5629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5630 {
5631 PyThreadState* __tstate = wxPyBeginAllowThreads();
5632 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5633
5634 wxPyEndAllowThreads(__tstate);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 }
5637 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5638 return resultobj;
5639 fail:
5640 return NULL;
5641 }
5642
5643
5644 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5645 PyObject *resultobj;
5646 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5647 PyObject * obj0 = 0 ;
5648 char *kwnames[] = {
5649 (char *) "self", NULL
5650 };
5651
5652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5654 {
5655 PyThreadState* __tstate = wxPyBeginAllowThreads();
5656 delete arg1;
5657
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 }
5661 Py_INCREF(Py_None); resultobj = Py_None;
5662 return resultobj;
5663 fail:
5664 return NULL;
5665 }
5666
5667
5668 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5669 PyObject *resultobj;
5670 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5671 PyObject * obj0 = 0 ;
5672 char *kwnames[] = {
5673 (char *) "self", NULL
5674 };
5675
5676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5678 {
5679 PyThreadState* __tstate = wxPyBeginAllowThreads();
5680 (arg1)->Init();
5681
5682 wxPyEndAllowThreads(__tstate);
5683 if (PyErr_Occurred()) SWIG_fail;
5684 }
5685 Py_INCREF(Py_None); resultobj = Py_None;
5686 return resultobj;
5687 fail:
5688 return NULL;
5689 }
5690
5691
5692 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5693 PyObject *resultobj;
5694 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5695 wxFont *arg2 = 0 ;
5696 PyObject * obj0 = 0 ;
5697 PyObject * obj1 = 0 ;
5698 char *kwnames[] = {
5699 (char *) "self",(char *) "font", NULL
5700 };
5701
5702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5704 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5705 if (arg2 == NULL) {
5706 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5707 }
5708 {
5709 PyThreadState* __tstate = wxPyBeginAllowThreads();
5710 (arg1)->InitFromFont((wxFont const &)*arg2);
5711
5712 wxPyEndAllowThreads(__tstate);
5713 if (PyErr_Occurred()) SWIG_fail;
5714 }
5715 Py_INCREF(Py_None); resultobj = Py_None;
5716 return resultobj;
5717 fail:
5718 return NULL;
5719 }
5720
5721
5722 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5723 PyObject *resultobj;
5724 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5725 int result;
5726 PyObject * obj0 = 0 ;
5727 char *kwnames[] = {
5728 (char *) "self", NULL
5729 };
5730
5731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5733 {
5734 PyThreadState* __tstate = wxPyBeginAllowThreads();
5735 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5736
5737 wxPyEndAllowThreads(__tstate);
5738 if (PyErr_Occurred()) SWIG_fail;
5739 }
5740 resultobj = SWIG_PyObj_FromInt((int)result);
5741 return resultobj;
5742 fail:
5743 return NULL;
5744 }
5745
5746
5747 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5748 PyObject *resultobj;
5749 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5750 int result;
5751 PyObject * obj0 = 0 ;
5752 char *kwnames[] = {
5753 (char *) "self", NULL
5754 };
5755
5756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5758 {
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5761
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 resultobj = SWIG_PyObj_FromInt((int)result);
5766 return resultobj;
5767 fail:
5768 return NULL;
5769 }
5770
5771
5772 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5773 PyObject *resultobj;
5774 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5775 int result;
5776 PyObject * obj0 = 0 ;
5777 char *kwnames[] = {
5778 (char *) "self", NULL
5779 };
5780
5781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5783 {
5784 PyThreadState* __tstate = wxPyBeginAllowThreads();
5785 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5786
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 resultobj = SWIG_PyObj_FromInt((int)result);
5791 return resultobj;
5792 fail:
5793 return NULL;
5794 }
5795
5796
5797 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5798 PyObject *resultobj;
5799 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5800 bool result;
5801 PyObject * obj0 = 0 ;
5802 char *kwnames[] = {
5803 (char *) "self", NULL
5804 };
5805
5806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5808 {
5809 PyThreadState* __tstate = wxPyBeginAllowThreads();
5810 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5811
5812 wxPyEndAllowThreads(__tstate);
5813 if (PyErr_Occurred()) SWIG_fail;
5814 }
5815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5816 return resultobj;
5817 fail:
5818 return NULL;
5819 }
5820
5821
5822 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5823 PyObject *resultobj;
5824 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5825 wxString result;
5826 PyObject * obj0 = 0 ;
5827 char *kwnames[] = {
5828 (char *) "self", NULL
5829 };
5830
5831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5833 {
5834 PyThreadState* __tstate = wxPyBeginAllowThreads();
5835 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5836
5837 wxPyEndAllowThreads(__tstate);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 {
5841 #if wxUSE_UNICODE
5842 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5843 #else
5844 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5845 #endif
5846 }
5847 return resultobj;
5848 fail:
5849 return NULL;
5850 }
5851
5852
5853 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5854 PyObject *resultobj;
5855 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5856 int result;
5857 PyObject * obj0 = 0 ;
5858 char *kwnames[] = {
5859 (char *) "self", NULL
5860 };
5861
5862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5864 {
5865 PyThreadState* __tstate = wxPyBeginAllowThreads();
5866 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5867
5868 wxPyEndAllowThreads(__tstate);
5869 if (PyErr_Occurred()) SWIG_fail;
5870 }
5871 resultobj = SWIG_PyObj_FromInt((int)result);
5872 return resultobj;
5873 fail:
5874 return NULL;
5875 }
5876
5877
5878 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5879 PyObject *resultobj;
5880 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5881 int result;
5882 PyObject * obj0 = 0 ;
5883 char *kwnames[] = {
5884 (char *) "self", NULL
5885 };
5886
5887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5889 {
5890 PyThreadState* __tstate = wxPyBeginAllowThreads();
5891 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5892
5893 wxPyEndAllowThreads(__tstate);
5894 if (PyErr_Occurred()) SWIG_fail;
5895 }
5896 resultobj = SWIG_PyObj_FromInt((int)result);
5897 return resultobj;
5898 fail:
5899 return NULL;
5900 }
5901
5902
5903 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5904 PyObject *resultobj;
5905 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5906 int arg2 ;
5907 PyObject * obj0 = 0 ;
5908 PyObject * obj1 = 0 ;
5909 char *kwnames[] = {
5910 (char *) "self",(char *) "pointsize", NULL
5911 };
5912
5913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
5914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5915 {
5916 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 {
5920 PyThreadState* __tstate = wxPyBeginAllowThreads();
5921 (arg1)->SetPointSize(arg2);
5922
5923 wxPyEndAllowThreads(__tstate);
5924 if (PyErr_Occurred()) SWIG_fail;
5925 }
5926 Py_INCREF(Py_None); resultobj = Py_None;
5927 return resultobj;
5928 fail:
5929 return NULL;
5930 }
5931
5932
5933 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5934 PyObject *resultobj;
5935 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5936 int arg2 ;
5937 PyObject * obj0 = 0 ;
5938 PyObject * obj1 = 0 ;
5939 char *kwnames[] = {
5940 (char *) "self",(char *) "style", NULL
5941 };
5942
5943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
5944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5945 {
5946 arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1);
5947 if (PyErr_Occurred()) SWIG_fail;
5948 }
5949 {
5950 PyThreadState* __tstate = wxPyBeginAllowThreads();
5951 (arg1)->SetStyle((wxFontStyle )arg2);
5952
5953 wxPyEndAllowThreads(__tstate);
5954 if (PyErr_Occurred()) SWIG_fail;
5955 }
5956 Py_INCREF(Py_None); resultobj = Py_None;
5957 return resultobj;
5958 fail:
5959 return NULL;
5960 }
5961
5962
5963 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5964 PyObject *resultobj;
5965 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5966 int arg2 ;
5967 PyObject * obj0 = 0 ;
5968 PyObject * obj1 = 0 ;
5969 char *kwnames[] = {
5970 (char *) "self",(char *) "weight", NULL
5971 };
5972
5973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
5974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5975 {
5976 arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 {
5980 PyThreadState* __tstate = wxPyBeginAllowThreads();
5981 (arg1)->SetWeight((wxFontWeight )arg2);
5982
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 Py_INCREF(Py_None); resultobj = Py_None;
5987 return resultobj;
5988 fail:
5989 return NULL;
5990 }
5991
5992
5993 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5994 PyObject *resultobj;
5995 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5996 bool arg2 ;
5997 PyObject * obj0 = 0 ;
5998 PyObject * obj1 = 0 ;
5999 char *kwnames[] = {
6000 (char *) "self",(char *) "underlined", NULL
6001 };
6002
6003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6005 {
6006 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 }
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
6011 (arg1)->SetUnderlined(arg2);
6012
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 Py_INCREF(Py_None); resultobj = Py_None;
6017 return resultobj;
6018 fail:
6019 return NULL;
6020 }
6021
6022
6023 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6024 PyObject *resultobj;
6025 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6026 wxString arg2 ;
6027 PyObject * obj0 = 0 ;
6028 PyObject * obj1 = 0 ;
6029 char *kwnames[] = {
6030 (char *) "self",(char *) "facename", NULL
6031 };
6032
6033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6035 {
6036 wxString* sptr = wxString_in_helper(obj1);
6037 if (sptr == NULL) SWIG_fail;
6038 arg2 = *sptr;
6039 delete sptr;
6040 }
6041 {
6042 PyThreadState* __tstate = wxPyBeginAllowThreads();
6043 (arg1)->SetFaceName(arg2);
6044
6045 wxPyEndAllowThreads(__tstate);
6046 if (PyErr_Occurred()) SWIG_fail;
6047 }
6048 Py_INCREF(Py_None); resultobj = Py_None;
6049 return resultobj;
6050 fail:
6051 return NULL;
6052 }
6053
6054
6055 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6056 PyObject *resultobj;
6057 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6058 int arg2 ;
6059 PyObject * obj0 = 0 ;
6060 PyObject * obj1 = 0 ;
6061 char *kwnames[] = {
6062 (char *) "self",(char *) "family", NULL
6063 };
6064
6065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6067 {
6068 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 }
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 (arg1)->SetFamily((wxFontFamily )arg2);
6074
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
6078 Py_INCREF(Py_None); resultobj = Py_None;
6079 return resultobj;
6080 fail:
6081 return NULL;
6082 }
6083
6084
6085 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6086 PyObject *resultobj;
6087 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6088 int arg2 ;
6089 PyObject * obj0 = 0 ;
6090 PyObject * obj1 = 0 ;
6091 char *kwnames[] = {
6092 (char *) "self",(char *) "encoding", NULL
6093 };
6094
6095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6097 {
6098 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 }
6101 {
6102 PyThreadState* __tstate = wxPyBeginAllowThreads();
6103 (arg1)->SetEncoding((wxFontEncoding )arg2);
6104
6105 wxPyEndAllowThreads(__tstate);
6106 if (PyErr_Occurred()) SWIG_fail;
6107 }
6108 Py_INCREF(Py_None); resultobj = Py_None;
6109 return resultobj;
6110 fail:
6111 return NULL;
6112 }
6113
6114
6115 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6116 PyObject *resultobj;
6117 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6118 wxString *arg2 = 0 ;
6119 bool result;
6120 bool temp2 = False ;
6121 PyObject * obj0 = 0 ;
6122 PyObject * obj1 = 0 ;
6123 char *kwnames[] = {
6124 (char *) "self",(char *) "s", NULL
6125 };
6126
6127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6129 {
6130 arg2 = wxString_in_helper(obj1);
6131 if (arg2 == NULL) SWIG_fail;
6132 temp2 = True;
6133 }
6134 {
6135 PyThreadState* __tstate = wxPyBeginAllowThreads();
6136 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6137
6138 wxPyEndAllowThreads(__tstate);
6139 if (PyErr_Occurred()) SWIG_fail;
6140 }
6141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6142 {
6143 if (temp2)
6144 delete arg2;
6145 }
6146 return resultobj;
6147 fail:
6148 {
6149 if (temp2)
6150 delete arg2;
6151 }
6152 return NULL;
6153 }
6154
6155
6156 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6157 PyObject *resultobj;
6158 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6159 wxString result;
6160 PyObject * obj0 = 0 ;
6161 char *kwnames[] = {
6162 (char *) "self", NULL
6163 };
6164
6165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6167 {
6168 PyThreadState* __tstate = wxPyBeginAllowThreads();
6169 result = ((wxNativeFontInfo const *)arg1)->ToString();
6170
6171 wxPyEndAllowThreads(__tstate);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 {
6175 #if wxUSE_UNICODE
6176 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6177 #else
6178 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6179 #endif
6180 }
6181 return resultobj;
6182 fail:
6183 return NULL;
6184 }
6185
6186
6187 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6188 PyObject *resultobj;
6189 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6190 wxString result;
6191 PyObject * obj0 = 0 ;
6192 char *kwnames[] = {
6193 (char *) "self", NULL
6194 };
6195
6196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6198 {
6199 PyThreadState* __tstate = wxPyBeginAllowThreads();
6200 result = wxNativeFontInfo___str__(arg1);
6201
6202 wxPyEndAllowThreads(__tstate);
6203 if (PyErr_Occurred()) SWIG_fail;
6204 }
6205 {
6206 #if wxUSE_UNICODE
6207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6208 #else
6209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6210 #endif
6211 }
6212 return resultobj;
6213 fail:
6214 return NULL;
6215 }
6216
6217
6218 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6219 PyObject *resultobj;
6220 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6221 wxString *arg2 = 0 ;
6222 bool result;
6223 bool temp2 = False ;
6224 PyObject * obj0 = 0 ;
6225 PyObject * obj1 = 0 ;
6226 char *kwnames[] = {
6227 (char *) "self",(char *) "s", NULL
6228 };
6229
6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6232 {
6233 arg2 = wxString_in_helper(obj1);
6234 if (arg2 == NULL) SWIG_fail;
6235 temp2 = True;
6236 }
6237 {
6238 PyThreadState* __tstate = wxPyBeginAllowThreads();
6239 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6240
6241 wxPyEndAllowThreads(__tstate);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 }
6244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6245 {
6246 if (temp2)
6247 delete arg2;
6248 }
6249 return resultobj;
6250 fail:
6251 {
6252 if (temp2)
6253 delete arg2;
6254 }
6255 return NULL;
6256 }
6257
6258
6259 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6260 PyObject *resultobj;
6261 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6262 wxString result;
6263 PyObject * obj0 = 0 ;
6264 char *kwnames[] = {
6265 (char *) "self", NULL
6266 };
6267
6268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6270 {
6271 PyThreadState* __tstate = wxPyBeginAllowThreads();
6272 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6273
6274 wxPyEndAllowThreads(__tstate);
6275 if (PyErr_Occurred()) SWIG_fail;
6276 }
6277 {
6278 #if wxUSE_UNICODE
6279 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6280 #else
6281 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6282 #endif
6283 }
6284 return resultobj;
6285 fail:
6286 return NULL;
6287 }
6288
6289
6290 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6291 PyObject *obj;
6292 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6293 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6294 Py_INCREF(obj);
6295 return Py_BuildValue((char *)"");
6296 }
6297 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6298 PyObject *resultobj;
6299 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6300 wxString *arg2 = (wxString *) 0 ;
6301 bool temp2 = False ;
6302 PyObject * obj0 = 0 ;
6303 PyObject * obj1 = 0 ;
6304 char *kwnames[] = {
6305 (char *) "self",(char *) "facename", NULL
6306 };
6307
6308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6309 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6310 {
6311 arg2 = wxString_in_helper(obj1);
6312 if (arg2 == NULL) SWIG_fail;
6313 temp2 = True;
6314 }
6315 if (arg1) (arg1)->facename = *arg2;
6316
6317 Py_INCREF(Py_None); resultobj = Py_None;
6318 {
6319 if (temp2)
6320 delete arg2;
6321 }
6322 return resultobj;
6323 fail:
6324 {
6325 if (temp2)
6326 delete arg2;
6327 }
6328 return NULL;
6329 }
6330
6331
6332 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6333 PyObject *resultobj;
6334 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6335 wxString *result;
6336 PyObject * obj0 = 0 ;
6337 char *kwnames[] = {
6338 (char *) "self", NULL
6339 };
6340
6341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6343 result = (wxString *)& ((arg1)->facename);
6344
6345 {
6346 #if wxUSE_UNICODE
6347 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6348 #else
6349 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6350 #endif
6351 }
6352 return resultobj;
6353 fail:
6354 return NULL;
6355 }
6356
6357
6358 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6359 PyObject *resultobj;
6360 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6361 int arg2 ;
6362 PyObject * obj0 = 0 ;
6363 PyObject * obj1 = 0 ;
6364 char *kwnames[] = {
6365 (char *) "self",(char *) "encoding", NULL
6366 };
6367
6368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6370 {
6371 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6372 if (PyErr_Occurred()) SWIG_fail;
6373 }
6374 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6375
6376 Py_INCREF(Py_None); resultobj = Py_None;
6377 return resultobj;
6378 fail:
6379 return NULL;
6380 }
6381
6382
6383 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6384 PyObject *resultobj;
6385 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6386 int result;
6387 PyObject * obj0 = 0 ;
6388 char *kwnames[] = {
6389 (char *) "self", NULL
6390 };
6391
6392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6393 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6394 result = (int) ((arg1)->encoding);
6395
6396 resultobj = SWIG_PyObj_FromInt((int)result);
6397 return resultobj;
6398 fail:
6399 return NULL;
6400 }
6401
6402
6403 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6404 PyObject *resultobj;
6405 wxNativeEncodingInfo *result;
6406 char *kwnames[] = {
6407 NULL
6408 };
6409
6410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6411 {
6412 PyThreadState* __tstate = wxPyBeginAllowThreads();
6413 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6414
6415 wxPyEndAllowThreads(__tstate);
6416 if (PyErr_Occurred()) SWIG_fail;
6417 }
6418 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6419 return resultobj;
6420 fail:
6421 return NULL;
6422 }
6423
6424
6425 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6426 PyObject *resultobj;
6427 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6428 PyObject * obj0 = 0 ;
6429 char *kwnames[] = {
6430 (char *) "self", NULL
6431 };
6432
6433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6435 {
6436 PyThreadState* __tstate = wxPyBeginAllowThreads();
6437 delete arg1;
6438
6439 wxPyEndAllowThreads(__tstate);
6440 if (PyErr_Occurred()) SWIG_fail;
6441 }
6442 Py_INCREF(Py_None); resultobj = Py_None;
6443 return resultobj;
6444 fail:
6445 return NULL;
6446 }
6447
6448
6449 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6450 PyObject *resultobj;
6451 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6452 wxString *arg2 = 0 ;
6453 bool result;
6454 bool temp2 = False ;
6455 PyObject * obj0 = 0 ;
6456 PyObject * obj1 = 0 ;
6457 char *kwnames[] = {
6458 (char *) "self",(char *) "s", NULL
6459 };
6460
6461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6463 {
6464 arg2 = wxString_in_helper(obj1);
6465 if (arg2 == NULL) SWIG_fail;
6466 temp2 = True;
6467 }
6468 {
6469 PyThreadState* __tstate = wxPyBeginAllowThreads();
6470 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6471
6472 wxPyEndAllowThreads(__tstate);
6473 if (PyErr_Occurred()) SWIG_fail;
6474 }
6475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6476 {
6477 if (temp2)
6478 delete arg2;
6479 }
6480 return resultobj;
6481 fail:
6482 {
6483 if (temp2)
6484 delete arg2;
6485 }
6486 return NULL;
6487 }
6488
6489
6490 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6491 PyObject *resultobj;
6492 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6493 wxString result;
6494 PyObject * obj0 = 0 ;
6495 char *kwnames[] = {
6496 (char *) "self", NULL
6497 };
6498
6499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6501 {
6502 PyThreadState* __tstate = wxPyBeginAllowThreads();
6503 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6504
6505 wxPyEndAllowThreads(__tstate);
6506 if (PyErr_Occurred()) SWIG_fail;
6507 }
6508 {
6509 #if wxUSE_UNICODE
6510 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6511 #else
6512 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6513 #endif
6514 }
6515 return resultobj;
6516 fail:
6517 return NULL;
6518 }
6519
6520
6521 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6522 PyObject *obj;
6523 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6524 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6525 Py_INCREF(obj);
6526 return Py_BuildValue((char *)"");
6527 }
6528 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6529 PyObject *resultobj;
6530 int arg1 ;
6531 wxNativeEncodingInfo *result;
6532 PyObject * obj0 = 0 ;
6533 char *kwnames[] = {
6534 (char *) "encoding", NULL
6535 };
6536
6537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6538 {
6539 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6540 if (PyErr_Occurred()) SWIG_fail;
6541 }
6542 {
6543 PyThreadState* __tstate = wxPyBeginAllowThreads();
6544 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6545
6546 wxPyEndAllowThreads(__tstate);
6547 if (PyErr_Occurred()) SWIG_fail;
6548 }
6549 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
6550 return resultobj;
6551 fail:
6552 return NULL;
6553 }
6554
6555
6556 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6557 PyObject *resultobj;
6558 wxNativeEncodingInfo *arg1 = 0 ;
6559 bool result;
6560 PyObject * obj0 = 0 ;
6561 char *kwnames[] = {
6562 (char *) "info", NULL
6563 };
6564
6565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6567 if (arg1 == NULL) {
6568 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6569 }
6570 {
6571 PyThreadState* __tstate = wxPyBeginAllowThreads();
6572 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6573
6574 wxPyEndAllowThreads(__tstate);
6575 if (PyErr_Occurred()) SWIG_fail;
6576 }
6577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6578 return resultobj;
6579 fail:
6580 return NULL;
6581 }
6582
6583
6584 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6585 PyObject *resultobj;
6586 wxFontMapper *result;
6587 char *kwnames[] = {
6588 NULL
6589 };
6590
6591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6592 {
6593 PyThreadState* __tstate = wxPyBeginAllowThreads();
6594 result = (wxFontMapper *)new wxFontMapper();
6595
6596 wxPyEndAllowThreads(__tstate);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
6600 return resultobj;
6601 fail:
6602 return NULL;
6603 }
6604
6605
6606 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6607 PyObject *resultobj;
6608 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6609 PyObject * obj0 = 0 ;
6610 char *kwnames[] = {
6611 (char *) "self", NULL
6612 };
6613
6614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6616 {
6617 PyThreadState* __tstate = wxPyBeginAllowThreads();
6618 delete arg1;
6619
6620 wxPyEndAllowThreads(__tstate);
6621 if (PyErr_Occurred()) SWIG_fail;
6622 }
6623 Py_INCREF(Py_None); resultobj = Py_None;
6624 return resultobj;
6625 fail:
6626 return NULL;
6627 }
6628
6629
6630 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6631 PyObject *resultobj;
6632 wxFontMapper *result;
6633 char *kwnames[] = {
6634 NULL
6635 };
6636
6637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 result = (wxFontMapper *)wxFontMapper::Get();
6641
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6646 return resultobj;
6647 fail:
6648 return NULL;
6649 }
6650
6651
6652 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6653 PyObject *resultobj;
6654 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6655 wxFontMapper *result;
6656 PyObject * obj0 = 0 ;
6657 char *kwnames[] = {
6658 (char *) "mapper", NULL
6659 };
6660
6661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6666
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6671 return resultobj;
6672 fail:
6673 return NULL;
6674 }
6675
6676
6677 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6678 PyObject *resultobj;
6679 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6680 wxString *arg2 = 0 ;
6681 bool arg3 = (bool) True ;
6682 int result;
6683 bool temp2 = False ;
6684 PyObject * obj0 = 0 ;
6685 PyObject * obj1 = 0 ;
6686 PyObject * obj2 = 0 ;
6687 char *kwnames[] = {
6688 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6689 };
6690
6691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6693 {
6694 arg2 = wxString_in_helper(obj1);
6695 if (arg2 == NULL) SWIG_fail;
6696 temp2 = True;
6697 }
6698 if (obj2) {
6699 {
6700 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
6701 if (PyErr_Occurred()) SWIG_fail;
6702 }
6703 }
6704 {
6705 PyThreadState* __tstate = wxPyBeginAllowThreads();
6706 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6707
6708 wxPyEndAllowThreads(__tstate);
6709 if (PyErr_Occurred()) SWIG_fail;
6710 }
6711 resultobj = SWIG_PyObj_FromInt((int)result);
6712 {
6713 if (temp2)
6714 delete arg2;
6715 }
6716 return resultobj;
6717 fail:
6718 {
6719 if (temp2)
6720 delete arg2;
6721 }
6722 return NULL;
6723 }
6724
6725
6726 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6727 PyObject *resultobj;
6728 size_t result;
6729 char *kwnames[] = {
6730 NULL
6731 };
6732
6733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6734 {
6735 PyThreadState* __tstate = wxPyBeginAllowThreads();
6736 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6737
6738 wxPyEndAllowThreads(__tstate);
6739 if (PyErr_Occurred()) SWIG_fail;
6740 }
6741 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
6742 return resultobj;
6743 fail:
6744 return NULL;
6745 }
6746
6747
6748 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj;
6750 size_t arg1 ;
6751 int result;
6752 PyObject * obj0 = 0 ;
6753 char *kwnames[] = {
6754 (char *) "n", NULL
6755 };
6756
6757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6758 {
6759 arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0);
6760 if (PyErr_Occurred()) SWIG_fail;
6761 }
6762 {
6763 PyThreadState* __tstate = wxPyBeginAllowThreads();
6764 result = (int)wxFontMapper::GetEncoding(arg1);
6765
6766 wxPyEndAllowThreads(__tstate);
6767 if (PyErr_Occurred()) SWIG_fail;
6768 }
6769 resultobj = SWIG_PyObj_FromInt((int)result);
6770 return resultobj;
6771 fail:
6772 return NULL;
6773 }
6774
6775
6776 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6777 PyObject *resultobj;
6778 int arg1 ;
6779 wxString result;
6780 PyObject * obj0 = 0 ;
6781 char *kwnames[] = {
6782 (char *) "encoding", NULL
6783 };
6784
6785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
6786 {
6787 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 {
6791 PyThreadState* __tstate = wxPyBeginAllowThreads();
6792 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6793
6794 wxPyEndAllowThreads(__tstate);
6795 if (PyErr_Occurred()) SWIG_fail;
6796 }
6797 {
6798 #if wxUSE_UNICODE
6799 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6800 #else
6801 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6802 #endif
6803 }
6804 return resultobj;
6805 fail:
6806 return NULL;
6807 }
6808
6809
6810 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6811 PyObject *resultobj;
6812 int arg1 ;
6813 wxString result;
6814 PyObject * obj0 = 0 ;
6815 char *kwnames[] = {
6816 (char *) "encoding", NULL
6817 };
6818
6819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
6820 {
6821 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 {
6825 PyThreadState* __tstate = wxPyBeginAllowThreads();
6826 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6827
6828 wxPyEndAllowThreads(__tstate);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 }
6831 {
6832 #if wxUSE_UNICODE
6833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6834 #else
6835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6836 #endif
6837 }
6838 return resultobj;
6839 fail:
6840 return NULL;
6841 }
6842
6843
6844 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj;
6846 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6847 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6848 PyObject * obj0 = 0 ;
6849 PyObject * obj1 = 0 ;
6850 char *kwnames[] = {
6851 (char *) "self",(char *) "config", NULL
6852 };
6853
6854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6856 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6857 {
6858 PyThreadState* __tstate = wxPyBeginAllowThreads();
6859 (arg1)->SetConfig(arg2);
6860
6861 wxPyEndAllowThreads(__tstate);
6862 if (PyErr_Occurred()) SWIG_fail;
6863 }
6864 Py_INCREF(Py_None); resultobj = Py_None;
6865 return resultobj;
6866 fail:
6867 return NULL;
6868 }
6869
6870
6871 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6872 PyObject *resultobj;
6873 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6874 wxString *arg2 = 0 ;
6875 bool temp2 = False ;
6876 PyObject * obj0 = 0 ;
6877 PyObject * obj1 = 0 ;
6878 char *kwnames[] = {
6879 (char *) "self",(char *) "prefix", NULL
6880 };
6881
6882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6884 {
6885 arg2 = wxString_in_helper(obj1);
6886 if (arg2 == NULL) SWIG_fail;
6887 temp2 = True;
6888 }
6889 {
6890 PyThreadState* __tstate = wxPyBeginAllowThreads();
6891 (arg1)->SetConfigPath((wxString const &)*arg2);
6892
6893 wxPyEndAllowThreads(__tstate);
6894 if (PyErr_Occurred()) SWIG_fail;
6895 }
6896 Py_INCREF(Py_None); resultobj = Py_None;
6897 {
6898 if (temp2)
6899 delete arg2;
6900 }
6901 return resultobj;
6902 fail:
6903 {
6904 if (temp2)
6905 delete arg2;
6906 }
6907 return NULL;
6908 }
6909
6910
6911 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6912 PyObject *resultobj;
6913 wxString result;
6914 char *kwnames[] = {
6915 NULL
6916 };
6917
6918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6919 {
6920 PyThreadState* __tstate = wxPyBeginAllowThreads();
6921 result = wxFontMapper::GetDefaultConfigPath();
6922
6923 wxPyEndAllowThreads(__tstate);
6924 if (PyErr_Occurred()) SWIG_fail;
6925 }
6926 {
6927 #if wxUSE_UNICODE
6928 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6929 #else
6930 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6931 #endif
6932 }
6933 return resultobj;
6934 fail:
6935 return NULL;
6936 }
6937
6938
6939 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6940 PyObject *resultobj;
6941 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6942 int arg2 ;
6943 wxString const &arg3_defvalue = wxPyEmptyString ;
6944 wxString *arg3 = (wxString *) &arg3_defvalue ;
6945 bool arg4 = (bool) True ;
6946 PyObject *result;
6947 bool temp3 = False ;
6948 PyObject * obj0 = 0 ;
6949 PyObject * obj1 = 0 ;
6950 PyObject * obj2 = 0 ;
6951 PyObject * obj3 = 0 ;
6952 char *kwnames[] = {
6953 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6954 };
6955
6956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6958 {
6959 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6960 if (PyErr_Occurred()) SWIG_fail;
6961 }
6962 if (obj2) {
6963 {
6964 arg3 = wxString_in_helper(obj2);
6965 if (arg3 == NULL) SWIG_fail;
6966 temp3 = True;
6967 }
6968 }
6969 if (obj3) {
6970 {
6971 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
6972 if (PyErr_Occurred()) SWIG_fail;
6973 }
6974 }
6975 {
6976 PyThreadState* __tstate = wxPyBeginAllowThreads();
6977 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6978
6979 wxPyEndAllowThreads(__tstate);
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 resultobj = result;
6983 {
6984 if (temp3)
6985 delete arg3;
6986 }
6987 return resultobj;
6988 fail:
6989 {
6990 if (temp3)
6991 delete arg3;
6992 }
6993 return NULL;
6994 }
6995
6996
6997 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6998 PyObject *resultobj;
6999 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7000 int arg2 ;
7001 wxString const &arg3_defvalue = wxPyEmptyString ;
7002 wxString *arg3 = (wxString *) &arg3_defvalue ;
7003 bool result;
7004 bool temp3 = False ;
7005 PyObject * obj0 = 0 ;
7006 PyObject * obj1 = 0 ;
7007 PyObject * obj2 = 0 ;
7008 char *kwnames[] = {
7009 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7010 };
7011
7012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7014 {
7015 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7016 if (PyErr_Occurred()) SWIG_fail;
7017 }
7018 if (obj2) {
7019 {
7020 arg3 = wxString_in_helper(obj2);
7021 if (arg3 == NULL) SWIG_fail;
7022 temp3 = True;
7023 }
7024 }
7025 {
7026 PyThreadState* __tstate = wxPyBeginAllowThreads();
7027 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7028
7029 wxPyEndAllowThreads(__tstate);
7030 if (PyErr_Occurred()) SWIG_fail;
7031 }
7032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7033 {
7034 if (temp3)
7035 delete arg3;
7036 }
7037 return resultobj;
7038 fail:
7039 {
7040 if (temp3)
7041 delete arg3;
7042 }
7043 return NULL;
7044 }
7045
7046
7047 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj;
7049 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7050 wxWindow *arg2 = (wxWindow *) 0 ;
7051 PyObject * obj0 = 0 ;
7052 PyObject * obj1 = 0 ;
7053 char *kwnames[] = {
7054 (char *) "self",(char *) "parent", NULL
7055 };
7056
7057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7059 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7060 {
7061 PyThreadState* __tstate = wxPyBeginAllowThreads();
7062 (arg1)->SetDialogParent(arg2);
7063
7064 wxPyEndAllowThreads(__tstate);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 Py_INCREF(Py_None); resultobj = Py_None;
7068 return resultobj;
7069 fail:
7070 return NULL;
7071 }
7072
7073
7074 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7075 PyObject *resultobj;
7076 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7077 wxString *arg2 = 0 ;
7078 bool temp2 = False ;
7079 PyObject * obj0 = 0 ;
7080 PyObject * obj1 = 0 ;
7081 char *kwnames[] = {
7082 (char *) "self",(char *) "title", NULL
7083 };
7084
7085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7087 {
7088 arg2 = wxString_in_helper(obj1);
7089 if (arg2 == NULL) SWIG_fail;
7090 temp2 = True;
7091 }
7092 {
7093 PyThreadState* __tstate = wxPyBeginAllowThreads();
7094 (arg1)->SetDialogTitle((wxString const &)*arg2);
7095
7096 wxPyEndAllowThreads(__tstate);
7097 if (PyErr_Occurred()) SWIG_fail;
7098 }
7099 Py_INCREF(Py_None); resultobj = Py_None;
7100 {
7101 if (temp2)
7102 delete arg2;
7103 }
7104 return resultobj;
7105 fail:
7106 {
7107 if (temp2)
7108 delete arg2;
7109 }
7110 return NULL;
7111 }
7112
7113
7114 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7115 PyObject *obj;
7116 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7117 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7118 Py_INCREF(obj);
7119 return Py_BuildValue((char *)"");
7120 }
7121 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7122 PyObject *resultobj;
7123 int arg1 ;
7124 int arg2 ;
7125 int arg3 ;
7126 int arg4 ;
7127 bool arg5 = (bool) False ;
7128 wxString const &arg6_defvalue = wxPyEmptyString ;
7129 wxString *arg6 = (wxString *) &arg6_defvalue ;
7130 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7131 wxFont *result;
7132 bool temp6 = False ;
7133 PyObject * obj0 = 0 ;
7134 PyObject * obj1 = 0 ;
7135 PyObject * obj2 = 0 ;
7136 PyObject * obj3 = 0 ;
7137 PyObject * obj4 = 0 ;
7138 PyObject * obj5 = 0 ;
7139 PyObject * obj6 = 0 ;
7140 char *kwnames[] = {
7141 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7142 };
7143
7144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7145 {
7146 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7147 if (PyErr_Occurred()) SWIG_fail;
7148 }
7149 {
7150 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7151 if (PyErr_Occurred()) SWIG_fail;
7152 }
7153 {
7154 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 {
7158 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 if (obj4) {
7162 {
7163 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 }
7167 if (obj5) {
7168 {
7169 arg6 = wxString_in_helper(obj5);
7170 if (arg6 == NULL) SWIG_fail;
7171 temp6 = True;
7172 }
7173 }
7174 if (obj6) {
7175 {
7176 arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6);
7177 if (PyErr_Occurred()) SWIG_fail;
7178 }
7179 }
7180 {
7181 PyThreadState* __tstate = wxPyBeginAllowThreads();
7182 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7183
7184 wxPyEndAllowThreads(__tstate);
7185 if (PyErr_Occurred()) SWIG_fail;
7186 }
7187 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7188 {
7189 if (temp6)
7190 delete arg6;
7191 }
7192 return resultobj;
7193 fail:
7194 {
7195 if (temp6)
7196 delete arg6;
7197 }
7198 return NULL;
7199 }
7200
7201
7202 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7203 PyObject *resultobj;
7204 wxFont *arg1 = (wxFont *) 0 ;
7205 PyObject * obj0 = 0 ;
7206 char *kwnames[] = {
7207 (char *) "self", NULL
7208 };
7209
7210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7212 {
7213 PyThreadState* __tstate = wxPyBeginAllowThreads();
7214 delete arg1;
7215
7216 wxPyEndAllowThreads(__tstate);
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 Py_INCREF(Py_None); resultobj = Py_None;
7220 return resultobj;
7221 fail:
7222 return NULL;
7223 }
7224
7225
7226 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7227 PyObject *resultobj;
7228 wxNativeFontInfo *arg1 = 0 ;
7229 wxFont *result;
7230 PyObject * obj0 = 0 ;
7231 char *kwnames[] = {
7232 (char *) "info", NULL
7233 };
7234
7235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7237 if (arg1 == NULL) {
7238 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7239 }
7240 {
7241 PyThreadState* __tstate = wxPyBeginAllowThreads();
7242 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7243
7244 wxPyEndAllowThreads(__tstate);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 }
7247 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7248 return resultobj;
7249 fail:
7250 return NULL;
7251 }
7252
7253
7254 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7255 PyObject *resultobj;
7256 wxString *arg1 = 0 ;
7257 wxFont *result;
7258 bool temp1 = False ;
7259 PyObject * obj0 = 0 ;
7260 char *kwnames[] = {
7261 (char *) "info", NULL
7262 };
7263
7264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7265 {
7266 arg1 = wxString_in_helper(obj0);
7267 if (arg1 == NULL) SWIG_fail;
7268 temp1 = True;
7269 }
7270 {
7271 PyThreadState* __tstate = wxPyBeginAllowThreads();
7272 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7273
7274 wxPyEndAllowThreads(__tstate);
7275 if (PyErr_Occurred()) SWIG_fail;
7276 }
7277 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7278 {
7279 if (temp1)
7280 delete arg1;
7281 }
7282 return resultobj;
7283 fail:
7284 {
7285 if (temp1)
7286 delete arg1;
7287 }
7288 return NULL;
7289 }
7290
7291
7292 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7293 PyObject *resultobj;
7294 int arg1 ;
7295 int arg2 ;
7296 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7297 wxString const &arg4_defvalue = wxPyEmptyString ;
7298 wxString *arg4 = (wxString *) &arg4_defvalue ;
7299 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7300 wxFont *result;
7301 bool temp4 = False ;
7302 PyObject * obj0 = 0 ;
7303 PyObject * obj1 = 0 ;
7304 PyObject * obj2 = 0 ;
7305 PyObject * obj3 = 0 ;
7306 PyObject * obj4 = 0 ;
7307 char *kwnames[] = {
7308 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7309 };
7310
7311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7312 {
7313 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 }
7316 {
7317 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
7318 if (PyErr_Occurred()) SWIG_fail;
7319 }
7320 if (obj2) {
7321 {
7322 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7323 if (PyErr_Occurred()) SWIG_fail;
7324 }
7325 }
7326 if (obj3) {
7327 {
7328 arg4 = wxString_in_helper(obj3);
7329 if (arg4 == NULL) SWIG_fail;
7330 temp4 = True;
7331 }
7332 }
7333 if (obj4) {
7334 {
7335 arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4);
7336 if (PyErr_Occurred()) SWIG_fail;
7337 }
7338 }
7339 {
7340 PyThreadState* __tstate = wxPyBeginAllowThreads();
7341 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7342
7343 wxPyEndAllowThreads(__tstate);
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7347 {
7348 if (temp4)
7349 delete arg4;
7350 }
7351 return resultobj;
7352 fail:
7353 {
7354 if (temp4)
7355 delete arg4;
7356 }
7357 return NULL;
7358 }
7359
7360
7361 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7362 PyObject *resultobj;
7363 wxFont *arg1 = (wxFont *) 0 ;
7364 bool result;
7365 PyObject * obj0 = 0 ;
7366 char *kwnames[] = {
7367 (char *) "self", NULL
7368 };
7369
7370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = (bool)((wxFont const *)arg1)->Ok();
7375
7376 wxPyEndAllowThreads(__tstate);
7377 if (PyErr_Occurred()) SWIG_fail;
7378 }
7379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7380 return resultobj;
7381 fail:
7382 return NULL;
7383 }
7384
7385
7386 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7387 PyObject *resultobj;
7388 wxFont *arg1 = (wxFont *) 0 ;
7389 wxFont *arg2 = 0 ;
7390 bool result;
7391 PyObject * obj0 = 0 ;
7392 PyObject * obj1 = 0 ;
7393 char *kwnames[] = {
7394 (char *) "self",(char *) "font", NULL
7395 };
7396
7397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7399 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7400 if (arg2 == NULL) {
7401 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7402 }
7403 {
7404 PyThreadState* __tstate = wxPyBeginAllowThreads();
7405 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7406
7407 wxPyEndAllowThreads(__tstate);
7408 if (PyErr_Occurred()) SWIG_fail;
7409 }
7410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7411 return resultobj;
7412 fail:
7413 return NULL;
7414 }
7415
7416
7417 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7418 PyObject *resultobj;
7419 wxFont *arg1 = (wxFont *) 0 ;
7420 wxFont *arg2 = 0 ;
7421 bool result;
7422 PyObject * obj0 = 0 ;
7423 PyObject * obj1 = 0 ;
7424 char *kwnames[] = {
7425 (char *) "self",(char *) "font", NULL
7426 };
7427
7428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7430 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7431 if (arg2 == NULL) {
7432 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7433 }
7434 {
7435 PyThreadState* __tstate = wxPyBeginAllowThreads();
7436 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7437
7438 wxPyEndAllowThreads(__tstate);
7439 if (PyErr_Occurred()) SWIG_fail;
7440 }
7441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7442 return resultobj;
7443 fail:
7444 return NULL;
7445 }
7446
7447
7448 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7449 PyObject *resultobj;
7450 wxFont *arg1 = (wxFont *) 0 ;
7451 int result;
7452 PyObject * obj0 = 0 ;
7453 char *kwnames[] = {
7454 (char *) "self", NULL
7455 };
7456
7457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7458 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7459 {
7460 PyThreadState* __tstate = wxPyBeginAllowThreads();
7461 result = (int)((wxFont const *)arg1)->GetPointSize();
7462
7463 wxPyEndAllowThreads(__tstate);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 resultobj = SWIG_PyObj_FromInt((int)result);
7467 return resultobj;
7468 fail:
7469 return NULL;
7470 }
7471
7472
7473 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7474 PyObject *resultobj;
7475 wxFont *arg1 = (wxFont *) 0 ;
7476 int result;
7477 PyObject * obj0 = 0 ;
7478 char *kwnames[] = {
7479 (char *) "self", NULL
7480 };
7481
7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7484 {
7485 PyThreadState* __tstate = wxPyBeginAllowThreads();
7486 result = (int)((wxFont const *)arg1)->GetFamily();
7487
7488 wxPyEndAllowThreads(__tstate);
7489 if (PyErr_Occurred()) SWIG_fail;
7490 }
7491 resultobj = SWIG_PyObj_FromInt((int)result);
7492 return resultobj;
7493 fail:
7494 return NULL;
7495 }
7496
7497
7498 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7499 PyObject *resultobj;
7500 wxFont *arg1 = (wxFont *) 0 ;
7501 int result;
7502 PyObject * obj0 = 0 ;
7503 char *kwnames[] = {
7504 (char *) "self", NULL
7505 };
7506
7507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7509 {
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
7511 result = (int)((wxFont const *)arg1)->GetStyle();
7512
7513 wxPyEndAllowThreads(__tstate);
7514 if (PyErr_Occurred()) SWIG_fail;
7515 }
7516 resultobj = SWIG_PyObj_FromInt((int)result);
7517 return resultobj;
7518 fail:
7519 return NULL;
7520 }
7521
7522
7523 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7524 PyObject *resultobj;
7525 wxFont *arg1 = (wxFont *) 0 ;
7526 int result;
7527 PyObject * obj0 = 0 ;
7528 char *kwnames[] = {
7529 (char *) "self", NULL
7530 };
7531
7532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7534 {
7535 PyThreadState* __tstate = wxPyBeginAllowThreads();
7536 result = (int)((wxFont const *)arg1)->GetWeight();
7537
7538 wxPyEndAllowThreads(__tstate);
7539 if (PyErr_Occurred()) SWIG_fail;
7540 }
7541 resultobj = SWIG_PyObj_FromInt((int)result);
7542 return resultobj;
7543 fail:
7544 return NULL;
7545 }
7546
7547
7548 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7549 PyObject *resultobj;
7550 wxFont *arg1 = (wxFont *) 0 ;
7551 bool result;
7552 PyObject * obj0 = 0 ;
7553 char *kwnames[] = {
7554 (char *) "self", NULL
7555 };
7556
7557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7559 {
7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
7561 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7562
7563 wxPyEndAllowThreads(__tstate);
7564 if (PyErr_Occurred()) SWIG_fail;
7565 }
7566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7567 return resultobj;
7568 fail:
7569 return NULL;
7570 }
7571
7572
7573 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7574 PyObject *resultobj;
7575 wxFont *arg1 = (wxFont *) 0 ;
7576 wxString result;
7577 PyObject * obj0 = 0 ;
7578 char *kwnames[] = {
7579 (char *) "self", NULL
7580 };
7581
7582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7584 {
7585 PyThreadState* __tstate = wxPyBeginAllowThreads();
7586 result = ((wxFont const *)arg1)->GetFaceName();
7587
7588 wxPyEndAllowThreads(__tstate);
7589 if (PyErr_Occurred()) SWIG_fail;
7590 }
7591 {
7592 #if wxUSE_UNICODE
7593 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7594 #else
7595 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7596 #endif
7597 }
7598 return resultobj;
7599 fail:
7600 return NULL;
7601 }
7602
7603
7604 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7605 PyObject *resultobj;
7606 wxFont *arg1 = (wxFont *) 0 ;
7607 int result;
7608 PyObject * obj0 = 0 ;
7609 char *kwnames[] = {
7610 (char *) "self", NULL
7611 };
7612
7613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7614 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7615 {
7616 PyThreadState* __tstate = wxPyBeginAllowThreads();
7617 result = (int)((wxFont const *)arg1)->GetEncoding();
7618
7619 wxPyEndAllowThreads(__tstate);
7620 if (PyErr_Occurred()) SWIG_fail;
7621 }
7622 resultobj = SWIG_PyObj_FromInt((int)result);
7623 return resultobj;
7624 fail:
7625 return NULL;
7626 }
7627
7628
7629 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7630 PyObject *resultobj;
7631 wxFont *arg1 = (wxFont *) 0 ;
7632 wxNativeFontInfo *result;
7633 PyObject * obj0 = 0 ;
7634 char *kwnames[] = {
7635 (char *) "self", NULL
7636 };
7637
7638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7640 {
7641 PyThreadState* __tstate = wxPyBeginAllowThreads();
7642 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7643
7644 wxPyEndAllowThreads(__tstate);
7645 if (PyErr_Occurred()) SWIG_fail;
7646 }
7647 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
7648 return resultobj;
7649 fail:
7650 return NULL;
7651 }
7652
7653
7654 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7655 PyObject *resultobj;
7656 wxFont *arg1 = (wxFont *) 0 ;
7657 bool result;
7658 PyObject * obj0 = 0 ;
7659 char *kwnames[] = {
7660 (char *) "self", NULL
7661 };
7662
7663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7665 {
7666 PyThreadState* __tstate = wxPyBeginAllowThreads();
7667 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7668
7669 wxPyEndAllowThreads(__tstate);
7670 if (PyErr_Occurred()) SWIG_fail;
7671 }
7672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7673 return resultobj;
7674 fail:
7675 return NULL;
7676 }
7677
7678
7679 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7680 PyObject *resultobj;
7681 wxFont *arg1 = (wxFont *) 0 ;
7682 wxString result;
7683 PyObject * obj0 = 0 ;
7684 char *kwnames[] = {
7685 (char *) "self", NULL
7686 };
7687
7688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
7689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7690 {
7691 PyThreadState* __tstate = wxPyBeginAllowThreads();
7692 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7693
7694 wxPyEndAllowThreads(__tstate);
7695 if (PyErr_Occurred()) SWIG_fail;
7696 }
7697 {
7698 #if wxUSE_UNICODE
7699 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7700 #else
7701 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7702 #endif
7703 }
7704 return resultobj;
7705 fail:
7706 return NULL;
7707 }
7708
7709
7710 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7711 PyObject *resultobj;
7712 wxFont *arg1 = (wxFont *) 0 ;
7713 wxString result;
7714 PyObject * obj0 = 0 ;
7715 char *kwnames[] = {
7716 (char *) "self", NULL
7717 };
7718
7719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7721 {
7722 PyThreadState* __tstate = wxPyBeginAllowThreads();
7723 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7724
7725 wxPyEndAllowThreads(__tstate);
7726 if (PyErr_Occurred()) SWIG_fail;
7727 }
7728 {
7729 #if wxUSE_UNICODE
7730 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7731 #else
7732 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7733 #endif
7734 }
7735 return resultobj;
7736 fail:
7737 return NULL;
7738 }
7739
7740
7741 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7742 PyObject *resultobj;
7743 wxFont *arg1 = (wxFont *) 0 ;
7744 int arg2 ;
7745 PyObject * obj0 = 0 ;
7746 PyObject * obj1 = 0 ;
7747 char *kwnames[] = {
7748 (char *) "self",(char *) "pointSize", NULL
7749 };
7750
7751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7753 {
7754 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7755 if (PyErr_Occurred()) SWIG_fail;
7756 }
7757 {
7758 PyThreadState* __tstate = wxPyBeginAllowThreads();
7759 (arg1)->SetPointSize(arg2);
7760
7761 wxPyEndAllowThreads(__tstate);
7762 if (PyErr_Occurred()) SWIG_fail;
7763 }
7764 Py_INCREF(Py_None); resultobj = Py_None;
7765 return resultobj;
7766 fail:
7767 return NULL;
7768 }
7769
7770
7771 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7772 PyObject *resultobj;
7773 wxFont *arg1 = (wxFont *) 0 ;
7774 int arg2 ;
7775 PyObject * obj0 = 0 ;
7776 PyObject * obj1 = 0 ;
7777 char *kwnames[] = {
7778 (char *) "self",(char *) "family", NULL
7779 };
7780
7781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7783 {
7784 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 {
7788 PyThreadState* __tstate = wxPyBeginAllowThreads();
7789 (arg1)->SetFamily(arg2);
7790
7791 wxPyEndAllowThreads(__tstate);
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 Py_INCREF(Py_None); resultobj = Py_None;
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7802 PyObject *resultobj;
7803 wxFont *arg1 = (wxFont *) 0 ;
7804 int arg2 ;
7805 PyObject * obj0 = 0 ;
7806 PyObject * obj1 = 0 ;
7807 char *kwnames[] = {
7808 (char *) "self",(char *) "style", NULL
7809 };
7810
7811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
7812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7813 {
7814 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7815 if (PyErr_Occurred()) SWIG_fail;
7816 }
7817 {
7818 PyThreadState* __tstate = wxPyBeginAllowThreads();
7819 (arg1)->SetStyle(arg2);
7820
7821 wxPyEndAllowThreads(__tstate);
7822 if (PyErr_Occurred()) SWIG_fail;
7823 }
7824 Py_INCREF(Py_None); resultobj = Py_None;
7825 return resultobj;
7826 fail:
7827 return NULL;
7828 }
7829
7830
7831 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7832 PyObject *resultobj;
7833 wxFont *arg1 = (wxFont *) 0 ;
7834 int arg2 ;
7835 PyObject * obj0 = 0 ;
7836 PyObject * obj1 = 0 ;
7837 char *kwnames[] = {
7838 (char *) "self",(char *) "weight", NULL
7839 };
7840
7841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
7842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7843 {
7844 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7845 if (PyErr_Occurred()) SWIG_fail;
7846 }
7847 {
7848 PyThreadState* __tstate = wxPyBeginAllowThreads();
7849 (arg1)->SetWeight(arg2);
7850
7851 wxPyEndAllowThreads(__tstate);
7852 if (PyErr_Occurred()) SWIG_fail;
7853 }
7854 Py_INCREF(Py_None); resultobj = Py_None;
7855 return resultobj;
7856 fail:
7857 return NULL;
7858 }
7859
7860
7861 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7862 PyObject *resultobj;
7863 wxFont *arg1 = (wxFont *) 0 ;
7864 wxString *arg2 = 0 ;
7865 bool temp2 = False ;
7866 PyObject * obj0 = 0 ;
7867 PyObject * obj1 = 0 ;
7868 char *kwnames[] = {
7869 (char *) "self",(char *) "faceName", NULL
7870 };
7871
7872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7874 {
7875 arg2 = wxString_in_helper(obj1);
7876 if (arg2 == NULL) SWIG_fail;
7877 temp2 = True;
7878 }
7879 {
7880 PyThreadState* __tstate = wxPyBeginAllowThreads();
7881 (arg1)->SetFaceName((wxString const &)*arg2);
7882
7883 wxPyEndAllowThreads(__tstate);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 Py_INCREF(Py_None); resultobj = Py_None;
7887 {
7888 if (temp2)
7889 delete arg2;
7890 }
7891 return resultobj;
7892 fail:
7893 {
7894 if (temp2)
7895 delete arg2;
7896 }
7897 return NULL;
7898 }
7899
7900
7901 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7902 PyObject *resultobj;
7903 wxFont *arg1 = (wxFont *) 0 ;
7904 bool arg2 ;
7905 PyObject * obj0 = 0 ;
7906 PyObject * obj1 = 0 ;
7907 char *kwnames[] = {
7908 (char *) "self",(char *) "underlined", NULL
7909 };
7910
7911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7913 {
7914 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
7915 if (PyErr_Occurred()) SWIG_fail;
7916 }
7917 {
7918 PyThreadState* __tstate = wxPyBeginAllowThreads();
7919 (arg1)->SetUnderlined(arg2);
7920
7921 wxPyEndAllowThreads(__tstate);
7922 if (PyErr_Occurred()) SWIG_fail;
7923 }
7924 Py_INCREF(Py_None); resultobj = Py_None;
7925 return resultobj;
7926 fail:
7927 return NULL;
7928 }
7929
7930
7931 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7932 PyObject *resultobj;
7933 wxFont *arg1 = (wxFont *) 0 ;
7934 int arg2 ;
7935 PyObject * obj0 = 0 ;
7936 PyObject * obj1 = 0 ;
7937 char *kwnames[] = {
7938 (char *) "self",(char *) "encoding", NULL
7939 };
7940
7941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7943 {
7944 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7945 if (PyErr_Occurred()) SWIG_fail;
7946 }
7947 {
7948 PyThreadState* __tstate = wxPyBeginAllowThreads();
7949 (arg1)->SetEncoding((wxFontEncoding )arg2);
7950
7951 wxPyEndAllowThreads(__tstate);
7952 if (PyErr_Occurred()) SWIG_fail;
7953 }
7954 Py_INCREF(Py_None); resultobj = Py_None;
7955 return resultobj;
7956 fail:
7957 return NULL;
7958 }
7959
7960
7961 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7962 PyObject *resultobj;
7963 wxFont *arg1 = (wxFont *) 0 ;
7964 wxNativeFontInfo *arg2 = 0 ;
7965 PyObject * obj0 = 0 ;
7966 PyObject * obj1 = 0 ;
7967 char *kwnames[] = {
7968 (char *) "self",(char *) "info", NULL
7969 };
7970
7971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7972 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7973 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7974 if (arg2 == NULL) {
7975 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7976 }
7977 {
7978 PyThreadState* __tstate = wxPyBeginAllowThreads();
7979 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7980
7981 wxPyEndAllowThreads(__tstate);
7982 if (PyErr_Occurred()) SWIG_fail;
7983 }
7984 Py_INCREF(Py_None); resultobj = Py_None;
7985 return resultobj;
7986 fail:
7987 return NULL;
7988 }
7989
7990
7991 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7992 PyObject *resultobj;
7993 wxFont *arg1 = (wxFont *) 0 ;
7994 wxString *arg2 = 0 ;
7995 bool temp2 = False ;
7996 PyObject * obj0 = 0 ;
7997 PyObject * obj1 = 0 ;
7998 char *kwnames[] = {
7999 (char *) "self",(char *) "info", NULL
8000 };
8001
8002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8004 {
8005 arg2 = wxString_in_helper(obj1);
8006 if (arg2 == NULL) SWIG_fail;
8007 temp2 = True;
8008 }
8009 {
8010 PyThreadState* __tstate = wxPyBeginAllowThreads();
8011 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8012
8013 wxPyEndAllowThreads(__tstate);
8014 if (PyErr_Occurred()) SWIG_fail;
8015 }
8016 Py_INCREF(Py_None); resultobj = Py_None;
8017 {
8018 if (temp2)
8019 delete arg2;
8020 }
8021 return resultobj;
8022 fail:
8023 {
8024 if (temp2)
8025 delete arg2;
8026 }
8027 return NULL;
8028 }
8029
8030
8031 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8032 PyObject *resultobj;
8033 wxFont *arg1 = (wxFont *) 0 ;
8034 wxString *arg2 = 0 ;
8035 bool temp2 = False ;
8036 PyObject * obj0 = 0 ;
8037 PyObject * obj1 = 0 ;
8038 char *kwnames[] = {
8039 (char *) "self",(char *) "info", NULL
8040 };
8041
8042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8044 {
8045 arg2 = wxString_in_helper(obj1);
8046 if (arg2 == NULL) SWIG_fail;
8047 temp2 = True;
8048 }
8049 {
8050 PyThreadState* __tstate = wxPyBeginAllowThreads();
8051 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8052
8053 wxPyEndAllowThreads(__tstate);
8054 if (PyErr_Occurred()) SWIG_fail;
8055 }
8056 Py_INCREF(Py_None); resultobj = Py_None;
8057 {
8058 if (temp2)
8059 delete arg2;
8060 }
8061 return resultobj;
8062 fail:
8063 {
8064 if (temp2)
8065 delete arg2;
8066 }
8067 return NULL;
8068 }
8069
8070
8071 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8072 PyObject *resultobj;
8073 wxFont *arg1 = (wxFont *) 0 ;
8074 wxString result;
8075 PyObject * obj0 = 0 ;
8076 char *kwnames[] = {
8077 (char *) "self", NULL
8078 };
8079
8080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8082 {
8083 PyThreadState* __tstate = wxPyBeginAllowThreads();
8084 result = ((wxFont const *)arg1)->GetFamilyString();
8085
8086 wxPyEndAllowThreads(__tstate);
8087 if (PyErr_Occurred()) SWIG_fail;
8088 }
8089 {
8090 #if wxUSE_UNICODE
8091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8092 #else
8093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8094 #endif
8095 }
8096 return resultobj;
8097 fail:
8098 return NULL;
8099 }
8100
8101
8102 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8103 PyObject *resultobj;
8104 wxFont *arg1 = (wxFont *) 0 ;
8105 wxString result;
8106 PyObject * obj0 = 0 ;
8107 char *kwnames[] = {
8108 (char *) "self", NULL
8109 };
8110
8111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8113 {
8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
8115 result = ((wxFont const *)arg1)->GetStyleString();
8116
8117 wxPyEndAllowThreads(__tstate);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 {
8121 #if wxUSE_UNICODE
8122 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8123 #else
8124 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8125 #endif
8126 }
8127 return resultobj;
8128 fail:
8129 return NULL;
8130 }
8131
8132
8133 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj;
8135 wxFont *arg1 = (wxFont *) 0 ;
8136 wxString result;
8137 PyObject * obj0 = 0 ;
8138 char *kwnames[] = {
8139 (char *) "self", NULL
8140 };
8141
8142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8144 {
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = ((wxFont const *)arg1)->GetWeightString();
8147
8148 wxPyEndAllowThreads(__tstate);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 {
8152 #if wxUSE_UNICODE
8153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8154 #else
8155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8156 #endif
8157 }
8158 return resultobj;
8159 fail:
8160 return NULL;
8161 }
8162
8163
8164 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8165 PyObject *resultobj;
8166 wxFont *arg1 = (wxFont *) 0 ;
8167 bool arg2 = (bool) True ;
8168 PyObject * obj0 = 0 ;
8169 PyObject * obj1 = 0 ;
8170 char *kwnames[] = {
8171 (char *) "self",(char *) "no", NULL
8172 };
8173
8174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8176 if (obj1) {
8177 {
8178 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8179 if (PyErr_Occurred()) SWIG_fail;
8180 }
8181 }
8182 {
8183 PyThreadState* __tstate = wxPyBeginAllowThreads();
8184 (arg1)->SetNoAntiAliasing(arg2);
8185
8186 wxPyEndAllowThreads(__tstate);
8187 if (PyErr_Occurred()) SWIG_fail;
8188 }
8189 Py_INCREF(Py_None); resultobj = Py_None;
8190 return resultobj;
8191 fail:
8192 return NULL;
8193 }
8194
8195
8196 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8197 PyObject *resultobj;
8198 wxFont *arg1 = (wxFont *) 0 ;
8199 bool result;
8200 PyObject * obj0 = 0 ;
8201 char *kwnames[] = {
8202 (char *) "self", NULL
8203 };
8204
8205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8207 {
8208 PyThreadState* __tstate = wxPyBeginAllowThreads();
8209 result = (bool)(arg1)->GetNoAntiAliasing();
8210
8211 wxPyEndAllowThreads(__tstate);
8212 if (PyErr_Occurred()) SWIG_fail;
8213 }
8214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8215 return resultobj;
8216 fail:
8217 return NULL;
8218 }
8219
8220
8221 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8222 PyObject *resultobj;
8223 int result;
8224 char *kwnames[] = {
8225 NULL
8226 };
8227
8228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8229 {
8230 PyThreadState* __tstate = wxPyBeginAllowThreads();
8231 result = (int)wxFont::GetDefaultEncoding();
8232
8233 wxPyEndAllowThreads(__tstate);
8234 if (PyErr_Occurred()) SWIG_fail;
8235 }
8236 resultobj = SWIG_PyObj_FromInt((int)result);
8237 return resultobj;
8238 fail:
8239 return NULL;
8240 }
8241
8242
8243 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8244 PyObject *resultobj;
8245 int arg1 ;
8246 PyObject * obj0 = 0 ;
8247 char *kwnames[] = {
8248 (char *) "encoding", NULL
8249 };
8250
8251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8252 {
8253 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
8254 if (PyErr_Occurred()) SWIG_fail;
8255 }
8256 {
8257 PyThreadState* __tstate = wxPyBeginAllowThreads();
8258 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8259
8260 wxPyEndAllowThreads(__tstate);
8261 if (PyErr_Occurred()) SWIG_fail;
8262 }
8263 Py_INCREF(Py_None); resultobj = Py_None;
8264 return resultobj;
8265 fail:
8266 return NULL;
8267 }
8268
8269
8270 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8271 PyObject *obj;
8272 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8273 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8274 Py_INCREF(obj);
8275 return Py_BuildValue((char *)"");
8276 }
8277 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8278 PyObject *resultobj;
8279 wxPyFontEnumerator *result;
8280 char *kwnames[] = {
8281 NULL
8282 };
8283
8284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8285 {
8286 PyThreadState* __tstate = wxPyBeginAllowThreads();
8287 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8288
8289 wxPyEndAllowThreads(__tstate);
8290 if (PyErr_Occurred()) SWIG_fail;
8291 }
8292 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8293 return resultobj;
8294 fail:
8295 return NULL;
8296 }
8297
8298
8299 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8300 PyObject *resultobj;
8301 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8302 PyObject * obj0 = 0 ;
8303 char *kwnames[] = {
8304 (char *) "self", NULL
8305 };
8306
8307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8309 {
8310 PyThreadState* __tstate = wxPyBeginAllowThreads();
8311 delete arg1;
8312
8313 wxPyEndAllowThreads(__tstate);
8314 if (PyErr_Occurred()) SWIG_fail;
8315 }
8316 Py_INCREF(Py_None); resultobj = Py_None;
8317 return resultobj;
8318 fail:
8319 return NULL;
8320 }
8321
8322
8323 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8324 PyObject *resultobj;
8325 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8326 PyObject *arg2 = (PyObject *) 0 ;
8327 PyObject *arg3 = (PyObject *) 0 ;
8328 bool arg4 ;
8329 PyObject * obj0 = 0 ;
8330 PyObject * obj1 = 0 ;
8331 PyObject * obj2 = 0 ;
8332 PyObject * obj3 = 0 ;
8333 char *kwnames[] = {
8334 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8335 };
8336
8337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8339 arg2 = obj1;
8340 arg3 = obj2;
8341 {
8342 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8343 if (PyErr_Occurred()) SWIG_fail;
8344 }
8345 {
8346 PyThreadState* __tstate = wxPyBeginAllowThreads();
8347 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8348
8349 wxPyEndAllowThreads(__tstate);
8350 if (PyErr_Occurred()) SWIG_fail;
8351 }
8352 Py_INCREF(Py_None); resultobj = Py_None;
8353 return resultobj;
8354 fail:
8355 return NULL;
8356 }
8357
8358
8359 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8360 PyObject *resultobj;
8361 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8362 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8363 bool arg3 = (bool) False ;
8364 bool result;
8365 PyObject * obj0 = 0 ;
8366 PyObject * obj1 = 0 ;
8367 PyObject * obj2 = 0 ;
8368 char *kwnames[] = {
8369 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8370 };
8371
8372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8374 if (obj1) {
8375 {
8376 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8377 if (PyErr_Occurred()) SWIG_fail;
8378 }
8379 }
8380 if (obj2) {
8381 {
8382 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8383 if (PyErr_Occurred()) SWIG_fail;
8384 }
8385 }
8386 {
8387 PyThreadState* __tstate = wxPyBeginAllowThreads();
8388 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8389
8390 wxPyEndAllowThreads(__tstate);
8391 if (PyErr_Occurred()) SWIG_fail;
8392 }
8393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8394 return resultobj;
8395 fail:
8396 return NULL;
8397 }
8398
8399
8400 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8401 PyObject *resultobj;
8402 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8403 wxString const &arg2_defvalue = wxPyEmptyString ;
8404 wxString *arg2 = (wxString *) &arg2_defvalue ;
8405 bool result;
8406 bool temp2 = False ;
8407 PyObject * obj0 = 0 ;
8408 PyObject * obj1 = 0 ;
8409 char *kwnames[] = {
8410 (char *) "self",(char *) "facename", NULL
8411 };
8412
8413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8415 if (obj1) {
8416 {
8417 arg2 = wxString_in_helper(obj1);
8418 if (arg2 == NULL) SWIG_fail;
8419 temp2 = True;
8420 }
8421 }
8422 {
8423 PyThreadState* __tstate = wxPyBeginAllowThreads();
8424 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8425
8426 wxPyEndAllowThreads(__tstate);
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8430 {
8431 if (temp2)
8432 delete arg2;
8433 }
8434 return resultobj;
8435 fail:
8436 {
8437 if (temp2)
8438 delete arg2;
8439 }
8440 return NULL;
8441 }
8442
8443
8444 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8445 PyObject *resultobj;
8446 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8447 PyObject *result;
8448 PyObject * obj0 = 0 ;
8449 char *kwnames[] = {
8450 (char *) "self", NULL
8451 };
8452
8453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8455 {
8456 PyThreadState* __tstate = wxPyBeginAllowThreads();
8457 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8458
8459 wxPyEndAllowThreads(__tstate);
8460 if (PyErr_Occurred()) SWIG_fail;
8461 }
8462 resultobj = result;
8463 return resultobj;
8464 fail:
8465 return NULL;
8466 }
8467
8468
8469 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8470 PyObject *resultobj;
8471 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8472 PyObject *result;
8473 PyObject * obj0 = 0 ;
8474 char *kwnames[] = {
8475 (char *) "self", NULL
8476 };
8477
8478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8480 {
8481 PyThreadState* __tstate = wxPyBeginAllowThreads();
8482 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8483
8484 wxPyEndAllowThreads(__tstate);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 resultobj = result;
8488 return resultobj;
8489 fail:
8490 return NULL;
8491 }
8492
8493
8494 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8495 PyObject *obj;
8496 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8497 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8498 Py_INCREF(obj);
8499 return Py_BuildValue((char *)"");
8500 }
8501 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj;
8503 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8504 int arg2 ;
8505 PyObject * obj0 = 0 ;
8506 PyObject * obj1 = 0 ;
8507 char *kwnames[] = {
8508 (char *) "self",(char *) "Language", NULL
8509 };
8510
8511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8513 {
8514 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8515 if (PyErr_Occurred()) SWIG_fail;
8516 }
8517 if (arg1) (arg1)->Language = arg2;
8518
8519 Py_INCREF(Py_None); resultobj = Py_None;
8520 return resultobj;
8521 fail:
8522 return NULL;
8523 }
8524
8525
8526 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8527 PyObject *resultobj;
8528 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8529 int result;
8530 PyObject * obj0 = 0 ;
8531 char *kwnames[] = {
8532 (char *) "self", NULL
8533 };
8534
8535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8537 result = (int) ((arg1)->Language);
8538
8539 resultobj = SWIG_PyObj_FromInt((int)result);
8540 return resultobj;
8541 fail:
8542 return NULL;
8543 }
8544
8545
8546 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8547 PyObject *resultobj;
8548 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8549 wxString *arg2 = (wxString *) 0 ;
8550 bool temp2 = False ;
8551 PyObject * obj0 = 0 ;
8552 PyObject * obj1 = 0 ;
8553 char *kwnames[] = {
8554 (char *) "self",(char *) "CanonicalName", NULL
8555 };
8556
8557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8559 {
8560 arg2 = wxString_in_helper(obj1);
8561 if (arg2 == NULL) SWIG_fail;
8562 temp2 = True;
8563 }
8564 if (arg1) (arg1)->CanonicalName = *arg2;
8565
8566 Py_INCREF(Py_None); resultobj = Py_None;
8567 {
8568 if (temp2)
8569 delete arg2;
8570 }
8571 return resultobj;
8572 fail:
8573 {
8574 if (temp2)
8575 delete arg2;
8576 }
8577 return NULL;
8578 }
8579
8580
8581 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8582 PyObject *resultobj;
8583 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8584 wxString *result;
8585 PyObject * obj0 = 0 ;
8586 char *kwnames[] = {
8587 (char *) "self", NULL
8588 };
8589
8590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8592 result = (wxString *)& ((arg1)->CanonicalName);
8593
8594 {
8595 #if wxUSE_UNICODE
8596 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8597 #else
8598 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8599 #endif
8600 }
8601 return resultobj;
8602 fail:
8603 return NULL;
8604 }
8605
8606
8607 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8608 PyObject *resultobj;
8609 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8610 wxString *arg2 = (wxString *) 0 ;
8611 bool temp2 = False ;
8612 PyObject * obj0 = 0 ;
8613 PyObject * obj1 = 0 ;
8614 char *kwnames[] = {
8615 (char *) "self",(char *) "Description", NULL
8616 };
8617
8618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8620 {
8621 arg2 = wxString_in_helper(obj1);
8622 if (arg2 == NULL) SWIG_fail;
8623 temp2 = True;
8624 }
8625 if (arg1) (arg1)->Description = *arg2;
8626
8627 Py_INCREF(Py_None); resultobj = Py_None;
8628 {
8629 if (temp2)
8630 delete arg2;
8631 }
8632 return resultobj;
8633 fail:
8634 {
8635 if (temp2)
8636 delete arg2;
8637 }
8638 return NULL;
8639 }
8640
8641
8642 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8643 PyObject *resultobj;
8644 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8645 wxString *result;
8646 PyObject * obj0 = 0 ;
8647 char *kwnames[] = {
8648 (char *) "self", NULL
8649 };
8650
8651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8653 result = (wxString *)& ((arg1)->Description);
8654
8655 {
8656 #if wxUSE_UNICODE
8657 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8658 #else
8659 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8660 #endif
8661 }
8662 return resultobj;
8663 fail:
8664 return NULL;
8665 }
8666
8667
8668 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8669 PyObject *obj;
8670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8671 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8672 Py_INCREF(obj);
8673 return Py_BuildValue((char *)"");
8674 }
8675 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8676 PyObject *resultobj;
8677 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8678 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8679 wxLocale *result;
8680 PyObject * obj0 = 0 ;
8681 PyObject * obj1 = 0 ;
8682 char *kwnames[] = {
8683 (char *) "language",(char *) "flags", NULL
8684 };
8685
8686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
8687 if (obj0) {
8688 {
8689 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8690 if (PyErr_Occurred()) SWIG_fail;
8691 }
8692 }
8693 if (obj1) {
8694 {
8695 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8696 if (PyErr_Occurred()) SWIG_fail;
8697 }
8698 }
8699 {
8700 PyThreadState* __tstate = wxPyBeginAllowThreads();
8701 result = (wxLocale *)new wxLocale(arg1,arg2);
8702
8703 wxPyEndAllowThreads(__tstate);
8704 if (PyErr_Occurred()) SWIG_fail;
8705 }
8706 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
8707 return resultobj;
8708 fail:
8709 return NULL;
8710 }
8711
8712
8713 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8714 PyObject *resultobj;
8715 wxLocale *arg1 = (wxLocale *) 0 ;
8716 PyObject * obj0 = 0 ;
8717 char *kwnames[] = {
8718 (char *) "self", NULL
8719 };
8720
8721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
8722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8723 {
8724 PyThreadState* __tstate = wxPyBeginAllowThreads();
8725 delete arg1;
8726
8727 wxPyEndAllowThreads(__tstate);
8728 if (PyErr_Occurred()) SWIG_fail;
8729 }
8730 Py_INCREF(Py_None); resultobj = Py_None;
8731 return resultobj;
8732 fail:
8733 return NULL;
8734 }
8735
8736
8737 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
8738 PyObject *resultobj;
8739 wxLocale *arg1 = (wxLocale *) 0 ;
8740 wxString *arg2 = 0 ;
8741 wxString const &arg3_defvalue = wxPyEmptyString ;
8742 wxString *arg3 = (wxString *) &arg3_defvalue ;
8743 wxString const &arg4_defvalue = wxPyEmptyString ;
8744 wxString *arg4 = (wxString *) &arg4_defvalue ;
8745 bool arg5 = (bool) True ;
8746 bool arg6 = (bool) False ;
8747 bool result;
8748 bool temp2 = False ;
8749 bool temp3 = False ;
8750 bool temp4 = False ;
8751 PyObject * obj0 = 0 ;
8752 PyObject * obj1 = 0 ;
8753 PyObject * obj2 = 0 ;
8754 PyObject * obj3 = 0 ;
8755 PyObject * obj4 = 0 ;
8756 PyObject * obj5 = 0 ;
8757 char *kwnames[] = {
8758 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
8759 };
8760
8761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8763 {
8764 arg2 = wxString_in_helper(obj1);
8765 if (arg2 == NULL) SWIG_fail;
8766 temp2 = True;
8767 }
8768 if (obj2) {
8769 {
8770 arg3 = wxString_in_helper(obj2);
8771 if (arg3 == NULL) SWIG_fail;
8772 temp3 = True;
8773 }
8774 }
8775 if (obj3) {
8776 {
8777 arg4 = wxString_in_helper(obj3);
8778 if (arg4 == NULL) SWIG_fail;
8779 temp4 = True;
8780 }
8781 }
8782 if (obj4) {
8783 {
8784 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 }
8788 if (obj5) {
8789 {
8790 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
8791 if (PyErr_Occurred()) SWIG_fail;
8792 }
8793 }
8794 {
8795 PyThreadState* __tstate = wxPyBeginAllowThreads();
8796 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
8797
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8802 {
8803 if (temp2)
8804 delete arg2;
8805 }
8806 {
8807 if (temp3)
8808 delete arg3;
8809 }
8810 {
8811 if (temp4)
8812 delete arg4;
8813 }
8814 return resultobj;
8815 fail:
8816 {
8817 if (temp2)
8818 delete arg2;
8819 }
8820 {
8821 if (temp3)
8822 delete arg3;
8823 }
8824 {
8825 if (temp4)
8826 delete arg4;
8827 }
8828 return NULL;
8829 }
8830
8831
8832 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj;
8834 wxLocale *arg1 = (wxLocale *) 0 ;
8835 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8836 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8837 bool result;
8838 PyObject * obj0 = 0 ;
8839 PyObject * obj1 = 0 ;
8840 PyObject * obj2 = 0 ;
8841 char *kwnames[] = {
8842 (char *) "self",(char *) "language",(char *) "flags", NULL
8843 };
8844
8845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
8846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8847 if (obj1) {
8848 {
8849 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8850 if (PyErr_Occurred()) SWIG_fail;
8851 }
8852 }
8853 if (obj2) {
8854 {
8855 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 }
8859 {
8860 PyThreadState* __tstate = wxPyBeginAllowThreads();
8861 result = (bool)(arg1)->Init(arg2,arg3);
8862
8863 wxPyEndAllowThreads(__tstate);
8864 if (PyErr_Occurred()) SWIG_fail;
8865 }
8866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8867 return resultobj;
8868 fail:
8869 return NULL;
8870 }
8871
8872
8873 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8874 PyObject *resultobj;
8875 int result;
8876 char *kwnames[] = {
8877 NULL
8878 };
8879
8880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8881 {
8882 PyThreadState* __tstate = wxPyBeginAllowThreads();
8883 result = (int)wxLocale::GetSystemLanguage();
8884
8885 wxPyEndAllowThreads(__tstate);
8886 if (PyErr_Occurred()) SWIG_fail;
8887 }
8888 resultobj = SWIG_PyObj_FromInt((int)result);
8889 return resultobj;
8890 fail:
8891 return NULL;
8892 }
8893
8894
8895 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8896 PyObject *resultobj;
8897 int result;
8898 char *kwnames[] = {
8899 NULL
8900 };
8901
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8903 {
8904 PyThreadState* __tstate = wxPyBeginAllowThreads();
8905 result = (int)wxLocale::GetSystemEncoding();
8906
8907 wxPyEndAllowThreads(__tstate);
8908 if (PyErr_Occurred()) SWIG_fail;
8909 }
8910 resultobj = SWIG_PyObj_FromInt((int)result);
8911 return resultobj;
8912 fail:
8913 return NULL;
8914 }
8915
8916
8917 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8918 PyObject *resultobj;
8919 wxString result;
8920 char *kwnames[] = {
8921 NULL
8922 };
8923
8924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8925 {
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 result = wxLocale::GetSystemEncodingName();
8928
8929 wxPyEndAllowThreads(__tstate);
8930 if (PyErr_Occurred()) SWIG_fail;
8931 }
8932 {
8933 #if wxUSE_UNICODE
8934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8935 #else
8936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8937 #endif
8938 }
8939 return resultobj;
8940 fail:
8941 return NULL;
8942 }
8943
8944
8945 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8946 PyObject *resultobj;
8947 wxLocale *arg1 = (wxLocale *) 0 ;
8948 bool result;
8949 PyObject * obj0 = 0 ;
8950 char *kwnames[] = {
8951 (char *) "self", NULL
8952 };
8953
8954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8956 {
8957 PyThreadState* __tstate = wxPyBeginAllowThreads();
8958 result = (bool)((wxLocale const *)arg1)->IsOk();
8959
8960 wxPyEndAllowThreads(__tstate);
8961 if (PyErr_Occurred()) SWIG_fail;
8962 }
8963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8964 return resultobj;
8965 fail:
8966 return NULL;
8967 }
8968
8969
8970 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8971 PyObject *resultobj;
8972 wxLocale *arg1 = (wxLocale *) 0 ;
8973 wxString result;
8974 PyObject * obj0 = 0 ;
8975 char *kwnames[] = {
8976 (char *) "self", NULL
8977 };
8978
8979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8981 {
8982 PyThreadState* __tstate = wxPyBeginAllowThreads();
8983 result = ((wxLocale const *)arg1)->GetLocale();
8984
8985 wxPyEndAllowThreads(__tstate);
8986 if (PyErr_Occurred()) SWIG_fail;
8987 }
8988 {
8989 #if wxUSE_UNICODE
8990 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8991 #else
8992 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8993 #endif
8994 }
8995 return resultobj;
8996 fail:
8997 return NULL;
8998 }
8999
9000
9001 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9002 PyObject *resultobj;
9003 wxLocale *arg1 = (wxLocale *) 0 ;
9004 int result;
9005 PyObject * obj0 = 0 ;
9006 char *kwnames[] = {
9007 (char *) "self", NULL
9008 };
9009
9010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9012 {
9013 PyThreadState* __tstate = wxPyBeginAllowThreads();
9014 result = (int)((wxLocale const *)arg1)->GetLanguage();
9015
9016 wxPyEndAllowThreads(__tstate);
9017 if (PyErr_Occurred()) SWIG_fail;
9018 }
9019 resultobj = SWIG_PyObj_FromInt((int)result);
9020 return resultobj;
9021 fail:
9022 return NULL;
9023 }
9024
9025
9026 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9027 PyObject *resultobj;
9028 wxLocale *arg1 = (wxLocale *) 0 ;
9029 wxString result;
9030 PyObject * obj0 = 0 ;
9031 char *kwnames[] = {
9032 (char *) "self", NULL
9033 };
9034
9035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9036 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9037 {
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 result = ((wxLocale const *)arg1)->GetSysName();
9040
9041 wxPyEndAllowThreads(__tstate);
9042 if (PyErr_Occurred()) SWIG_fail;
9043 }
9044 {
9045 #if wxUSE_UNICODE
9046 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9047 #else
9048 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9049 #endif
9050 }
9051 return resultobj;
9052 fail:
9053 return NULL;
9054 }
9055
9056
9057 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9058 PyObject *resultobj;
9059 wxLocale *arg1 = (wxLocale *) 0 ;
9060 wxString result;
9061 PyObject * obj0 = 0 ;
9062 char *kwnames[] = {
9063 (char *) "self", NULL
9064 };
9065
9066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9068 {
9069 PyThreadState* __tstate = wxPyBeginAllowThreads();
9070 result = ((wxLocale const *)arg1)->GetCanonicalName();
9071
9072 wxPyEndAllowThreads(__tstate);
9073 if (PyErr_Occurred()) SWIG_fail;
9074 }
9075 {
9076 #if wxUSE_UNICODE
9077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9078 #else
9079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9080 #endif
9081 }
9082 return resultobj;
9083 fail:
9084 return NULL;
9085 }
9086
9087
9088 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9089 PyObject *resultobj;
9090 wxString *arg1 = 0 ;
9091 bool temp1 = False ;
9092 PyObject * obj0 = 0 ;
9093 char *kwnames[] = {
9094 (char *) "prefix", NULL
9095 };
9096
9097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9098 {
9099 arg1 = wxString_in_helper(obj0);
9100 if (arg1 == NULL) SWIG_fail;
9101 temp1 = True;
9102 }
9103 {
9104 PyThreadState* __tstate = wxPyBeginAllowThreads();
9105 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9106
9107 wxPyEndAllowThreads(__tstate);
9108 if (PyErr_Occurred()) SWIG_fail;
9109 }
9110 Py_INCREF(Py_None); resultobj = Py_None;
9111 {
9112 if (temp1)
9113 delete arg1;
9114 }
9115 return resultobj;
9116 fail:
9117 {
9118 if (temp1)
9119 delete arg1;
9120 }
9121 return NULL;
9122 }
9123
9124
9125 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9126 PyObject *resultobj;
9127 wxLocale *arg1 = (wxLocale *) 0 ;
9128 wxString *arg2 = 0 ;
9129 bool result;
9130 bool temp2 = False ;
9131 PyObject * obj0 = 0 ;
9132 PyObject * obj1 = 0 ;
9133 char *kwnames[] = {
9134 (char *) "self",(char *) "szDomain", NULL
9135 };
9136
9137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9139 {
9140 arg2 = wxString_in_helper(obj1);
9141 if (arg2 == NULL) SWIG_fail;
9142 temp2 = True;
9143 }
9144 {
9145 PyThreadState* __tstate = wxPyBeginAllowThreads();
9146 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9147
9148 wxPyEndAllowThreads(__tstate);
9149 if (PyErr_Occurred()) SWIG_fail;
9150 }
9151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9152 {
9153 if (temp2)
9154 delete arg2;
9155 }
9156 return resultobj;
9157 fail:
9158 {
9159 if (temp2)
9160 delete arg2;
9161 }
9162 return NULL;
9163 }
9164
9165
9166 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9167 PyObject *resultobj;
9168 wxLocale *arg1 = (wxLocale *) 0 ;
9169 wxString *arg2 = 0 ;
9170 bool result;
9171 bool temp2 = False ;
9172 PyObject * obj0 = 0 ;
9173 PyObject * obj1 = 0 ;
9174 char *kwnames[] = {
9175 (char *) "self",(char *) "szDomain", NULL
9176 };
9177
9178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9180 {
9181 arg2 = wxString_in_helper(obj1);
9182 if (arg2 == NULL) SWIG_fail;
9183 temp2 = True;
9184 }
9185 {
9186 PyThreadState* __tstate = wxPyBeginAllowThreads();
9187 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9188
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9193 {
9194 if (temp2)
9195 delete arg2;
9196 }
9197 return resultobj;
9198 fail:
9199 {
9200 if (temp2)
9201 delete arg2;
9202 }
9203 return NULL;
9204 }
9205
9206
9207 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9208 PyObject *resultobj;
9209 int arg1 ;
9210 wxLanguageInfo *result;
9211 PyObject * obj0 = 0 ;
9212 char *kwnames[] = {
9213 (char *) "lang", NULL
9214 };
9215
9216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9217 {
9218 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 {
9222 PyThreadState* __tstate = wxPyBeginAllowThreads();
9223 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9224
9225 wxPyEndAllowThreads(__tstate);
9226 if (PyErr_Occurred()) SWIG_fail;
9227 }
9228 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9229 return resultobj;
9230 fail:
9231 return NULL;
9232 }
9233
9234
9235 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9236 PyObject *resultobj;
9237 int arg1 ;
9238 wxString result;
9239 PyObject * obj0 = 0 ;
9240 char *kwnames[] = {
9241 (char *) "lang", NULL
9242 };
9243
9244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9245 {
9246 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9247 if (PyErr_Occurred()) SWIG_fail;
9248 }
9249 {
9250 PyThreadState* __tstate = wxPyBeginAllowThreads();
9251 result = wxLocale::GetLanguageName(arg1);
9252
9253 wxPyEndAllowThreads(__tstate);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 }
9256 {
9257 #if wxUSE_UNICODE
9258 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9259 #else
9260 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9261 #endif
9262 }
9263 return resultobj;
9264 fail:
9265 return NULL;
9266 }
9267
9268
9269 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9270 PyObject *resultobj;
9271 wxString *arg1 = 0 ;
9272 wxLanguageInfo *result;
9273 bool temp1 = False ;
9274 PyObject * obj0 = 0 ;
9275 char *kwnames[] = {
9276 (char *) "locale", NULL
9277 };
9278
9279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9280 {
9281 arg1 = wxString_in_helper(obj0);
9282 if (arg1 == NULL) SWIG_fail;
9283 temp1 = True;
9284 }
9285 {
9286 PyThreadState* __tstate = wxPyBeginAllowThreads();
9287 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9288
9289 wxPyEndAllowThreads(__tstate);
9290 if (PyErr_Occurred()) SWIG_fail;
9291 }
9292 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9293 {
9294 if (temp1)
9295 delete arg1;
9296 }
9297 return resultobj;
9298 fail:
9299 {
9300 if (temp1)
9301 delete arg1;
9302 }
9303 return NULL;
9304 }
9305
9306
9307 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9308 PyObject *resultobj;
9309 wxLanguageInfo *arg1 = 0 ;
9310 PyObject * obj0 = 0 ;
9311 char *kwnames[] = {
9312 (char *) "info", NULL
9313 };
9314
9315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9317 if (arg1 == NULL) {
9318 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9319 }
9320 {
9321 PyThreadState* __tstate = wxPyBeginAllowThreads();
9322 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9323
9324 wxPyEndAllowThreads(__tstate);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 }
9327 Py_INCREF(Py_None); resultobj = Py_None;
9328 return resultobj;
9329 fail:
9330 return NULL;
9331 }
9332
9333
9334 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9335 PyObject *resultobj;
9336 wxLocale *arg1 = (wxLocale *) 0 ;
9337 wxString *arg2 = 0 ;
9338 wxString const &arg3_defvalue = wxPyEmptyString ;
9339 wxString *arg3 = (wxString *) &arg3_defvalue ;
9340 wxString result;
9341 bool temp2 = False ;
9342 bool temp3 = False ;
9343 PyObject * obj0 = 0 ;
9344 PyObject * obj1 = 0 ;
9345 PyObject * obj2 = 0 ;
9346 char *kwnames[] = {
9347 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9348 };
9349
9350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9352 {
9353 arg2 = wxString_in_helper(obj1);
9354 if (arg2 == NULL) SWIG_fail;
9355 temp2 = True;
9356 }
9357 if (obj2) {
9358 {
9359 arg3 = wxString_in_helper(obj2);
9360 if (arg3 == NULL) SWIG_fail;
9361 temp3 = True;
9362 }
9363 }
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9367
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 {
9372 #if wxUSE_UNICODE
9373 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9374 #else
9375 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9376 #endif
9377 }
9378 {
9379 if (temp2)
9380 delete arg2;
9381 }
9382 {
9383 if (temp3)
9384 delete arg3;
9385 }
9386 return resultobj;
9387 fail:
9388 {
9389 if (temp2)
9390 delete arg2;
9391 }
9392 {
9393 if (temp3)
9394 delete arg3;
9395 }
9396 return NULL;
9397 }
9398
9399
9400 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9401 PyObject *resultobj;
9402 wxLocale *arg1 = (wxLocale *) 0 ;
9403 wxString *result;
9404 PyObject * obj0 = 0 ;
9405 char *kwnames[] = {
9406 (char *) "self", NULL
9407 };
9408
9409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9411 {
9412 PyThreadState* __tstate = wxPyBeginAllowThreads();
9413 {
9414 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9415 result = (wxString *) &_result_ref;
9416 }
9417
9418 wxPyEndAllowThreads(__tstate);
9419 if (PyErr_Occurred()) SWIG_fail;
9420 }
9421 {
9422 #if wxUSE_UNICODE
9423 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9424 #else
9425 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9426 #endif
9427 }
9428 return resultobj;
9429 fail:
9430 return NULL;
9431 }
9432
9433
9434 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9435 PyObject *obj;
9436 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9437 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9438 Py_INCREF(obj);
9439 return Py_BuildValue((char *)"");
9440 }
9441 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9442 PyObject *resultobj;
9443 wxLocale *result;
9444 char *kwnames[] = {
9445 NULL
9446 };
9447
9448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9449 {
9450 PyThreadState* __tstate = wxPyBeginAllowThreads();
9451 result = (wxLocale *)wxGetLocale();
9452
9453 wxPyEndAllowThreads(__tstate);
9454 if (PyErr_Occurred()) SWIG_fail;
9455 }
9456 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9457 return resultobj;
9458 fail:
9459 return NULL;
9460 }
9461
9462
9463 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9464 PyObject *resultobj;
9465 wxString *arg1 = 0 ;
9466 wxString result;
9467 bool temp1 = False ;
9468 PyObject * obj0 = 0 ;
9469
9470 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9471 {
9472 arg1 = wxString_in_helper(obj0);
9473 if (arg1 == NULL) SWIG_fail;
9474 temp1 = True;
9475 }
9476 {
9477 PyThreadState* __tstate = wxPyBeginAllowThreads();
9478 result = wxGetTranslation((wxString const &)*arg1);
9479
9480 wxPyEndAllowThreads(__tstate);
9481 if (PyErr_Occurred()) SWIG_fail;
9482 }
9483 {
9484 #if wxUSE_UNICODE
9485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9486 #else
9487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9488 #endif
9489 }
9490 {
9491 if (temp1)
9492 delete arg1;
9493 }
9494 return resultobj;
9495 fail:
9496 {
9497 if (temp1)
9498 delete arg1;
9499 }
9500 return NULL;
9501 }
9502
9503
9504 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9505 PyObject *resultobj;
9506 wxString *arg1 = 0 ;
9507 wxString *arg2 = 0 ;
9508 size_t arg3 ;
9509 wxString result;
9510 bool temp1 = False ;
9511 bool temp2 = False ;
9512 PyObject * obj0 = 0 ;
9513 PyObject * obj1 = 0 ;
9514 PyObject * obj2 = 0 ;
9515
9516 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9517 {
9518 arg1 = wxString_in_helper(obj0);
9519 if (arg1 == NULL) SWIG_fail;
9520 temp1 = True;
9521 }
9522 {
9523 arg2 = wxString_in_helper(obj1);
9524 if (arg2 == NULL) SWIG_fail;
9525 temp2 = True;
9526 }
9527 {
9528 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
9529 if (PyErr_Occurred()) SWIG_fail;
9530 }
9531 {
9532 PyThreadState* __tstate = wxPyBeginAllowThreads();
9533 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9534
9535 wxPyEndAllowThreads(__tstate);
9536 if (PyErr_Occurred()) SWIG_fail;
9537 }
9538 {
9539 #if wxUSE_UNICODE
9540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9541 #else
9542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9543 #endif
9544 }
9545 {
9546 if (temp1)
9547 delete arg1;
9548 }
9549 {
9550 if (temp2)
9551 delete arg2;
9552 }
9553 return resultobj;
9554 fail:
9555 {
9556 if (temp1)
9557 delete arg1;
9558 }
9559 {
9560 if (temp2)
9561 delete arg2;
9562 }
9563 return NULL;
9564 }
9565
9566
9567 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9568 int argc;
9569 PyObject *argv[4];
9570 int ii;
9571
9572 argc = PyObject_Length(args);
9573 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9574 argv[ii] = PyTuple_GetItem(args,ii);
9575 }
9576 if (argc == 1) {
9577 int _v;
9578 {
9579 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9580 }
9581 if (_v) {
9582 return _wrap_GetTranslation__SWIG_0(self,args);
9583 }
9584 }
9585 if (argc == 3) {
9586 int _v;
9587 {
9588 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9589 }
9590 if (_v) {
9591 {
9592 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9593 }
9594 if (_v) {
9595 {
9596 SWIG_PyObj_AsUnsignedLong(argv[2]);
9597 if (PyErr_Occurred()) {
9598 _v = 0;
9599 PyErr_Clear();
9600 } else {
9601 _v = 1;
9602 }
9603 }
9604 if (_v) {
9605 return _wrap_GetTranslation__SWIG_1(self,args);
9606 }
9607 }
9608 }
9609 }
9610
9611 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9612 return NULL;
9613 }
9614
9615
9616 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9617 PyObject *resultobj;
9618 wxEncodingConverter *result;
9619 char *kwnames[] = {
9620 NULL
9621 };
9622
9623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9624 {
9625 PyThreadState* __tstate = wxPyBeginAllowThreads();
9626 result = (wxEncodingConverter *)new wxEncodingConverter();
9627
9628 wxPyEndAllowThreads(__tstate);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 }
9631 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
9632 return resultobj;
9633 fail:
9634 return NULL;
9635 }
9636
9637
9638 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9639 PyObject *resultobj;
9640 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9641 PyObject * obj0 = 0 ;
9642 char *kwnames[] = {
9643 (char *) "self", NULL
9644 };
9645
9646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9648 {
9649 PyThreadState* __tstate = wxPyBeginAllowThreads();
9650 delete arg1;
9651
9652 wxPyEndAllowThreads(__tstate);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 }
9655 Py_INCREF(Py_None); resultobj = Py_None;
9656 return resultobj;
9657 fail:
9658 return NULL;
9659 }
9660
9661
9662 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9663 PyObject *resultobj;
9664 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9665 int arg2 ;
9666 int arg3 ;
9667 int arg4 = (int) wxCONVERT_STRICT ;
9668 bool result;
9669 PyObject * obj0 = 0 ;
9670 PyObject * obj1 = 0 ;
9671 PyObject * obj2 = 0 ;
9672 PyObject * obj3 = 0 ;
9673 char *kwnames[] = {
9674 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9675 };
9676
9677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9679 {
9680 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9681 if (PyErr_Occurred()) SWIG_fail;
9682 }
9683 {
9684 arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2);
9685 if (PyErr_Occurred()) SWIG_fail;
9686 }
9687 if (obj3) {
9688 {
9689 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9690 if (PyErr_Occurred()) SWIG_fail;
9691 }
9692 }
9693 {
9694 PyThreadState* __tstate = wxPyBeginAllowThreads();
9695 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
9696
9697 wxPyEndAllowThreads(__tstate);
9698 if (PyErr_Occurred()) SWIG_fail;
9699 }
9700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9701 return resultobj;
9702 fail:
9703 return NULL;
9704 }
9705
9706
9707 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
9708 PyObject *resultobj;
9709 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9710 wxString *arg2 = 0 ;
9711 wxString result;
9712 bool temp2 = False ;
9713 PyObject * obj0 = 0 ;
9714 PyObject * obj1 = 0 ;
9715 char *kwnames[] = {
9716 (char *) "self",(char *) "input", NULL
9717 };
9718
9719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
9720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9721 {
9722 arg2 = wxString_in_helper(obj1);
9723 if (arg2 == NULL) SWIG_fail;
9724 temp2 = True;
9725 }
9726 {
9727 PyThreadState* __tstate = wxPyBeginAllowThreads();
9728 result = (arg1)->Convert((wxString const &)*arg2);
9729
9730 wxPyEndAllowThreads(__tstate);
9731 if (PyErr_Occurred()) SWIG_fail;
9732 }
9733 {
9734 #if wxUSE_UNICODE
9735 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9736 #else
9737 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9738 #endif
9739 }
9740 {
9741 if (temp2)
9742 delete arg2;
9743 }
9744 return resultobj;
9745 fail:
9746 {
9747 if (temp2)
9748 delete arg2;
9749 }
9750 return NULL;
9751 }
9752
9753
9754 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9755 PyObject *resultobj;
9756 int arg1 ;
9757 int arg2 = (int) wxPLATFORM_CURRENT ;
9758 wxFontEncodingArray result;
9759 PyObject * obj0 = 0 ;
9760 PyObject * obj1 = 0 ;
9761 char *kwnames[] = {
9762 (char *) "enc",(char *) "platform", NULL
9763 };
9764
9765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
9766 {
9767 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9768 if (PyErr_Occurred()) SWIG_fail;
9769 }
9770 if (obj1) {
9771 {
9772 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9773 if (PyErr_Occurred()) SWIG_fail;
9774 }
9775 }
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
9779
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 {
9784 resultobj = PyList_New(0);
9785 for (size_t i=0; i < (&result)->GetCount(); i++) {
9786 PyObject* number = PyInt_FromLong((&result)->Item(i));
9787 PyList_Append(resultobj, number);
9788 Py_DECREF(number);
9789 }
9790 }
9791 return resultobj;
9792 fail:
9793 return NULL;
9794 }
9795
9796
9797 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9798 PyObject *resultobj;
9799 int arg1 ;
9800 wxFontEncodingArray result;
9801 PyObject * obj0 = 0 ;
9802 char *kwnames[] = {
9803 (char *) "enc", NULL
9804 };
9805
9806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
9807 {
9808 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9809 if (PyErr_Occurred()) SWIG_fail;
9810 }
9811 {
9812 PyThreadState* __tstate = wxPyBeginAllowThreads();
9813 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
9814
9815 wxPyEndAllowThreads(__tstate);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 }
9818 {
9819 resultobj = PyList_New(0);
9820 for (size_t i=0; i < (&result)->GetCount(); i++) {
9821 PyObject* number = PyInt_FromLong((&result)->Item(i));
9822 PyList_Append(resultobj, number);
9823 Py_DECREF(number);
9824 }
9825 }
9826 return resultobj;
9827 fail:
9828 return NULL;
9829 }
9830
9831
9832 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
9833 PyObject *resultobj;
9834 int arg1 ;
9835 int arg2 ;
9836 bool result;
9837 PyObject * obj0 = 0 ;
9838 PyObject * obj1 = 0 ;
9839 char *kwnames[] = {
9840 (char *) "encIn",(char *) "encOut", NULL
9841 };
9842
9843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
9844 {
9845 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9846 if (PyErr_Occurred()) SWIG_fail;
9847 }
9848 {
9849 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9850 if (PyErr_Occurred()) SWIG_fail;
9851 }
9852 {
9853 PyThreadState* __tstate = wxPyBeginAllowThreads();
9854 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
9855
9856 wxPyEndAllowThreads(__tstate);
9857 if (PyErr_Occurred()) SWIG_fail;
9858 }
9859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9860 return resultobj;
9861 fail:
9862 return NULL;
9863 }
9864
9865
9866 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
9867 PyObject *obj;
9868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9869 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
9870 Py_INCREF(obj);
9871 return Py_BuildValue((char *)"");
9872 }
9873 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
9874 PyObject *resultobj;
9875 wxDC *arg1 = (wxDC *) 0 ;
9876 PyObject * obj0 = 0 ;
9877 char *kwnames[] = {
9878 (char *) "self", NULL
9879 };
9880
9881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
9882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 delete arg1;
9886
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) SWIG_fail;
9889 }
9890 Py_INCREF(Py_None); resultobj = Py_None;
9891 return resultobj;
9892 fail:
9893 return NULL;
9894 }
9895
9896
9897 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9898 PyObject *resultobj;
9899 wxDC *arg1 = (wxDC *) 0 ;
9900 PyObject * obj0 = 0 ;
9901 char *kwnames[] = {
9902 (char *) "self", NULL
9903 };
9904
9905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9907 {
9908 PyThreadState* __tstate = wxPyBeginAllowThreads();
9909 (arg1)->BeginDrawing();
9910
9911 wxPyEndAllowThreads(__tstate);
9912 if (PyErr_Occurred()) SWIG_fail;
9913 }
9914 Py_INCREF(Py_None); resultobj = Py_None;
9915 return resultobj;
9916 fail:
9917 return NULL;
9918 }
9919
9920
9921 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9922 PyObject *resultobj;
9923 wxDC *arg1 = (wxDC *) 0 ;
9924 PyObject * obj0 = 0 ;
9925 char *kwnames[] = {
9926 (char *) "self", NULL
9927 };
9928
9929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9931 {
9932 PyThreadState* __tstate = wxPyBeginAllowThreads();
9933 (arg1)->EndDrawing();
9934
9935 wxPyEndAllowThreads(__tstate);
9936 if (PyErr_Occurred()) SWIG_fail;
9937 }
9938 Py_INCREF(Py_None); resultobj = Py_None;
9939 return resultobj;
9940 fail:
9941 return NULL;
9942 }
9943
9944
9945 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9946 PyObject *resultobj;
9947 wxDC *arg1 = (wxDC *) 0 ;
9948 int arg2 ;
9949 int arg3 ;
9950 wxColour *arg4 = 0 ;
9951 int arg5 = (int) wxFLOOD_SURFACE ;
9952 bool result;
9953 wxColour temp4 ;
9954 PyObject * obj0 = 0 ;
9955 PyObject * obj1 = 0 ;
9956 PyObject * obj2 = 0 ;
9957 PyObject * obj3 = 0 ;
9958 PyObject * obj4 = 0 ;
9959 char *kwnames[] = {
9960 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9961 };
9962
9963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9965 {
9966 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9967 if (PyErr_Occurred()) SWIG_fail;
9968 }
9969 {
9970 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9971 if (PyErr_Occurred()) SWIG_fail;
9972 }
9973 {
9974 arg4 = &temp4;
9975 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9976 }
9977 if (obj4) {
9978 {
9979 arg5 = (int) SWIG_PyObj_AsInt(obj4);
9980 if (PyErr_Occurred()) SWIG_fail;
9981 }
9982 }
9983 {
9984 PyThreadState* __tstate = wxPyBeginAllowThreads();
9985 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9986
9987 wxPyEndAllowThreads(__tstate);
9988 if (PyErr_Occurred()) SWIG_fail;
9989 }
9990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9991 return resultobj;
9992 fail:
9993 return NULL;
9994 }
9995
9996
9997 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9998 PyObject *resultobj;
9999 wxDC *arg1 = (wxDC *) 0 ;
10000 wxPoint *arg2 = 0 ;
10001 wxColour *arg3 = 0 ;
10002 int arg4 = (int) wxFLOOD_SURFACE ;
10003 bool result;
10004 wxPoint temp2 ;
10005 wxColour temp3 ;
10006 PyObject * obj0 = 0 ;
10007 PyObject * obj1 = 0 ;
10008 PyObject * obj2 = 0 ;
10009 PyObject * obj3 = 0 ;
10010 char *kwnames[] = {
10011 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10012 };
10013
10014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10016 {
10017 arg2 = &temp2;
10018 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10019 }
10020 {
10021 arg3 = &temp3;
10022 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10023 }
10024 if (obj3) {
10025 {
10026 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10027 if (PyErr_Occurred()) SWIG_fail;
10028 }
10029 }
10030 {
10031 PyThreadState* __tstate = wxPyBeginAllowThreads();
10032 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10033
10034 wxPyEndAllowThreads(__tstate);
10035 if (PyErr_Occurred()) SWIG_fail;
10036 }
10037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10038 return resultobj;
10039 fail:
10040 return NULL;
10041 }
10042
10043
10044 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10045 PyObject *resultobj;
10046 wxDC *arg1 = (wxDC *) 0 ;
10047 int arg2 ;
10048 int arg3 ;
10049 wxColour result;
10050 PyObject * obj0 = 0 ;
10051 PyObject * obj1 = 0 ;
10052 PyObject * obj2 = 0 ;
10053 char *kwnames[] = {
10054 (char *) "self",(char *) "x",(char *) "y", NULL
10055 };
10056
10057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10059 {
10060 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10061 if (PyErr_Occurred()) SWIG_fail;
10062 }
10063 {
10064 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 {
10068 PyThreadState* __tstate = wxPyBeginAllowThreads();
10069 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10070
10071 wxPyEndAllowThreads(__tstate);
10072 if (PyErr_Occurred()) SWIG_fail;
10073 }
10074 {
10075 wxColour * resultptr;
10076 resultptr = new wxColour((wxColour &) result);
10077 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10078 }
10079 return resultobj;
10080 fail:
10081 return NULL;
10082 }
10083
10084
10085 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10086 PyObject *resultobj;
10087 wxDC *arg1 = (wxDC *) 0 ;
10088 wxPoint *arg2 = 0 ;
10089 wxColour result;
10090 wxPoint temp2 ;
10091 PyObject * obj0 = 0 ;
10092 PyObject * obj1 = 0 ;
10093 char *kwnames[] = {
10094 (char *) "self",(char *) "pt", NULL
10095 };
10096
10097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10099 {
10100 arg2 = &temp2;
10101 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10102 }
10103 {
10104 PyThreadState* __tstate = wxPyBeginAllowThreads();
10105 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10106
10107 wxPyEndAllowThreads(__tstate);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 }
10110 {
10111 wxColour * resultptr;
10112 resultptr = new wxColour((wxColour &) result);
10113 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10114 }
10115 return resultobj;
10116 fail:
10117 return NULL;
10118 }
10119
10120
10121 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10122 PyObject *resultobj;
10123 wxDC *arg1 = (wxDC *) 0 ;
10124 int arg2 ;
10125 int arg3 ;
10126 int arg4 ;
10127 int arg5 ;
10128 PyObject * obj0 = 0 ;
10129 PyObject * obj1 = 0 ;
10130 PyObject * obj2 = 0 ;
10131 PyObject * obj3 = 0 ;
10132 PyObject * obj4 = 0 ;
10133 char *kwnames[] = {
10134 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10135 };
10136
10137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10139 {
10140 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 {
10144 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10145 if (PyErr_Occurred()) SWIG_fail;
10146 }
10147 {
10148 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10149 if (PyErr_Occurred()) SWIG_fail;
10150 }
10151 {
10152 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10153 if (PyErr_Occurred()) SWIG_fail;
10154 }
10155 {
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
10157 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10158
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 Py_INCREF(Py_None); resultobj = Py_None;
10163 return resultobj;
10164 fail:
10165 return NULL;
10166 }
10167
10168
10169 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10170 PyObject *resultobj;
10171 wxDC *arg1 = (wxDC *) 0 ;
10172 wxPoint *arg2 = 0 ;
10173 wxPoint *arg3 = 0 ;
10174 wxPoint temp2 ;
10175 wxPoint temp3 ;
10176 PyObject * obj0 = 0 ;
10177 PyObject * obj1 = 0 ;
10178 PyObject * obj2 = 0 ;
10179 char *kwnames[] = {
10180 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10181 };
10182
10183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10185 {
10186 arg2 = &temp2;
10187 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10188 }
10189 {
10190 arg3 = &temp3;
10191 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10192 }
10193 {
10194 PyThreadState* __tstate = wxPyBeginAllowThreads();
10195 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10196
10197 wxPyEndAllowThreads(__tstate);
10198 if (PyErr_Occurred()) SWIG_fail;
10199 }
10200 Py_INCREF(Py_None); resultobj = Py_None;
10201 return resultobj;
10202 fail:
10203 return NULL;
10204 }
10205
10206
10207 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10208 PyObject *resultobj;
10209 wxDC *arg1 = (wxDC *) 0 ;
10210 int arg2 ;
10211 int arg3 ;
10212 PyObject * obj0 = 0 ;
10213 PyObject * obj1 = 0 ;
10214 PyObject * obj2 = 0 ;
10215 char *kwnames[] = {
10216 (char *) "self",(char *) "x",(char *) "y", NULL
10217 };
10218
10219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10221 {
10222 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10223 if (PyErr_Occurred()) SWIG_fail;
10224 }
10225 {
10226 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10227 if (PyErr_Occurred()) SWIG_fail;
10228 }
10229 {
10230 PyThreadState* __tstate = wxPyBeginAllowThreads();
10231 (arg1)->CrossHair(arg2,arg3);
10232
10233 wxPyEndAllowThreads(__tstate);
10234 if (PyErr_Occurred()) SWIG_fail;
10235 }
10236 Py_INCREF(Py_None); resultobj = Py_None;
10237 return resultobj;
10238 fail:
10239 return NULL;
10240 }
10241
10242
10243 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10244 PyObject *resultobj;
10245 wxDC *arg1 = (wxDC *) 0 ;
10246 wxPoint *arg2 = 0 ;
10247 wxPoint temp2 ;
10248 PyObject * obj0 = 0 ;
10249 PyObject * obj1 = 0 ;
10250 char *kwnames[] = {
10251 (char *) "self",(char *) "pt", NULL
10252 };
10253
10254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10256 {
10257 arg2 = &temp2;
10258 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10259 }
10260 {
10261 PyThreadState* __tstate = wxPyBeginAllowThreads();
10262 (arg1)->CrossHair((wxPoint const &)*arg2);
10263
10264 wxPyEndAllowThreads(__tstate);
10265 if (PyErr_Occurred()) SWIG_fail;
10266 }
10267 Py_INCREF(Py_None); resultobj = Py_None;
10268 return resultobj;
10269 fail:
10270 return NULL;
10271 }
10272
10273
10274 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10275 PyObject *resultobj;
10276 wxDC *arg1 = (wxDC *) 0 ;
10277 int arg2 ;
10278 int arg3 ;
10279 int arg4 ;
10280 int arg5 ;
10281 int arg6 ;
10282 int arg7 ;
10283 PyObject * obj0 = 0 ;
10284 PyObject * obj1 = 0 ;
10285 PyObject * obj2 = 0 ;
10286 PyObject * obj3 = 0 ;
10287 PyObject * obj4 = 0 ;
10288 PyObject * obj5 = 0 ;
10289 PyObject * obj6 = 0 ;
10290 char *kwnames[] = {
10291 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10292 };
10293
10294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10296 {
10297 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 {
10301 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10302 if (PyErr_Occurred()) SWIG_fail;
10303 }
10304 {
10305 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10306 if (PyErr_Occurred()) SWIG_fail;
10307 }
10308 {
10309 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 {
10313 arg6 = (int) SWIG_PyObj_AsInt(obj5);
10314 if (PyErr_Occurred()) SWIG_fail;
10315 }
10316 {
10317 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10318 if (PyErr_Occurred()) SWIG_fail;
10319 }
10320 {
10321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10322 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10323
10324 wxPyEndAllowThreads(__tstate);
10325 if (PyErr_Occurred()) SWIG_fail;
10326 }
10327 Py_INCREF(Py_None); resultobj = Py_None;
10328 return resultobj;
10329 fail:
10330 return NULL;
10331 }
10332
10333
10334 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10335 PyObject *resultobj;
10336 wxDC *arg1 = (wxDC *) 0 ;
10337 wxPoint *arg2 = 0 ;
10338 wxPoint *arg3 = 0 ;
10339 wxPoint *arg4 = 0 ;
10340 wxPoint temp2 ;
10341 wxPoint temp3 ;
10342 wxPoint temp4 ;
10343 PyObject * obj0 = 0 ;
10344 PyObject * obj1 = 0 ;
10345 PyObject * obj2 = 0 ;
10346 PyObject * obj3 = 0 ;
10347 char *kwnames[] = {
10348 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10349 };
10350
10351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10353 {
10354 arg2 = &temp2;
10355 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10356 }
10357 {
10358 arg3 = &temp3;
10359 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10360 }
10361 {
10362 arg4 = &temp4;
10363 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10364 }
10365 {
10366 PyThreadState* __tstate = wxPyBeginAllowThreads();
10367 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10368
10369 wxPyEndAllowThreads(__tstate);
10370 if (PyErr_Occurred()) SWIG_fail;
10371 }
10372 Py_INCREF(Py_None); resultobj = Py_None;
10373 return resultobj;
10374 fail:
10375 return NULL;
10376 }
10377
10378
10379 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10380 PyObject *resultobj;
10381 wxDC *arg1 = (wxDC *) 0 ;
10382 int arg2 ;
10383 int arg3 ;
10384 int arg4 ;
10385 int arg5 ;
10386 PyObject * obj0 = 0 ;
10387 PyObject * obj1 = 0 ;
10388 PyObject * obj2 = 0 ;
10389 PyObject * obj3 = 0 ;
10390 PyObject * obj4 = 0 ;
10391 char *kwnames[] = {
10392 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10393 };
10394
10395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10397 {
10398 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 {
10402 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 {
10406 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 {
10410 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 }
10413 {
10414 PyThreadState* __tstate = wxPyBeginAllowThreads();
10415 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10416
10417 wxPyEndAllowThreads(__tstate);
10418 if (PyErr_Occurred()) SWIG_fail;
10419 }
10420 Py_INCREF(Py_None); resultobj = Py_None;
10421 return resultobj;
10422 fail:
10423 return NULL;
10424 }
10425
10426
10427 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10428 PyObject *resultobj;
10429 wxDC *arg1 = (wxDC *) 0 ;
10430 wxRect *arg2 = 0 ;
10431 wxRect temp2 ;
10432 PyObject * obj0 = 0 ;
10433 PyObject * obj1 = 0 ;
10434 char *kwnames[] = {
10435 (char *) "self",(char *) "rect", NULL
10436 };
10437
10438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10440 {
10441 arg2 = &temp2;
10442 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10443 }
10444 {
10445 PyThreadState* __tstate = wxPyBeginAllowThreads();
10446 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10447
10448 wxPyEndAllowThreads(__tstate);
10449 if (PyErr_Occurred()) SWIG_fail;
10450 }
10451 Py_INCREF(Py_None); resultobj = Py_None;
10452 return resultobj;
10453 fail:
10454 return NULL;
10455 }
10456
10457
10458 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10459 PyObject *resultobj;
10460 wxDC *arg1 = (wxDC *) 0 ;
10461 int arg2 ;
10462 int arg3 ;
10463 int arg4 ;
10464 int arg5 ;
10465 double arg6 ;
10466 double arg7 ;
10467 PyObject * obj0 = 0 ;
10468 PyObject * obj1 = 0 ;
10469 PyObject * obj2 = 0 ;
10470 PyObject * obj3 = 0 ;
10471 PyObject * obj4 = 0 ;
10472 PyObject * obj5 = 0 ;
10473 PyObject * obj6 = 0 ;
10474 char *kwnames[] = {
10475 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10476 };
10477
10478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10480 {
10481 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10482 if (PyErr_Occurred()) SWIG_fail;
10483 }
10484 {
10485 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10486 if (PyErr_Occurred()) SWIG_fail;
10487 }
10488 {
10489 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10490 if (PyErr_Occurred()) SWIG_fail;
10491 }
10492 {
10493 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
10496 {
10497 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10498 if (PyErr_Occurred()) SWIG_fail;
10499 }
10500 {
10501 arg7 = (double) SWIG_PyObj_AsDouble(obj6);
10502 if (PyErr_Occurred()) SWIG_fail;
10503 }
10504 {
10505 PyThreadState* __tstate = wxPyBeginAllowThreads();
10506 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10507
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 Py_INCREF(Py_None); resultobj = Py_None;
10512 return resultobj;
10513 fail:
10514 return NULL;
10515 }
10516
10517
10518 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10519 PyObject *resultobj;
10520 wxDC *arg1 = (wxDC *) 0 ;
10521 wxPoint *arg2 = 0 ;
10522 wxSize *arg3 = 0 ;
10523 double arg4 ;
10524 double arg5 ;
10525 wxPoint temp2 ;
10526 wxSize temp3 ;
10527 PyObject * obj0 = 0 ;
10528 PyObject * obj1 = 0 ;
10529 PyObject * obj2 = 0 ;
10530 PyObject * obj3 = 0 ;
10531 PyObject * obj4 = 0 ;
10532 char *kwnames[] = {
10533 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10534 };
10535
10536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10538 {
10539 arg2 = &temp2;
10540 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10541 }
10542 {
10543 arg3 = &temp3;
10544 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10545 }
10546 {
10547 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 {
10551 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 }
10554 {
10555 PyThreadState* __tstate = wxPyBeginAllowThreads();
10556 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10557
10558 wxPyEndAllowThreads(__tstate);
10559 if (PyErr_Occurred()) SWIG_fail;
10560 }
10561 Py_INCREF(Py_None); resultobj = Py_None;
10562 return resultobj;
10563 fail:
10564 return NULL;
10565 }
10566
10567
10568 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10569 PyObject *resultobj;
10570 wxDC *arg1 = (wxDC *) 0 ;
10571 int arg2 ;
10572 int arg3 ;
10573 PyObject * obj0 = 0 ;
10574 PyObject * obj1 = 0 ;
10575 PyObject * obj2 = 0 ;
10576 char *kwnames[] = {
10577 (char *) "self",(char *) "x",(char *) "y", NULL
10578 };
10579
10580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10582 {
10583 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 }
10586 {
10587 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10588 if (PyErr_Occurred()) SWIG_fail;
10589 }
10590 {
10591 PyThreadState* __tstate = wxPyBeginAllowThreads();
10592 (arg1)->DrawPoint(arg2,arg3);
10593
10594 wxPyEndAllowThreads(__tstate);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 }
10597 Py_INCREF(Py_None); resultobj = Py_None;
10598 return resultobj;
10599 fail:
10600 return NULL;
10601 }
10602
10603
10604 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10605 PyObject *resultobj;
10606 wxDC *arg1 = (wxDC *) 0 ;
10607 wxPoint *arg2 = 0 ;
10608 wxPoint temp2 ;
10609 PyObject * obj0 = 0 ;
10610 PyObject * obj1 = 0 ;
10611 char *kwnames[] = {
10612 (char *) "self",(char *) "pt", NULL
10613 };
10614
10615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10617 {
10618 arg2 = &temp2;
10619 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10620 }
10621 {
10622 PyThreadState* __tstate = wxPyBeginAllowThreads();
10623 (arg1)->DrawPoint((wxPoint const &)*arg2);
10624
10625 wxPyEndAllowThreads(__tstate);
10626 if (PyErr_Occurred()) SWIG_fail;
10627 }
10628 Py_INCREF(Py_None); resultobj = Py_None;
10629 return resultobj;
10630 fail:
10631 return NULL;
10632 }
10633
10634
10635 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10636 PyObject *resultobj;
10637 wxDC *arg1 = (wxDC *) 0 ;
10638 int arg2 ;
10639 int arg3 ;
10640 int arg4 ;
10641 int arg5 ;
10642 PyObject * obj0 = 0 ;
10643 PyObject * obj1 = 0 ;
10644 PyObject * obj2 = 0 ;
10645 PyObject * obj3 = 0 ;
10646 PyObject * obj4 = 0 ;
10647 char *kwnames[] = {
10648 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10649 };
10650
10651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10653 {
10654 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 }
10657 {
10658 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 }
10661 {
10662 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 {
10666 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10667 if (PyErr_Occurred()) SWIG_fail;
10668 }
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10672
10673 wxPyEndAllowThreads(__tstate);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 }
10676 Py_INCREF(Py_None); resultobj = Py_None;
10677 return resultobj;
10678 fail:
10679 return NULL;
10680 }
10681
10682
10683 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10684 PyObject *resultobj;
10685 wxDC *arg1 = (wxDC *) 0 ;
10686 wxPoint *arg2 = 0 ;
10687 wxSize *arg3 = 0 ;
10688 wxPoint temp2 ;
10689 wxSize temp3 ;
10690 PyObject * obj0 = 0 ;
10691 PyObject * obj1 = 0 ;
10692 PyObject * obj2 = 0 ;
10693 char *kwnames[] = {
10694 (char *) "self",(char *) "pt",(char *) "sz", NULL
10695 };
10696
10697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10699 {
10700 arg2 = &temp2;
10701 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10702 }
10703 {
10704 arg3 = &temp3;
10705 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10706 }
10707 {
10708 PyThreadState* __tstate = wxPyBeginAllowThreads();
10709 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
10710
10711 wxPyEndAllowThreads(__tstate);
10712 if (PyErr_Occurred()) SWIG_fail;
10713 }
10714 Py_INCREF(Py_None); resultobj = Py_None;
10715 return resultobj;
10716 fail:
10717 return NULL;
10718 }
10719
10720
10721 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10722 PyObject *resultobj;
10723 wxDC *arg1 = (wxDC *) 0 ;
10724 wxRect *arg2 = 0 ;
10725 wxRect temp2 ;
10726 PyObject * obj0 = 0 ;
10727 PyObject * obj1 = 0 ;
10728 char *kwnames[] = {
10729 (char *) "self",(char *) "rect", NULL
10730 };
10731
10732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10734 {
10735 arg2 = &temp2;
10736 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10737 }
10738 {
10739 PyThreadState* __tstate = wxPyBeginAllowThreads();
10740 (arg1)->DrawRectangle((wxRect const &)*arg2);
10741
10742 wxPyEndAllowThreads(__tstate);
10743 if (PyErr_Occurred()) SWIG_fail;
10744 }
10745 Py_INCREF(Py_None); resultobj = Py_None;
10746 return resultobj;
10747 fail:
10748 return NULL;
10749 }
10750
10751
10752 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10753 PyObject *resultobj;
10754 wxDC *arg1 = (wxDC *) 0 ;
10755 int arg2 ;
10756 int arg3 ;
10757 int arg4 ;
10758 int arg5 ;
10759 double arg6 ;
10760 PyObject * obj0 = 0 ;
10761 PyObject * obj1 = 0 ;
10762 PyObject * obj2 = 0 ;
10763 PyObject * obj3 = 0 ;
10764 PyObject * obj4 = 0 ;
10765 PyObject * obj5 = 0 ;
10766 char *kwnames[] = {
10767 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
10768 };
10769
10770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10772 {
10773 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
10776 {
10777 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
10780 {
10781 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 }
10784 {
10785 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10786 if (PyErr_Occurred()) SWIG_fail;
10787 }
10788 {
10789 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10790 if (PyErr_Occurred()) SWIG_fail;
10791 }
10792 {
10793 PyThreadState* __tstate = wxPyBeginAllowThreads();
10794 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
10795
10796 wxPyEndAllowThreads(__tstate);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 }
10799 Py_INCREF(Py_None); resultobj = Py_None;
10800 return resultobj;
10801 fail:
10802 return NULL;
10803 }
10804
10805
10806 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10807 PyObject *resultobj;
10808 wxDC *arg1 = (wxDC *) 0 ;
10809 wxPoint *arg2 = 0 ;
10810 wxSize *arg3 = 0 ;
10811 double arg4 ;
10812 wxPoint temp2 ;
10813 wxSize temp3 ;
10814 PyObject * obj0 = 0 ;
10815 PyObject * obj1 = 0 ;
10816 PyObject * obj2 = 0 ;
10817 PyObject * obj3 = 0 ;
10818 char *kwnames[] = {
10819 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
10820 };
10821
10822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10824 {
10825 arg2 = &temp2;
10826 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10827 }
10828 {
10829 arg3 = &temp3;
10830 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10831 }
10832 {
10833 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 {
10837 PyThreadState* __tstate = wxPyBeginAllowThreads();
10838 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
10839
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 Py_INCREF(Py_None); resultobj = Py_None;
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10851 PyObject *resultobj;
10852 wxDC *arg1 = (wxDC *) 0 ;
10853 wxRect *arg2 = 0 ;
10854 double arg3 ;
10855 wxRect temp2 ;
10856 PyObject * obj0 = 0 ;
10857 PyObject * obj1 = 0 ;
10858 PyObject * obj2 = 0 ;
10859 char *kwnames[] = {
10860 (char *) "self",(char *) "r",(char *) "radius", NULL
10861 };
10862
10863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
10864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10865 {
10866 arg2 = &temp2;
10867 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10868 }
10869 {
10870 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
10871 if (PyErr_Occurred()) SWIG_fail;
10872 }
10873 {
10874 PyThreadState* __tstate = wxPyBeginAllowThreads();
10875 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
10876
10877 wxPyEndAllowThreads(__tstate);
10878 if (PyErr_Occurred()) SWIG_fail;
10879 }
10880 Py_INCREF(Py_None); resultobj = Py_None;
10881 return resultobj;
10882 fail:
10883 return NULL;
10884 }
10885
10886
10887 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10888 PyObject *resultobj;
10889 wxDC *arg1 = (wxDC *) 0 ;
10890 int arg2 ;
10891 int arg3 ;
10892 int arg4 ;
10893 PyObject * obj0 = 0 ;
10894 PyObject * obj1 = 0 ;
10895 PyObject * obj2 = 0 ;
10896 PyObject * obj3 = 0 ;
10897 char *kwnames[] = {
10898 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
10899 };
10900
10901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10903 {
10904 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10905 if (PyErr_Occurred()) SWIG_fail;
10906 }
10907 {
10908 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
10911 {
10912 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10913 if (PyErr_Occurred()) SWIG_fail;
10914 }
10915 {
10916 PyThreadState* __tstate = wxPyBeginAllowThreads();
10917 (arg1)->DrawCircle(arg2,arg3,arg4);
10918
10919 wxPyEndAllowThreads(__tstate);
10920 if (PyErr_Occurred()) SWIG_fail;
10921 }
10922 Py_INCREF(Py_None); resultobj = Py_None;
10923 return resultobj;
10924 fail:
10925 return NULL;
10926 }
10927
10928
10929 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
10930 PyObject *resultobj;
10931 wxDC *arg1 = (wxDC *) 0 ;
10932 wxPoint *arg2 = 0 ;
10933 int arg3 ;
10934 wxPoint temp2 ;
10935 PyObject * obj0 = 0 ;
10936 PyObject * obj1 = 0 ;
10937 PyObject * obj2 = 0 ;
10938 char *kwnames[] = {
10939 (char *) "self",(char *) "pt",(char *) "radius", NULL
10940 };
10941
10942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10944 {
10945 arg2 = &temp2;
10946 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10947 }
10948 {
10949 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 {
10953 PyThreadState* __tstate = wxPyBeginAllowThreads();
10954 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
10955
10956 wxPyEndAllowThreads(__tstate);
10957 if (PyErr_Occurred()) SWIG_fail;
10958 }
10959 Py_INCREF(Py_None); resultobj = Py_None;
10960 return resultobj;
10961 fail:
10962 return NULL;
10963 }
10964
10965
10966 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10967 PyObject *resultobj;
10968 wxDC *arg1 = (wxDC *) 0 ;
10969 int arg2 ;
10970 int arg3 ;
10971 int arg4 ;
10972 int arg5 ;
10973 PyObject * obj0 = 0 ;
10974 PyObject * obj1 = 0 ;
10975 PyObject * obj2 = 0 ;
10976 PyObject * obj3 = 0 ;
10977 PyObject * obj4 = 0 ;
10978 char *kwnames[] = {
10979 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10980 };
10981
10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10984 {
10985 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 {
10989 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 {
10993 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 }
10996 {
10997 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 {
11001 PyThreadState* __tstate = wxPyBeginAllowThreads();
11002 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11003
11004 wxPyEndAllowThreads(__tstate);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 }
11007 Py_INCREF(Py_None); resultobj = Py_None;
11008 return resultobj;
11009 fail:
11010 return NULL;
11011 }
11012
11013
11014 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11015 PyObject *resultobj;
11016 wxDC *arg1 = (wxDC *) 0 ;
11017 wxPoint *arg2 = 0 ;
11018 wxSize *arg3 = 0 ;
11019 wxPoint temp2 ;
11020 wxSize temp3 ;
11021 PyObject * obj0 = 0 ;
11022 PyObject * obj1 = 0 ;
11023 PyObject * obj2 = 0 ;
11024 char *kwnames[] = {
11025 (char *) "self",(char *) "pt",(char *) "sz", NULL
11026 };
11027
11028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11030 {
11031 arg2 = &temp2;
11032 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11033 }
11034 {
11035 arg3 = &temp3;
11036 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11037 }
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11041
11042 wxPyEndAllowThreads(__tstate);
11043 if (PyErr_Occurred()) SWIG_fail;
11044 }
11045 Py_INCREF(Py_None); resultobj = Py_None;
11046 return resultobj;
11047 fail:
11048 return NULL;
11049 }
11050
11051
11052 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11053 PyObject *resultobj;
11054 wxDC *arg1 = (wxDC *) 0 ;
11055 wxRect *arg2 = 0 ;
11056 wxRect temp2 ;
11057 PyObject * obj0 = 0 ;
11058 PyObject * obj1 = 0 ;
11059 char *kwnames[] = {
11060 (char *) "self",(char *) "rect", NULL
11061 };
11062
11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11065 {
11066 arg2 = &temp2;
11067 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11068 }
11069 {
11070 PyThreadState* __tstate = wxPyBeginAllowThreads();
11071 (arg1)->DrawEllipse((wxRect const &)*arg2);
11072
11073 wxPyEndAllowThreads(__tstate);
11074 if (PyErr_Occurred()) SWIG_fail;
11075 }
11076 Py_INCREF(Py_None); resultobj = Py_None;
11077 return resultobj;
11078 fail:
11079 return NULL;
11080 }
11081
11082
11083 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11084 PyObject *resultobj;
11085 wxDC *arg1 = (wxDC *) 0 ;
11086 wxIcon *arg2 = 0 ;
11087 int arg3 ;
11088 int arg4 ;
11089 PyObject * obj0 = 0 ;
11090 PyObject * obj1 = 0 ;
11091 PyObject * obj2 = 0 ;
11092 PyObject * obj3 = 0 ;
11093 char *kwnames[] = {
11094 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11095 };
11096
11097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11099 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11100 if (arg2 == NULL) {
11101 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11102 }
11103 {
11104 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 {
11108 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11109 if (PyErr_Occurred()) SWIG_fail;
11110 }
11111 {
11112 PyThreadState* __tstate = wxPyBeginAllowThreads();
11113 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11114
11115 wxPyEndAllowThreads(__tstate);
11116 if (PyErr_Occurred()) SWIG_fail;
11117 }
11118 Py_INCREF(Py_None); resultobj = Py_None;
11119 return resultobj;
11120 fail:
11121 return NULL;
11122 }
11123
11124
11125 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11126 PyObject *resultobj;
11127 wxDC *arg1 = (wxDC *) 0 ;
11128 wxIcon *arg2 = 0 ;
11129 wxPoint *arg3 = 0 ;
11130 wxPoint temp3 ;
11131 PyObject * obj0 = 0 ;
11132 PyObject * obj1 = 0 ;
11133 PyObject * obj2 = 0 ;
11134 char *kwnames[] = {
11135 (char *) "self",(char *) "icon",(char *) "pt", NULL
11136 };
11137
11138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11140 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11141 if (arg2 == NULL) {
11142 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11143 }
11144 {
11145 arg3 = &temp3;
11146 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11147 }
11148 {
11149 PyThreadState* __tstate = wxPyBeginAllowThreads();
11150 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11151
11152 wxPyEndAllowThreads(__tstate);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 }
11155 Py_INCREF(Py_None); resultobj = Py_None;
11156 return resultobj;
11157 fail:
11158 return NULL;
11159 }
11160
11161
11162 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11163 PyObject *resultobj;
11164 wxDC *arg1 = (wxDC *) 0 ;
11165 wxBitmap *arg2 = 0 ;
11166 int arg3 ;
11167 int arg4 ;
11168 bool arg5 = (bool) False ;
11169 PyObject * obj0 = 0 ;
11170 PyObject * obj1 = 0 ;
11171 PyObject * obj2 = 0 ;
11172 PyObject * obj3 = 0 ;
11173 PyObject * obj4 = 0 ;
11174 char *kwnames[] = {
11175 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11176 };
11177
11178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11180 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11181 if (arg2 == NULL) {
11182 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11183 }
11184 {
11185 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11186 if (PyErr_Occurred()) SWIG_fail;
11187 }
11188 {
11189 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11190 if (PyErr_Occurred()) SWIG_fail;
11191 }
11192 if (obj4) {
11193 {
11194 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 }
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
11200 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11201
11202 wxPyEndAllowThreads(__tstate);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 Py_INCREF(Py_None); resultobj = Py_None;
11206 return resultobj;
11207 fail:
11208 return NULL;
11209 }
11210
11211
11212 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11213 PyObject *resultobj;
11214 wxDC *arg1 = (wxDC *) 0 ;
11215 wxBitmap *arg2 = 0 ;
11216 wxPoint *arg3 = 0 ;
11217 bool arg4 = (bool) False ;
11218 wxPoint temp3 ;
11219 PyObject * obj0 = 0 ;
11220 PyObject * obj1 = 0 ;
11221 PyObject * obj2 = 0 ;
11222 PyObject * obj3 = 0 ;
11223 char *kwnames[] = {
11224 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11225 };
11226
11227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11229 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11230 if (arg2 == NULL) {
11231 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11232 }
11233 {
11234 arg3 = &temp3;
11235 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11236 }
11237 if (obj3) {
11238 {
11239 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 }
11242 }
11243 {
11244 PyThreadState* __tstate = wxPyBeginAllowThreads();
11245 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11246
11247 wxPyEndAllowThreads(__tstate);
11248 if (PyErr_Occurred()) SWIG_fail;
11249 }
11250 Py_INCREF(Py_None); resultobj = Py_None;
11251 return resultobj;
11252 fail:
11253 return NULL;
11254 }
11255
11256
11257 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11258 PyObject *resultobj;
11259 wxDC *arg1 = (wxDC *) 0 ;
11260 wxString *arg2 = 0 ;
11261 int arg3 ;
11262 int arg4 ;
11263 bool temp2 = False ;
11264 PyObject * obj0 = 0 ;
11265 PyObject * obj1 = 0 ;
11266 PyObject * obj2 = 0 ;
11267 PyObject * obj3 = 0 ;
11268 char *kwnames[] = {
11269 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11270 };
11271
11272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11274 {
11275 arg2 = wxString_in_helper(obj1);
11276 if (arg2 == NULL) SWIG_fail;
11277 temp2 = True;
11278 }
11279 {
11280 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11281 if (PyErr_Occurred()) SWIG_fail;
11282 }
11283 {
11284 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
11289 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11290
11291 wxPyEndAllowThreads(__tstate);
11292 if (PyErr_Occurred()) SWIG_fail;
11293 }
11294 Py_INCREF(Py_None); resultobj = Py_None;
11295 {
11296 if (temp2)
11297 delete arg2;
11298 }
11299 return resultobj;
11300 fail:
11301 {
11302 if (temp2)
11303 delete arg2;
11304 }
11305 return NULL;
11306 }
11307
11308
11309 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11310 PyObject *resultobj;
11311 wxDC *arg1 = (wxDC *) 0 ;
11312 wxString *arg2 = 0 ;
11313 wxPoint *arg3 = 0 ;
11314 bool temp2 = False ;
11315 wxPoint temp3 ;
11316 PyObject * obj0 = 0 ;
11317 PyObject * obj1 = 0 ;
11318 PyObject * obj2 = 0 ;
11319 char *kwnames[] = {
11320 (char *) "self",(char *) "text",(char *) "pt", NULL
11321 };
11322
11323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11325 {
11326 arg2 = wxString_in_helper(obj1);
11327 if (arg2 == NULL) SWIG_fail;
11328 temp2 = True;
11329 }
11330 {
11331 arg3 = &temp3;
11332 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11333 }
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11337
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 Py_INCREF(Py_None); resultobj = Py_None;
11342 {
11343 if (temp2)
11344 delete arg2;
11345 }
11346 return resultobj;
11347 fail:
11348 {
11349 if (temp2)
11350 delete arg2;
11351 }
11352 return NULL;
11353 }
11354
11355
11356 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11357 PyObject *resultobj;
11358 wxDC *arg1 = (wxDC *) 0 ;
11359 wxString *arg2 = 0 ;
11360 int arg3 ;
11361 int arg4 ;
11362 double arg5 ;
11363 bool temp2 = False ;
11364 PyObject * obj0 = 0 ;
11365 PyObject * obj1 = 0 ;
11366 PyObject * obj2 = 0 ;
11367 PyObject * obj3 = 0 ;
11368 PyObject * obj4 = 0 ;
11369 char *kwnames[] = {
11370 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11371 };
11372
11373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11375 {
11376 arg2 = wxString_in_helper(obj1);
11377 if (arg2 == NULL) SWIG_fail;
11378 temp2 = True;
11379 }
11380 {
11381 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 {
11385 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11386 if (PyErr_Occurred()) SWIG_fail;
11387 }
11388 {
11389 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11390 if (PyErr_Occurred()) SWIG_fail;
11391 }
11392 {
11393 PyThreadState* __tstate = wxPyBeginAllowThreads();
11394 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11395
11396 wxPyEndAllowThreads(__tstate);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 }
11399 Py_INCREF(Py_None); resultobj = Py_None;
11400 {
11401 if (temp2)
11402 delete arg2;
11403 }
11404 return resultobj;
11405 fail:
11406 {
11407 if (temp2)
11408 delete arg2;
11409 }
11410 return NULL;
11411 }
11412
11413
11414 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11415 PyObject *resultobj;
11416 wxDC *arg1 = (wxDC *) 0 ;
11417 wxString *arg2 = 0 ;
11418 wxPoint *arg3 = 0 ;
11419 double arg4 ;
11420 bool temp2 = False ;
11421 wxPoint temp3 ;
11422 PyObject * obj0 = 0 ;
11423 PyObject * obj1 = 0 ;
11424 PyObject * obj2 = 0 ;
11425 PyObject * obj3 = 0 ;
11426 char *kwnames[] = {
11427 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11428 };
11429
11430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11432 {
11433 arg2 = wxString_in_helper(obj1);
11434 if (arg2 == NULL) SWIG_fail;
11435 temp2 = True;
11436 }
11437 {
11438 arg3 = &temp3;
11439 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11440 }
11441 {
11442 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 {
11446 PyThreadState* __tstate = wxPyBeginAllowThreads();
11447 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11448
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
11452 Py_INCREF(Py_None); resultobj = Py_None;
11453 {
11454 if (temp2)
11455 delete arg2;
11456 }
11457 return resultobj;
11458 fail:
11459 {
11460 if (temp2)
11461 delete arg2;
11462 }
11463 return NULL;
11464 }
11465
11466
11467 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11468 PyObject *resultobj;
11469 wxDC *arg1 = (wxDC *) 0 ;
11470 int arg2 ;
11471 int arg3 ;
11472 int arg4 ;
11473 int arg5 ;
11474 wxDC *arg6 = (wxDC *) 0 ;
11475 int arg7 ;
11476 int arg8 ;
11477 int arg9 = (int) wxCOPY ;
11478 bool arg10 = (bool) False ;
11479 int arg11 = (int) -1 ;
11480 int arg12 = (int) -1 ;
11481 bool result;
11482 PyObject * obj0 = 0 ;
11483 PyObject * obj1 = 0 ;
11484 PyObject * obj2 = 0 ;
11485 PyObject * obj3 = 0 ;
11486 PyObject * obj4 = 0 ;
11487 PyObject * obj5 = 0 ;
11488 PyObject * obj6 = 0 ;
11489 PyObject * obj7 = 0 ;
11490 PyObject * obj8 = 0 ;
11491 PyObject * obj9 = 0 ;
11492 PyObject * obj10 = 0 ;
11493 PyObject * obj11 = 0 ;
11494 char *kwnames[] = {
11495 (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
11496 };
11497
11498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
11499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11500 {
11501 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 {
11505 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 }
11508 {
11509 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 }
11512 {
11513 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11514 if (PyErr_Occurred()) SWIG_fail;
11515 }
11516 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11517 {
11518 arg7 = (int) SWIG_PyObj_AsInt(obj6);
11519 if (PyErr_Occurred()) SWIG_fail;
11520 }
11521 {
11522 arg8 = (int) SWIG_PyObj_AsInt(obj7);
11523 if (PyErr_Occurred()) SWIG_fail;
11524 }
11525 if (obj8) {
11526 {
11527 arg9 = (int) SWIG_PyObj_AsInt(obj8);
11528 if (PyErr_Occurred()) SWIG_fail;
11529 }
11530 }
11531 if (obj9) {
11532 {
11533 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 }
11537 if (obj10) {
11538 {
11539 arg11 = (int) SWIG_PyObj_AsInt(obj10);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 }
11543 if (obj11) {
11544 {
11545 arg12 = (int) SWIG_PyObj_AsInt(obj11);
11546 if (PyErr_Occurred()) SWIG_fail;
11547 }
11548 }
11549 {
11550 PyThreadState* __tstate = wxPyBeginAllowThreads();
11551 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11552
11553 wxPyEndAllowThreads(__tstate);
11554 if (PyErr_Occurred()) SWIG_fail;
11555 }
11556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11557 return resultobj;
11558 fail:
11559 return NULL;
11560 }
11561
11562
11563 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11564 PyObject *resultobj;
11565 wxDC *arg1 = (wxDC *) 0 ;
11566 wxPoint *arg2 = 0 ;
11567 wxSize *arg3 = 0 ;
11568 wxDC *arg4 = (wxDC *) 0 ;
11569 wxPoint *arg5 = 0 ;
11570 int arg6 = (int) wxCOPY ;
11571 bool arg7 = (bool) False ;
11572 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11573 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11574 bool result;
11575 wxPoint temp2 ;
11576 wxSize temp3 ;
11577 wxPoint temp5 ;
11578 wxPoint temp8 ;
11579 PyObject * obj0 = 0 ;
11580 PyObject * obj1 = 0 ;
11581 PyObject * obj2 = 0 ;
11582 PyObject * obj3 = 0 ;
11583 PyObject * obj4 = 0 ;
11584 PyObject * obj5 = 0 ;
11585 PyObject * obj6 = 0 ;
11586 PyObject * obj7 = 0 ;
11587 char *kwnames[] = {
11588 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11589 };
11590
11591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11593 {
11594 arg2 = &temp2;
11595 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11596 }
11597 {
11598 arg3 = &temp3;
11599 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11600 }
11601 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11602 {
11603 arg5 = &temp5;
11604 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11605 }
11606 if (obj5) {
11607 {
11608 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11609 if (PyErr_Occurred()) SWIG_fail;
11610 }
11611 }
11612 if (obj6) {
11613 {
11614 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
11617 }
11618 if (obj7) {
11619 {
11620 arg8 = &temp8;
11621 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11622 }
11623 }
11624 {
11625 PyThreadState* __tstate = wxPyBeginAllowThreads();
11626 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11627
11628 wxPyEndAllowThreads(__tstate);
11629 if (PyErr_Occurred()) SWIG_fail;
11630 }
11631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11632 return resultobj;
11633 fail:
11634 return NULL;
11635 }
11636
11637
11638 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11639 PyObject *resultobj;
11640 wxDC *arg1 = (wxDC *) 0 ;
11641 int arg2 ;
11642 wxPoint *arg3 = (wxPoint *) 0 ;
11643 int arg4 = (int) 0 ;
11644 int arg5 = (int) 0 ;
11645 PyObject * obj0 = 0 ;
11646 PyObject * obj1 = 0 ;
11647 PyObject * obj2 = 0 ;
11648 PyObject * obj3 = 0 ;
11649 char *kwnames[] = {
11650 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11651 };
11652
11653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11655 {
11656 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11657 if (arg3 == NULL) SWIG_fail;
11658 }
11659 if (obj2) {
11660 {
11661 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11662 if (PyErr_Occurred()) SWIG_fail;
11663 }
11664 }
11665 if (obj3) {
11666 {
11667 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11668 if (PyErr_Occurred()) SWIG_fail;
11669 }
11670 }
11671 {
11672 PyThreadState* __tstate = wxPyBeginAllowThreads();
11673 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11674
11675 wxPyEndAllowThreads(__tstate);
11676 if (PyErr_Occurred()) SWIG_fail;
11677 }
11678 Py_INCREF(Py_None); resultobj = Py_None;
11679 {
11680 if (arg3) delete [] arg3;
11681 }
11682 return resultobj;
11683 fail:
11684 {
11685 if (arg3) delete [] arg3;
11686 }
11687 return NULL;
11688 }
11689
11690
11691 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
11692 PyObject *resultobj;
11693 wxDC *arg1 = (wxDC *) 0 ;
11694 int arg2 ;
11695 wxPoint *arg3 = (wxPoint *) 0 ;
11696 int arg4 = (int) 0 ;
11697 int arg5 = (int) 0 ;
11698 int arg6 = (int) wxODDEVEN_RULE ;
11699 PyObject * obj0 = 0 ;
11700 PyObject * obj1 = 0 ;
11701 PyObject * obj2 = 0 ;
11702 PyObject * obj3 = 0 ;
11703 PyObject * obj4 = 0 ;
11704 char *kwnames[] = {
11705 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
11706 };
11707
11708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11710 {
11711 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11712 if (arg3 == NULL) SWIG_fail;
11713 }
11714 if (obj2) {
11715 {
11716 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11717 if (PyErr_Occurred()) SWIG_fail;
11718 }
11719 }
11720 if (obj3) {
11721 {
11722 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11723 if (PyErr_Occurred()) SWIG_fail;
11724 }
11725 }
11726 if (obj4) {
11727 {
11728 arg6 = (int) SWIG_PyObj_AsInt(obj4);
11729 if (PyErr_Occurred()) SWIG_fail;
11730 }
11731 }
11732 {
11733 PyThreadState* __tstate = wxPyBeginAllowThreads();
11734 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
11735
11736 wxPyEndAllowThreads(__tstate);
11737 if (PyErr_Occurred()) SWIG_fail;
11738 }
11739 Py_INCREF(Py_None); resultobj = Py_None;
11740 {
11741 if (arg3) delete [] arg3;
11742 }
11743 return resultobj;
11744 fail:
11745 {
11746 if (arg3) delete [] arg3;
11747 }
11748 return NULL;
11749 }
11750
11751
11752 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11753 PyObject *resultobj;
11754 wxDC *arg1 = (wxDC *) 0 ;
11755 wxString *arg2 = 0 ;
11756 wxRect *arg3 = 0 ;
11757 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11758 int arg5 = (int) -1 ;
11759 bool temp2 = False ;
11760 wxRect temp3 ;
11761 PyObject * obj0 = 0 ;
11762 PyObject * obj1 = 0 ;
11763 PyObject * obj2 = 0 ;
11764 PyObject * obj3 = 0 ;
11765 PyObject * obj4 = 0 ;
11766 char *kwnames[] = {
11767 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11768 };
11769
11770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11772 {
11773 arg2 = wxString_in_helper(obj1);
11774 if (arg2 == NULL) SWIG_fail;
11775 temp2 = True;
11776 }
11777 {
11778 arg3 = &temp3;
11779 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
11780 }
11781 if (obj3) {
11782 {
11783 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 }
11787 if (obj4) {
11788 {
11789 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11790 if (PyErr_Occurred()) SWIG_fail;
11791 }
11792 }
11793 {
11794 PyThreadState* __tstate = wxPyBeginAllowThreads();
11795 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
11796
11797 wxPyEndAllowThreads(__tstate);
11798 if (PyErr_Occurred()) SWIG_fail;
11799 }
11800 Py_INCREF(Py_None); resultobj = Py_None;
11801 {
11802 if (temp2)
11803 delete arg2;
11804 }
11805 return resultobj;
11806 fail:
11807 {
11808 if (temp2)
11809 delete arg2;
11810 }
11811 return NULL;
11812 }
11813
11814
11815 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11816 PyObject *resultobj;
11817 wxDC *arg1 = (wxDC *) 0 ;
11818 wxString *arg2 = 0 ;
11819 wxBitmap *arg3 = 0 ;
11820 wxRect *arg4 = 0 ;
11821 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11822 int arg6 = (int) -1 ;
11823 wxRect result;
11824 bool temp2 = False ;
11825 wxRect temp4 ;
11826 PyObject * obj0 = 0 ;
11827 PyObject * obj1 = 0 ;
11828 PyObject * obj2 = 0 ;
11829 PyObject * obj3 = 0 ;
11830 PyObject * obj4 = 0 ;
11831 PyObject * obj5 = 0 ;
11832 char *kwnames[] = {
11833 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11834 };
11835
11836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11838 {
11839 arg2 = wxString_in_helper(obj1);
11840 if (arg2 == NULL) SWIG_fail;
11841 temp2 = True;
11842 }
11843 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11844 if (arg3 == NULL) {
11845 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11846 }
11847 {
11848 arg4 = &temp4;
11849 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
11850 }
11851 if (obj4) {
11852 {
11853 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 }
11856 }
11857 if (obj5) {
11858 {
11859 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 }
11863 {
11864 PyThreadState* __tstate = wxPyBeginAllowThreads();
11865 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
11866
11867 wxPyEndAllowThreads(__tstate);
11868 if (PyErr_Occurred()) SWIG_fail;
11869 }
11870 {
11871 wxRect * resultptr;
11872 resultptr = new wxRect((wxRect &) result);
11873 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11874 }
11875 {
11876 if (temp2)
11877 delete arg2;
11878 }
11879 return resultobj;
11880 fail:
11881 {
11882 if (temp2)
11883 delete arg2;
11884 }
11885 return NULL;
11886 }
11887
11888
11889 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
11890 PyObject *resultobj;
11891 wxDC *arg1 = (wxDC *) 0 ;
11892 int arg2 ;
11893 wxPoint *arg3 = (wxPoint *) 0 ;
11894 PyObject * obj0 = 0 ;
11895 PyObject * obj1 = 0 ;
11896 char *kwnames[] = {
11897 (char *) "self",(char *) "points", NULL
11898 };
11899
11900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
11901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11902 {
11903 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11904 if (arg3 == NULL) SWIG_fail;
11905 }
11906 {
11907 PyThreadState* __tstate = wxPyBeginAllowThreads();
11908 (arg1)->DrawSpline(arg2,arg3);
11909
11910 wxPyEndAllowThreads(__tstate);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 Py_INCREF(Py_None); resultobj = Py_None;
11914 {
11915 if (arg3) delete [] arg3;
11916 }
11917 return resultobj;
11918 fail:
11919 {
11920 if (arg3) delete [] arg3;
11921 }
11922 return NULL;
11923 }
11924
11925
11926 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11927 PyObject *resultobj;
11928 wxDC *arg1 = (wxDC *) 0 ;
11929 PyObject * obj0 = 0 ;
11930 char *kwnames[] = {
11931 (char *) "self", NULL
11932 };
11933
11934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
11935 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11936 {
11937 PyThreadState* __tstate = wxPyBeginAllowThreads();
11938 (arg1)->Clear();
11939
11940 wxPyEndAllowThreads(__tstate);
11941 if (PyErr_Occurred()) SWIG_fail;
11942 }
11943 Py_INCREF(Py_None); resultobj = Py_None;
11944 return resultobj;
11945 fail:
11946 return NULL;
11947 }
11948
11949
11950 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11951 PyObject *resultobj;
11952 wxDC *arg1 = (wxDC *) 0 ;
11953 wxString *arg2 = 0 ;
11954 bool result;
11955 bool temp2 = False ;
11956 PyObject * obj0 = 0 ;
11957 PyObject * obj1 = 0 ;
11958 char *kwnames[] = {
11959 (char *) "self",(char *) "message", NULL
11960 };
11961
11962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
11963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11964 {
11965 arg2 = wxString_in_helper(obj1);
11966 if (arg2 == NULL) SWIG_fail;
11967 temp2 = True;
11968 }
11969 {
11970 PyThreadState* __tstate = wxPyBeginAllowThreads();
11971 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
11972
11973 wxPyEndAllowThreads(__tstate);
11974 if (PyErr_Occurred()) SWIG_fail;
11975 }
11976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11977 {
11978 if (temp2)
11979 delete arg2;
11980 }
11981 return resultobj;
11982 fail:
11983 {
11984 if (temp2)
11985 delete arg2;
11986 }
11987 return NULL;
11988 }
11989
11990
11991 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11992 PyObject *resultobj;
11993 wxDC *arg1 = (wxDC *) 0 ;
11994 PyObject * obj0 = 0 ;
11995 char *kwnames[] = {
11996 (char *) "self", NULL
11997 };
11998
11999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12001 {
12002 PyThreadState* __tstate = wxPyBeginAllowThreads();
12003 (arg1)->EndDoc();
12004
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 Py_INCREF(Py_None); resultobj = Py_None;
12009 return resultobj;
12010 fail:
12011 return NULL;
12012 }
12013
12014
12015 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12016 PyObject *resultobj;
12017 wxDC *arg1 = (wxDC *) 0 ;
12018 PyObject * obj0 = 0 ;
12019 char *kwnames[] = {
12020 (char *) "self", NULL
12021 };
12022
12023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",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 (arg1)->StartPage();
12028
12029 wxPyEndAllowThreads(__tstate);
12030 if (PyErr_Occurred()) SWIG_fail;
12031 }
12032 Py_INCREF(Py_None); resultobj = Py_None;
12033 return resultobj;
12034 fail:
12035 return NULL;
12036 }
12037
12038
12039 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12040 PyObject *resultobj;
12041 wxDC *arg1 = (wxDC *) 0 ;
12042 PyObject * obj0 = 0 ;
12043 char *kwnames[] = {
12044 (char *) "self", NULL
12045 };
12046
12047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12049 {
12050 PyThreadState* __tstate = wxPyBeginAllowThreads();
12051 (arg1)->EndPage();
12052
12053 wxPyEndAllowThreads(__tstate);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 Py_INCREF(Py_None); resultobj = Py_None;
12057 return resultobj;
12058 fail:
12059 return NULL;
12060 }
12061
12062
12063 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12064 PyObject *resultobj;
12065 wxDC *arg1 = (wxDC *) 0 ;
12066 wxFont *arg2 = 0 ;
12067 PyObject * obj0 = 0 ;
12068 PyObject * obj1 = 0 ;
12069 char *kwnames[] = {
12070 (char *) "self",(char *) "font", NULL
12071 };
12072
12073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12075 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12076 if (arg2 == NULL) {
12077 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12078 }
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->SetFont((wxFont const &)*arg2);
12082
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 Py_INCREF(Py_None); resultobj = Py_None;
12087 return resultobj;
12088 fail:
12089 return NULL;
12090 }
12091
12092
12093 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj;
12095 wxDC *arg1 = (wxDC *) 0 ;
12096 wxPen *arg2 = 0 ;
12097 PyObject * obj0 = 0 ;
12098 PyObject * obj1 = 0 ;
12099 char *kwnames[] = {
12100 (char *) "self",(char *) "pen", NULL
12101 };
12102
12103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12105 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12106 if (arg2 == NULL) {
12107 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12108 }
12109 {
12110 PyThreadState* __tstate = wxPyBeginAllowThreads();
12111 (arg1)->SetPen((wxPen const &)*arg2);
12112
12113 wxPyEndAllowThreads(__tstate);
12114 if (PyErr_Occurred()) SWIG_fail;
12115 }
12116 Py_INCREF(Py_None); resultobj = Py_None;
12117 return resultobj;
12118 fail:
12119 return NULL;
12120 }
12121
12122
12123 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12124 PyObject *resultobj;
12125 wxDC *arg1 = (wxDC *) 0 ;
12126 wxBrush *arg2 = 0 ;
12127 PyObject * obj0 = 0 ;
12128 PyObject * obj1 = 0 ;
12129 char *kwnames[] = {
12130 (char *) "self",(char *) "brush", NULL
12131 };
12132
12133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12135 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12136 if (arg2 == NULL) {
12137 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12138 }
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 (arg1)->SetBrush((wxBrush const &)*arg2);
12142
12143 wxPyEndAllowThreads(__tstate);
12144 if (PyErr_Occurred()) SWIG_fail;
12145 }
12146 Py_INCREF(Py_None); resultobj = Py_None;
12147 return resultobj;
12148 fail:
12149 return NULL;
12150 }
12151
12152
12153 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12154 PyObject *resultobj;
12155 wxDC *arg1 = (wxDC *) 0 ;
12156 wxBrush *arg2 = 0 ;
12157 PyObject * obj0 = 0 ;
12158 PyObject * obj1 = 0 ;
12159 char *kwnames[] = {
12160 (char *) "self",(char *) "brush", NULL
12161 };
12162
12163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12165 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12166 if (arg2 == NULL) {
12167 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12168 }
12169 {
12170 PyThreadState* __tstate = wxPyBeginAllowThreads();
12171 (arg1)->SetBackground((wxBrush const &)*arg2);
12172
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
12176 Py_INCREF(Py_None); resultobj = Py_None;
12177 return resultobj;
12178 fail:
12179 return NULL;
12180 }
12181
12182
12183 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12184 PyObject *resultobj;
12185 wxDC *arg1 = (wxDC *) 0 ;
12186 int arg2 ;
12187 PyObject * obj0 = 0 ;
12188 PyObject * obj1 = 0 ;
12189 char *kwnames[] = {
12190 (char *) "self",(char *) "mode", NULL
12191 };
12192
12193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12195 {
12196 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12197 if (PyErr_Occurred()) SWIG_fail;
12198 }
12199 {
12200 PyThreadState* __tstate = wxPyBeginAllowThreads();
12201 (arg1)->SetBackgroundMode(arg2);
12202
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 Py_INCREF(Py_None); resultobj = Py_None;
12207 return resultobj;
12208 fail:
12209 return NULL;
12210 }
12211
12212
12213 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12214 PyObject *resultobj;
12215 wxDC *arg1 = (wxDC *) 0 ;
12216 wxPalette *arg2 = 0 ;
12217 PyObject * obj0 = 0 ;
12218 PyObject * obj1 = 0 ;
12219 char *kwnames[] = {
12220 (char *) "self",(char *) "palette", NULL
12221 };
12222
12223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12225 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12226 if (arg2 == NULL) {
12227 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12228 }
12229 {
12230 PyThreadState* __tstate = wxPyBeginAllowThreads();
12231 (arg1)->SetPalette((wxPalette const &)*arg2);
12232
12233 wxPyEndAllowThreads(__tstate);
12234 if (PyErr_Occurred()) SWIG_fail;
12235 }
12236 Py_INCREF(Py_None); resultobj = Py_None;
12237 return resultobj;
12238 fail:
12239 return NULL;
12240 }
12241
12242
12243 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12244 PyObject *resultobj;
12245 wxDC *arg1 = (wxDC *) 0 ;
12246 int arg2 ;
12247 int arg3 ;
12248 int arg4 ;
12249 int arg5 ;
12250 PyObject * obj0 = 0 ;
12251 PyObject * obj1 = 0 ;
12252 PyObject * obj2 = 0 ;
12253 PyObject * obj3 = 0 ;
12254 PyObject * obj4 = 0 ;
12255 char *kwnames[] = {
12256 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12257 };
12258
12259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12261 {
12262 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12263 if (PyErr_Occurred()) SWIG_fail;
12264 }
12265 {
12266 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12267 if (PyErr_Occurred()) SWIG_fail;
12268 }
12269 {
12270 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 {
12274 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12275 if (PyErr_Occurred()) SWIG_fail;
12276 }
12277 {
12278 PyThreadState* __tstate = wxPyBeginAllowThreads();
12279 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12280
12281 wxPyEndAllowThreads(__tstate);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 }
12284 Py_INCREF(Py_None); resultobj = Py_None;
12285 return resultobj;
12286 fail:
12287 return NULL;
12288 }
12289
12290
12291 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12292 PyObject *resultobj;
12293 wxDC *arg1 = (wxDC *) 0 ;
12294 wxPoint *arg2 = 0 ;
12295 wxSize *arg3 = 0 ;
12296 wxPoint temp2 ;
12297 wxSize temp3 ;
12298 PyObject * obj0 = 0 ;
12299 PyObject * obj1 = 0 ;
12300 PyObject * obj2 = 0 ;
12301 char *kwnames[] = {
12302 (char *) "self",(char *) "pt",(char *) "sz", NULL
12303 };
12304
12305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12307 {
12308 arg2 = &temp2;
12309 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12310 }
12311 {
12312 arg3 = &temp3;
12313 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12314 }
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
12317 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12318
12319 wxPyEndAllowThreads(__tstate);
12320 if (PyErr_Occurred()) SWIG_fail;
12321 }
12322 Py_INCREF(Py_None); resultobj = Py_None;
12323 return resultobj;
12324 fail:
12325 return NULL;
12326 }
12327
12328
12329 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12330 PyObject *resultobj;
12331 wxDC *arg1 = (wxDC *) 0 ;
12332 wxRect *arg2 = 0 ;
12333 wxRect temp2 ;
12334 PyObject * obj0 = 0 ;
12335 PyObject * obj1 = 0 ;
12336 char *kwnames[] = {
12337 (char *) "self",(char *) "rect", NULL
12338 };
12339
12340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12342 {
12343 arg2 = &temp2;
12344 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12345 }
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12349
12350 wxPyEndAllowThreads(__tstate);
12351 if (PyErr_Occurred()) SWIG_fail;
12352 }
12353 Py_INCREF(Py_None); resultobj = Py_None;
12354 return resultobj;
12355 fail:
12356 return NULL;
12357 }
12358
12359
12360 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12361 PyObject *resultobj;
12362 wxDC *arg1 = (wxDC *) 0 ;
12363 wxRegion *arg2 = 0 ;
12364 PyObject * obj0 = 0 ;
12365 PyObject * obj1 = 0 ;
12366 char *kwnames[] = {
12367 (char *) "self",(char *) "region", NULL
12368 };
12369
12370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12372 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12373 if (arg2 == NULL) {
12374 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12375 }
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
12378 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12379
12380 wxPyEndAllowThreads(__tstate);
12381 if (PyErr_Occurred()) SWIG_fail;
12382 }
12383 Py_INCREF(Py_None); resultobj = Py_None;
12384 return resultobj;
12385 fail:
12386 return NULL;
12387 }
12388
12389
12390 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12391 PyObject *resultobj;
12392 wxDC *arg1 = (wxDC *) 0 ;
12393 PyObject * obj0 = 0 ;
12394 char *kwnames[] = {
12395 (char *) "self", NULL
12396 };
12397
12398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12400 {
12401 PyThreadState* __tstate = wxPyBeginAllowThreads();
12402 (arg1)->DestroyClippingRegion();
12403
12404 wxPyEndAllowThreads(__tstate);
12405 if (PyErr_Occurred()) SWIG_fail;
12406 }
12407 Py_INCREF(Py_None); resultobj = Py_None;
12408 return resultobj;
12409 fail:
12410 return NULL;
12411 }
12412
12413
12414 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12415 PyObject *resultobj;
12416 wxDC *arg1 = (wxDC *) 0 ;
12417 int *arg2 = (int *) 0 ;
12418 int *arg3 = (int *) 0 ;
12419 int *arg4 = (int *) 0 ;
12420 int *arg5 = (int *) 0 ;
12421 int temp2 ;
12422 int temp3 ;
12423 int temp4 ;
12424 int temp5 ;
12425 PyObject * obj0 = 0 ;
12426 char *kwnames[] = {
12427 (char *) "self", NULL
12428 };
12429
12430 arg2 = &temp2;
12431 arg3 = &temp3;
12432 arg4 = &temp4;
12433 arg5 = &temp5;
12434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12436 {
12437 PyThreadState* __tstate = wxPyBeginAllowThreads();
12438 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12439
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 Py_INCREF(Py_None); resultobj = Py_None;
12444 {
12445 PyObject *o = PyInt_FromLong((long) (*arg2));
12446 resultobj = t_output_helper(resultobj,o);
12447 }
12448 {
12449 PyObject *o = PyInt_FromLong((long) (*arg3));
12450 resultobj = t_output_helper(resultobj,o);
12451 }
12452 {
12453 PyObject *o = PyInt_FromLong((long) (*arg4));
12454 resultobj = t_output_helper(resultobj,o);
12455 }
12456 {
12457 PyObject *o = PyInt_FromLong((long) (*arg5));
12458 resultobj = t_output_helper(resultobj,o);
12459 }
12460 return resultobj;
12461 fail:
12462 return NULL;
12463 }
12464
12465
12466 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12467 PyObject *resultobj;
12468 wxDC *arg1 = (wxDC *) 0 ;
12469 wxRect result;
12470 PyObject * obj0 = 0 ;
12471 char *kwnames[] = {
12472 (char *) "self", NULL
12473 };
12474
12475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12477 {
12478 PyThreadState* __tstate = wxPyBeginAllowThreads();
12479 result = wxDC_GetClippingRect(arg1);
12480
12481 wxPyEndAllowThreads(__tstate);
12482 if (PyErr_Occurred()) SWIG_fail;
12483 }
12484 {
12485 wxRect * resultptr;
12486 resultptr = new wxRect((wxRect &) result);
12487 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12488 }
12489 return resultobj;
12490 fail:
12491 return NULL;
12492 }
12493
12494
12495 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12496 PyObject *resultobj;
12497 wxDC *arg1 = (wxDC *) 0 ;
12498 int result;
12499 PyObject * obj0 = 0 ;
12500 char *kwnames[] = {
12501 (char *) "self", NULL
12502 };
12503
12504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12506 {
12507 PyThreadState* __tstate = wxPyBeginAllowThreads();
12508 result = (int)((wxDC const *)arg1)->GetCharHeight();
12509
12510 wxPyEndAllowThreads(__tstate);
12511 if (PyErr_Occurred()) SWIG_fail;
12512 }
12513 resultobj = SWIG_PyObj_FromInt((int)result);
12514 return resultobj;
12515 fail:
12516 return NULL;
12517 }
12518
12519
12520 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12521 PyObject *resultobj;
12522 wxDC *arg1 = (wxDC *) 0 ;
12523 int result;
12524 PyObject * obj0 = 0 ;
12525 char *kwnames[] = {
12526 (char *) "self", NULL
12527 };
12528
12529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12531 {
12532 PyThreadState* __tstate = wxPyBeginAllowThreads();
12533 result = (int)((wxDC const *)arg1)->GetCharWidth();
12534
12535 wxPyEndAllowThreads(__tstate);
12536 if (PyErr_Occurred()) SWIG_fail;
12537 }
12538 resultobj = SWIG_PyObj_FromInt((int)result);
12539 return resultobj;
12540 fail:
12541 return NULL;
12542 }
12543
12544
12545 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12546 PyObject *resultobj;
12547 wxDC *arg1 = (wxDC *) 0 ;
12548 wxString *arg2 = 0 ;
12549 int *arg3 = (int *) 0 ;
12550 int *arg4 = (int *) 0 ;
12551 bool temp2 = False ;
12552 int temp3 ;
12553 int temp4 ;
12554 PyObject * obj0 = 0 ;
12555 PyObject * obj1 = 0 ;
12556 char *kwnames[] = {
12557 (char *) "self",(char *) "string", NULL
12558 };
12559
12560 arg3 = &temp3;
12561 arg4 = &temp4;
12562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12564 {
12565 arg2 = wxString_in_helper(obj1);
12566 if (arg2 == NULL) SWIG_fail;
12567 temp2 = True;
12568 }
12569 {
12570 PyThreadState* __tstate = wxPyBeginAllowThreads();
12571 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12572
12573 wxPyEndAllowThreads(__tstate);
12574 if (PyErr_Occurred()) SWIG_fail;
12575 }
12576 Py_INCREF(Py_None); resultobj = Py_None;
12577 {
12578 PyObject *o = PyInt_FromLong((long) (*arg3));
12579 resultobj = t_output_helper(resultobj,o);
12580 }
12581 {
12582 PyObject *o = PyInt_FromLong((long) (*arg4));
12583 resultobj = t_output_helper(resultobj,o);
12584 }
12585 {
12586 if (temp2)
12587 delete arg2;
12588 }
12589 return resultobj;
12590 fail:
12591 {
12592 if (temp2)
12593 delete arg2;
12594 }
12595 return NULL;
12596 }
12597
12598
12599 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12600 PyObject *resultobj;
12601 wxDC *arg1 = (wxDC *) 0 ;
12602 wxString *arg2 = 0 ;
12603 int *arg3 = (int *) 0 ;
12604 int *arg4 = (int *) 0 ;
12605 int *arg5 = (int *) 0 ;
12606 int *arg6 = (int *) 0 ;
12607 wxFont *arg7 = (wxFont *) NULL ;
12608 bool temp2 = False ;
12609 int temp3 ;
12610 int temp4 ;
12611 int temp5 ;
12612 int temp6 ;
12613 PyObject * obj0 = 0 ;
12614 PyObject * obj1 = 0 ;
12615 PyObject * obj2 = 0 ;
12616 char *kwnames[] = {
12617 (char *) "self",(char *) "string",(char *) "font", NULL
12618 };
12619
12620 arg3 = &temp3;
12621 arg4 = &temp4;
12622 arg5 = &temp5;
12623 arg6 = &temp6;
12624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12626 {
12627 arg2 = wxString_in_helper(obj1);
12628 if (arg2 == NULL) SWIG_fail;
12629 temp2 = True;
12630 }
12631 if (obj2) {
12632 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12633 }
12634 {
12635 PyThreadState* __tstate = wxPyBeginAllowThreads();
12636 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12637
12638 wxPyEndAllowThreads(__tstate);
12639 if (PyErr_Occurred()) SWIG_fail;
12640 }
12641 Py_INCREF(Py_None); resultobj = Py_None;
12642 {
12643 PyObject *o = PyInt_FromLong((long) (*arg3));
12644 resultobj = t_output_helper(resultobj,o);
12645 }
12646 {
12647 PyObject *o = PyInt_FromLong((long) (*arg4));
12648 resultobj = t_output_helper(resultobj,o);
12649 }
12650 {
12651 PyObject *o = PyInt_FromLong((long) (*arg5));
12652 resultobj = t_output_helper(resultobj,o);
12653 }
12654 {
12655 PyObject *o = PyInt_FromLong((long) (*arg6));
12656 resultobj = t_output_helper(resultobj,o);
12657 }
12658 {
12659 if (temp2)
12660 delete arg2;
12661 }
12662 return resultobj;
12663 fail:
12664 {
12665 if (temp2)
12666 delete arg2;
12667 }
12668 return NULL;
12669 }
12670
12671
12672 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12673 PyObject *resultobj;
12674 wxDC *arg1 = (wxDC *) 0 ;
12675 wxString *arg2 = 0 ;
12676 int *arg3 = (int *) 0 ;
12677 int *arg4 = (int *) 0 ;
12678 int *arg5 = (int *) 0 ;
12679 wxFont *arg6 = (wxFont *) NULL ;
12680 bool temp2 = False ;
12681 int temp3 ;
12682 int temp4 ;
12683 int temp5 ;
12684 PyObject * obj0 = 0 ;
12685 PyObject * obj1 = 0 ;
12686 PyObject * obj2 = 0 ;
12687 char *kwnames[] = {
12688 (char *) "self",(char *) "text",(char *) "font", NULL
12689 };
12690
12691 arg3 = &temp3;
12692 arg4 = &temp4;
12693 arg5 = &temp5;
12694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12696 {
12697 arg2 = wxString_in_helper(obj1);
12698 if (arg2 == NULL) SWIG_fail;
12699 temp2 = True;
12700 }
12701 if (obj2) {
12702 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12703 }
12704 {
12705 PyThreadState* __tstate = wxPyBeginAllowThreads();
12706 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12707
12708 wxPyEndAllowThreads(__tstate);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 }
12711 Py_INCREF(Py_None); resultobj = Py_None;
12712 {
12713 PyObject *o = PyInt_FromLong((long) (*arg3));
12714 resultobj = t_output_helper(resultobj,o);
12715 }
12716 {
12717 PyObject *o = PyInt_FromLong((long) (*arg4));
12718 resultobj = t_output_helper(resultobj,o);
12719 }
12720 {
12721 PyObject *o = PyInt_FromLong((long) (*arg5));
12722 resultobj = t_output_helper(resultobj,o);
12723 }
12724 {
12725 if (temp2)
12726 delete arg2;
12727 }
12728 return resultobj;
12729 fail:
12730 {
12731 if (temp2)
12732 delete arg2;
12733 }
12734 return NULL;
12735 }
12736
12737
12738 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
12739 PyObject *resultobj;
12740 wxDC *arg1 = (wxDC *) 0 ;
12741 wxString *arg2 = 0 ;
12742 wxArrayInt result;
12743 bool temp2 = False ;
12744 PyObject * obj0 = 0 ;
12745 PyObject * obj1 = 0 ;
12746 char *kwnames[] = {
12747 (char *) "self",(char *) "text", NULL
12748 };
12749
12750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
12751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12752 {
12753 arg2 = wxString_in_helper(obj1);
12754 if (arg2 == NULL) SWIG_fail;
12755 temp2 = True;
12756 }
12757 {
12758 PyThreadState* __tstate = wxPyBeginAllowThreads();
12759 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
12760
12761 wxPyEndAllowThreads(__tstate);
12762 if (PyErr_Occurred()) SWIG_fail;
12763 }
12764 {
12765 resultobj = PyList_New(0);
12766 size_t idx;
12767 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
12768 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
12769 PyList_Append(resultobj, val);
12770 Py_DECREF(val);
12771 }
12772 }
12773 {
12774 if (temp2)
12775 delete arg2;
12776 }
12777 return resultobj;
12778 fail:
12779 {
12780 if (temp2)
12781 delete arg2;
12782 }
12783 return NULL;
12784 }
12785
12786
12787 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12788 PyObject *resultobj;
12789 wxDC *arg1 = (wxDC *) 0 ;
12790 wxSize result;
12791 PyObject * obj0 = 0 ;
12792 char *kwnames[] = {
12793 (char *) "self", NULL
12794 };
12795
12796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
12797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 result = (arg1)->GetSize();
12801
12802 wxPyEndAllowThreads(__tstate);
12803 if (PyErr_Occurred()) SWIG_fail;
12804 }
12805 {
12806 wxSize * resultptr;
12807 resultptr = new wxSize((wxSize &) result);
12808 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12809 }
12810 return resultobj;
12811 fail:
12812 return NULL;
12813 }
12814
12815
12816 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12817 PyObject *resultobj;
12818 wxDC *arg1 = (wxDC *) 0 ;
12819 int *arg2 = (int *) 0 ;
12820 int *arg3 = (int *) 0 ;
12821 int temp2 ;
12822 int temp3 ;
12823 PyObject * obj0 = 0 ;
12824 char *kwnames[] = {
12825 (char *) "self", NULL
12826 };
12827
12828 arg2 = &temp2;
12829 arg3 = &temp3;
12830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
12831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12832 {
12833 PyThreadState* __tstate = wxPyBeginAllowThreads();
12834 (arg1)->GetSize(arg2,arg3);
12835
12836 wxPyEndAllowThreads(__tstate);
12837 if (PyErr_Occurred()) SWIG_fail;
12838 }
12839 Py_INCREF(Py_None); resultobj = Py_None;
12840 {
12841 PyObject *o = PyInt_FromLong((long) (*arg2));
12842 resultobj = t_output_helper(resultobj,o);
12843 }
12844 {
12845 PyObject *o = PyInt_FromLong((long) (*arg3));
12846 resultobj = t_output_helper(resultobj,o);
12847 }
12848 return resultobj;
12849 fail:
12850 return NULL;
12851 }
12852
12853
12854 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
12855 PyObject *resultobj;
12856 wxDC *arg1 = (wxDC *) 0 ;
12857 wxSize result;
12858 PyObject * obj0 = 0 ;
12859 char *kwnames[] = {
12860 (char *) "self", NULL
12861 };
12862
12863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) 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 result = ((wxDC const *)arg1)->GetSizeMM();
12868
12869 wxPyEndAllowThreads(__tstate);
12870 if (PyErr_Occurred()) SWIG_fail;
12871 }
12872 {
12873 wxSize * resultptr;
12874 resultptr = new wxSize((wxSize &) result);
12875 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12876 }
12877 return resultobj;
12878 fail:
12879 return NULL;
12880 }
12881
12882
12883 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12884 PyObject *resultobj;
12885 wxDC *arg1 = (wxDC *) 0 ;
12886 int *arg2 = (int *) 0 ;
12887 int *arg3 = (int *) 0 ;
12888 int temp2 ;
12889 int temp3 ;
12890 PyObject * obj0 = 0 ;
12891 char *kwnames[] = {
12892 (char *) "self", NULL
12893 };
12894
12895 arg2 = &temp2;
12896 arg3 = &temp3;
12897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
12898 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12899 {
12900 PyThreadState* __tstate = wxPyBeginAllowThreads();
12901 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
12902
12903 wxPyEndAllowThreads(__tstate);
12904 if (PyErr_Occurred()) SWIG_fail;
12905 }
12906 Py_INCREF(Py_None); resultobj = Py_None;
12907 {
12908 PyObject *o = PyInt_FromLong((long) (*arg2));
12909 resultobj = t_output_helper(resultobj,o);
12910 }
12911 {
12912 PyObject *o = PyInt_FromLong((long) (*arg3));
12913 resultobj = t_output_helper(resultobj,o);
12914 }
12915 return resultobj;
12916 fail:
12917 return NULL;
12918 }
12919
12920
12921 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
12922 PyObject *resultobj;
12923 wxDC *arg1 = (wxDC *) 0 ;
12924 int arg2 ;
12925 int result;
12926 PyObject * obj0 = 0 ;
12927 PyObject * obj1 = 0 ;
12928 char *kwnames[] = {
12929 (char *) "self",(char *) "x", NULL
12930 };
12931
12932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
12933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12934 {
12935 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12936 if (PyErr_Occurred()) SWIG_fail;
12937 }
12938 {
12939 PyThreadState* __tstate = wxPyBeginAllowThreads();
12940 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
12941
12942 wxPyEndAllowThreads(__tstate);
12943 if (PyErr_Occurred()) SWIG_fail;
12944 }
12945 resultobj = SWIG_PyObj_FromInt((int)result);
12946 return resultobj;
12947 fail:
12948 return NULL;
12949 }
12950
12951
12952 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
12953 PyObject *resultobj;
12954 wxDC *arg1 = (wxDC *) 0 ;
12955 int arg2 ;
12956 int result;
12957 PyObject * obj0 = 0 ;
12958 PyObject * obj1 = 0 ;
12959 char *kwnames[] = {
12960 (char *) "self",(char *) "y", NULL
12961 };
12962
12963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
12964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12965 {
12966 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12967 if (PyErr_Occurred()) SWIG_fail;
12968 }
12969 {
12970 PyThreadState* __tstate = wxPyBeginAllowThreads();
12971 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
12972
12973 wxPyEndAllowThreads(__tstate);
12974 if (PyErr_Occurred()) SWIG_fail;
12975 }
12976 resultobj = SWIG_PyObj_FromInt((int)result);
12977 return resultobj;
12978 fail:
12979 return NULL;
12980 }
12981
12982
12983 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12984 PyObject *resultobj;
12985 wxDC *arg1 = (wxDC *) 0 ;
12986 int arg2 ;
12987 int result;
12988 PyObject * obj0 = 0 ;
12989 PyObject * obj1 = 0 ;
12990 char *kwnames[] = {
12991 (char *) "self",(char *) "x", NULL
12992 };
12993
12994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
12995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12996 {
12997 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12998 if (PyErr_Occurred()) SWIG_fail;
12999 }
13000 {
13001 PyThreadState* __tstate = wxPyBeginAllowThreads();
13002 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13003
13004 wxPyEndAllowThreads(__tstate);
13005 if (PyErr_Occurred()) SWIG_fail;
13006 }
13007 resultobj = SWIG_PyObj_FromInt((int)result);
13008 return resultobj;
13009 fail:
13010 return NULL;
13011 }
13012
13013
13014 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13015 PyObject *resultobj;
13016 wxDC *arg1 = (wxDC *) 0 ;
13017 int arg2 ;
13018 int result;
13019 PyObject * obj0 = 0 ;
13020 PyObject * obj1 = 0 ;
13021 char *kwnames[] = {
13022 (char *) "self",(char *) "y", NULL
13023 };
13024
13025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13027 {
13028 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13029 if (PyErr_Occurred()) SWIG_fail;
13030 }
13031 {
13032 PyThreadState* __tstate = wxPyBeginAllowThreads();
13033 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13034
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 resultobj = SWIG_PyObj_FromInt((int)result);
13039 return resultobj;
13040 fail:
13041 return NULL;
13042 }
13043
13044
13045 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13046 PyObject *resultobj;
13047 wxDC *arg1 = (wxDC *) 0 ;
13048 int arg2 ;
13049 int result;
13050 PyObject * obj0 = 0 ;
13051 PyObject * obj1 = 0 ;
13052 char *kwnames[] = {
13053 (char *) "self",(char *) "x", NULL
13054 };
13055
13056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13058 {
13059 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13060 if (PyErr_Occurred()) SWIG_fail;
13061 }
13062 {
13063 PyThreadState* __tstate = wxPyBeginAllowThreads();
13064 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13065
13066 wxPyEndAllowThreads(__tstate);
13067 if (PyErr_Occurred()) SWIG_fail;
13068 }
13069 resultobj = SWIG_PyObj_FromInt((int)result);
13070 return resultobj;
13071 fail:
13072 return NULL;
13073 }
13074
13075
13076 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj;
13078 wxDC *arg1 = (wxDC *) 0 ;
13079 int arg2 ;
13080 int result;
13081 PyObject * obj0 = 0 ;
13082 PyObject * obj1 = 0 ;
13083 char *kwnames[] = {
13084 (char *) "self",(char *) "y", NULL
13085 };
13086
13087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13089 {
13090 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13091 if (PyErr_Occurred()) SWIG_fail;
13092 }
13093 {
13094 PyThreadState* __tstate = wxPyBeginAllowThreads();
13095 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13096
13097 wxPyEndAllowThreads(__tstate);
13098 if (PyErr_Occurred()) SWIG_fail;
13099 }
13100 resultobj = SWIG_PyObj_FromInt((int)result);
13101 return resultobj;
13102 fail:
13103 return NULL;
13104 }
13105
13106
13107 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13108 PyObject *resultobj;
13109 wxDC *arg1 = (wxDC *) 0 ;
13110 int arg2 ;
13111 int result;
13112 PyObject * obj0 = 0 ;
13113 PyObject * obj1 = 0 ;
13114 char *kwnames[] = {
13115 (char *) "self",(char *) "x", NULL
13116 };
13117
13118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13120 {
13121 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13122 if (PyErr_Occurred()) SWIG_fail;
13123 }
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
13126 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13127
13128 wxPyEndAllowThreads(__tstate);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
13131 resultobj = SWIG_PyObj_FromInt((int)result);
13132 return resultobj;
13133 fail:
13134 return NULL;
13135 }
13136
13137
13138 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13139 PyObject *resultobj;
13140 wxDC *arg1 = (wxDC *) 0 ;
13141 int arg2 ;
13142 int result;
13143 PyObject * obj0 = 0 ;
13144 PyObject * obj1 = 0 ;
13145 char *kwnames[] = {
13146 (char *) "self",(char *) "y", NULL
13147 };
13148
13149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13151 {
13152 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13153 if (PyErr_Occurred()) SWIG_fail;
13154 }
13155 {
13156 PyThreadState* __tstate = wxPyBeginAllowThreads();
13157 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13158
13159 wxPyEndAllowThreads(__tstate);
13160 if (PyErr_Occurred()) SWIG_fail;
13161 }
13162 resultobj = SWIG_PyObj_FromInt((int)result);
13163 return resultobj;
13164 fail:
13165 return NULL;
13166 }
13167
13168
13169 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13170 PyObject *resultobj;
13171 wxDC *arg1 = (wxDC *) 0 ;
13172 bool result;
13173 PyObject * obj0 = 0 ;
13174 char *kwnames[] = {
13175 (char *) "self", NULL
13176 };
13177
13178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13180 {
13181 PyThreadState* __tstate = wxPyBeginAllowThreads();
13182 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13183
13184 wxPyEndAllowThreads(__tstate);
13185 if (PyErr_Occurred()) SWIG_fail;
13186 }
13187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13188 return resultobj;
13189 fail:
13190 return NULL;
13191 }
13192
13193
13194 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj;
13196 wxDC *arg1 = (wxDC *) 0 ;
13197 bool result;
13198 PyObject * obj0 = 0 ;
13199 char *kwnames[] = {
13200 (char *) "self", NULL
13201 };
13202
13203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13205 {
13206 PyThreadState* __tstate = wxPyBeginAllowThreads();
13207 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13208
13209 wxPyEndAllowThreads(__tstate);
13210 if (PyErr_Occurred()) SWIG_fail;
13211 }
13212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13213 return resultobj;
13214 fail:
13215 return NULL;
13216 }
13217
13218
13219 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13220 PyObject *resultobj;
13221 wxDC *arg1 = (wxDC *) 0 ;
13222 int result;
13223 PyObject * obj0 = 0 ;
13224 char *kwnames[] = {
13225 (char *) "self", NULL
13226 };
13227
13228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13230 {
13231 PyThreadState* __tstate = wxPyBeginAllowThreads();
13232 result = (int)((wxDC const *)arg1)->GetDepth();
13233
13234 wxPyEndAllowThreads(__tstate);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 }
13237 resultobj = SWIG_PyObj_FromInt((int)result);
13238 return resultobj;
13239 fail:
13240 return NULL;
13241 }
13242
13243
13244 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13245 PyObject *resultobj;
13246 wxDC *arg1 = (wxDC *) 0 ;
13247 wxSize result;
13248 PyObject * obj0 = 0 ;
13249 char *kwnames[] = {
13250 (char *) "self", NULL
13251 };
13252
13253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 result = ((wxDC const *)arg1)->GetPPI();
13258
13259 wxPyEndAllowThreads(__tstate);
13260 if (PyErr_Occurred()) SWIG_fail;
13261 }
13262 {
13263 wxSize * resultptr;
13264 resultptr = new wxSize((wxSize &) result);
13265 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13266 }
13267 return resultobj;
13268 fail:
13269 return NULL;
13270 }
13271
13272
13273 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13274 PyObject *resultobj;
13275 wxDC *arg1 = (wxDC *) 0 ;
13276 bool result;
13277 PyObject * obj0 = 0 ;
13278 char *kwnames[] = {
13279 (char *) "self", NULL
13280 };
13281
13282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13284 {
13285 PyThreadState* __tstate = wxPyBeginAllowThreads();
13286 result = (bool)((wxDC const *)arg1)->Ok();
13287
13288 wxPyEndAllowThreads(__tstate);
13289 if (PyErr_Occurred()) SWIG_fail;
13290 }
13291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13292 return resultobj;
13293 fail:
13294 return NULL;
13295 }
13296
13297
13298 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13299 PyObject *resultobj;
13300 wxDC *arg1 = (wxDC *) 0 ;
13301 int result;
13302 PyObject * obj0 = 0 ;
13303 char *kwnames[] = {
13304 (char *) "self", NULL
13305 };
13306
13307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13309 {
13310 PyThreadState* __tstate = wxPyBeginAllowThreads();
13311 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13312
13313 wxPyEndAllowThreads(__tstate);
13314 if (PyErr_Occurred()) SWIG_fail;
13315 }
13316 resultobj = SWIG_PyObj_FromInt((int)result);
13317 return resultobj;
13318 fail:
13319 return NULL;
13320 }
13321
13322
13323 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13324 PyObject *resultobj;
13325 wxDC *arg1 = (wxDC *) 0 ;
13326 wxBrush *result;
13327 PyObject * obj0 = 0 ;
13328 char *kwnames[] = {
13329 (char *) "self", NULL
13330 };
13331
13332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13334 {
13335 PyThreadState* __tstate = wxPyBeginAllowThreads();
13336 {
13337 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13338 result = (wxBrush *) &_result_ref;
13339 }
13340
13341 wxPyEndAllowThreads(__tstate);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 }
13344 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13345 return resultobj;
13346 fail:
13347 return NULL;
13348 }
13349
13350
13351 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13352 PyObject *resultobj;
13353 wxDC *arg1 = (wxDC *) 0 ;
13354 wxBrush *result;
13355 PyObject * obj0 = 0 ;
13356 char *kwnames[] = {
13357 (char *) "self", NULL
13358 };
13359
13360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13362 {
13363 PyThreadState* __tstate = wxPyBeginAllowThreads();
13364 {
13365 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13366 result = (wxBrush *) &_result_ref;
13367 }
13368
13369 wxPyEndAllowThreads(__tstate);
13370 if (PyErr_Occurred()) SWIG_fail;
13371 }
13372 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13373 return resultobj;
13374 fail:
13375 return NULL;
13376 }
13377
13378
13379 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13380 PyObject *resultobj;
13381 wxDC *arg1 = (wxDC *) 0 ;
13382 wxFont *result;
13383 PyObject * obj0 = 0 ;
13384 char *kwnames[] = {
13385 (char *) "self", NULL
13386 };
13387
13388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13390 {
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 {
13393 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13394 result = (wxFont *) &_result_ref;
13395 }
13396
13397 wxPyEndAllowThreads(__tstate);
13398 if (PyErr_Occurred()) SWIG_fail;
13399 }
13400 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
13401 return resultobj;
13402 fail:
13403 return NULL;
13404 }
13405
13406
13407 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13408 PyObject *resultobj;
13409 wxDC *arg1 = (wxDC *) 0 ;
13410 wxPen *result;
13411 PyObject * obj0 = 0 ;
13412 char *kwnames[] = {
13413 (char *) "self", NULL
13414 };
13415
13416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13418 {
13419 PyThreadState* __tstate = wxPyBeginAllowThreads();
13420 {
13421 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13422 result = (wxPen *) &_result_ref;
13423 }
13424
13425 wxPyEndAllowThreads(__tstate);
13426 if (PyErr_Occurred()) SWIG_fail;
13427 }
13428 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
13429 return resultobj;
13430 fail:
13431 return NULL;
13432 }
13433
13434
13435 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13436 PyObject *resultobj;
13437 wxDC *arg1 = (wxDC *) 0 ;
13438 wxColour *result;
13439 PyObject * obj0 = 0 ;
13440 char *kwnames[] = {
13441 (char *) "self", NULL
13442 };
13443
13444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13446 {
13447 PyThreadState* __tstate = wxPyBeginAllowThreads();
13448 {
13449 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13450 result = (wxColour *) &_result_ref;
13451 }
13452
13453 wxPyEndAllowThreads(__tstate);
13454 if (PyErr_Occurred()) SWIG_fail;
13455 }
13456 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13457 return resultobj;
13458 fail:
13459 return NULL;
13460 }
13461
13462
13463 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13464 PyObject *resultobj;
13465 wxDC *arg1 = (wxDC *) 0 ;
13466 wxColour *result;
13467 PyObject * obj0 = 0 ;
13468 char *kwnames[] = {
13469 (char *) "self", NULL
13470 };
13471
13472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13474 {
13475 PyThreadState* __tstate = wxPyBeginAllowThreads();
13476 {
13477 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13478 result = (wxColour *) &_result_ref;
13479 }
13480
13481 wxPyEndAllowThreads(__tstate);
13482 if (PyErr_Occurred()) SWIG_fail;
13483 }
13484 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13485 return resultobj;
13486 fail:
13487 return NULL;
13488 }
13489
13490
13491 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13492 PyObject *resultobj;
13493 wxDC *arg1 = (wxDC *) 0 ;
13494 wxColour *arg2 = 0 ;
13495 wxColour temp2 ;
13496 PyObject * obj0 = 0 ;
13497 PyObject * obj1 = 0 ;
13498 char *kwnames[] = {
13499 (char *) "self",(char *) "colour", NULL
13500 };
13501
13502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13504 {
13505 arg2 = &temp2;
13506 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13507 }
13508 {
13509 PyThreadState* __tstate = wxPyBeginAllowThreads();
13510 (arg1)->SetTextForeground((wxColour const &)*arg2);
13511
13512 wxPyEndAllowThreads(__tstate);
13513 if (PyErr_Occurred()) SWIG_fail;
13514 }
13515 Py_INCREF(Py_None); resultobj = Py_None;
13516 return resultobj;
13517 fail:
13518 return NULL;
13519 }
13520
13521
13522 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13523 PyObject *resultobj;
13524 wxDC *arg1 = (wxDC *) 0 ;
13525 wxColour *arg2 = 0 ;
13526 wxColour temp2 ;
13527 PyObject * obj0 = 0 ;
13528 PyObject * obj1 = 0 ;
13529 char *kwnames[] = {
13530 (char *) "self",(char *) "colour", NULL
13531 };
13532
13533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13535 {
13536 arg2 = &temp2;
13537 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13538 }
13539 {
13540 PyThreadState* __tstate = wxPyBeginAllowThreads();
13541 (arg1)->SetTextBackground((wxColour const &)*arg2);
13542
13543 wxPyEndAllowThreads(__tstate);
13544 if (PyErr_Occurred()) SWIG_fail;
13545 }
13546 Py_INCREF(Py_None); resultobj = Py_None;
13547 return resultobj;
13548 fail:
13549 return NULL;
13550 }
13551
13552
13553 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13554 PyObject *resultobj;
13555 wxDC *arg1 = (wxDC *) 0 ;
13556 int result;
13557 PyObject * obj0 = 0 ;
13558 char *kwnames[] = {
13559 (char *) "self", NULL
13560 };
13561
13562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13564 {
13565 PyThreadState* __tstate = wxPyBeginAllowThreads();
13566 result = (int)((wxDC const *)arg1)->GetMapMode();
13567
13568 wxPyEndAllowThreads(__tstate);
13569 if (PyErr_Occurred()) SWIG_fail;
13570 }
13571 resultobj = SWIG_PyObj_FromInt((int)result);
13572 return resultobj;
13573 fail:
13574 return NULL;
13575 }
13576
13577
13578 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13579 PyObject *resultobj;
13580 wxDC *arg1 = (wxDC *) 0 ;
13581 int arg2 ;
13582 PyObject * obj0 = 0 ;
13583 PyObject * obj1 = 0 ;
13584 char *kwnames[] = {
13585 (char *) "self",(char *) "mode", NULL
13586 };
13587
13588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13590 {
13591 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13592 if (PyErr_Occurred()) SWIG_fail;
13593 }
13594 {
13595 PyThreadState* __tstate = wxPyBeginAllowThreads();
13596 (arg1)->SetMapMode(arg2);
13597
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 Py_INCREF(Py_None); resultobj = Py_None;
13602 return resultobj;
13603 fail:
13604 return NULL;
13605 }
13606
13607
13608 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13609 PyObject *resultobj;
13610 wxDC *arg1 = (wxDC *) 0 ;
13611 double *arg2 = (double *) 0 ;
13612 double *arg3 = (double *) 0 ;
13613 double temp2 ;
13614 double temp3 ;
13615 PyObject * obj0 = 0 ;
13616 char *kwnames[] = {
13617 (char *) "self", NULL
13618 };
13619
13620 arg2 = &temp2;
13621 arg3 = &temp3;
13622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13624 {
13625 PyThreadState* __tstate = wxPyBeginAllowThreads();
13626 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13627
13628 wxPyEndAllowThreads(__tstate);
13629 if (PyErr_Occurred()) SWIG_fail;
13630 }
13631 Py_INCREF(Py_None); resultobj = Py_None;
13632 {
13633 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13634 resultobj = t_output_helper(resultobj,o);
13635 }
13636 {
13637 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13638 resultobj = t_output_helper(resultobj,o);
13639 }
13640 return resultobj;
13641 fail:
13642 return NULL;
13643 }
13644
13645
13646 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13647 PyObject *resultobj;
13648 wxDC *arg1 = (wxDC *) 0 ;
13649 double arg2 ;
13650 double arg3 ;
13651 PyObject * obj0 = 0 ;
13652 PyObject * obj1 = 0 ;
13653 PyObject * obj2 = 0 ;
13654 char *kwnames[] = {
13655 (char *) "self",(char *) "x",(char *) "y", NULL
13656 };
13657
13658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13660 {
13661 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 {
13665 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13666 if (PyErr_Occurred()) SWIG_fail;
13667 }
13668 {
13669 PyThreadState* __tstate = wxPyBeginAllowThreads();
13670 (arg1)->SetUserScale(arg2,arg3);
13671
13672 wxPyEndAllowThreads(__tstate);
13673 if (PyErr_Occurred()) SWIG_fail;
13674 }
13675 Py_INCREF(Py_None); resultobj = Py_None;
13676 return resultobj;
13677 fail:
13678 return NULL;
13679 }
13680
13681
13682 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj;
13684 wxDC *arg1 = (wxDC *) 0 ;
13685 double *arg2 = (double *) 0 ;
13686 double *arg3 = (double *) 0 ;
13687 double temp2 ;
13688 double temp3 ;
13689 PyObject * obj0 = 0 ;
13690 char *kwnames[] = {
13691 (char *) "self", NULL
13692 };
13693
13694 arg2 = &temp2;
13695 arg3 = &temp3;
13696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
13697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13698 {
13699 PyThreadState* __tstate = wxPyBeginAllowThreads();
13700 (arg1)->GetLogicalScale(arg2,arg3);
13701
13702 wxPyEndAllowThreads(__tstate);
13703 if (PyErr_Occurred()) SWIG_fail;
13704 }
13705 Py_INCREF(Py_None); resultobj = Py_None;
13706 {
13707 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13708 resultobj = t_output_helper(resultobj,o);
13709 }
13710 {
13711 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13712 resultobj = t_output_helper(resultobj,o);
13713 }
13714 return resultobj;
13715 fail:
13716 return NULL;
13717 }
13718
13719
13720 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13721 PyObject *resultobj;
13722 wxDC *arg1 = (wxDC *) 0 ;
13723 double arg2 ;
13724 double arg3 ;
13725 PyObject * obj0 = 0 ;
13726 PyObject * obj1 = 0 ;
13727 PyObject * obj2 = 0 ;
13728 char *kwnames[] = {
13729 (char *) "self",(char *) "x",(char *) "y", NULL
13730 };
13731
13732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13734 {
13735 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13736 if (PyErr_Occurred()) SWIG_fail;
13737 }
13738 {
13739 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13740 if (PyErr_Occurred()) SWIG_fail;
13741 }
13742 {
13743 PyThreadState* __tstate = wxPyBeginAllowThreads();
13744 (arg1)->SetLogicalScale(arg2,arg3);
13745
13746 wxPyEndAllowThreads(__tstate);
13747 if (PyErr_Occurred()) SWIG_fail;
13748 }
13749 Py_INCREF(Py_None); resultobj = Py_None;
13750 return resultobj;
13751 fail:
13752 return NULL;
13753 }
13754
13755
13756 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13757 PyObject *resultobj;
13758 wxDC *arg1 = (wxDC *) 0 ;
13759 wxPoint result;
13760 PyObject * obj0 = 0 ;
13761 char *kwnames[] = {
13762 (char *) "self", NULL
13763 };
13764
13765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
13766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13767 {
13768 PyThreadState* __tstate = wxPyBeginAllowThreads();
13769 result = ((wxDC const *)arg1)->GetLogicalOrigin();
13770
13771 wxPyEndAllowThreads(__tstate);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 }
13774 {
13775 wxPoint * resultptr;
13776 resultptr = new wxPoint((wxPoint &) result);
13777 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13778 }
13779 return resultobj;
13780 fail:
13781 return NULL;
13782 }
13783
13784
13785 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13786 PyObject *resultobj;
13787 wxDC *arg1 = (wxDC *) 0 ;
13788 int *arg2 = (int *) 0 ;
13789 int *arg3 = (int *) 0 ;
13790 int temp2 ;
13791 int temp3 ;
13792 PyObject * obj0 = 0 ;
13793 char *kwnames[] = {
13794 (char *) "self", NULL
13795 };
13796
13797 arg2 = &temp2;
13798 arg3 = &temp3;
13799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
13800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13801 {
13802 PyThreadState* __tstate = wxPyBeginAllowThreads();
13803 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
13804
13805 wxPyEndAllowThreads(__tstate);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
13808 Py_INCREF(Py_None); resultobj = Py_None;
13809 {
13810 PyObject *o = PyInt_FromLong((long) (*arg2));
13811 resultobj = t_output_helper(resultobj,o);
13812 }
13813 {
13814 PyObject *o = PyInt_FromLong((long) (*arg3));
13815 resultobj = t_output_helper(resultobj,o);
13816 }
13817 return resultobj;
13818 fail:
13819 return NULL;
13820 }
13821
13822
13823 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13824 PyObject *resultobj;
13825 wxDC *arg1 = (wxDC *) 0 ;
13826 int arg2 ;
13827 int arg3 ;
13828 PyObject * obj0 = 0 ;
13829 PyObject * obj1 = 0 ;
13830 PyObject * obj2 = 0 ;
13831 char *kwnames[] = {
13832 (char *) "self",(char *) "x",(char *) "y", NULL
13833 };
13834
13835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13837 {
13838 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13839 if (PyErr_Occurred()) SWIG_fail;
13840 }
13841 {
13842 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13843 if (PyErr_Occurred()) SWIG_fail;
13844 }
13845 {
13846 PyThreadState* __tstate = wxPyBeginAllowThreads();
13847 (arg1)->SetLogicalOrigin(arg2,arg3);
13848
13849 wxPyEndAllowThreads(__tstate);
13850 if (PyErr_Occurred()) SWIG_fail;
13851 }
13852 Py_INCREF(Py_None); resultobj = Py_None;
13853 return resultobj;
13854 fail:
13855 return NULL;
13856 }
13857
13858
13859 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13860 PyObject *resultobj;
13861 wxDC *arg1 = (wxDC *) 0 ;
13862 wxPoint result;
13863 PyObject * obj0 = 0 ;
13864 char *kwnames[] = {
13865 (char *) "self", NULL
13866 };
13867
13868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
13869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13870 {
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 result = ((wxDC const *)arg1)->GetDeviceOrigin();
13873
13874 wxPyEndAllowThreads(__tstate);
13875 if (PyErr_Occurred()) SWIG_fail;
13876 }
13877 {
13878 wxPoint * resultptr;
13879 resultptr = new wxPoint((wxPoint &) result);
13880 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13881 }
13882 return resultobj;
13883 fail:
13884 return NULL;
13885 }
13886
13887
13888 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13889 PyObject *resultobj;
13890 wxDC *arg1 = (wxDC *) 0 ;
13891 int *arg2 = (int *) 0 ;
13892 int *arg3 = (int *) 0 ;
13893 int temp2 ;
13894 int temp3 ;
13895 PyObject * obj0 = 0 ;
13896 char *kwnames[] = {
13897 (char *) "self", NULL
13898 };
13899
13900 arg2 = &temp2;
13901 arg3 = &temp3;
13902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
13903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13904 {
13905 PyThreadState* __tstate = wxPyBeginAllowThreads();
13906 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
13907
13908 wxPyEndAllowThreads(__tstate);
13909 if (PyErr_Occurred()) SWIG_fail;
13910 }
13911 Py_INCREF(Py_None); resultobj = Py_None;
13912 {
13913 PyObject *o = PyInt_FromLong((long) (*arg2));
13914 resultobj = t_output_helper(resultobj,o);
13915 }
13916 {
13917 PyObject *o = PyInt_FromLong((long) (*arg3));
13918 resultobj = t_output_helper(resultobj,o);
13919 }
13920 return resultobj;
13921 fail:
13922 return NULL;
13923 }
13924
13925
13926 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13927 PyObject *resultobj;
13928 wxDC *arg1 = (wxDC *) 0 ;
13929 int arg2 ;
13930 int arg3 ;
13931 PyObject * obj0 = 0 ;
13932 PyObject * obj1 = 0 ;
13933 PyObject * obj2 = 0 ;
13934 char *kwnames[] = {
13935 (char *) "self",(char *) "x",(char *) "y", NULL
13936 };
13937
13938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13940 {
13941 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13942 if (PyErr_Occurred()) SWIG_fail;
13943 }
13944 {
13945 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13946 if (PyErr_Occurred()) SWIG_fail;
13947 }
13948 {
13949 PyThreadState* __tstate = wxPyBeginAllowThreads();
13950 (arg1)->SetDeviceOrigin(arg2,arg3);
13951
13952 wxPyEndAllowThreads(__tstate);
13953 if (PyErr_Occurred()) SWIG_fail;
13954 }
13955 Py_INCREF(Py_None); resultobj = Py_None;
13956 return resultobj;
13957 fail:
13958 return NULL;
13959 }
13960
13961
13962 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13963 PyObject *resultobj;
13964 wxDC *arg1 = (wxDC *) 0 ;
13965 bool arg2 ;
13966 bool arg3 ;
13967 PyObject * obj0 = 0 ;
13968 PyObject * obj1 = 0 ;
13969 PyObject * obj2 = 0 ;
13970 char *kwnames[] = {
13971 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
13972 };
13973
13974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
13975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13976 {
13977 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13978 if (PyErr_Occurred()) SWIG_fail;
13979 }
13980 {
13981 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 (arg1)->SetAxisOrientation(arg2,arg3);
13987
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 Py_INCREF(Py_None); resultobj = Py_None;
13992 return resultobj;
13993 fail:
13994 return NULL;
13995 }
13996
13997
13998 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13999 PyObject *resultobj;
14000 wxDC *arg1 = (wxDC *) 0 ;
14001 int result;
14002 PyObject * obj0 = 0 ;
14003 char *kwnames[] = {
14004 (char *) "self", NULL
14005 };
14006
14007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14009 {
14010 PyThreadState* __tstate = wxPyBeginAllowThreads();
14011 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14012
14013 wxPyEndAllowThreads(__tstate);
14014 if (PyErr_Occurred()) SWIG_fail;
14015 }
14016 resultobj = SWIG_PyObj_FromInt((int)result);
14017 return resultobj;
14018 fail:
14019 return NULL;
14020 }
14021
14022
14023 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14024 PyObject *resultobj;
14025 wxDC *arg1 = (wxDC *) 0 ;
14026 int arg2 ;
14027 PyObject * obj0 = 0 ;
14028 PyObject * obj1 = 0 ;
14029 char *kwnames[] = {
14030 (char *) "self",(char *) "function", NULL
14031 };
14032
14033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14035 {
14036 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14037 if (PyErr_Occurred()) SWIG_fail;
14038 }
14039 {
14040 PyThreadState* __tstate = wxPyBeginAllowThreads();
14041 (arg1)->SetLogicalFunction(arg2);
14042
14043 wxPyEndAllowThreads(__tstate);
14044 if (PyErr_Occurred()) SWIG_fail;
14045 }
14046 Py_INCREF(Py_None); resultobj = Py_None;
14047 return resultobj;
14048 fail:
14049 return NULL;
14050 }
14051
14052
14053 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14054 PyObject *resultobj;
14055 wxDC *arg1 = (wxDC *) 0 ;
14056 bool arg2 ;
14057 PyObject * obj0 = 0 ;
14058 PyObject * obj1 = 0 ;
14059 char *kwnames[] = {
14060 (char *) "self",(char *) "opt", NULL
14061 };
14062
14063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14065 {
14066 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14067 if (PyErr_Occurred()) SWIG_fail;
14068 }
14069 {
14070 PyThreadState* __tstate = wxPyBeginAllowThreads();
14071 (arg1)->SetOptimization(arg2);
14072
14073 wxPyEndAllowThreads(__tstate);
14074 if (PyErr_Occurred()) SWIG_fail;
14075 }
14076 Py_INCREF(Py_None); resultobj = Py_None;
14077 return resultobj;
14078 fail:
14079 return NULL;
14080 }
14081
14082
14083 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14084 PyObject *resultobj;
14085 wxDC *arg1 = (wxDC *) 0 ;
14086 bool result;
14087 PyObject * obj0 = 0 ;
14088 char *kwnames[] = {
14089 (char *) "self", NULL
14090 };
14091
14092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14094 {
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 result = (bool)(arg1)->GetOptimization();
14097
14098 wxPyEndAllowThreads(__tstate);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14102 return resultobj;
14103 fail:
14104 return NULL;
14105 }
14106
14107
14108 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14109 PyObject *resultobj;
14110 wxDC *arg1 = (wxDC *) 0 ;
14111 int arg2 ;
14112 int arg3 ;
14113 PyObject * obj0 = 0 ;
14114 PyObject * obj1 = 0 ;
14115 PyObject * obj2 = 0 ;
14116 char *kwnames[] = {
14117 (char *) "self",(char *) "x",(char *) "y", NULL
14118 };
14119
14120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14122 {
14123 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14124 if (PyErr_Occurred()) SWIG_fail;
14125 }
14126 {
14127 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14128 if (PyErr_Occurred()) SWIG_fail;
14129 }
14130 {
14131 PyThreadState* __tstate = wxPyBeginAllowThreads();
14132 (arg1)->CalcBoundingBox(arg2,arg3);
14133
14134 wxPyEndAllowThreads(__tstate);
14135 if (PyErr_Occurred()) SWIG_fail;
14136 }
14137 Py_INCREF(Py_None); resultobj = Py_None;
14138 return resultobj;
14139 fail:
14140 return NULL;
14141 }
14142
14143
14144 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14145 PyObject *resultobj;
14146 wxDC *arg1 = (wxDC *) 0 ;
14147 PyObject * obj0 = 0 ;
14148 char *kwnames[] = {
14149 (char *) "self", NULL
14150 };
14151
14152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14154 {
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 (arg1)->ResetBoundingBox();
14157
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 Py_INCREF(Py_None); resultobj = Py_None;
14162 return resultobj;
14163 fail:
14164 return NULL;
14165 }
14166
14167
14168 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14169 PyObject *resultobj;
14170 wxDC *arg1 = (wxDC *) 0 ;
14171 int result;
14172 PyObject * obj0 = 0 ;
14173 char *kwnames[] = {
14174 (char *) "self", NULL
14175 };
14176
14177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14179 {
14180 PyThreadState* __tstate = wxPyBeginAllowThreads();
14181 result = (int)((wxDC const *)arg1)->MinX();
14182
14183 wxPyEndAllowThreads(__tstate);
14184 if (PyErr_Occurred()) SWIG_fail;
14185 }
14186 resultobj = SWIG_PyObj_FromInt((int)result);
14187 return resultobj;
14188 fail:
14189 return NULL;
14190 }
14191
14192
14193 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14194 PyObject *resultobj;
14195 wxDC *arg1 = (wxDC *) 0 ;
14196 int result;
14197 PyObject * obj0 = 0 ;
14198 char *kwnames[] = {
14199 (char *) "self", NULL
14200 };
14201
14202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14204 {
14205 PyThreadState* __tstate = wxPyBeginAllowThreads();
14206 result = (int)((wxDC const *)arg1)->MaxX();
14207
14208 wxPyEndAllowThreads(__tstate);
14209 if (PyErr_Occurred()) SWIG_fail;
14210 }
14211 resultobj = SWIG_PyObj_FromInt((int)result);
14212 return resultobj;
14213 fail:
14214 return NULL;
14215 }
14216
14217
14218 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14219 PyObject *resultobj;
14220 wxDC *arg1 = (wxDC *) 0 ;
14221 int result;
14222 PyObject * obj0 = 0 ;
14223 char *kwnames[] = {
14224 (char *) "self", NULL
14225 };
14226
14227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14229 {
14230 PyThreadState* __tstate = wxPyBeginAllowThreads();
14231 result = (int)((wxDC const *)arg1)->MinY();
14232
14233 wxPyEndAllowThreads(__tstate);
14234 if (PyErr_Occurred()) SWIG_fail;
14235 }
14236 resultobj = SWIG_PyObj_FromInt((int)result);
14237 return resultobj;
14238 fail:
14239 return NULL;
14240 }
14241
14242
14243 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14244 PyObject *resultobj;
14245 wxDC *arg1 = (wxDC *) 0 ;
14246 int result;
14247 PyObject * obj0 = 0 ;
14248 char *kwnames[] = {
14249 (char *) "self", NULL
14250 };
14251
14252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14254 {
14255 PyThreadState* __tstate = wxPyBeginAllowThreads();
14256 result = (int)((wxDC const *)arg1)->MaxY();
14257
14258 wxPyEndAllowThreads(__tstate);
14259 if (PyErr_Occurred()) SWIG_fail;
14260 }
14261 resultobj = SWIG_PyObj_FromInt((int)result);
14262 return resultobj;
14263 fail:
14264 return NULL;
14265 }
14266
14267
14268 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14269 PyObject *resultobj;
14270 wxDC *arg1 = (wxDC *) 0 ;
14271 int *arg2 = (int *) 0 ;
14272 int *arg3 = (int *) 0 ;
14273 int *arg4 = (int *) 0 ;
14274 int *arg5 = (int *) 0 ;
14275 int temp2 ;
14276 int temp3 ;
14277 int temp4 ;
14278 int temp5 ;
14279 PyObject * obj0 = 0 ;
14280 char *kwnames[] = {
14281 (char *) "self", NULL
14282 };
14283
14284 arg2 = &temp2;
14285 arg3 = &temp3;
14286 arg4 = &temp4;
14287 arg5 = &temp5;
14288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14290 {
14291 PyThreadState* __tstate = wxPyBeginAllowThreads();
14292 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14293
14294 wxPyEndAllowThreads(__tstate);
14295 if (PyErr_Occurred()) SWIG_fail;
14296 }
14297 Py_INCREF(Py_None); resultobj = Py_None;
14298 {
14299 PyObject *o = PyInt_FromLong((long) (*arg2));
14300 resultobj = t_output_helper(resultobj,o);
14301 }
14302 {
14303 PyObject *o = PyInt_FromLong((long) (*arg3));
14304 resultobj = t_output_helper(resultobj,o);
14305 }
14306 {
14307 PyObject *o = PyInt_FromLong((long) (*arg4));
14308 resultobj = t_output_helper(resultobj,o);
14309 }
14310 {
14311 PyObject *o = PyInt_FromLong((long) (*arg5));
14312 resultobj = t_output_helper(resultobj,o);
14313 }
14314 return resultobj;
14315 fail:
14316 return NULL;
14317 }
14318
14319
14320 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14321 PyObject *resultobj;
14322 wxDC *arg1 = (wxDC *) 0 ;
14323 PyObject *arg2 = (PyObject *) 0 ;
14324 PyObject *arg3 = (PyObject *) 0 ;
14325 PyObject *arg4 = (PyObject *) 0 ;
14326 PyObject *result;
14327 PyObject * obj0 = 0 ;
14328 PyObject * obj1 = 0 ;
14329 PyObject * obj2 = 0 ;
14330 PyObject * obj3 = 0 ;
14331 char *kwnames[] = {
14332 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14333 };
14334
14335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14337 arg2 = obj1;
14338 arg3 = obj2;
14339 arg4 = obj3;
14340 {
14341 PyThreadState* __tstate = wxPyBeginAllowThreads();
14342 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14343
14344 wxPyEndAllowThreads(__tstate);
14345 if (PyErr_Occurred()) SWIG_fail;
14346 }
14347 resultobj = result;
14348 return resultobj;
14349 fail:
14350 return NULL;
14351 }
14352
14353
14354 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14355 PyObject *resultobj;
14356 wxDC *arg1 = (wxDC *) 0 ;
14357 PyObject *arg2 = (PyObject *) 0 ;
14358 PyObject *arg3 = (PyObject *) 0 ;
14359 PyObject *arg4 = (PyObject *) 0 ;
14360 PyObject *result;
14361 PyObject * obj0 = 0 ;
14362 PyObject * obj1 = 0 ;
14363 PyObject * obj2 = 0 ;
14364 PyObject * obj3 = 0 ;
14365 char *kwnames[] = {
14366 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14367 };
14368
14369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14370 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14371 arg2 = obj1;
14372 arg3 = obj2;
14373 arg4 = obj3;
14374 {
14375 PyThreadState* __tstate = wxPyBeginAllowThreads();
14376 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14377
14378 wxPyEndAllowThreads(__tstate);
14379 if (PyErr_Occurred()) SWIG_fail;
14380 }
14381 resultobj = result;
14382 return resultobj;
14383 fail:
14384 return NULL;
14385 }
14386
14387
14388 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14389 PyObject *resultobj;
14390 wxDC *arg1 = (wxDC *) 0 ;
14391 PyObject *arg2 = (PyObject *) 0 ;
14392 PyObject *arg3 = (PyObject *) 0 ;
14393 PyObject *arg4 = (PyObject *) 0 ;
14394 PyObject *result;
14395 PyObject * obj0 = 0 ;
14396 PyObject * obj1 = 0 ;
14397 PyObject * obj2 = 0 ;
14398 PyObject * obj3 = 0 ;
14399 char *kwnames[] = {
14400 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14401 };
14402
14403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14405 arg2 = obj1;
14406 arg3 = obj2;
14407 arg4 = obj3;
14408 {
14409 PyThreadState* __tstate = wxPyBeginAllowThreads();
14410 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14411
14412 wxPyEndAllowThreads(__tstate);
14413 if (PyErr_Occurred()) SWIG_fail;
14414 }
14415 resultobj = result;
14416 return resultobj;
14417 fail:
14418 return NULL;
14419 }
14420
14421
14422 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14423 PyObject *resultobj;
14424 wxDC *arg1 = (wxDC *) 0 ;
14425 PyObject *arg2 = (PyObject *) 0 ;
14426 PyObject *arg3 = (PyObject *) 0 ;
14427 PyObject *arg4 = (PyObject *) 0 ;
14428 PyObject *result;
14429 PyObject * obj0 = 0 ;
14430 PyObject * obj1 = 0 ;
14431 PyObject * obj2 = 0 ;
14432 PyObject * obj3 = 0 ;
14433 char *kwnames[] = {
14434 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14435 };
14436
14437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14439 arg2 = obj1;
14440 arg3 = obj2;
14441 arg4 = obj3;
14442 {
14443 PyThreadState* __tstate = wxPyBeginAllowThreads();
14444 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14445
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 resultobj = result;
14450 return resultobj;
14451 fail:
14452 return NULL;
14453 }
14454
14455
14456 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14457 PyObject *resultobj;
14458 wxDC *arg1 = (wxDC *) 0 ;
14459 PyObject *arg2 = (PyObject *) 0 ;
14460 PyObject *arg3 = (PyObject *) 0 ;
14461 PyObject *arg4 = (PyObject *) 0 ;
14462 PyObject *result;
14463 PyObject * obj0 = 0 ;
14464 PyObject * obj1 = 0 ;
14465 PyObject * obj2 = 0 ;
14466 PyObject * obj3 = 0 ;
14467 char *kwnames[] = {
14468 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14469 };
14470
14471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14473 arg2 = obj1;
14474 arg3 = obj2;
14475 arg4 = obj3;
14476 {
14477 PyThreadState* __tstate = wxPyBeginAllowThreads();
14478 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14479
14480 wxPyEndAllowThreads(__tstate);
14481 if (PyErr_Occurred()) SWIG_fail;
14482 }
14483 resultobj = result;
14484 return resultobj;
14485 fail:
14486 return NULL;
14487 }
14488
14489
14490 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14491 PyObject *resultobj;
14492 wxDC *arg1 = (wxDC *) 0 ;
14493 PyObject *arg2 = (PyObject *) 0 ;
14494 PyObject *arg3 = (PyObject *) 0 ;
14495 PyObject *arg4 = (PyObject *) 0 ;
14496 PyObject *arg5 = (PyObject *) 0 ;
14497 PyObject *result;
14498 PyObject * obj0 = 0 ;
14499 PyObject * obj1 = 0 ;
14500 PyObject * obj2 = 0 ;
14501 PyObject * obj3 = 0 ;
14502 PyObject * obj4 = 0 ;
14503 char *kwnames[] = {
14504 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14505 };
14506
14507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14509 arg2 = obj1;
14510 arg3 = obj2;
14511 arg4 = obj3;
14512 arg5 = obj4;
14513 {
14514 PyThreadState* __tstate = wxPyBeginAllowThreads();
14515 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14516
14517 wxPyEndAllowThreads(__tstate);
14518 if (PyErr_Occurred()) SWIG_fail;
14519 }
14520 resultobj = result;
14521 return resultobj;
14522 fail:
14523 return NULL;
14524 }
14525
14526
14527 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14528 PyObject *obj;
14529 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14530 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14531 Py_INCREF(obj);
14532 return Py_BuildValue((char *)"");
14533 }
14534 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14535 PyObject *resultobj;
14536 wxMemoryDC *result;
14537 char *kwnames[] = {
14538 NULL
14539 };
14540
14541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14542 {
14543 PyThreadState* __tstate = wxPyBeginAllowThreads();
14544 result = (wxMemoryDC *)new wxMemoryDC();
14545
14546 wxPyEndAllowThreads(__tstate);
14547 if (PyErr_Occurred()) SWIG_fail;
14548 }
14549 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14550 return resultobj;
14551 fail:
14552 return NULL;
14553 }
14554
14555
14556 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14557 PyObject *resultobj;
14558 wxDC *arg1 = (wxDC *) 0 ;
14559 wxMemoryDC *result;
14560 PyObject * obj0 = 0 ;
14561 char *kwnames[] = {
14562 (char *) "oldDC", NULL
14563 };
14564
14565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14570
14571 wxPyEndAllowThreads(__tstate);
14572 if (PyErr_Occurred()) SWIG_fail;
14573 }
14574 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14575 return resultobj;
14576 fail:
14577 return NULL;
14578 }
14579
14580
14581 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj;
14583 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14584 wxBitmap *arg2 = 0 ;
14585 PyObject * obj0 = 0 ;
14586 PyObject * obj1 = 0 ;
14587 char *kwnames[] = {
14588 (char *) "self",(char *) "bitmap", NULL
14589 };
14590
14591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14593 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14594 if (arg2 == NULL) {
14595 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14596 }
14597 {
14598 PyThreadState* __tstate = wxPyBeginAllowThreads();
14599 (arg1)->SelectObject((wxBitmap const &)*arg2);
14600
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
14604 Py_INCREF(Py_None); resultobj = Py_None;
14605 return resultobj;
14606 fail:
14607 return NULL;
14608 }
14609
14610
14611 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14612 PyObject *obj;
14613 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14614 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14615 Py_INCREF(obj);
14616 return Py_BuildValue((char *)"");
14617 }
14618 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
14619 PyObject *resultobj;
14620 wxDC *arg1 = (wxDC *) 0 ;
14621 wxBitmap *arg2 = 0 ;
14622 wxBufferedDC *result;
14623 PyObject * obj0 = 0 ;
14624 PyObject * obj1 = 0 ;
14625
14626 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
14627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14628 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14629 if (arg2 == NULL) {
14630 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14631 }
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
14635
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14640 return resultobj;
14641 fail:
14642 return NULL;
14643 }
14644
14645
14646 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
14647 PyObject *resultobj;
14648 wxDC *arg1 = (wxDC *) 0 ;
14649 wxSize *arg2 = 0 ;
14650 int arg3 = (int) wxBUFFER_DC_DEFAULT ;
14651 wxBufferedDC *result;
14652 wxSize temp2 ;
14653 PyObject * obj0 = 0 ;
14654 PyObject * obj1 = 0 ;
14655 PyObject * obj2 = 0 ;
14656
14657 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
14658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14659 {
14660 arg2 = &temp2;
14661 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14662 }
14663 if (obj2) {
14664 {
14665 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14666 if (PyErr_Occurred()) SWIG_fail;
14667 }
14668 }
14669 {
14670 PyThreadState* __tstate = wxPyBeginAllowThreads();
14671 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
14672
14673 wxPyEndAllowThreads(__tstate);
14674 if (PyErr_Occurred()) SWIG_fail;
14675 }
14676 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14677 return resultobj;
14678 fail:
14679 return NULL;
14680 }
14681
14682
14683 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
14684 int argc;
14685 PyObject *argv[4];
14686 int ii;
14687
14688 argc = PyObject_Length(args);
14689 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
14690 argv[ii] = PyTuple_GetItem(args,ii);
14691 }
14692 if (argc == 2) {
14693 int _v;
14694 {
14695 void *ptr;
14696 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
14697 _v = 0;
14698 PyErr_Clear();
14699 } else {
14700 _v = 1;
14701 }
14702 }
14703 if (_v) {
14704 {
14705 void *ptr;
14706 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
14707 _v = 0;
14708 PyErr_Clear();
14709 } else {
14710 _v = 1;
14711 }
14712 }
14713 if (_v) {
14714 return _wrap_new_BufferedDC__SWIG_0(self,args);
14715 }
14716 }
14717 }
14718 if ((argc >= 2) && (argc <= 3)) {
14719 int _v;
14720 {
14721 void *ptr;
14722 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
14723 _v = 0;
14724 PyErr_Clear();
14725 } else {
14726 _v = 1;
14727 }
14728 }
14729 if (_v) {
14730 {
14731 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
14732 }
14733 if (_v) {
14734 if (argc <= 2) {
14735 return _wrap_new_BufferedDC__SWIG_1(self,args);
14736 }
14737 {
14738 SWIG_PyObj_AsInt(argv[2]);
14739 if (PyErr_Occurred()) {
14740 _v = 0;
14741 PyErr_Clear();
14742 } else {
14743 _v = 1;
14744 }
14745 }
14746 if (_v) {
14747 return _wrap_new_BufferedDC__SWIG_1(self,args);
14748 }
14749 }
14750 }
14751 }
14752
14753 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
14754 return NULL;
14755 }
14756
14757
14758 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
14759 PyObject *resultobj;
14760 wxDC *arg1 = (wxDC *) 0 ;
14761 wxSize *arg2 = 0 ;
14762 int arg3 = (int) wxBUFFER_DC_DEFAULT ;
14763 wxBufferedDC *result;
14764 wxSize temp2 ;
14765 PyObject * obj0 = 0 ;
14766 PyObject * obj1 = 0 ;
14767 PyObject * obj2 = 0 ;
14768
14769 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDCInternalBuffer",&obj0,&obj1,&obj2)) goto fail;
14770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14771 {
14772 arg2 = &temp2;
14773 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14774 }
14775 if (obj2) {
14776 {
14777 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14778 if (PyErr_Occurred()) SWIG_fail;
14779 }
14780 }
14781 {
14782 PyThreadState* __tstate = wxPyBeginAllowThreads();
14783 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
14784
14785 wxPyEndAllowThreads(__tstate);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 }
14788 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14789 return resultobj;
14790 fail:
14791 return NULL;
14792 }
14793
14794
14795 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
14796 PyObject *resultobj;
14797 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
14798 PyObject * obj0 = 0 ;
14799 char *kwnames[] = {
14800 (char *) "self", NULL
14801 };
14802
14803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
14804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14805 {
14806 PyThreadState* __tstate = wxPyBeginAllowThreads();
14807 (arg1)->UnMask();
14808
14809 wxPyEndAllowThreads(__tstate);
14810 if (PyErr_Occurred()) SWIG_fail;
14811 }
14812 Py_INCREF(Py_None); resultobj = Py_None;
14813 return resultobj;
14814 fail:
14815 return NULL;
14816 }
14817
14818
14819 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
14820 PyObject *obj;
14821 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14822 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
14823 Py_INCREF(obj);
14824 return Py_BuildValue((char *)"");
14825 }
14826 static PyObject *_wrap_new_BufferedPaintDC__SWIG_0(PyObject *self, PyObject *args) {
14827 PyObject *resultobj;
14828 wxWindow *arg1 = (wxWindow *) 0 ;
14829 wxBitmap *arg2 = 0 ;
14830 wxBufferedPaintDC *result;
14831 PyObject * obj0 = 0 ;
14832 PyObject * obj1 = 0 ;
14833
14834 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedPaintDC",&obj0,&obj1)) goto fail;
14835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14836 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14837 if (arg2 == NULL) {
14838 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14839 }
14840 {
14841 PyThreadState* __tstate = wxPyBeginAllowThreads();
14842 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
14843
14844 wxPyEndAllowThreads(__tstate);
14845 if (PyErr_Occurred()) SWIG_fail;
14846 }
14847 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
14848 return resultobj;
14849 fail:
14850 return NULL;
14851 }
14852
14853
14854 static PyObject *_wrap_new_BufferedPaintDC__SWIG_1(PyObject *self, PyObject *args) {
14855 PyObject *resultobj;
14856 wxWindow *arg1 = (wxWindow *) 0 ;
14857 int arg2 = (int) wxBUFFER_DC_DEFAULT ;
14858 wxBufferedPaintDC *result;
14859 PyObject * obj0 = 0 ;
14860 PyObject * obj1 = 0 ;
14861
14862 if(!PyArg_ParseTuple(args,(char *)"O|O:new_BufferedPaintDC",&obj0,&obj1)) goto fail;
14863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14864 if (obj1) {
14865 {
14866 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14867 if (PyErr_Occurred()) SWIG_fail;
14868 }
14869 }
14870 {
14871 PyThreadState* __tstate = wxPyBeginAllowThreads();
14872 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,arg2);
14873
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
14878 return resultobj;
14879 fail:
14880 return NULL;
14881 }
14882
14883
14884 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args) {
14885 int argc;
14886 PyObject *argv[3];
14887 int ii;
14888
14889 argc = PyObject_Length(args);
14890 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
14891 argv[ii] = PyTuple_GetItem(args,ii);
14892 }
14893 if ((argc >= 1) && (argc <= 2)) {
14894 int _v;
14895 {
14896 void *ptr;
14897 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
14898 _v = 0;
14899 PyErr_Clear();
14900 } else {
14901 _v = 1;
14902 }
14903 }
14904 if (_v) {
14905 if (argc <= 1) {
14906 return _wrap_new_BufferedPaintDC__SWIG_1(self,args);
14907 }
14908 {
14909 SWIG_PyObj_AsInt(argv[1]);
14910 if (PyErr_Occurred()) {
14911 _v = 0;
14912 PyErr_Clear();
14913 } else {
14914 _v = 1;
14915 }
14916 }
14917 if (_v) {
14918 return _wrap_new_BufferedPaintDC__SWIG_1(self,args);
14919 }
14920 }
14921 }
14922 if (argc == 2) {
14923 int _v;
14924 {
14925 void *ptr;
14926 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
14927 _v = 0;
14928 PyErr_Clear();
14929 } else {
14930 _v = 1;
14931 }
14932 }
14933 if (_v) {
14934 {
14935 void *ptr;
14936 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
14937 _v = 0;
14938 PyErr_Clear();
14939 } else {
14940 _v = 1;
14941 }
14942 }
14943 if (_v) {
14944 return _wrap_new_BufferedPaintDC__SWIG_0(self,args);
14945 }
14946 }
14947 }
14948
14949 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedPaintDC'");
14950 return NULL;
14951 }
14952
14953
14954 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
14955 PyObject *obj;
14956 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14957 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
14958 Py_INCREF(obj);
14959 return Py_BuildValue((char *)"");
14960 }
14961 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14962 PyObject *resultobj;
14963 wxScreenDC *result;
14964 char *kwnames[] = {
14965 NULL
14966 };
14967
14968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
14969 {
14970 PyThreadState* __tstate = wxPyBeginAllowThreads();
14971 result = (wxScreenDC *)new wxScreenDC();
14972
14973 wxPyEndAllowThreads(__tstate);
14974 if (PyErr_Occurred()) SWIG_fail;
14975 }
14976 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
14977 return resultobj;
14978 fail:
14979 return NULL;
14980 }
14981
14982
14983 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
14984 PyObject *resultobj;
14985 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14986 wxWindow *arg2 = (wxWindow *) 0 ;
14987 bool result;
14988 PyObject * obj0 = 0 ;
14989 PyObject * obj1 = 0 ;
14990 char *kwnames[] = {
14991 (char *) "self",(char *) "window", NULL
14992 };
14993
14994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
14995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14996 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14997 {
14998 PyThreadState* __tstate = wxPyBeginAllowThreads();
14999 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15000
15001 wxPyEndAllowThreads(__tstate);
15002 if (PyErr_Occurred()) SWIG_fail;
15003 }
15004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15005 return resultobj;
15006 fail:
15007 return NULL;
15008 }
15009
15010
15011 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15012 PyObject *resultobj;
15013 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15014 wxRect *arg2 = (wxRect *) NULL ;
15015 bool result;
15016 PyObject * obj0 = 0 ;
15017 PyObject * obj1 = 0 ;
15018 char *kwnames[] = {
15019 (char *) "self",(char *) "rect", NULL
15020 };
15021
15022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15024 if (obj1) {
15025 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15026 }
15027 {
15028 PyThreadState* __tstate = wxPyBeginAllowThreads();
15029 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15030
15031 wxPyEndAllowThreads(__tstate);
15032 if (PyErr_Occurred()) SWIG_fail;
15033 }
15034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15035 return resultobj;
15036 fail:
15037 return NULL;
15038 }
15039
15040
15041 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15042 PyObject *resultobj;
15043 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15044 bool result;
15045 PyObject * obj0 = 0 ;
15046 char *kwnames[] = {
15047 (char *) "self", NULL
15048 };
15049
15050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15052 {
15053 PyThreadState* __tstate = wxPyBeginAllowThreads();
15054 result = (bool)(arg1)->EndDrawingOnTop();
15055
15056 wxPyEndAllowThreads(__tstate);
15057 if (PyErr_Occurred()) SWIG_fail;
15058 }
15059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15060 return resultobj;
15061 fail:
15062 return NULL;
15063 }
15064
15065
15066 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15067 PyObject *obj;
15068 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15069 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15070 Py_INCREF(obj);
15071 return Py_BuildValue((char *)"");
15072 }
15073 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15074 PyObject *resultobj;
15075 wxWindow *arg1 = (wxWindow *) 0 ;
15076 wxClientDC *result;
15077 PyObject * obj0 = 0 ;
15078 char *kwnames[] = {
15079 (char *) "win", NULL
15080 };
15081
15082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15083 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15084 {
15085 PyThreadState* __tstate = wxPyBeginAllowThreads();
15086 result = (wxClientDC *)new wxClientDC(arg1);
15087
15088 wxPyEndAllowThreads(__tstate);
15089 if (PyErr_Occurred()) SWIG_fail;
15090 }
15091 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
15092 return resultobj;
15093 fail:
15094 return NULL;
15095 }
15096
15097
15098 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15099 PyObject *obj;
15100 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15101 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15102 Py_INCREF(obj);
15103 return Py_BuildValue((char *)"");
15104 }
15105 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15106 PyObject *resultobj;
15107 wxWindow *arg1 = (wxWindow *) 0 ;
15108 wxPaintDC *result;
15109 PyObject * obj0 = 0 ;
15110 char *kwnames[] = {
15111 (char *) "win", NULL
15112 };
15113
15114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15116 {
15117 PyThreadState* __tstate = wxPyBeginAllowThreads();
15118 result = (wxPaintDC *)new wxPaintDC(arg1);
15119
15120 wxPyEndAllowThreads(__tstate);
15121 if (PyErr_Occurred()) SWIG_fail;
15122 }
15123 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
15124 return resultobj;
15125 fail:
15126 return NULL;
15127 }
15128
15129
15130 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15131 PyObject *obj;
15132 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15133 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15134 Py_INCREF(obj);
15135 return Py_BuildValue((char *)"");
15136 }
15137 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15138 PyObject *resultobj;
15139 wxWindow *arg1 = (wxWindow *) 0 ;
15140 wxWindowDC *result;
15141 PyObject * obj0 = 0 ;
15142 char *kwnames[] = {
15143 (char *) "win", NULL
15144 };
15145
15146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15148 {
15149 PyThreadState* __tstate = wxPyBeginAllowThreads();
15150 result = (wxWindowDC *)new wxWindowDC(arg1);
15151
15152 wxPyEndAllowThreads(__tstate);
15153 if (PyErr_Occurred()) SWIG_fail;
15154 }
15155 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
15156 return resultobj;
15157 fail:
15158 return NULL;
15159 }
15160
15161
15162 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15163 PyObject *obj;
15164 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15165 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15166 Py_INCREF(obj);
15167 return Py_BuildValue((char *)"");
15168 }
15169 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15170 PyObject *resultobj;
15171 wxDC *arg1 = 0 ;
15172 bool arg2 ;
15173 wxMirrorDC *result;
15174 PyObject * obj0 = 0 ;
15175 PyObject * obj1 = 0 ;
15176 char *kwnames[] = {
15177 (char *) "dc",(char *) "mirror", NULL
15178 };
15179
15180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15181 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15182 if (arg1 == NULL) {
15183 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15184 }
15185 {
15186 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 {
15190 PyThreadState* __tstate = wxPyBeginAllowThreads();
15191 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15192
15193 wxPyEndAllowThreads(__tstate);
15194 if (PyErr_Occurred()) SWIG_fail;
15195 }
15196 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
15197 return resultobj;
15198 fail:
15199 return NULL;
15200 }
15201
15202
15203 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15204 PyObject *obj;
15205 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15206 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15207 Py_INCREF(obj);
15208 return Py_BuildValue((char *)"");
15209 }
15210 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15211 PyObject *resultobj;
15212 wxPrintData *arg1 = 0 ;
15213 wxPostScriptDC *result;
15214 PyObject * obj0 = 0 ;
15215 char *kwnames[] = {
15216 (char *) "printData", NULL
15217 };
15218
15219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15221 if (arg1 == NULL) {
15222 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15223 }
15224 {
15225 PyThreadState* __tstate = wxPyBeginAllowThreads();
15226 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15227
15228 wxPyEndAllowThreads(__tstate);
15229 if (PyErr_Occurred()) SWIG_fail;
15230 }
15231 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
15232 return resultobj;
15233 fail:
15234 return NULL;
15235 }
15236
15237
15238 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15239 PyObject *resultobj;
15240 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15241 wxPrintData *result;
15242 PyObject * obj0 = 0 ;
15243 char *kwnames[] = {
15244 (char *) "self", NULL
15245 };
15246
15247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15249 {
15250 PyThreadState* __tstate = wxPyBeginAllowThreads();
15251 {
15252 wxPrintData &_result_ref = (arg1)->GetPrintData();
15253 result = (wxPrintData *) &_result_ref;
15254 }
15255
15256 wxPyEndAllowThreads(__tstate);
15257 if (PyErr_Occurred()) SWIG_fail;
15258 }
15259 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
15260 return resultobj;
15261 fail:
15262 return NULL;
15263 }
15264
15265
15266 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15267 PyObject *resultobj;
15268 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15269 wxPrintData *arg2 = 0 ;
15270 PyObject * obj0 = 0 ;
15271 PyObject * obj1 = 0 ;
15272 char *kwnames[] = {
15273 (char *) "self",(char *) "data", NULL
15274 };
15275
15276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15278 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15279 if (arg2 == NULL) {
15280 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15281 }
15282 {
15283 PyThreadState* __tstate = wxPyBeginAllowThreads();
15284 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15285
15286 wxPyEndAllowThreads(__tstate);
15287 if (PyErr_Occurred()) SWIG_fail;
15288 }
15289 Py_INCREF(Py_None); resultobj = Py_None;
15290 return resultobj;
15291 fail:
15292 return NULL;
15293 }
15294
15295
15296 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15297 PyObject *resultobj;
15298 int arg1 ;
15299 PyObject * obj0 = 0 ;
15300 char *kwnames[] = {
15301 (char *) "ppi", NULL
15302 };
15303
15304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15305 {
15306 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15307 if (PyErr_Occurred()) SWIG_fail;
15308 }
15309 {
15310 PyThreadState* __tstate = wxPyBeginAllowThreads();
15311 wxPostScriptDC::SetResolution(arg1);
15312
15313 wxPyEndAllowThreads(__tstate);
15314 if (PyErr_Occurred()) SWIG_fail;
15315 }
15316 Py_INCREF(Py_None); resultobj = Py_None;
15317 return resultobj;
15318 fail:
15319 return NULL;
15320 }
15321
15322
15323 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15324 PyObject *resultobj;
15325 int result;
15326 char *kwnames[] = {
15327 NULL
15328 };
15329
15330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15331 {
15332 PyThreadState* __tstate = wxPyBeginAllowThreads();
15333 result = (int)wxPostScriptDC::GetResolution();
15334
15335 wxPyEndAllowThreads(__tstate);
15336 if (PyErr_Occurred()) SWIG_fail;
15337 }
15338 resultobj = SWIG_PyObj_FromInt((int)result);
15339 return resultobj;
15340 fail:
15341 return NULL;
15342 }
15343
15344
15345 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15346 PyObject *obj;
15347 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15348 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15349 Py_INCREF(obj);
15350 return Py_BuildValue((char *)"");
15351 }
15352 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15353 PyObject *resultobj;
15354 wxString const &arg1_defvalue = wxPyEmptyString ;
15355 wxString *arg1 = (wxString *) &arg1_defvalue ;
15356 wxMetaFile *result;
15357 bool temp1 = False ;
15358 PyObject * obj0 = 0 ;
15359 char *kwnames[] = {
15360 (char *) "filename", NULL
15361 };
15362
15363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15364 if (obj0) {
15365 {
15366 arg1 = wxString_in_helper(obj0);
15367 if (arg1 == NULL) SWIG_fail;
15368 temp1 = True;
15369 }
15370 }
15371 {
15372 PyThreadState* __tstate = wxPyBeginAllowThreads();
15373 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15374
15375 wxPyEndAllowThreads(__tstate);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
15379 {
15380 if (temp1)
15381 delete arg1;
15382 }
15383 return resultobj;
15384 fail:
15385 {
15386 if (temp1)
15387 delete arg1;
15388 }
15389 return NULL;
15390 }
15391
15392
15393 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15394 PyObject *obj;
15395 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15396 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15397 Py_INCREF(obj);
15398 return Py_BuildValue((char *)"");
15399 }
15400 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15401 PyObject *resultobj;
15402 wxString const &arg1_defvalue = wxPyEmptyString ;
15403 wxString *arg1 = (wxString *) &arg1_defvalue ;
15404 int arg2 = (int) 0 ;
15405 int arg3 = (int) 0 ;
15406 wxString const &arg4_defvalue = wxPyEmptyString ;
15407 wxString *arg4 = (wxString *) &arg4_defvalue ;
15408 wxMetaFileDC *result;
15409 bool temp1 = False ;
15410 bool temp4 = False ;
15411 PyObject * obj0 = 0 ;
15412 PyObject * obj1 = 0 ;
15413 PyObject * obj2 = 0 ;
15414 PyObject * obj3 = 0 ;
15415 char *kwnames[] = {
15416 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15417 };
15418
15419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15420 if (obj0) {
15421 {
15422 arg1 = wxString_in_helper(obj0);
15423 if (arg1 == NULL) SWIG_fail;
15424 temp1 = True;
15425 }
15426 }
15427 if (obj1) {
15428 {
15429 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15430 if (PyErr_Occurred()) SWIG_fail;
15431 }
15432 }
15433 if (obj2) {
15434 {
15435 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15436 if (PyErr_Occurred()) SWIG_fail;
15437 }
15438 }
15439 if (obj3) {
15440 {
15441 arg4 = wxString_in_helper(obj3);
15442 if (arg4 == NULL) SWIG_fail;
15443 temp4 = True;
15444 }
15445 }
15446 {
15447 PyThreadState* __tstate = wxPyBeginAllowThreads();
15448 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15449
15450 wxPyEndAllowThreads(__tstate);
15451 if (PyErr_Occurred()) SWIG_fail;
15452 }
15453 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
15454 {
15455 if (temp1)
15456 delete arg1;
15457 }
15458 {
15459 if (temp4)
15460 delete arg4;
15461 }
15462 return resultobj;
15463 fail:
15464 {
15465 if (temp1)
15466 delete arg1;
15467 }
15468 {
15469 if (temp4)
15470 delete arg4;
15471 }
15472 return NULL;
15473 }
15474
15475
15476 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15477 PyObject *obj;
15478 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15479 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15480 Py_INCREF(obj);
15481 return Py_BuildValue((char *)"");
15482 }
15483 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15484 PyObject *resultobj;
15485 wxPrintData *arg1 = 0 ;
15486 wxPrinterDC *result;
15487 PyObject * obj0 = 0 ;
15488 char *kwnames[] = {
15489 (char *) "printData", NULL
15490 };
15491
15492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15494 if (arg1 == NULL) {
15495 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15496 }
15497 {
15498 PyThreadState* __tstate = wxPyBeginAllowThreads();
15499 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15500
15501 wxPyEndAllowThreads(__tstate);
15502 if (PyErr_Occurred()) SWIG_fail;
15503 }
15504 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
15505 return resultobj;
15506 fail:
15507 return NULL;
15508 }
15509
15510
15511 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15512 PyObject *obj;
15513 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15514 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15515 Py_INCREF(obj);
15516 return Py_BuildValue((char *)"");
15517 }
15518 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15519 PyObject *resultobj;
15520 int arg1 ;
15521 int arg2 ;
15522 int arg3 = (int) True ;
15523 int arg4 = (int) 1 ;
15524 wxImageList *result;
15525 PyObject * obj0 = 0 ;
15526 PyObject * obj1 = 0 ;
15527 PyObject * obj2 = 0 ;
15528 PyObject * obj3 = 0 ;
15529 char *kwnames[] = {
15530 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15531 };
15532
15533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15534 {
15535 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 {
15539 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15540 if (PyErr_Occurred()) SWIG_fail;
15541 }
15542 if (obj2) {
15543 {
15544 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15545 if (PyErr_Occurred()) SWIG_fail;
15546 }
15547 }
15548 if (obj3) {
15549 {
15550 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 }
15553 }
15554 {
15555 PyThreadState* __tstate = wxPyBeginAllowThreads();
15556 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15557
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 {
15562 resultobj = wxPyMake_wxObject(result);
15563 }
15564 return resultobj;
15565 fail:
15566 return NULL;
15567 }
15568
15569
15570 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15571 PyObject *resultobj;
15572 wxImageList *arg1 = (wxImageList *) 0 ;
15573 PyObject * obj0 = 0 ;
15574 char *kwnames[] = {
15575 (char *) "self", NULL
15576 };
15577
15578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15580 {
15581 PyThreadState* __tstate = wxPyBeginAllowThreads();
15582 delete arg1;
15583
15584 wxPyEndAllowThreads(__tstate);
15585 if (PyErr_Occurred()) SWIG_fail;
15586 }
15587 Py_INCREF(Py_None); resultobj = Py_None;
15588 return resultobj;
15589 fail:
15590 return NULL;
15591 }
15592
15593
15594 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
15595 PyObject *resultobj;
15596 wxImageList *arg1 = (wxImageList *) 0 ;
15597 wxBitmap *arg2 = 0 ;
15598 wxBitmap const &arg3_defvalue = wxNullBitmap ;
15599 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
15600 int result;
15601 PyObject * obj0 = 0 ;
15602 PyObject * obj1 = 0 ;
15603 PyObject * obj2 = 0 ;
15604 char *kwnames[] = {
15605 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
15606 };
15607
15608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15610 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15611 if (arg2 == NULL) {
15612 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15613 }
15614 if (obj2) {
15615 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15616 if (arg3 == NULL) {
15617 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15618 }
15619 }
15620 {
15621 PyThreadState* __tstate = wxPyBeginAllowThreads();
15622 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
15623
15624 wxPyEndAllowThreads(__tstate);
15625 if (PyErr_Occurred()) SWIG_fail;
15626 }
15627 resultobj = SWIG_PyObj_FromInt((int)result);
15628 return resultobj;
15629 fail:
15630 return NULL;
15631 }
15632
15633
15634 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15635 PyObject *resultobj;
15636 wxImageList *arg1 = (wxImageList *) 0 ;
15637 wxBitmap *arg2 = 0 ;
15638 wxColour *arg3 = 0 ;
15639 int result;
15640 wxColour temp3 ;
15641 PyObject * obj0 = 0 ;
15642 PyObject * obj1 = 0 ;
15643 PyObject * obj2 = 0 ;
15644 char *kwnames[] = {
15645 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
15646 };
15647
15648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15650 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15651 if (arg2 == NULL) {
15652 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15653 }
15654 {
15655 arg3 = &temp3;
15656 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15657 }
15658 {
15659 PyThreadState* __tstate = wxPyBeginAllowThreads();
15660 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
15661
15662 wxPyEndAllowThreads(__tstate);
15663 if (PyErr_Occurred()) SWIG_fail;
15664 }
15665 resultobj = SWIG_PyObj_FromInt((int)result);
15666 return resultobj;
15667 fail:
15668 return NULL;
15669 }
15670
15671
15672 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
15673 PyObject *resultobj;
15674 wxImageList *arg1 = (wxImageList *) 0 ;
15675 wxIcon *arg2 = 0 ;
15676 int result;
15677 PyObject * obj0 = 0 ;
15678 PyObject * obj1 = 0 ;
15679 char *kwnames[] = {
15680 (char *) "self",(char *) "icon", NULL
15681 };
15682
15683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15685 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15686 if (arg2 == NULL) {
15687 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15688 }
15689 {
15690 PyThreadState* __tstate = wxPyBeginAllowThreads();
15691 result = (int)(arg1)->Add((wxIcon const &)*arg2);
15692
15693 wxPyEndAllowThreads(__tstate);
15694 if (PyErr_Occurred()) SWIG_fail;
15695 }
15696 resultobj = SWIG_PyObj_FromInt((int)result);
15697 return resultobj;
15698 fail:
15699 return NULL;
15700 }
15701
15702
15703 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
15704 PyObject *resultobj;
15705 wxImageList *arg1 = (wxImageList *) 0 ;
15706 int arg2 ;
15707 wxBitmap *arg3 = 0 ;
15708 bool result;
15709 PyObject * obj0 = 0 ;
15710 PyObject * obj1 = 0 ;
15711 PyObject * obj2 = 0 ;
15712 char *kwnames[] = {
15713 (char *) "self",(char *) "index",(char *) "bitmap", NULL
15714 };
15715
15716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
15717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15718 {
15719 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15720 if (PyErr_Occurred()) SWIG_fail;
15721 }
15722 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15723 if (arg3 == NULL) {
15724 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15725 }
15726 {
15727 PyThreadState* __tstate = wxPyBeginAllowThreads();
15728 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
15729
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
15733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15734 return resultobj;
15735 fail:
15736 return NULL;
15737 }
15738
15739
15740 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
15741 PyObject *resultobj;
15742 wxImageList *arg1 = (wxImageList *) 0 ;
15743 int arg2 ;
15744 wxDC *arg3 = 0 ;
15745 int arg4 ;
15746 int arg5 ;
15747 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
15748 bool arg7 = (bool) (bool)False ;
15749 bool result;
15750 PyObject * obj0 = 0 ;
15751 PyObject * obj1 = 0 ;
15752 PyObject * obj2 = 0 ;
15753 PyObject * obj3 = 0 ;
15754 PyObject * obj4 = 0 ;
15755 PyObject * obj5 = 0 ;
15756 PyObject * obj6 = 0 ;
15757 char *kwnames[] = {
15758 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
15759 };
15760
15761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15763 {
15764 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15765 if (PyErr_Occurred()) SWIG_fail;
15766 }
15767 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15768 if (arg3 == NULL) {
15769 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15770 }
15771 {
15772 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15773 if (PyErr_Occurred()) SWIG_fail;
15774 }
15775 {
15776 arg5 = (int) SWIG_PyObj_AsInt(obj4);
15777 if (PyErr_Occurred()) SWIG_fail;
15778 }
15779 if (obj5) {
15780 {
15781 arg6 = (int) SWIG_PyObj_AsInt(obj5);
15782 if (PyErr_Occurred()) SWIG_fail;
15783 }
15784 }
15785 if (obj6) {
15786 {
15787 arg7 = (bool const) SWIG_PyObj_AsBool(obj6);
15788 if (PyErr_Occurred()) SWIG_fail;
15789 }
15790 }
15791 {
15792 PyThreadState* __tstate = wxPyBeginAllowThreads();
15793 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
15794
15795 wxPyEndAllowThreads(__tstate);
15796 if (PyErr_Occurred()) SWIG_fail;
15797 }
15798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15799 return resultobj;
15800 fail:
15801 return NULL;
15802 }
15803
15804
15805 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15806 PyObject *resultobj;
15807 wxImageList *arg1 = (wxImageList *) 0 ;
15808 int result;
15809 PyObject * obj0 = 0 ;
15810 char *kwnames[] = {
15811 (char *) "self", NULL
15812 };
15813
15814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
15815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15816 {
15817 PyThreadState* __tstate = wxPyBeginAllowThreads();
15818 result = (int)(arg1)->GetImageCount();
15819
15820 wxPyEndAllowThreads(__tstate);
15821 if (PyErr_Occurred()) SWIG_fail;
15822 }
15823 resultobj = SWIG_PyObj_FromInt((int)result);
15824 return resultobj;
15825 fail:
15826 return NULL;
15827 }
15828
15829
15830 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
15831 PyObject *resultobj;
15832 wxImageList *arg1 = (wxImageList *) 0 ;
15833 int arg2 ;
15834 bool result;
15835 PyObject * obj0 = 0 ;
15836 PyObject * obj1 = 0 ;
15837 char *kwnames[] = {
15838 (char *) "self",(char *) "index", NULL
15839 };
15840
15841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
15842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15843 {
15844 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15845 if (PyErr_Occurred()) SWIG_fail;
15846 }
15847 {
15848 PyThreadState* __tstate = wxPyBeginAllowThreads();
15849 result = (bool)(arg1)->Remove(arg2);
15850
15851 wxPyEndAllowThreads(__tstate);
15852 if (PyErr_Occurred()) SWIG_fail;
15853 }
15854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15855 return resultobj;
15856 fail:
15857 return NULL;
15858 }
15859
15860
15861 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15862 PyObject *resultobj;
15863 wxImageList *arg1 = (wxImageList *) 0 ;
15864 bool result;
15865 PyObject * obj0 = 0 ;
15866 char *kwnames[] = {
15867 (char *) "self", NULL
15868 };
15869
15870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
15871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15872 {
15873 PyThreadState* __tstate = wxPyBeginAllowThreads();
15874 result = (bool)(arg1)->RemoveAll();
15875
15876 wxPyEndAllowThreads(__tstate);
15877 if (PyErr_Occurred()) SWIG_fail;
15878 }
15879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15880 return resultobj;
15881 fail:
15882 return NULL;
15883 }
15884
15885
15886 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15887 PyObject *resultobj;
15888 wxImageList *arg1 = (wxImageList *) 0 ;
15889 int arg2 ;
15890 int *arg3 = 0 ;
15891 int *arg4 = 0 ;
15892 int temp3 ;
15893 int temp4 ;
15894 PyObject * obj0 = 0 ;
15895 PyObject * obj1 = 0 ;
15896 char *kwnames[] = {
15897 (char *) "self",(char *) "index", NULL
15898 };
15899
15900 arg3 = &temp3;
15901 arg4 = &temp4;
15902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
15903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15904 {
15905 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15906 if (PyErr_Occurred()) SWIG_fail;
15907 }
15908 {
15909 PyThreadState* __tstate = wxPyBeginAllowThreads();
15910 (arg1)->GetSize(arg2,*arg3,*arg4);
15911
15912 wxPyEndAllowThreads(__tstate);
15913 if (PyErr_Occurred()) SWIG_fail;
15914 }
15915 Py_INCREF(Py_None); resultobj = Py_None;
15916 {
15917 PyObject *o = PyInt_FromLong((long) (*arg3));
15918 resultobj = t_output_helper(resultobj,o);
15919 }
15920 {
15921 PyObject *o = PyInt_FromLong((long) (*arg4));
15922 resultobj = t_output_helper(resultobj,o);
15923 }
15924 return resultobj;
15925 fail:
15926 return NULL;
15927 }
15928
15929
15930 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
15931 PyObject *obj;
15932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15933 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
15934 Py_INCREF(obj);
15935 return Py_BuildValue((char *)"");
15936 }
15937 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
15938 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
15939 return 1;
15940 }
15941
15942
15943 static PyObject *_wrap_NORMAL_FONT_get() {
15944 PyObject *pyobj;
15945
15946 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
15947 return pyobj;
15948 }
15949
15950
15951 static int _wrap_SMALL_FONT_set(PyObject *_val) {
15952 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
15953 return 1;
15954 }
15955
15956
15957 static PyObject *_wrap_SMALL_FONT_get() {
15958 PyObject *pyobj;
15959
15960 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
15961 return pyobj;
15962 }
15963
15964
15965 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
15966 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
15967 return 1;
15968 }
15969
15970
15971 static PyObject *_wrap_ITALIC_FONT_get() {
15972 PyObject *pyobj;
15973
15974 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
15975 return pyobj;
15976 }
15977
15978
15979 static int _wrap_SWISS_FONT_set(PyObject *_val) {
15980 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
15981 return 1;
15982 }
15983
15984
15985 static PyObject *_wrap_SWISS_FONT_get() {
15986 PyObject *pyobj;
15987
15988 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
15989 return pyobj;
15990 }
15991
15992
15993 static int _wrap_RED_PEN_set(PyObject *_val) {
15994 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
15995 return 1;
15996 }
15997
15998
15999 static PyObject *_wrap_RED_PEN_get() {
16000 PyObject *pyobj;
16001
16002 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
16003 return pyobj;
16004 }
16005
16006
16007 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16008 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16009 return 1;
16010 }
16011
16012
16013 static PyObject *_wrap_CYAN_PEN_get() {
16014 PyObject *pyobj;
16015
16016 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
16017 return pyobj;
16018 }
16019
16020
16021 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16022 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16023 return 1;
16024 }
16025
16026
16027 static PyObject *_wrap_GREEN_PEN_get() {
16028 PyObject *pyobj;
16029
16030 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
16031 return pyobj;
16032 }
16033
16034
16035 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16036 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16037 return 1;
16038 }
16039
16040
16041 static PyObject *_wrap_BLACK_PEN_get() {
16042 PyObject *pyobj;
16043
16044 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
16045 return pyobj;
16046 }
16047
16048
16049 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16050 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16051 return 1;
16052 }
16053
16054
16055 static PyObject *_wrap_WHITE_PEN_get() {
16056 PyObject *pyobj;
16057
16058 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
16059 return pyobj;
16060 }
16061
16062
16063 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16064 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16065 return 1;
16066 }
16067
16068
16069 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16070 PyObject *pyobj;
16071
16072 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
16073 return pyobj;
16074 }
16075
16076
16077 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16078 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16079 return 1;
16080 }
16081
16082
16083 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16084 PyObject *pyobj;
16085
16086 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
16087 return pyobj;
16088 }
16089
16090
16091 static int _wrap_GREY_PEN_set(PyObject *_val) {
16092 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16093 return 1;
16094 }
16095
16096
16097 static PyObject *_wrap_GREY_PEN_get() {
16098 PyObject *pyobj;
16099
16100 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
16101 return pyobj;
16102 }
16103
16104
16105 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16106 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16107 return 1;
16108 }
16109
16110
16111 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16112 PyObject *pyobj;
16113
16114 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16115 return pyobj;
16116 }
16117
16118
16119 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16120 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16121 return 1;
16122 }
16123
16124
16125 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16126 PyObject *pyobj;
16127
16128 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16129 return pyobj;
16130 }
16131
16132
16133 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16134 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16135 return 1;
16136 }
16137
16138
16139 static PyObject *_wrap_BLUE_BRUSH_get() {
16140 PyObject *pyobj;
16141
16142 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16143 return pyobj;
16144 }
16145
16146
16147 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16148 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16149 return 1;
16150 }
16151
16152
16153 static PyObject *_wrap_GREEN_BRUSH_get() {
16154 PyObject *pyobj;
16155
16156 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16157 return pyobj;
16158 }
16159
16160
16161 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16162 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16163 return 1;
16164 }
16165
16166
16167 static PyObject *_wrap_WHITE_BRUSH_get() {
16168 PyObject *pyobj;
16169
16170 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16171 return pyobj;
16172 }
16173
16174
16175 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16176 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16177 return 1;
16178 }
16179
16180
16181 static PyObject *_wrap_BLACK_BRUSH_get() {
16182 PyObject *pyobj;
16183
16184 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
16185 return pyobj;
16186 }
16187
16188
16189 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16190 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16191 return 1;
16192 }
16193
16194
16195 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16196 PyObject *pyobj;
16197
16198 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
16199 return pyobj;
16200 }
16201
16202
16203 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16204 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16205 return 1;
16206 }
16207
16208
16209 static PyObject *_wrap_CYAN_BRUSH_get() {
16210 PyObject *pyobj;
16211
16212 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16213 return pyobj;
16214 }
16215
16216
16217 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16218 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16219 return 1;
16220 }
16221
16222
16223 static PyObject *_wrap_RED_BRUSH_get() {
16224 PyObject *pyobj;
16225
16226 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
16227 return pyobj;
16228 }
16229
16230
16231 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16232 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16233 return 1;
16234 }
16235
16236
16237 static PyObject *_wrap_GREY_BRUSH_get() {
16238 PyObject *pyobj;
16239
16240 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16241 return pyobj;
16242 }
16243
16244
16245 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16246 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16247 return 1;
16248 }
16249
16250
16251 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16252 PyObject *pyobj;
16253
16254 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16255 return pyobj;
16256 }
16257
16258
16259 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16260 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16261 return 1;
16262 }
16263
16264
16265 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16266 PyObject *pyobj;
16267
16268 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16269 return pyobj;
16270 }
16271
16272
16273 static int _wrap_BLACK_set(PyObject *_val) {
16274 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16275 return 1;
16276 }
16277
16278
16279 static PyObject *_wrap_BLACK_get() {
16280 PyObject *pyobj;
16281
16282 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
16283 return pyobj;
16284 }
16285
16286
16287 static int _wrap_WHITE_set(PyObject *_val) {
16288 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16289 return 1;
16290 }
16291
16292
16293 static PyObject *_wrap_WHITE_get() {
16294 PyObject *pyobj;
16295
16296 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
16297 return pyobj;
16298 }
16299
16300
16301 static int _wrap_RED_set(PyObject *_val) {
16302 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16303 return 1;
16304 }
16305
16306
16307 static PyObject *_wrap_RED_get() {
16308 PyObject *pyobj;
16309
16310 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
16311 return pyobj;
16312 }
16313
16314
16315 static int _wrap_BLUE_set(PyObject *_val) {
16316 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16317 return 1;
16318 }
16319
16320
16321 static PyObject *_wrap_BLUE_get() {
16322 PyObject *pyobj;
16323
16324 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
16325 return pyobj;
16326 }
16327
16328
16329 static int _wrap_GREEN_set(PyObject *_val) {
16330 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16331 return 1;
16332 }
16333
16334
16335 static PyObject *_wrap_GREEN_get() {
16336 PyObject *pyobj;
16337
16338 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
16339 return pyobj;
16340 }
16341
16342
16343 static int _wrap_CYAN_set(PyObject *_val) {
16344 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16345 return 1;
16346 }
16347
16348
16349 static PyObject *_wrap_CYAN_get() {
16350 PyObject *pyobj;
16351
16352 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
16353 return pyobj;
16354 }
16355
16356
16357 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16358 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16359 return 1;
16360 }
16361
16362
16363 static PyObject *_wrap_LIGHT_GREY_get() {
16364 PyObject *pyobj;
16365
16366 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
16367 return pyobj;
16368 }
16369
16370
16371 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16372 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16373 return 1;
16374 }
16375
16376
16377 static PyObject *_wrap_STANDARD_CURSOR_get() {
16378 PyObject *pyobj;
16379
16380 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
16381 return pyobj;
16382 }
16383
16384
16385 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16386 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16387 return 1;
16388 }
16389
16390
16391 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16392 PyObject *pyobj;
16393
16394 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16395 return pyobj;
16396 }
16397
16398
16399 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16400 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16401 return 1;
16402 }
16403
16404
16405 static PyObject *_wrap_CROSS_CURSOR_get() {
16406 PyObject *pyobj;
16407
16408 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16409 return pyobj;
16410 }
16411
16412
16413 static int _wrap_NullBitmap_set(PyObject *_val) {
16414 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16415 return 1;
16416 }
16417
16418
16419 static PyObject *_wrap_NullBitmap_get() {
16420 PyObject *pyobj;
16421
16422 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
16423 return pyobj;
16424 }
16425
16426
16427 static int _wrap_NullIcon_set(PyObject *_val) {
16428 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16429 return 1;
16430 }
16431
16432
16433 static PyObject *_wrap_NullIcon_get() {
16434 PyObject *pyobj;
16435
16436 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
16437 return pyobj;
16438 }
16439
16440
16441 static int _wrap_NullCursor_set(PyObject *_val) {
16442 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16443 return 1;
16444 }
16445
16446
16447 static PyObject *_wrap_NullCursor_get() {
16448 PyObject *pyobj;
16449
16450 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
16451 return pyobj;
16452 }
16453
16454
16455 static int _wrap_NullPen_set(PyObject *_val) {
16456 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16457 return 1;
16458 }
16459
16460
16461 static PyObject *_wrap_NullPen_get() {
16462 PyObject *pyobj;
16463
16464 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
16465 return pyobj;
16466 }
16467
16468
16469 static int _wrap_NullBrush_set(PyObject *_val) {
16470 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16471 return 1;
16472 }
16473
16474
16475 static PyObject *_wrap_NullBrush_get() {
16476 PyObject *pyobj;
16477
16478 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
16479 return pyobj;
16480 }
16481
16482
16483 static int _wrap_NullPalette_set(PyObject *_val) {
16484 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16485 return 1;
16486 }
16487
16488
16489 static PyObject *_wrap_NullPalette_get() {
16490 PyObject *pyobj;
16491
16492 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
16493 return pyobj;
16494 }
16495
16496
16497 static int _wrap_NullFont_set(PyObject *_val) {
16498 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16499 return 1;
16500 }
16501
16502
16503 static PyObject *_wrap_NullFont_get() {
16504 PyObject *pyobj;
16505
16506 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
16507 return pyobj;
16508 }
16509
16510
16511 static int _wrap_NullColour_set(PyObject *_val) {
16512 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16513 return 1;
16514 }
16515
16516
16517 static PyObject *_wrap_NullColour_get() {
16518 PyObject *pyobj;
16519
16520 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
16521 return pyobj;
16522 }
16523
16524
16525 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16526 PyObject *resultobj;
16527 wxPenList *arg1 = (wxPenList *) 0 ;
16528 wxPen *arg2 = (wxPen *) 0 ;
16529 PyObject * obj0 = 0 ;
16530 PyObject * obj1 = 0 ;
16531 char *kwnames[] = {
16532 (char *) "self",(char *) "pen", NULL
16533 };
16534
16535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
16536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16537 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16538 {
16539 PyThreadState* __tstate = wxPyBeginAllowThreads();
16540 (arg1)->AddPen(arg2);
16541
16542 wxPyEndAllowThreads(__tstate);
16543 if (PyErr_Occurred()) SWIG_fail;
16544 }
16545 Py_INCREF(Py_None); resultobj = Py_None;
16546 return resultobj;
16547 fail:
16548 return NULL;
16549 }
16550
16551
16552 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16553 PyObject *resultobj;
16554 wxPenList *arg1 = (wxPenList *) 0 ;
16555 wxColour *arg2 = 0 ;
16556 int arg3 ;
16557 int arg4 ;
16558 wxPen *result;
16559 wxColour temp2 ;
16560 PyObject * obj0 = 0 ;
16561 PyObject * obj1 = 0 ;
16562 PyObject * obj2 = 0 ;
16563 PyObject * obj3 = 0 ;
16564 char *kwnames[] = {
16565 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16566 };
16567
16568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16570 {
16571 arg2 = &temp2;
16572 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16573 }
16574 {
16575 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16576 if (PyErr_Occurred()) SWIG_fail;
16577 }
16578 {
16579 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16580 if (PyErr_Occurred()) SWIG_fail;
16581 }
16582 {
16583 PyThreadState* __tstate = wxPyBeginAllowThreads();
16584 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
16585
16586 wxPyEndAllowThreads(__tstate);
16587 if (PyErr_Occurred()) SWIG_fail;
16588 }
16589 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
16590 return resultobj;
16591 fail:
16592 return NULL;
16593 }
16594
16595
16596 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16597 PyObject *resultobj;
16598 wxPenList *arg1 = (wxPenList *) 0 ;
16599 wxPen *arg2 = (wxPen *) 0 ;
16600 PyObject * obj0 = 0 ;
16601 PyObject * obj1 = 0 ;
16602 char *kwnames[] = {
16603 (char *) "self",(char *) "pen", NULL
16604 };
16605
16606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
16607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16608 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16609 {
16610 PyThreadState* __tstate = wxPyBeginAllowThreads();
16611 (arg1)->RemovePen(arg2);
16612
16613 wxPyEndAllowThreads(__tstate);
16614 if (PyErr_Occurred()) SWIG_fail;
16615 }
16616 Py_INCREF(Py_None); resultobj = Py_None;
16617 return resultobj;
16618 fail:
16619 return NULL;
16620 }
16621
16622
16623 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16624 PyObject *resultobj;
16625 wxPenList *arg1 = (wxPenList *) 0 ;
16626 int result;
16627 PyObject * obj0 = 0 ;
16628 char *kwnames[] = {
16629 (char *) "self", NULL
16630 };
16631
16632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
16633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16634 {
16635 PyThreadState* __tstate = wxPyBeginAllowThreads();
16636 result = (int)(arg1)->GetCount();
16637
16638 wxPyEndAllowThreads(__tstate);
16639 if (PyErr_Occurred()) SWIG_fail;
16640 }
16641 resultobj = SWIG_PyObj_FromInt((int)result);
16642 return resultobj;
16643 fail:
16644 return NULL;
16645 }
16646
16647
16648 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
16649 PyObject *obj;
16650 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16651 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
16652 Py_INCREF(obj);
16653 return Py_BuildValue((char *)"");
16654 }
16655 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16656 PyObject *resultobj;
16657 wxBrushList *arg1 = (wxBrushList *) 0 ;
16658 wxBrush *arg2 = (wxBrush *) 0 ;
16659 PyObject * obj0 = 0 ;
16660 PyObject * obj1 = 0 ;
16661 char *kwnames[] = {
16662 (char *) "self",(char *) "brush", NULL
16663 };
16664
16665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
16666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16667 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16668 {
16669 PyThreadState* __tstate = wxPyBeginAllowThreads();
16670 (arg1)->AddBrush(arg2);
16671
16672 wxPyEndAllowThreads(__tstate);
16673 if (PyErr_Occurred()) SWIG_fail;
16674 }
16675 Py_INCREF(Py_None); resultobj = Py_None;
16676 return resultobj;
16677 fail:
16678 return NULL;
16679 }
16680
16681
16682 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16683 PyObject *resultobj;
16684 wxBrushList *arg1 = (wxBrushList *) 0 ;
16685 wxColour *arg2 = 0 ;
16686 int arg3 ;
16687 wxBrush *result;
16688 wxColour temp2 ;
16689 PyObject * obj0 = 0 ;
16690 PyObject * obj1 = 0 ;
16691 PyObject * obj2 = 0 ;
16692 char *kwnames[] = {
16693 (char *) "self",(char *) "colour",(char *) "style", NULL
16694 };
16695
16696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
16697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16698 {
16699 arg2 = &temp2;
16700 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16701 }
16702 {
16703 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16704 if (PyErr_Occurred()) SWIG_fail;
16705 }
16706 {
16707 PyThreadState* __tstate = wxPyBeginAllowThreads();
16708 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
16709
16710 wxPyEndAllowThreads(__tstate);
16711 if (PyErr_Occurred()) SWIG_fail;
16712 }
16713 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
16714 return resultobj;
16715 fail:
16716 return NULL;
16717 }
16718
16719
16720 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16721 PyObject *resultobj;
16722 wxBrushList *arg1 = (wxBrushList *) 0 ;
16723 wxBrush *arg2 = (wxBrush *) 0 ;
16724 PyObject * obj0 = 0 ;
16725 PyObject * obj1 = 0 ;
16726 char *kwnames[] = {
16727 (char *) "self",(char *) "brush", NULL
16728 };
16729
16730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
16731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16732 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16733 {
16734 PyThreadState* __tstate = wxPyBeginAllowThreads();
16735 (arg1)->RemoveBrush(arg2);
16736
16737 wxPyEndAllowThreads(__tstate);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
16740 Py_INCREF(Py_None); resultobj = Py_None;
16741 return resultobj;
16742 fail:
16743 return NULL;
16744 }
16745
16746
16747 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16748 PyObject *resultobj;
16749 wxBrushList *arg1 = (wxBrushList *) 0 ;
16750 int result;
16751 PyObject * obj0 = 0 ;
16752 char *kwnames[] = {
16753 (char *) "self", NULL
16754 };
16755
16756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
16757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16758 {
16759 PyThreadState* __tstate = wxPyBeginAllowThreads();
16760 result = (int)(arg1)->GetCount();
16761
16762 wxPyEndAllowThreads(__tstate);
16763 if (PyErr_Occurred()) SWIG_fail;
16764 }
16765 resultobj = SWIG_PyObj_FromInt((int)result);
16766 return resultobj;
16767 fail:
16768 return NULL;
16769 }
16770
16771
16772 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
16773 PyObject *obj;
16774 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16775 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
16776 Py_INCREF(obj);
16777 return Py_BuildValue((char *)"");
16778 }
16779 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16780 PyObject *resultobj;
16781 wxColourDatabase *result;
16782 char *kwnames[] = {
16783 NULL
16784 };
16785
16786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
16787 {
16788 PyThreadState* __tstate = wxPyBeginAllowThreads();
16789 result = (wxColourDatabase *)new wxColourDatabase();
16790
16791 wxPyEndAllowThreads(__tstate);
16792 if (PyErr_Occurred()) SWIG_fail;
16793 }
16794 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
16795 return resultobj;
16796 fail:
16797 return NULL;
16798 }
16799
16800
16801 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16802 PyObject *resultobj;
16803 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16804 PyObject * obj0 = 0 ;
16805 char *kwnames[] = {
16806 (char *) "self", NULL
16807 };
16808
16809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
16810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16811 {
16812 PyThreadState* __tstate = wxPyBeginAllowThreads();
16813 delete arg1;
16814
16815 wxPyEndAllowThreads(__tstate);
16816 if (PyErr_Occurred()) SWIG_fail;
16817 }
16818 Py_INCREF(Py_None); resultobj = Py_None;
16819 return resultobj;
16820 fail:
16821 return NULL;
16822 }
16823
16824
16825 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
16826 PyObject *resultobj;
16827 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16828 wxString *arg2 = 0 ;
16829 wxColour result;
16830 bool temp2 = False ;
16831 PyObject * obj0 = 0 ;
16832 PyObject * obj1 = 0 ;
16833 char *kwnames[] = {
16834 (char *) "self",(char *) "name", NULL
16835 };
16836
16837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
16838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16839 {
16840 arg2 = wxString_in_helper(obj1);
16841 if (arg2 == NULL) SWIG_fail;
16842 temp2 = True;
16843 }
16844 {
16845 PyThreadState* __tstate = wxPyBeginAllowThreads();
16846 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
16847
16848 wxPyEndAllowThreads(__tstate);
16849 if (PyErr_Occurred()) SWIG_fail;
16850 }
16851 {
16852 wxColour * resultptr;
16853 resultptr = new wxColour((wxColour &) result);
16854 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16855 }
16856 {
16857 if (temp2)
16858 delete arg2;
16859 }
16860 return resultobj;
16861 fail:
16862 {
16863 if (temp2)
16864 delete arg2;
16865 }
16866 return NULL;
16867 }
16868
16869
16870 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
16871 PyObject *resultobj;
16872 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16873 wxColour *arg2 = 0 ;
16874 wxString result;
16875 wxColour temp2 ;
16876 PyObject * obj0 = 0 ;
16877 PyObject * obj1 = 0 ;
16878 char *kwnames[] = {
16879 (char *) "self",(char *) "colour", NULL
16880 };
16881
16882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
16883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16884 {
16885 arg2 = &temp2;
16886 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16887 }
16888 {
16889 PyThreadState* __tstate = wxPyBeginAllowThreads();
16890 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
16891
16892 wxPyEndAllowThreads(__tstate);
16893 if (PyErr_Occurred()) SWIG_fail;
16894 }
16895 {
16896 #if wxUSE_UNICODE
16897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16898 #else
16899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16900 #endif
16901 }
16902 return resultobj;
16903 fail:
16904 return NULL;
16905 }
16906
16907
16908 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16909 PyObject *resultobj;
16910 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16911 wxString *arg2 = 0 ;
16912 wxColour *arg3 = 0 ;
16913 bool temp2 = False ;
16914 wxColour temp3 ;
16915 PyObject * obj0 = 0 ;
16916 PyObject * obj1 = 0 ;
16917 PyObject * obj2 = 0 ;
16918 char *kwnames[] = {
16919 (char *) "self",(char *) "name",(char *) "colour", NULL
16920 };
16921
16922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
16923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16924 {
16925 arg2 = wxString_in_helper(obj1);
16926 if (arg2 == NULL) SWIG_fail;
16927 temp2 = True;
16928 }
16929 {
16930 arg3 = &temp3;
16931 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16932 }
16933 {
16934 PyThreadState* __tstate = wxPyBeginAllowThreads();
16935 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
16936
16937 wxPyEndAllowThreads(__tstate);
16938 if (PyErr_Occurred()) SWIG_fail;
16939 }
16940 Py_INCREF(Py_None); resultobj = Py_None;
16941 {
16942 if (temp2)
16943 delete arg2;
16944 }
16945 return resultobj;
16946 fail:
16947 {
16948 if (temp2)
16949 delete arg2;
16950 }
16951 return NULL;
16952 }
16953
16954
16955 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
16956 PyObject *resultobj;
16957 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16958 wxString *arg2 = 0 ;
16959 int arg3 ;
16960 int arg4 ;
16961 int arg5 ;
16962 bool temp2 = False ;
16963 PyObject * obj0 = 0 ;
16964 PyObject * obj1 = 0 ;
16965 PyObject * obj2 = 0 ;
16966 PyObject * obj3 = 0 ;
16967 PyObject * obj4 = 0 ;
16968 char *kwnames[] = {
16969 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
16970 };
16971
16972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16974 {
16975 arg2 = wxString_in_helper(obj1);
16976 if (arg2 == NULL) SWIG_fail;
16977 temp2 = True;
16978 }
16979 {
16980 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16981 if (PyErr_Occurred()) SWIG_fail;
16982 }
16983 {
16984 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16985 if (PyErr_Occurred()) SWIG_fail;
16986 }
16987 {
16988 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 }
16991 {
16992 PyThreadState* __tstate = wxPyBeginAllowThreads();
16993 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
16994
16995 wxPyEndAllowThreads(__tstate);
16996 if (PyErr_Occurred()) SWIG_fail;
16997 }
16998 Py_INCREF(Py_None); resultobj = Py_None;
16999 {
17000 if (temp2)
17001 delete arg2;
17002 }
17003 return resultobj;
17004 fail:
17005 {
17006 if (temp2)
17007 delete arg2;
17008 }
17009 return NULL;
17010 }
17011
17012
17013 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17014 PyObject *obj;
17015 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17016 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17017 Py_INCREF(obj);
17018 return Py_BuildValue((char *)"");
17019 }
17020 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17021 PyObject *resultobj;
17022 wxFontList *arg1 = (wxFontList *) 0 ;
17023 wxFont *arg2 = (wxFont *) 0 ;
17024 PyObject * obj0 = 0 ;
17025 PyObject * obj1 = 0 ;
17026 char *kwnames[] = {
17027 (char *) "self",(char *) "font", NULL
17028 };
17029
17030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17032 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17033 {
17034 PyThreadState* __tstate = wxPyBeginAllowThreads();
17035 (arg1)->AddFont(arg2);
17036
17037 wxPyEndAllowThreads(__tstate);
17038 if (PyErr_Occurred()) SWIG_fail;
17039 }
17040 Py_INCREF(Py_None); resultobj = Py_None;
17041 return resultobj;
17042 fail:
17043 return NULL;
17044 }
17045
17046
17047 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17048 PyObject *resultobj;
17049 wxFontList *arg1 = (wxFontList *) 0 ;
17050 int arg2 ;
17051 int arg3 ;
17052 int arg4 ;
17053 int arg5 ;
17054 bool arg6 = (bool) False ;
17055 wxString const &arg7_defvalue = wxPyEmptyString ;
17056 wxString *arg7 = (wxString *) &arg7_defvalue ;
17057 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17058 wxFont *result;
17059 bool temp7 = False ;
17060 PyObject * obj0 = 0 ;
17061 PyObject * obj1 = 0 ;
17062 PyObject * obj2 = 0 ;
17063 PyObject * obj3 = 0 ;
17064 PyObject * obj4 = 0 ;
17065 PyObject * obj5 = 0 ;
17066 PyObject * obj6 = 0 ;
17067 PyObject * obj7 = 0 ;
17068 char *kwnames[] = {
17069 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17070 };
17071
17072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17074 {
17075 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17076 if (PyErr_Occurred()) SWIG_fail;
17077 }
17078 {
17079 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17080 if (PyErr_Occurred()) SWIG_fail;
17081 }
17082 {
17083 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17084 if (PyErr_Occurred()) SWIG_fail;
17085 }
17086 {
17087 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17088 if (PyErr_Occurred()) SWIG_fail;
17089 }
17090 if (obj5) {
17091 {
17092 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
17093 if (PyErr_Occurred()) SWIG_fail;
17094 }
17095 }
17096 if (obj6) {
17097 {
17098 arg7 = wxString_in_helper(obj6);
17099 if (arg7 == NULL) SWIG_fail;
17100 temp7 = True;
17101 }
17102 }
17103 if (obj7) {
17104 {
17105 arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7);
17106 if (PyErr_Occurred()) SWIG_fail;
17107 }
17108 }
17109 {
17110 PyThreadState* __tstate = wxPyBeginAllowThreads();
17111 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17112
17113 wxPyEndAllowThreads(__tstate);
17114 if (PyErr_Occurred()) SWIG_fail;
17115 }
17116 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
17117 {
17118 if (temp7)
17119 delete arg7;
17120 }
17121 return resultobj;
17122 fail:
17123 {
17124 if (temp7)
17125 delete arg7;
17126 }
17127 return NULL;
17128 }
17129
17130
17131 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17132 PyObject *resultobj;
17133 wxFontList *arg1 = (wxFontList *) 0 ;
17134 wxFont *arg2 = (wxFont *) 0 ;
17135 PyObject * obj0 = 0 ;
17136 PyObject * obj1 = 0 ;
17137 char *kwnames[] = {
17138 (char *) "self",(char *) "font", NULL
17139 };
17140
17141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17143 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17144 {
17145 PyThreadState* __tstate = wxPyBeginAllowThreads();
17146 (arg1)->RemoveFont(arg2);
17147
17148 wxPyEndAllowThreads(__tstate);
17149 if (PyErr_Occurred()) SWIG_fail;
17150 }
17151 Py_INCREF(Py_None); resultobj = Py_None;
17152 return resultobj;
17153 fail:
17154 return NULL;
17155 }
17156
17157
17158 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17159 PyObject *resultobj;
17160 wxFontList *arg1 = (wxFontList *) 0 ;
17161 int result;
17162 PyObject * obj0 = 0 ;
17163 char *kwnames[] = {
17164 (char *) "self", NULL
17165 };
17166
17167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17169 {
17170 PyThreadState* __tstate = wxPyBeginAllowThreads();
17171 result = (int)(arg1)->GetCount();
17172
17173 wxPyEndAllowThreads(__tstate);
17174 if (PyErr_Occurred()) SWIG_fail;
17175 }
17176 resultobj = SWIG_PyObj_FromInt((int)result);
17177 return resultobj;
17178 fail:
17179 return NULL;
17180 }
17181
17182
17183 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17184 PyObject *obj;
17185 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17186 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17187 Py_INCREF(obj);
17188 return Py_BuildValue((char *)"");
17189 }
17190 static int _wrap_TheFontList_set(PyObject *_val) {
17191 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17192 return 1;
17193 }
17194
17195
17196 static PyObject *_wrap_TheFontList_get() {
17197 PyObject *pyobj;
17198
17199 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
17200 return pyobj;
17201 }
17202
17203
17204 static int _wrap_ThePenList_set(PyObject *_val) {
17205 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17206 return 1;
17207 }
17208
17209
17210 static PyObject *_wrap_ThePenList_get() {
17211 PyObject *pyobj;
17212
17213 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
17214 return pyobj;
17215 }
17216
17217
17218 static int _wrap_TheBrushList_set(PyObject *_val) {
17219 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17220 return 1;
17221 }
17222
17223
17224 static PyObject *_wrap_TheBrushList_get() {
17225 PyObject *pyobj;
17226
17227 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
17228 return pyobj;
17229 }
17230
17231
17232 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17233 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17234 return 1;
17235 }
17236
17237
17238 static PyObject *_wrap_TheColourDatabase_get() {
17239 PyObject *pyobj;
17240
17241 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
17242 return pyobj;
17243 }
17244
17245
17246 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17247 PyObject *resultobj;
17248 wxEffects *result;
17249 char *kwnames[] = {
17250 NULL
17251 };
17252
17253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17254 {
17255 PyThreadState* __tstate = wxPyBeginAllowThreads();
17256 result = (wxEffects *)new wxEffects();
17257
17258 wxPyEndAllowThreads(__tstate);
17259 if (PyErr_Occurred()) SWIG_fail;
17260 }
17261 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
17262 return resultobj;
17263 fail:
17264 return NULL;
17265 }
17266
17267
17268 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17269 PyObject *resultobj;
17270 wxEffects *arg1 = (wxEffects *) 0 ;
17271 wxColour result;
17272 PyObject * obj0 = 0 ;
17273 char *kwnames[] = {
17274 (char *) "self", NULL
17275 };
17276
17277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17279 {
17280 PyThreadState* __tstate = wxPyBeginAllowThreads();
17281 result = ((wxEffects const *)arg1)->GetHighlightColour();
17282
17283 wxPyEndAllowThreads(__tstate);
17284 if (PyErr_Occurred()) SWIG_fail;
17285 }
17286 {
17287 wxColour * resultptr;
17288 resultptr = new wxColour((wxColour &) result);
17289 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17290 }
17291 return resultobj;
17292 fail:
17293 return NULL;
17294 }
17295
17296
17297 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17298 PyObject *resultobj;
17299 wxEffects *arg1 = (wxEffects *) 0 ;
17300 wxColour result;
17301 PyObject * obj0 = 0 ;
17302 char *kwnames[] = {
17303 (char *) "self", NULL
17304 };
17305
17306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17308 {
17309 PyThreadState* __tstate = wxPyBeginAllowThreads();
17310 result = ((wxEffects const *)arg1)->GetLightShadow();
17311
17312 wxPyEndAllowThreads(__tstate);
17313 if (PyErr_Occurred()) SWIG_fail;
17314 }
17315 {
17316 wxColour * resultptr;
17317 resultptr = new wxColour((wxColour &) result);
17318 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17319 }
17320 return resultobj;
17321 fail:
17322 return NULL;
17323 }
17324
17325
17326 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17327 PyObject *resultobj;
17328 wxEffects *arg1 = (wxEffects *) 0 ;
17329 wxColour result;
17330 PyObject * obj0 = 0 ;
17331 char *kwnames[] = {
17332 (char *) "self", NULL
17333 };
17334
17335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17337 {
17338 PyThreadState* __tstate = wxPyBeginAllowThreads();
17339 result = ((wxEffects const *)arg1)->GetFaceColour();
17340
17341 wxPyEndAllowThreads(__tstate);
17342 if (PyErr_Occurred()) SWIG_fail;
17343 }
17344 {
17345 wxColour * resultptr;
17346 resultptr = new wxColour((wxColour &) result);
17347 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17348 }
17349 return resultobj;
17350 fail:
17351 return NULL;
17352 }
17353
17354
17355 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17356 PyObject *resultobj;
17357 wxEffects *arg1 = (wxEffects *) 0 ;
17358 wxColour result;
17359 PyObject * obj0 = 0 ;
17360 char *kwnames[] = {
17361 (char *) "self", NULL
17362 };
17363
17364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17366 {
17367 PyThreadState* __tstate = wxPyBeginAllowThreads();
17368 result = ((wxEffects const *)arg1)->GetMediumShadow();
17369
17370 wxPyEndAllowThreads(__tstate);
17371 if (PyErr_Occurred()) SWIG_fail;
17372 }
17373 {
17374 wxColour * resultptr;
17375 resultptr = new wxColour((wxColour &) result);
17376 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17377 }
17378 return resultobj;
17379 fail:
17380 return NULL;
17381 }
17382
17383
17384 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17385 PyObject *resultobj;
17386 wxEffects *arg1 = (wxEffects *) 0 ;
17387 wxColour result;
17388 PyObject * obj0 = 0 ;
17389 char *kwnames[] = {
17390 (char *) "self", NULL
17391 };
17392
17393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17395 {
17396 PyThreadState* __tstate = wxPyBeginAllowThreads();
17397 result = ((wxEffects const *)arg1)->GetDarkShadow();
17398
17399 wxPyEndAllowThreads(__tstate);
17400 if (PyErr_Occurred()) SWIG_fail;
17401 }
17402 {
17403 wxColour * resultptr;
17404 resultptr = new wxColour((wxColour &) result);
17405 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17406 }
17407 return resultobj;
17408 fail:
17409 return NULL;
17410 }
17411
17412
17413 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17414 PyObject *resultobj;
17415 wxEffects *arg1 = (wxEffects *) 0 ;
17416 wxColour *arg2 = 0 ;
17417 wxColour temp2 ;
17418 PyObject * obj0 = 0 ;
17419 PyObject * obj1 = 0 ;
17420 char *kwnames[] = {
17421 (char *) "self",(char *) "c", NULL
17422 };
17423
17424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17426 {
17427 arg2 = &temp2;
17428 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17429 }
17430 {
17431 PyThreadState* __tstate = wxPyBeginAllowThreads();
17432 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17433
17434 wxPyEndAllowThreads(__tstate);
17435 if (PyErr_Occurred()) SWIG_fail;
17436 }
17437 Py_INCREF(Py_None); resultobj = Py_None;
17438 return resultobj;
17439 fail:
17440 return NULL;
17441 }
17442
17443
17444 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17445 PyObject *resultobj;
17446 wxEffects *arg1 = (wxEffects *) 0 ;
17447 wxColour *arg2 = 0 ;
17448 wxColour temp2 ;
17449 PyObject * obj0 = 0 ;
17450 PyObject * obj1 = 0 ;
17451 char *kwnames[] = {
17452 (char *) "self",(char *) "c", NULL
17453 };
17454
17455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17457 {
17458 arg2 = &temp2;
17459 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17460 }
17461 {
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 (arg1)->SetLightShadow((wxColour const &)*arg2);
17464
17465 wxPyEndAllowThreads(__tstate);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 }
17468 Py_INCREF(Py_None); resultobj = Py_None;
17469 return resultobj;
17470 fail:
17471 return NULL;
17472 }
17473
17474
17475 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17476 PyObject *resultobj;
17477 wxEffects *arg1 = (wxEffects *) 0 ;
17478 wxColour *arg2 = 0 ;
17479 wxColour temp2 ;
17480 PyObject * obj0 = 0 ;
17481 PyObject * obj1 = 0 ;
17482 char *kwnames[] = {
17483 (char *) "self",(char *) "c", NULL
17484 };
17485
17486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17488 {
17489 arg2 = &temp2;
17490 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17491 }
17492 {
17493 PyThreadState* __tstate = wxPyBeginAllowThreads();
17494 (arg1)->SetFaceColour((wxColour const &)*arg2);
17495
17496 wxPyEndAllowThreads(__tstate);
17497 if (PyErr_Occurred()) SWIG_fail;
17498 }
17499 Py_INCREF(Py_None); resultobj = Py_None;
17500 return resultobj;
17501 fail:
17502 return NULL;
17503 }
17504
17505
17506 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17507 PyObject *resultobj;
17508 wxEffects *arg1 = (wxEffects *) 0 ;
17509 wxColour *arg2 = 0 ;
17510 wxColour temp2 ;
17511 PyObject * obj0 = 0 ;
17512 PyObject * obj1 = 0 ;
17513 char *kwnames[] = {
17514 (char *) "self",(char *) "c", NULL
17515 };
17516
17517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17519 {
17520 arg2 = &temp2;
17521 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17522 }
17523 {
17524 PyThreadState* __tstate = wxPyBeginAllowThreads();
17525 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17526
17527 wxPyEndAllowThreads(__tstate);
17528 if (PyErr_Occurred()) SWIG_fail;
17529 }
17530 Py_INCREF(Py_None); resultobj = Py_None;
17531 return resultobj;
17532 fail:
17533 return NULL;
17534 }
17535
17536
17537 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17538 PyObject *resultobj;
17539 wxEffects *arg1 = (wxEffects *) 0 ;
17540 wxColour *arg2 = 0 ;
17541 wxColour temp2 ;
17542 PyObject * obj0 = 0 ;
17543 PyObject * obj1 = 0 ;
17544 char *kwnames[] = {
17545 (char *) "self",(char *) "c", NULL
17546 };
17547
17548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
17549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17550 {
17551 arg2 = &temp2;
17552 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17553 }
17554 {
17555 PyThreadState* __tstate = wxPyBeginAllowThreads();
17556 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17557
17558 wxPyEndAllowThreads(__tstate);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 }
17561 Py_INCREF(Py_None); resultobj = Py_None;
17562 return resultobj;
17563 fail:
17564 return NULL;
17565 }
17566
17567
17568 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17569 PyObject *resultobj;
17570 wxEffects *arg1 = (wxEffects *) 0 ;
17571 wxColour *arg2 = 0 ;
17572 wxColour *arg3 = 0 ;
17573 wxColour *arg4 = 0 ;
17574 wxColour *arg5 = 0 ;
17575 wxColour *arg6 = 0 ;
17576 wxColour temp2 ;
17577 wxColour temp3 ;
17578 wxColour temp4 ;
17579 wxColour temp5 ;
17580 wxColour temp6 ;
17581 PyObject * obj0 = 0 ;
17582 PyObject * obj1 = 0 ;
17583 PyObject * obj2 = 0 ;
17584 PyObject * obj3 = 0 ;
17585 PyObject * obj4 = 0 ;
17586 PyObject * obj5 = 0 ;
17587 char *kwnames[] = {
17588 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
17589 };
17590
17591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17593 {
17594 arg2 = &temp2;
17595 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17596 }
17597 {
17598 arg3 = &temp3;
17599 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17600 }
17601 {
17602 arg4 = &temp4;
17603 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17604 }
17605 {
17606 arg5 = &temp5;
17607 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
17608 }
17609 {
17610 arg6 = &temp6;
17611 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
17612 }
17613 {
17614 PyThreadState* __tstate = wxPyBeginAllowThreads();
17615 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
17616
17617 wxPyEndAllowThreads(__tstate);
17618 if (PyErr_Occurred()) SWIG_fail;
17619 }
17620 Py_INCREF(Py_None); resultobj = Py_None;
17621 return resultobj;
17622 fail:
17623 return NULL;
17624 }
17625
17626
17627 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
17628 PyObject *resultobj;
17629 wxEffects *arg1 = (wxEffects *) 0 ;
17630 wxDC *arg2 = 0 ;
17631 wxRect *arg3 = 0 ;
17632 int arg4 = (int) 1 ;
17633 wxRect temp3 ;
17634 PyObject * obj0 = 0 ;
17635 PyObject * obj1 = 0 ;
17636 PyObject * obj2 = 0 ;
17637 PyObject * obj3 = 0 ;
17638 char *kwnames[] = {
17639 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
17640 };
17641
17642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17644 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17645 if (arg2 == NULL) {
17646 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17647 }
17648 {
17649 arg3 = &temp3;
17650 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17651 }
17652 if (obj3) {
17653 {
17654 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17655 if (PyErr_Occurred()) SWIG_fail;
17656 }
17657 }
17658 {
17659 PyThreadState* __tstate = wxPyBeginAllowThreads();
17660 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
17661
17662 wxPyEndAllowThreads(__tstate);
17663 if (PyErr_Occurred()) SWIG_fail;
17664 }
17665 Py_INCREF(Py_None); resultobj = Py_None;
17666 return resultobj;
17667 fail:
17668 return NULL;
17669 }
17670
17671
17672 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
17673 PyObject *resultobj;
17674 wxEffects *arg1 = (wxEffects *) 0 ;
17675 wxRect *arg2 = 0 ;
17676 wxDC *arg3 = 0 ;
17677 wxBitmap *arg4 = 0 ;
17678 bool result;
17679 wxRect temp2 ;
17680 PyObject * obj0 = 0 ;
17681 PyObject * obj1 = 0 ;
17682 PyObject * obj2 = 0 ;
17683 PyObject * obj3 = 0 ;
17684 char *kwnames[] = {
17685 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
17686 };
17687
17688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17690 {
17691 arg2 = &temp2;
17692 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17693 }
17694 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17695 if (arg3 == NULL) {
17696 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17697 }
17698 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17699 if (arg4 == NULL) {
17700 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17701 }
17702 {
17703 PyThreadState* __tstate = wxPyBeginAllowThreads();
17704 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
17705
17706 wxPyEndAllowThreads(__tstate);
17707 if (PyErr_Occurred()) SWIG_fail;
17708 }
17709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17710 return resultobj;
17711 fail:
17712 return NULL;
17713 }
17714
17715
17716 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
17717 PyObject *obj;
17718 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17719 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
17720 Py_INCREF(obj);
17721 return Py_BuildValue((char *)"");
17722 }
17723 static PyMethodDef SwigMethods[] = {
17724 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
17725 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
17726 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
17727 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
17728 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
17729 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
17730 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
17731 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
17732 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
17733 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
17734 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
17735 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
17736 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
17737 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
17738 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
17739 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
17740 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
17741 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
17742 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
17743 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
17744 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
17745 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
17746 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
17747 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
17748 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
17749 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
17750 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
17751 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
17752 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
17753 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
17754 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
17755 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
17756 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
17757 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
17758 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
17759 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
17760 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
17761 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
17762 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
17763 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
17764 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17765 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
17766 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
17767 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
17768 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
17769 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
17770 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
17771 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17772 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
17773 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
17774 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
17775 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
17776 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
17777 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
17778 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
17779 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
17780 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
17781 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
17782 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
17783 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
17784 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
17785 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
17786 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
17787 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
17788 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
17789 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
17790 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
17791 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
17792 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
17793 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
17794 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
17795 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
17796 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
17797 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
17798 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
17799 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
17800 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
17801 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
17802 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
17803 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
17804 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
17805 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
17806 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
17807 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
17808 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
17809 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
17810 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
17811 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
17812 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
17813 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
17814 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
17815 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
17816 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
17817 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
17818 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
17819 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
17820 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
17821 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
17822 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
17823 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
17824 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
17825 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
17826 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
17827 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
17828 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
17829 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
17830 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
17831 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
17832 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
17833 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
17834 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
17835 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
17836 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
17837 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
17838 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
17839 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
17840 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
17841 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
17842 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
17843 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
17844 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
17845 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
17846 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
17847 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
17848 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
17849 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
17850 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
17851 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
17852 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
17853 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
17854 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
17855 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
17856 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
17857 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
17858 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
17859 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
17860 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
17861 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
17862 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
17863 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
17864 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
17865 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
17866 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
17867 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
17868 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
17869 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
17870 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
17871 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
17872 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
17873 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
17874 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
17875 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17876 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17877 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
17878 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
17879 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
17880 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
17881 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
17882 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
17883 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
17884 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
17885 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
17886 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
17887 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
17888 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
17889 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17890 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17891 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
17892 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
17893 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17894 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
17895 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
17896 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17897 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17898 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
17899 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17900 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17901 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
17902 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
17903 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17904 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17905 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
17906 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17907 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17908 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17909 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
17910 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
17911 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
17912 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
17913 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
17914 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
17915 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
17916 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
17917 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17918 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17919 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17920 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17921 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
17922 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
17923 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
17924 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
17925 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
17926 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
17927 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
17928 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
17929 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
17930 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17931 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
17932 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
17933 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
17934 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
17935 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
17936 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
17937 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
17938 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
17939 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
17940 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
17941 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
17942 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
17943 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
17944 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
17945 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
17946 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
17947 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
17948 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
17949 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17950 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
17951 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
17952 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
17953 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17954 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17955 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17956 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17957 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
17958 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
17959 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17960 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17961 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
17962 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
17963 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
17964 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17965 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17966 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17967 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17968 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
17969 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17970 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
17971 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
17972 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
17973 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17974 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17975 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17976 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17977 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
17978 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17979 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17980 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
17981 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
17982 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
17983 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
17984 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
17985 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
17986 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
17987 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
17988 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
17989 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
17990 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
17991 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
17992 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
17993 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
17994 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
17995 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
17996 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
17997 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
17998 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
17999 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18000 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18001 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18002 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18003 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18004 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18005 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18006 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18007 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18008 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18009 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18010 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18011 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18012 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18013 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18014 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18015 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18016 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18017 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18018 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18019 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18020 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18021 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18022 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18023 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18024 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18025 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18026 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18027 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18028 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18029 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18030 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18031 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18032 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18033 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18034 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18035 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18036 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18037 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18038 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18039 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18040 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18041 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18042 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18043 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18044 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18045 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18046 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18047 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18048 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18049 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18050 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18051 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18052 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18053 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18054 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18055 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18056 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18057 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18058 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18059 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18060 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18061 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18062 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18063 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18064 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18065 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18066 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18067 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18068 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18069 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18070 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18071 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18072 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18073 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18074 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18075 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18076 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18077 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18078 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18079 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18080 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18081 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18082 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18083 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18084 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18085 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18086 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18087 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18088 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18089 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18090 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18091 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18092 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18093 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18094 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18095 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18096 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18097 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18098 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18099 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18100 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18101 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18102 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18103 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18104 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18105 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18106 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18107 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18108 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18109 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18110 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18111 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18112 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18113 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18114 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18115 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18116 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18117 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18118 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18119 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18120 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18121 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18122 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18123 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18124 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18125 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18126 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18127 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18128 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18129 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18130 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18131 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18132 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18133 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18134 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18135 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18136 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18137 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18138 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18139 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18140 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18141 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18142 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18143 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18144 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18145 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18146 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18147 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18148 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18149 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18150 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18151 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18152 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18153 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18154 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18155 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18156 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18157 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18158 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18159 { (char *)"new_BufferedPaintDC", _wrap_new_BufferedPaintDC, METH_VARARGS },
18160 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18161 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18162 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18163 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18164 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18165 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18166 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18167 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18168 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18169 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18170 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18171 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18172 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18173 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18174 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18175 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18176 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18177 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18178 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18179 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18180 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18181 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18182 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18183 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18184 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18185 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18186 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18187 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18188 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18189 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18190 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18191 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18192 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18193 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18194 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18195 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18196 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18197 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18198 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18199 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18200 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18201 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18202 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18203 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18204 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18205 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18206 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18207 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18208 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18209 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18210 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18211 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18212 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18213 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18214 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18215 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18216 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18217 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18218 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18219 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18220 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18221 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18222 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18223 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18224 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18225 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18226 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18227 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18228 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18229 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18230 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18231 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18232 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18233 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18234 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18235 { NULL, NULL }
18236 };
18237
18238
18239 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18240
18241 static void *_p_wxControlTo_p_wxWindow(void *x) {
18242 return (void *)((wxWindow *) ((wxControl *) x));
18243 }
18244 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18245 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18246 }
18247 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18248 return (void *)((wxWindow *) ((wxMenuBar *) x));
18249 }
18250 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18251 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18252 }
18253 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18254 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18255 }
18256 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18257 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18258 }
18259 static void *_p_wxPenTo_p_wxObject(void *x) {
18260 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18261 }
18262 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18263 return (void *)((wxObject *) ((wxRegionIterator *) x));
18264 }
18265 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18266 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18267 }
18268 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18269 return (void *)((wxObject *) ((wxSizerItem *) x));
18270 }
18271 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18272 return (void *)((wxObject *) ((wxColourDatabase *) x));
18273 }
18274 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18275 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18276 }
18277 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18278 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18279 }
18280 static void *_p_wxIconTo_p_wxObject(void *x) {
18281 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18282 }
18283 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18284 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18285 }
18286 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18287 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18288 }
18289 static void *_p_wxSizerTo_p_wxObject(void *x) {
18290 return (void *)((wxObject *) ((wxSizer *) x));
18291 }
18292 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18293 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18294 }
18295 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18296 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18297 }
18298 static void *_p_wxPenListTo_p_wxObject(void *x) {
18299 return (void *)((wxObject *) ((wxPenList *) x));
18300 }
18301 static void *_p_wxEventTo_p_wxObject(void *x) {
18302 return (void *)((wxObject *) ((wxEvent *) x));
18303 }
18304 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18305 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18306 }
18307 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18308 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18309 }
18310 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18311 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18312 }
18313 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18314 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18315 }
18316 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18317 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18318 }
18319 static void *_p_wxDCTo_p_wxObject(void *x) {
18320 return (void *)((wxObject *) ((wxDC *) x));
18321 }
18322 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18323 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18324 }
18325 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18326 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18327 }
18328 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18329 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18330 }
18331 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18332 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18333 }
18334 static void *_p_wxControlTo_p_wxObject(void *x) {
18335 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18336 }
18337 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18338 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18339 }
18340 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18341 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18342 }
18343 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18344 return (void *)((wxObject *) ((wxFSFile *) x));
18345 }
18346 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18347 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18348 }
18349 static void *_p_wxRegionTo_p_wxObject(void *x) {
18350 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18351 }
18352 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18353 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18354 }
18355 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18356 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18357 }
18358 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18359 return (void *)((wxObject *) ((wxGDIObject *) x));
18360 }
18361 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18362 return (void *)((wxObject *) ((wxEffects *) x));
18363 }
18364 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18365 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18366 }
18367 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18368 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18369 }
18370 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18371 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18372 }
18373 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18374 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18375 }
18376 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18377 return (void *)((wxObject *) ((wxMenuItem *) x));
18378 }
18379 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18380 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18381 }
18382 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18383 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18384 }
18385 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18386 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18387 }
18388 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18389 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18390 }
18391 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18392 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18393 }
18394 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18395 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18396 }
18397 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18398 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18399 }
18400 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18401 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18402 }
18403 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18404 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18405 }
18406 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18407 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18408 }
18409 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18410 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18411 }
18412 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18413 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18414 }
18415 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18416 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18417 }
18418 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18419 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18420 }
18421 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18422 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18423 }
18424 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18425 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18426 }
18427 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18428 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18429 }
18430 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18431 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18432 }
18433 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18434 return (void *)((wxObject *) ((wxImageHandler *) x));
18435 }
18436 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18437 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18438 }
18439 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18440 return (void *)((wxObject *) ((wxEvtHandler *) x));
18441 }
18442 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18443 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18444 }
18445 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18446 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18447 }
18448 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18449 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18450 }
18451 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18452 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18453 }
18454 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18455 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18456 }
18457 static void *_p_wxImageTo_p_wxObject(void *x) {
18458 return (void *)((wxObject *) ((wxImage *) x));
18459 }
18460 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18461 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18462 }
18463 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18464 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18465 }
18466 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18467 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18468 }
18469 static void *_p_wxImageListTo_p_wxObject(void *x) {
18470 return (void *)((wxObject *) ((wxImageList *) x));
18471 }
18472 static void *_p_wxCursorTo_p_wxObject(void *x) {
18473 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18474 }
18475 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18476 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18477 }
18478 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18479 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18480 }
18481 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18482 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18483 }
18484 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18485 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18486 }
18487 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18488 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18489 }
18490 static void *_p_wxWindowTo_p_wxObject(void *x) {
18491 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18492 }
18493 static void *_p_wxMenuTo_p_wxObject(void *x) {
18494 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18495 }
18496 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18497 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18498 }
18499 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18500 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18501 }
18502 static void *_p_wxBrushListTo_p_wxObject(void *x) {
18503 return (void *)((wxObject *) ((wxBrushList *) x));
18504 }
18505 static void *_p_wxPyPenTo_p_wxObject(void *x) {
18506 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
18507 }
18508 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18509 return (void *)((wxObject *) ((wxFileSystem *) x));
18510 }
18511 static void *_p_wxBitmapTo_p_wxObject(void *x) {
18512 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18513 }
18514 static void *_p_wxMaskTo_p_wxObject(void *x) {
18515 return (void *)((wxObject *) ((wxMask *) x));
18516 }
18517 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18518 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18519 }
18520 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18521 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18522 }
18523 static void *_p_wxPyAppTo_p_wxObject(void *x) {
18524 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18525 }
18526 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18527 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18528 }
18529 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18530 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18531 }
18532 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18533 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18534 }
18535 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18536 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18537 }
18538 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18539 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18540 }
18541 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18542 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18543 }
18544 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
18545 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
18546 }
18547 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
18548 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
18549 }
18550 static void *_p_wxFontTo_p_wxObject(void *x) {
18551 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
18552 }
18553 static void *_p_wxBrushTo_p_wxObject(void *x) {
18554 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
18555 }
18556 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
18557 return (void *)((wxObject *) ((wxMetaFile *) x));
18558 }
18559 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
18560 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
18561 }
18562 static void *_p_wxColourTo_p_wxObject(void *x) {
18563 return (void *)((wxObject *) ((wxColour *) x));
18564 }
18565 static void *_p_wxFontListTo_p_wxObject(void *x) {
18566 return (void *)((wxObject *) ((wxFontList *) x));
18567 }
18568 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
18569 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
18570 }
18571 static void *_p_wxValidatorTo_p_wxObject(void *x) {
18572 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
18573 }
18574 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
18575 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
18576 }
18577 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
18578 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
18579 }
18580 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
18581 return (void *)((wxDC *) ((wxScreenDC *) x));
18582 }
18583 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
18584 return (void *)((wxDC *) ((wxMirrorDC *) x));
18585 }
18586 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
18587 return (void *)((wxDC *) ((wxMemoryDC *) x));
18588 }
18589 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
18590 return (void *)((wxDC *) ((wxWindowDC *) x));
18591 }
18592 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
18593 return (void *)((wxDC *) ((wxMetaFileDC *) x));
18594 }
18595 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
18596 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18597 }
18598 static void *_p_wxClientDCTo_p_wxDC(void *x) {
18599 return (void *)((wxDC *) ((wxClientDC *) x));
18600 }
18601 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
18602 return (void *)((wxDC *) ((wxPaintDC *) x));
18603 }
18604 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
18605 return (void *)((wxDC *) ((wxPostScriptDC *) x));
18606 }
18607 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
18608 return (void *)((wxDC *) ((wxPrinterDC *) x));
18609 }
18610 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
18611 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
18612 }
18613 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
18614 return (void *)((wxGDIObject *) ((wxIcon *) x));
18615 }
18616 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
18617 return (void *)((wxGDIObject *) ((wxPalette *) x));
18618 }
18619 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
18620 return (void *)((wxGDIObject *) ((wxPen *) x));
18621 }
18622 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
18623 return (void *)((wxGDIObject *) ((wxFont *) x));
18624 }
18625 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
18626 return (void *)((wxGDIObject *) ((wxCursor *) x));
18627 }
18628 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
18629 return (void *)((wxGDIObject *) ((wxBitmap *) x));
18630 }
18631 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
18632 return (void *)((wxGDIObject *) ((wxRegion *) x));
18633 }
18634 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
18635 return (void *)((wxGDIObject *) ((wxBrush *) x));
18636 }
18637 static void *_p_wxPyPenTo_p_wxPen(void *x) {
18638 return (void *)((wxPen *) ((wxPyPen *) x));
18639 }
18640 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
18641 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
18642 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
18643 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}};
18644 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
18645 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18646 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
18647 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
18648 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
18649 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
18650 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
18651 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
18652 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
18653 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}};
18654 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
18655 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
18656 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}};
18657 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
18658 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
18659 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
18660 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
18661 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
18662 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}};
18663 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
18664 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
18665 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
18666 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
18667 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
18668 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
18669 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
18670 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
18671 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
18672 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
18673 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
18674 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
18675 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18676 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}};
18677 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
18678 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
18679 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
18680 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
18681 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
18682 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
18683 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
18684 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
18685 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
18686 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
18687 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
18688 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
18689 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
18690 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
18691 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
18692 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
18693 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
18694 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
18695 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
18696
18697 static swig_type_info *swig_types_initial[] = {
18698 _swigt__p_wxPostScriptDC,
18699 _swigt__p_wxBrush,
18700 _swigt__p_wxColour,
18701 _swigt__p_wxDC,
18702 _swigt__p_wxMirrorDC,
18703 _swigt__p_byte,
18704 _swigt__p_wxPyFontEnumerator,
18705 _swigt__p_char,
18706 _swigt__p_wxIconLocation,
18707 _swigt__p_wxImage,
18708 _swigt__p_wxMetaFileDC,
18709 _swigt__p_wxMask,
18710 _swigt__p_wxFont,
18711 _swigt__p_wxWindow,
18712 _swigt__p_wxSize,
18713 _swigt__p_double,
18714 _swigt__p_wxMemoryDC,
18715 _swigt__p_wxFontMapper,
18716 _swigt__p_wxEffects,
18717 _swigt__p_wxNativeEncodingInfo,
18718 _swigt__p_wxPalette,
18719 _swigt__p_wxBitmap,
18720 _swigt__p_wxObject,
18721 _swigt__p_wxRegionIterator,
18722 _swigt__p_wxRect,
18723 _swigt__p_wxString,
18724 _swigt__p_wxPrinterDC,
18725 _swigt__p_wxIconBundle,
18726 _swigt__p_wxPoint,
18727 _swigt__p_wxDash,
18728 _swigt__p_wxScreenDC,
18729 _swigt__p_wxCursor,
18730 _swigt__p_wxClientDC,
18731 _swigt__p_wxBufferedDC,
18732 _swigt__p_wxImageList,
18733 _swigt__p_unsigned_char,
18734 _swigt__p_wxGDIObject,
18735 _swigt__p_wxIcon,
18736 _swigt__p_wxLocale,
18737 _swigt__p_wxRegion,
18738 _swigt__p_wxLanguageInfo,
18739 _swigt__p_wxConfigBase,
18740 _swigt__p_wxWindowDC,
18741 _swigt__p_wxPrintData,
18742 _swigt__p_wxBrushList,
18743 _swigt__p_wxFontList,
18744 _swigt__p_wxPen,
18745 _swigt__p_wxBufferedPaintDC,
18746 _swigt__p_wxPaintDC,
18747 _swigt__p_wxPenList,
18748 _swigt__p_wxPyPen,
18749 _swigt__p_int,
18750 _swigt__p_wxMetaFile,
18751 _swigt__p_wxNativeFontInfo,
18752 _swigt__p_wxEncodingConverter,
18753 _swigt__p_wxColourDatabase,
18754 0
18755 };
18756
18757
18758 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
18759
18760 static swig_const_info swig_const_table[] = {
18761 {0}};
18762
18763 #ifdef __cplusplus
18764 }
18765 #endif
18766
18767 #ifdef __cplusplus
18768 extern "C"
18769 #endif
18770 SWIGEXPORT(void) SWIG_init(void) {
18771 static PyObject *SWIG_globals = 0;
18772 static int typeinit = 0;
18773 PyObject *m, *d;
18774 int i;
18775 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
18776 m = Py_InitModule((char *) SWIG_name, SwigMethods);
18777 d = PyModule_GetDict(m);
18778
18779 if (!typeinit) {
18780 for (i = 0; swig_types_initial[i]; i++) {
18781 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
18782 }
18783 typeinit = 1;
18784 }
18785 SWIG_InstallConstants(d,swig_const_table);
18786
18787 PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion));
18788 PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion));
18789 PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion));
18790 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT));
18791 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE));
18792 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN));
18793 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT));
18794 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS));
18795 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN));
18796 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE));
18797 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX));
18798 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN));
18799 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL));
18800 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC));
18801 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT));
18802 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX));
18803 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL));
18804 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT));
18805 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD));
18806 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX));
18807 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT));
18808 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC));
18809 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT));
18810 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT));
18811 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD));
18812 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED));
18813 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
18814 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED));
18815 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
18816 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK));
18817 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM));
18818 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT));
18819 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1));
18820 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2));
18821 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3));
18822 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4));
18823 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5));
18824 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6));
18825 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7));
18826 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8));
18827 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9));
18828 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10));
18829 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11));
18830 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12));
18831 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13));
18832 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14));
18833 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15));
18834 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX));
18835 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8));
18836 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE));
18837 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN));
18838 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437));
18839 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850));
18840 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852));
18841 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855));
18842 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866));
18843 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874));
18844 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932));
18845 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936));
18846 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949));
18847 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950));
18848 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250));
18849 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251));
18850 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252));
18851 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253));
18852 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254));
18853 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255));
18854 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256));
18855 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257));
18856 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX));
18857 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7));
18858 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8));
18859 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP));
18860 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE));
18861 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE));
18862 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE));
18863 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE));
18864 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN));
18865 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE));
18866 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
18867 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN));
18868 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC));
18869 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW));
18870 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK));
18871 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC));
18872 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
18873 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI));
18874 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI));
18875 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA));
18876 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI));
18877 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL));
18878 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU));
18879 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA));
18880 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM));
18881 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE));
18882 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE));
18883 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER));
18884 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI));
18885 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN));
18886 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN));
18887 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN));
18888 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
18889 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN));
18890 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
18891 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC));
18892 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
18893 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
18894 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT));
18895 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL));
18896 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS));
18897 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH));
18898 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN));
18899 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC));
18900 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN));
18901 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC));
18902 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC));
18903 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD));
18904 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN));
18905 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX));
18906 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX));
18907 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16));
18908 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32));
18909 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE));
18910 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312));
18911 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5));
18912 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS));
18913
18914 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
18915
18916 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT));
18917 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN));
18918 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN));
18919 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR));
18920 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS));
18921 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN));
18922 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC));
18923 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC));
18924 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
18925 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
18926 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
18927 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
18928 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
18929 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
18930 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
18931 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
18932 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
18933 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
18934 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
18935 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
18936 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
18937 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
18938 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
18939 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE));
18940 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
18941 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN));
18942 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE));
18943 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA));
18944 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI));
18945 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
18946 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN));
18947 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR));
18948 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE));
18949 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN));
18950 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI));
18951 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI));
18952 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI));
18953 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA));
18954 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON));
18955 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN));
18956 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE));
18957 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN));
18958 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN));
18959 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE));
18960 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
18961 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
18962 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
18963 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
18964 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
18965 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
18966 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN));
18967 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN));
18968 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH));
18969 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH));
18970 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH));
18971 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
18972 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH));
18973 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK));
18974 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US));
18975 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
18976 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
18977 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
18978 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
18979 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
18980 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
18981 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
18982 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
18983 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
18984 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
18985 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
18986 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
18987 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
18988 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO));
18989 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN));
18990 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE));
18991 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI));
18992 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI));
18993 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH));
18994 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH));
18995 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
18996 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
18997 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
18998 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
18999 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19000 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN));
19001 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN));
19002 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN));
19003 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN));
19004 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19005 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19006 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19007 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19008 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19009 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK));
19010 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC));
19011 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI));
19012 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI));
19013 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA));
19014 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW));
19015 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI));
19016 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN));
19017 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC));
19018 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN));
19019 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA));
19020 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE));
19021 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT));
19022 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK));
19023 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH));
19024 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN));
19025 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19026 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE));
19027 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE));
19028 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA));
19029 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI));
19030 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19031 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH));
19032 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK));
19033 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA));
19034 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ));
19035 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI));
19036 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI));
19037 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN));
19038 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH));
19039 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN));
19040 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN));
19041 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN));
19042 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA));
19043 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN));
19044 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN));
19045 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY));
19046 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY));
19047 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM));
19048 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19049 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19050 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE));
19051 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI));
19052 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI));
19053 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI));
19054 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19055 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN));
19056 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU));
19057 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI));
19058 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19059 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19060 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19061 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN));
19062 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA));
19063 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO));
19064 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO));
19065 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH));
19066 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE));
19067 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19068 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI));
19069 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA));
19070 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19071 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN));
19072 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN));
19073 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19074 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN));
19075 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO));
19076 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT));
19077 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19078 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN));
19079 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19080 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19081 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19082 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO));
19083 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA));
19084 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA));
19085 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI));
19086 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE));
19087 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI));
19088 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK));
19089 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN));
19090 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI));
19091 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH));
19092 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19093 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19094 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19095 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19096 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19097 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19098 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19099 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19100 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19101 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19102 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19103 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19104 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19105 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19106 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19107 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19108 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19109 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19110 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US));
19111 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19112 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE));
19113 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI));
19114 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH));
19115 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19116 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG));
19117 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK));
19118 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL));
19119 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR));
19120 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU));
19121 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI));
19122 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN));
19123 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA));
19124 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA));
19125 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA));
19126 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH));
19127 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN));
19128 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI));
19129 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR));
19130 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN));
19131 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU));
19132 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA));
19133 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19134 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK));
19135 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19136 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19137 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE));
19138 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK));
19139 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH));
19140 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF));
19141 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA));
19142 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH));
19143 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA));
19144 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG));
19145 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU));
19146 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED));
19147 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER));
19148 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE));
19149 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY));
19150 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX));
19151 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19152 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT));
19153 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19154 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING));
19155 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT));
19156 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE));
19157 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT));
19158 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX));
19159 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS));
19160 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2));
19161 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC));
19162 PyDict_SetItemString(d,"BUFFER_DC_OVERWRITE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_OVERWRITE_BG));
19163 PyDict_SetItemString(d,"BUFFER_DC_PRESERVE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_PRESERVE_BG));
19164 PyDict_SetItemString(d,"BUFFER_DC_DEFAULT", SWIG_PyObj_FromInt((int)wxBUFFER_DC_DEFAULT));
19165 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19166 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19167 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19168 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19169 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL));
19170 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL));
19171 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE));
19172 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19173 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19174 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19175 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19176 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19177 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19178 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19179 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19180 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19181 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19182 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19183 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19184 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19185 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19186 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19187 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19188 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19189 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19190 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19191 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19192 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19193 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19194 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19195 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19196 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19197 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19198 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19199 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19200 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19201 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19202 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19203 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19204 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19205 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19206 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19207 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19208 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19209 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19210 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19211 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19212 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19213 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19214 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19215 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19216 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19217 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19218 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19219
19220 // Work around a chicken/egg problem in drawlist.cpp
19221 wxPyDrawList_SetAPIPtr();
19222
19223 }
19224