]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126
127 /***********************************************************************
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
477 SWIGSTATIC(long)
478 SWIG_PyObj_AsLong(PyObject * obj)
479 {
480 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
481 }
482
483 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
484 wxMask *mask = new wxMask(*self, colour);
485 self->SetMask(mask);
486 }
487
488 #include <wx/iconbndl.h>
489
490 wxIcon *new_wxIcon(wxBitmap const &bmp){
491 wxIcon* icon = new wxIcon();
492 icon->CopyFromBitmap(bmp);
493 return icon;
494 }
495 wxIcon *new_wxIcon(PyObject *listOfStrings){
496 char** cArray = NULL;
497 wxIcon* icon;
498
499 cArray = ConvertListOfStrings(listOfStrings);
500 if (! cArray)
501 return NULL;
502 icon = new wxIcon(cArray);
503 delete [] cArray;
504 return icon;
505 }
506 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
507
508 return new wxIconLocation(*filename, num);
509
510
511
512 }
513 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
514
515 self->SetIndex(num);
516
517
518
519 }
520 int wxIconLocation_GetIndex(wxIconLocation *self){
521
522 return self->GetIndex();
523
524
525
526 }
527 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
528
529
530
531
532 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
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 { wxPyRaiseNotImplemented(); return NULL; }
563
564 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
565 { wxPyRaiseNotImplemented(); return False; }
566
567
568 SWIGSTATIC(PyObject* )
569 SWIG_PyObj_FromUnsignedLong(unsigned long value)
570 {
571 return (value > (unsigned long)(LONG_MAX)) ?
572 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
573 }
574
575 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
576 wxFontEncoding alt_enc;
577 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
578 return PyInt_FromLong(alt_enc);
579 else {
580 Py_INCREF(Py_None);
581 return Py_None;
582 }
583 }
584 wxFont *new_wxFont(wxString const &info){
585 wxNativeFontInfo nfi;
586 nfi.FromString(info);
587 return new wxFont(nfi);
588 }
589 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
590 return wxFont::New(pointSize, family, flags, face, encoding);
591 }
592
593 class wxPyFontEnumerator : public wxFontEnumerator {
594 public:
595 wxPyFontEnumerator() {}
596 ~wxPyFontEnumerator() {}
597
598 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
599 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
600
601 PYPRIVATE;
602 };
603
604 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
605 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
606
607
608 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
609 wxArrayString* arr = self->GetEncodings();
610 return wxArrayString2PyList_helper(*arr);
611 }
612 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
613 wxArrayString* arr = self->GetFacenames();
614 return wxArrayString2PyList_helper(*arr);
615 }
616
617
618
619 #include "wx/wxPython/pydrawxxx.h"
620
621 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
622 wxColour col;
623 self->GetPixel(x, y, &col);
624 return col;
625 }
626 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
627 wxColour col;
628 self->GetPixel(pt, &col);
629 return col;
630 }
631
632 SWIGSTATIC(double)
633 SWIG_PyObj_AsDouble(PyObject *obj)
634 {
635 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
636 #if HAVE_LONG_LONG
637 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
638 #else
639 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
640 #endif
641 if (PyErr_Occurred()) {
642 PyErr_Clear();
643 PyErr_SetString(PyExc_TypeError, "a double is expected");
644 }
645 }
646
647 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
648 wxRect rv;
649 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
650 return rv;
651 }
652 wxRect wxDC_GetClippingRect(wxDC *self){
653 wxRect rect;
654 self->GetClippingBox(rect);
655 return rect;
656 }
657 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
658 wxArrayInt widths;
659 self->GetPartialTextExtents(text, widths);
660 return widths;
661 }
662 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
663 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
664 }
665 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
666 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
667 }
668 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
669 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
670 }
671 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
672 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
673 }
674 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
675 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
676 }
677 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
678 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
679 }
680
681 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
682 *x1 = dc->MinX();
683 *y1 = dc->MinY();
684 *x2 = dc->MaxX();
685 *y2 = dc->MaxY();
686 }
687
688
689 #include <wx/dcps.h>
690
691
692 #include <wx/metafile.h>
693
694
695
696 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
697 self->AddColour(name, wxColour(red, green, blue));
698 }
699
700 #include <wx/effects.h>
701
702 #ifdef __cplusplus
703 extern "C" {
704 #endif
705 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
706 PyObject *resultobj;
707 wxGDIObject *result;
708 char *kwnames[] = {
709 NULL
710 };
711
712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
713 {
714 PyThreadState* __tstate = wxPyBeginAllowThreads();
715 result = (wxGDIObject *)new wxGDIObject();
716
717 wxPyEndAllowThreads(__tstate);
718 if (PyErr_Occurred()) SWIG_fail;
719 }
720 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
721 return resultobj;
722 fail:
723 return NULL;
724 }
725
726
727 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
728 PyObject *resultobj;
729 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
730 PyObject * obj0 = 0 ;
731 char *kwnames[] = {
732 (char *) "self", NULL
733 };
734
735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
737 {
738 PyThreadState* __tstate = wxPyBeginAllowThreads();
739 delete arg1;
740
741 wxPyEndAllowThreads(__tstate);
742 if (PyErr_Occurred()) SWIG_fail;
743 }
744 Py_INCREF(Py_None); resultobj = Py_None;
745 return resultobj;
746 fail:
747 return NULL;
748 }
749
750
751 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
752 PyObject *resultobj;
753 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
754 bool result;
755 PyObject * obj0 = 0 ;
756 char *kwnames[] = {
757 (char *) "self", NULL
758 };
759
760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
762 {
763 PyThreadState* __tstate = wxPyBeginAllowThreads();
764 result = (bool)(arg1)->GetVisible();
765
766 wxPyEndAllowThreads(__tstate);
767 if (PyErr_Occurred()) SWIG_fail;
768 }
769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
770 return resultobj;
771 fail:
772 return NULL;
773 }
774
775
776 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
777 PyObject *resultobj;
778 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
779 bool arg2 ;
780 PyObject * obj0 = 0 ;
781 PyObject * obj1 = 0 ;
782 char *kwnames[] = {
783 (char *) "self",(char *) "visible", NULL
784 };
785
786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
788 {
789 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
790 if (PyErr_Occurred()) SWIG_fail;
791 }
792 {
793 PyThreadState* __tstate = wxPyBeginAllowThreads();
794 (arg1)->SetVisible(arg2);
795
796 wxPyEndAllowThreads(__tstate);
797 if (PyErr_Occurred()) SWIG_fail;
798 }
799 Py_INCREF(Py_None); resultobj = Py_None;
800 return resultobj;
801 fail:
802 return NULL;
803 }
804
805
806 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
807 PyObject *resultobj;
808 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
809 bool result;
810 PyObject * obj0 = 0 ;
811 char *kwnames[] = {
812 (char *) "self", NULL
813 };
814
815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
817 {
818 PyThreadState* __tstate = wxPyBeginAllowThreads();
819 result = (bool)(arg1)->IsNull();
820
821 wxPyEndAllowThreads(__tstate);
822 if (PyErr_Occurred()) SWIG_fail;
823 }
824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
825 return resultobj;
826 fail:
827 return NULL;
828 }
829
830
831 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
832 PyObject *obj;
833 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
834 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
835 Py_INCREF(obj);
836 return Py_BuildValue((char *)"");
837 }
838 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
839 PyObject *resultobj;
840 unsigned char arg1 = (unsigned char) 0 ;
841 unsigned char arg2 = (unsigned char) 0 ;
842 unsigned char arg3 = (unsigned char) 0 ;
843 wxColour *result;
844 PyObject * obj0 = 0 ;
845 PyObject * obj1 = 0 ;
846 PyObject * obj2 = 0 ;
847 char *kwnames[] = {
848 (char *) "red",(char *) "green",(char *) "blue", NULL
849 };
850
851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
852 if (obj0) {
853 {
854 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
855 if (PyErr_Occurred()) SWIG_fail;
856 }
857 }
858 if (obj1) {
859 {
860 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
861 if (PyErr_Occurred()) SWIG_fail;
862 }
863 }
864 if (obj2) {
865 {
866 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
867 if (PyErr_Occurred()) SWIG_fail;
868 }
869 }
870 {
871 PyThreadState* __tstate = wxPyBeginAllowThreads();
872 result = (wxColour *)new wxColour(arg1,arg2,arg3);
873
874 wxPyEndAllowThreads(__tstate);
875 if (PyErr_Occurred()) SWIG_fail;
876 }
877 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
878 return resultobj;
879 fail:
880 return NULL;
881 }
882
883
884 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
885 PyObject *resultobj;
886 wxColour *arg1 = (wxColour *) 0 ;
887 PyObject * obj0 = 0 ;
888 char *kwnames[] = {
889 (char *) "self", NULL
890 };
891
892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
894 {
895 PyThreadState* __tstate = wxPyBeginAllowThreads();
896 delete arg1;
897
898 wxPyEndAllowThreads(__tstate);
899 if (PyErr_Occurred()) SWIG_fail;
900 }
901 Py_INCREF(Py_None); resultobj = Py_None;
902 return resultobj;
903 fail:
904 return NULL;
905 }
906
907
908 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
909 PyObject *resultobj;
910 wxString *arg1 = 0 ;
911 wxColour *result;
912 bool temp1 = False ;
913 PyObject * obj0 = 0 ;
914 char *kwnames[] = {
915 (char *) "colorName", NULL
916 };
917
918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
919 {
920 arg1 = wxString_in_helper(obj0);
921 if (arg1 == NULL) SWIG_fail;
922 temp1 = True;
923 }
924 {
925 PyThreadState* __tstate = wxPyBeginAllowThreads();
926 result = (wxColour *)new wxColour((wxString const &)*arg1);
927
928 wxPyEndAllowThreads(__tstate);
929 if (PyErr_Occurred()) SWIG_fail;
930 }
931 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
932 {
933 if (temp1)
934 delete arg1;
935 }
936 return resultobj;
937 fail:
938 {
939 if (temp1)
940 delete arg1;
941 }
942 return NULL;
943 }
944
945
946 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
947 PyObject *resultobj;
948 unsigned long arg1 ;
949 wxColour *result;
950 PyObject * obj0 = 0 ;
951 char *kwnames[] = {
952 (char *) "colRGB", NULL
953 };
954
955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
956 {
957 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
958 if (PyErr_Occurred()) SWIG_fail;
959 }
960 {
961 PyThreadState* __tstate = wxPyBeginAllowThreads();
962 result = (wxColour *)new wxColour(arg1);
963
964 wxPyEndAllowThreads(__tstate);
965 if (PyErr_Occurred()) SWIG_fail;
966 }
967 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
968 return resultobj;
969 fail:
970 return NULL;
971 }
972
973
974 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
975 PyObject *resultobj;
976 wxColour *arg1 = (wxColour *) 0 ;
977 unsigned char result;
978 PyObject * obj0 = 0 ;
979 char *kwnames[] = {
980 (char *) "self", NULL
981 };
982
983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
985 {
986 PyThreadState* __tstate = wxPyBeginAllowThreads();
987 result = (unsigned char)(arg1)->Red();
988
989 wxPyEndAllowThreads(__tstate);
990 if (PyErr_Occurred()) SWIG_fail;
991 }
992 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
993 return resultobj;
994 fail:
995 return NULL;
996 }
997
998
999 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1000 PyObject *resultobj;
1001 wxColour *arg1 = (wxColour *) 0 ;
1002 unsigned char result;
1003 PyObject * obj0 = 0 ;
1004 char *kwnames[] = {
1005 (char *) "self", NULL
1006 };
1007
1008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1010 {
1011 PyThreadState* __tstate = wxPyBeginAllowThreads();
1012 result = (unsigned char)(arg1)->Green();
1013
1014 wxPyEndAllowThreads(__tstate);
1015 if (PyErr_Occurred()) SWIG_fail;
1016 }
1017 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1018 return resultobj;
1019 fail:
1020 return NULL;
1021 }
1022
1023
1024 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1025 PyObject *resultobj;
1026 wxColour *arg1 = (wxColour *) 0 ;
1027 unsigned char result;
1028 PyObject * obj0 = 0 ;
1029 char *kwnames[] = {
1030 (char *) "self", NULL
1031 };
1032
1033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1035 {
1036 PyThreadState* __tstate = wxPyBeginAllowThreads();
1037 result = (unsigned char)(arg1)->Blue();
1038
1039 wxPyEndAllowThreads(__tstate);
1040 if (PyErr_Occurred()) SWIG_fail;
1041 }
1042 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1043 return resultobj;
1044 fail:
1045 return NULL;
1046 }
1047
1048
1049 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1050 PyObject *resultobj;
1051 wxColour *arg1 = (wxColour *) 0 ;
1052 bool result;
1053 PyObject * obj0 = 0 ;
1054 char *kwnames[] = {
1055 (char *) "self", NULL
1056 };
1057
1058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1060 {
1061 PyThreadState* __tstate = wxPyBeginAllowThreads();
1062 result = (bool)(arg1)->Ok();
1063
1064 wxPyEndAllowThreads(__tstate);
1065 if (PyErr_Occurred()) SWIG_fail;
1066 }
1067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1068 return resultobj;
1069 fail:
1070 return NULL;
1071 }
1072
1073
1074 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1075 PyObject *resultobj;
1076 wxColour *arg1 = (wxColour *) 0 ;
1077 unsigned char arg2 ;
1078 unsigned char arg3 ;
1079 unsigned char arg4 ;
1080 PyObject * obj0 = 0 ;
1081 PyObject * obj1 = 0 ;
1082 PyObject * obj2 = 0 ;
1083 PyObject * obj3 = 0 ;
1084 char *kwnames[] = {
1085 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1086 };
1087
1088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1090 {
1091 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
1092 if (PyErr_Occurred()) SWIG_fail;
1093 }
1094 {
1095 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
1096 if (PyErr_Occurred()) SWIG_fail;
1097 }
1098 {
1099 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
1100 if (PyErr_Occurred()) SWIG_fail;
1101 }
1102 {
1103 PyThreadState* __tstate = wxPyBeginAllowThreads();
1104 (arg1)->Set(arg2,arg3,arg4);
1105
1106 wxPyEndAllowThreads(__tstate);
1107 if (PyErr_Occurred()) SWIG_fail;
1108 }
1109 Py_INCREF(Py_None); resultobj = Py_None;
1110 return resultobj;
1111 fail:
1112 return NULL;
1113 }
1114
1115
1116 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1117 PyObject *resultobj;
1118 wxColour *arg1 = (wxColour *) 0 ;
1119 unsigned long arg2 ;
1120 PyObject * obj0 = 0 ;
1121 PyObject * obj1 = 0 ;
1122 char *kwnames[] = {
1123 (char *) "self",(char *) "colRGB", NULL
1124 };
1125
1126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1128 {
1129 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
1130 if (PyErr_Occurred()) SWIG_fail;
1131 }
1132 {
1133 PyThreadState* __tstate = wxPyBeginAllowThreads();
1134 (arg1)->Set(arg2);
1135
1136 wxPyEndAllowThreads(__tstate);
1137 if (PyErr_Occurred()) SWIG_fail;
1138 }
1139 Py_INCREF(Py_None); resultobj = Py_None;
1140 return resultobj;
1141 fail:
1142 return NULL;
1143 }
1144
1145
1146 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1147 PyObject *resultobj;
1148 wxColour *arg1 = (wxColour *) 0 ;
1149 wxColour *arg2 = 0 ;
1150 bool result;
1151 wxColour temp2 ;
1152 PyObject * obj0 = 0 ;
1153 PyObject * obj1 = 0 ;
1154 char *kwnames[] = {
1155 (char *) "self",(char *) "colour", NULL
1156 };
1157
1158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1160 {
1161 arg2 = &temp2;
1162 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1163 }
1164 {
1165 PyThreadState* __tstate = wxPyBeginAllowThreads();
1166 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1167
1168 wxPyEndAllowThreads(__tstate);
1169 if (PyErr_Occurred()) SWIG_fail;
1170 }
1171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1172 return resultobj;
1173 fail:
1174 return NULL;
1175 }
1176
1177
1178 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1179 PyObject *resultobj;
1180 wxColour *arg1 = (wxColour *) 0 ;
1181 wxColour *arg2 = 0 ;
1182 bool result;
1183 wxColour temp2 ;
1184 PyObject * obj0 = 0 ;
1185 PyObject * obj1 = 0 ;
1186 char *kwnames[] = {
1187 (char *) "self",(char *) "colour", NULL
1188 };
1189
1190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1192 {
1193 arg2 = &temp2;
1194 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1195 }
1196 {
1197 PyThreadState* __tstate = wxPyBeginAllowThreads();
1198 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1199
1200 wxPyEndAllowThreads(__tstate);
1201 if (PyErr_Occurred()) SWIG_fail;
1202 }
1203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1204 return resultobj;
1205 fail:
1206 return NULL;
1207 }
1208
1209
1210 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1211 PyObject *resultobj;
1212 wxColour *arg1 = (wxColour *) 0 ;
1213 wxString *arg2 = 0 ;
1214 bool temp2 = False ;
1215 PyObject * obj0 = 0 ;
1216 PyObject * obj1 = 0 ;
1217 char *kwnames[] = {
1218 (char *) "self",(char *) "colourName", NULL
1219 };
1220
1221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1222 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1223 {
1224 arg2 = wxString_in_helper(obj1);
1225 if (arg2 == NULL) SWIG_fail;
1226 temp2 = True;
1227 }
1228 {
1229 PyThreadState* __tstate = wxPyBeginAllowThreads();
1230 (arg1)->InitFromName((wxString const &)*arg2);
1231
1232 wxPyEndAllowThreads(__tstate);
1233 if (PyErr_Occurred()) SWIG_fail;
1234 }
1235 Py_INCREF(Py_None); resultobj = Py_None;
1236 {
1237 if (temp2)
1238 delete arg2;
1239 }
1240 return resultobj;
1241 fail:
1242 {
1243 if (temp2)
1244 delete arg2;
1245 }
1246 return NULL;
1247 }
1248
1249
1250 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1251 PyObject *resultobj;
1252 wxColour *arg1 = (wxColour *) 0 ;
1253 PyObject *result;
1254 PyObject * obj0 = 0 ;
1255 char *kwnames[] = {
1256 (char *) "self", NULL
1257 };
1258
1259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1261 {
1262 PyThreadState* __tstate = wxPyBeginAllowThreads();
1263 result = (PyObject *)wxColour_Get(arg1);
1264
1265 wxPyEndAllowThreads(__tstate);
1266 if (PyErr_Occurred()) SWIG_fail;
1267 }
1268 resultobj = result;
1269 return resultobj;
1270 fail:
1271 return NULL;
1272 }
1273
1274
1275 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1276 PyObject *obj;
1277 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1278 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1279 Py_INCREF(obj);
1280 return Py_BuildValue((char *)"");
1281 }
1282 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1283 PyObject *resultobj;
1284 int arg1 ;
1285 unsigned char *arg2 = (unsigned char *) 0 ;
1286 unsigned char *arg3 = (unsigned char *) 0 ;
1287 unsigned char *arg4 = (unsigned char *) 0 ;
1288 wxPalette *result;
1289 PyObject * obj0 = 0 ;
1290 PyObject * obj1 = 0 ;
1291 PyObject * obj2 = 0 ;
1292 PyObject * obj3 = 0 ;
1293 char *kwnames[] = {
1294 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1295 };
1296
1297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1298 {
1299 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1300 if (PyErr_Occurred()) SWIG_fail;
1301 }
1302 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1303 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1304 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1305 {
1306 PyThreadState* __tstate = wxPyBeginAllowThreads();
1307 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1308
1309 wxPyEndAllowThreads(__tstate);
1310 if (PyErr_Occurred()) SWIG_fail;
1311 }
1312 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1313 return resultobj;
1314 fail:
1315 return NULL;
1316 }
1317
1318
1319 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1320 PyObject *resultobj;
1321 wxPalette *arg1 = (wxPalette *) 0 ;
1322 PyObject * obj0 = 0 ;
1323 char *kwnames[] = {
1324 (char *) "self", NULL
1325 };
1326
1327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1329 {
1330 PyThreadState* __tstate = wxPyBeginAllowThreads();
1331 delete arg1;
1332
1333 wxPyEndAllowThreads(__tstate);
1334 if (PyErr_Occurred()) SWIG_fail;
1335 }
1336 Py_INCREF(Py_None); resultobj = Py_None;
1337 return resultobj;
1338 fail:
1339 return NULL;
1340 }
1341
1342
1343 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1344 PyObject *resultobj;
1345 wxPalette *arg1 = (wxPalette *) 0 ;
1346 byte arg2 ;
1347 byte arg3 ;
1348 byte arg4 ;
1349 int result;
1350 PyObject * obj0 = 0 ;
1351 PyObject * obj1 = 0 ;
1352 PyObject * obj2 = 0 ;
1353 PyObject * obj3 = 0 ;
1354 char *kwnames[] = {
1355 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1356 };
1357
1358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1360 {
1361 arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
1362 if (PyErr_Occurred()) SWIG_fail;
1363 }
1364 {
1365 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
1366 if (PyErr_Occurred()) SWIG_fail;
1367 }
1368 {
1369 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
1370 if (PyErr_Occurred()) SWIG_fail;
1371 }
1372 {
1373 PyThreadState* __tstate = wxPyBeginAllowThreads();
1374 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1375
1376 wxPyEndAllowThreads(__tstate);
1377 if (PyErr_Occurred()) SWIG_fail;
1378 }
1379 resultobj = SWIG_PyObj_FromInt((int)result);
1380 return resultobj;
1381 fail:
1382 return NULL;
1383 }
1384
1385
1386 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1387 PyObject *resultobj;
1388 wxPalette *arg1 = (wxPalette *) 0 ;
1389 int arg2 ;
1390 byte *arg3 = (byte *) 0 ;
1391 byte *arg4 = (byte *) 0 ;
1392 byte *arg5 = (byte *) 0 ;
1393 bool result;
1394 byte temp3 ;
1395 byte temp4 ;
1396 byte temp5 ;
1397 PyObject * obj0 = 0 ;
1398 PyObject * obj1 = 0 ;
1399 char *kwnames[] = {
1400 (char *) "self",(char *) "pixel", NULL
1401 };
1402
1403 arg3 = &temp3;
1404 arg4 = &temp4;
1405 arg5 = &temp5;
1406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1408 {
1409 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1410 if (PyErr_Occurred()) SWIG_fail;
1411 }
1412 {
1413 PyThreadState* __tstate = wxPyBeginAllowThreads();
1414 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1415
1416 wxPyEndAllowThreads(__tstate);
1417 if (PyErr_Occurred()) SWIG_fail;
1418 }
1419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1420 {
1421 PyObject *o = PyInt_FromLong((long) (*arg3));
1422 resultobj = t_output_helper(resultobj,o);
1423 }
1424 {
1425 PyObject *o = PyInt_FromLong((long) (*arg4));
1426 resultobj = t_output_helper(resultobj,o);
1427 }
1428 {
1429 PyObject *o = PyInt_FromLong((long) (*arg5));
1430 resultobj = t_output_helper(resultobj,o);
1431 }
1432 return resultobj;
1433 fail:
1434 return NULL;
1435 }
1436
1437
1438 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1439 PyObject *resultobj;
1440 wxPalette *arg1 = (wxPalette *) 0 ;
1441 bool result;
1442 PyObject * obj0 = 0 ;
1443 char *kwnames[] = {
1444 (char *) "self", NULL
1445 };
1446
1447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1449 {
1450 PyThreadState* __tstate = wxPyBeginAllowThreads();
1451 result = (bool)(arg1)->Ok();
1452
1453 wxPyEndAllowThreads(__tstate);
1454 if (PyErr_Occurred()) SWIG_fail;
1455 }
1456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1457 return resultobj;
1458 fail:
1459 return NULL;
1460 }
1461
1462
1463 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1464 PyObject *obj;
1465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1466 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1467 Py_INCREF(obj);
1468 return Py_BuildValue((char *)"");
1469 }
1470 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1471 PyObject *resultobj;
1472 wxColour *arg1 = 0 ;
1473 int arg2 = (int) 1 ;
1474 int arg3 = (int) wxSOLID ;
1475 wxPen *result;
1476 wxColour temp1 ;
1477 PyObject * obj0 = 0 ;
1478 PyObject * obj1 = 0 ;
1479 PyObject * obj2 = 0 ;
1480 char *kwnames[] = {
1481 (char *) "colour",(char *) "width",(char *) "style", NULL
1482 };
1483
1484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1485 {
1486 arg1 = &temp1;
1487 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1488 }
1489 if (obj1) {
1490 {
1491 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1492 if (PyErr_Occurred()) SWIG_fail;
1493 }
1494 }
1495 if (obj2) {
1496 {
1497 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1498 if (PyErr_Occurred()) SWIG_fail;
1499 }
1500 }
1501 {
1502 PyThreadState* __tstate = wxPyBeginAllowThreads();
1503 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1504
1505 wxPyEndAllowThreads(__tstate);
1506 if (PyErr_Occurred()) SWIG_fail;
1507 }
1508 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1509 return resultobj;
1510 fail:
1511 return NULL;
1512 }
1513
1514
1515 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1516 PyObject *resultobj;
1517 wxPen *arg1 = (wxPen *) 0 ;
1518 PyObject * obj0 = 0 ;
1519 char *kwnames[] = {
1520 (char *) "self", NULL
1521 };
1522
1523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1525 {
1526 PyThreadState* __tstate = wxPyBeginAllowThreads();
1527 delete arg1;
1528
1529 wxPyEndAllowThreads(__tstate);
1530 if (PyErr_Occurred()) SWIG_fail;
1531 }
1532 Py_INCREF(Py_None); resultobj = Py_None;
1533 return resultobj;
1534 fail:
1535 return NULL;
1536 }
1537
1538
1539 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1540 PyObject *resultobj;
1541 wxPen *arg1 = (wxPen *) 0 ;
1542 int result;
1543 PyObject * obj0 = 0 ;
1544 char *kwnames[] = {
1545 (char *) "self", NULL
1546 };
1547
1548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1550 {
1551 PyThreadState* __tstate = wxPyBeginAllowThreads();
1552 result = (int)(arg1)->GetCap();
1553
1554 wxPyEndAllowThreads(__tstate);
1555 if (PyErr_Occurred()) SWIG_fail;
1556 }
1557 resultobj = SWIG_PyObj_FromInt((int)result);
1558 return resultobj;
1559 fail:
1560 return NULL;
1561 }
1562
1563
1564 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1565 PyObject *resultobj;
1566 wxPen *arg1 = (wxPen *) 0 ;
1567 wxColour result;
1568 PyObject * obj0 = 0 ;
1569 char *kwnames[] = {
1570 (char *) "self", NULL
1571 };
1572
1573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1575 {
1576 PyThreadState* __tstate = wxPyBeginAllowThreads();
1577 result = (arg1)->GetColour();
1578
1579 wxPyEndAllowThreads(__tstate);
1580 if (PyErr_Occurred()) SWIG_fail;
1581 }
1582 {
1583 wxColour * resultptr;
1584 resultptr = new wxColour((wxColour &) result);
1585 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1586 }
1587 return resultobj;
1588 fail:
1589 return NULL;
1590 }
1591
1592
1593 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1594 PyObject *resultobj;
1595 wxPen *arg1 = (wxPen *) 0 ;
1596 int result;
1597 PyObject * obj0 = 0 ;
1598 char *kwnames[] = {
1599 (char *) "self", NULL
1600 };
1601
1602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1604 {
1605 PyThreadState* __tstate = wxPyBeginAllowThreads();
1606 result = (int)(arg1)->GetJoin();
1607
1608 wxPyEndAllowThreads(__tstate);
1609 if (PyErr_Occurred()) SWIG_fail;
1610 }
1611 resultobj = SWIG_PyObj_FromInt((int)result);
1612 return resultobj;
1613 fail:
1614 return NULL;
1615 }
1616
1617
1618 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1619 PyObject *resultobj;
1620 wxPen *arg1 = (wxPen *) 0 ;
1621 int result;
1622 PyObject * obj0 = 0 ;
1623 char *kwnames[] = {
1624 (char *) "self", NULL
1625 };
1626
1627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1629 {
1630 PyThreadState* __tstate = wxPyBeginAllowThreads();
1631 result = (int)(arg1)->GetStyle();
1632
1633 wxPyEndAllowThreads(__tstate);
1634 if (PyErr_Occurred()) SWIG_fail;
1635 }
1636 resultobj = SWIG_PyObj_FromInt((int)result);
1637 return resultobj;
1638 fail:
1639 return NULL;
1640 }
1641
1642
1643 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1644 PyObject *resultobj;
1645 wxPen *arg1 = (wxPen *) 0 ;
1646 int result;
1647 PyObject * obj0 = 0 ;
1648 char *kwnames[] = {
1649 (char *) "self", NULL
1650 };
1651
1652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1654 {
1655 PyThreadState* __tstate = wxPyBeginAllowThreads();
1656 result = (int)(arg1)->GetWidth();
1657
1658 wxPyEndAllowThreads(__tstate);
1659 if (PyErr_Occurred()) SWIG_fail;
1660 }
1661 resultobj = SWIG_PyObj_FromInt((int)result);
1662 return resultobj;
1663 fail:
1664 return NULL;
1665 }
1666
1667
1668 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1669 PyObject *resultobj;
1670 wxPen *arg1 = (wxPen *) 0 ;
1671 bool result;
1672 PyObject * obj0 = 0 ;
1673 char *kwnames[] = {
1674 (char *) "self", NULL
1675 };
1676
1677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1679 {
1680 PyThreadState* __tstate = wxPyBeginAllowThreads();
1681 result = (bool)(arg1)->Ok();
1682
1683 wxPyEndAllowThreads(__tstate);
1684 if (PyErr_Occurred()) SWIG_fail;
1685 }
1686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1687 return resultobj;
1688 fail:
1689 return NULL;
1690 }
1691
1692
1693 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1694 PyObject *resultobj;
1695 wxPen *arg1 = (wxPen *) 0 ;
1696 int arg2 ;
1697 PyObject * obj0 = 0 ;
1698 PyObject * obj1 = 0 ;
1699 char *kwnames[] = {
1700 (char *) "self",(char *) "cap_style", NULL
1701 };
1702
1703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1704 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1705 {
1706 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1707 if (PyErr_Occurred()) SWIG_fail;
1708 }
1709 {
1710 PyThreadState* __tstate = wxPyBeginAllowThreads();
1711 (arg1)->SetCap(arg2);
1712
1713 wxPyEndAllowThreads(__tstate);
1714 if (PyErr_Occurred()) SWIG_fail;
1715 }
1716 Py_INCREF(Py_None); resultobj = Py_None;
1717 return resultobj;
1718 fail:
1719 return NULL;
1720 }
1721
1722
1723 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1724 PyObject *resultobj;
1725 wxPen *arg1 = (wxPen *) 0 ;
1726 wxColour *arg2 = 0 ;
1727 wxColour temp2 ;
1728 PyObject * obj0 = 0 ;
1729 PyObject * obj1 = 0 ;
1730 char *kwnames[] = {
1731 (char *) "self",(char *) "colour", NULL
1732 };
1733
1734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1736 {
1737 arg2 = &temp2;
1738 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1739 }
1740 {
1741 PyThreadState* __tstate = wxPyBeginAllowThreads();
1742 (arg1)->SetColour(*arg2);
1743
1744 wxPyEndAllowThreads(__tstate);
1745 if (PyErr_Occurred()) SWIG_fail;
1746 }
1747 Py_INCREF(Py_None); resultobj = Py_None;
1748 return resultobj;
1749 fail:
1750 return NULL;
1751 }
1752
1753
1754 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1755 PyObject *resultobj;
1756 wxPen *arg1 = (wxPen *) 0 ;
1757 int arg2 ;
1758 PyObject * obj0 = 0 ;
1759 PyObject * obj1 = 0 ;
1760 char *kwnames[] = {
1761 (char *) "self",(char *) "join_style", NULL
1762 };
1763
1764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1766 {
1767 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1768 if (PyErr_Occurred()) SWIG_fail;
1769 }
1770 {
1771 PyThreadState* __tstate = wxPyBeginAllowThreads();
1772 (arg1)->SetJoin(arg2);
1773
1774 wxPyEndAllowThreads(__tstate);
1775 if (PyErr_Occurred()) SWIG_fail;
1776 }
1777 Py_INCREF(Py_None); resultobj = Py_None;
1778 return resultobj;
1779 fail:
1780 return NULL;
1781 }
1782
1783
1784 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1785 PyObject *resultobj;
1786 wxPen *arg1 = (wxPen *) 0 ;
1787 int arg2 ;
1788 PyObject * obj0 = 0 ;
1789 PyObject * obj1 = 0 ;
1790 char *kwnames[] = {
1791 (char *) "self",(char *) "style", NULL
1792 };
1793
1794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
1795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1796 {
1797 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1798 if (PyErr_Occurred()) SWIG_fail;
1799 }
1800 {
1801 PyThreadState* __tstate = wxPyBeginAllowThreads();
1802 (arg1)->SetStyle(arg2);
1803
1804 wxPyEndAllowThreads(__tstate);
1805 if (PyErr_Occurred()) SWIG_fail;
1806 }
1807 Py_INCREF(Py_None); resultobj = Py_None;
1808 return resultobj;
1809 fail:
1810 return NULL;
1811 }
1812
1813
1814 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1815 PyObject *resultobj;
1816 wxPen *arg1 = (wxPen *) 0 ;
1817 int arg2 ;
1818 PyObject * obj0 = 0 ;
1819 PyObject * obj1 = 0 ;
1820 char *kwnames[] = {
1821 (char *) "self",(char *) "width", NULL
1822 };
1823
1824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1825 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1826 {
1827 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1828 if (PyErr_Occurred()) SWIG_fail;
1829 }
1830 {
1831 PyThreadState* __tstate = wxPyBeginAllowThreads();
1832 (arg1)->SetWidth(arg2);
1833
1834 wxPyEndAllowThreads(__tstate);
1835 if (PyErr_Occurred()) SWIG_fail;
1836 }
1837 Py_INCREF(Py_None); resultobj = Py_None;
1838 return resultobj;
1839 fail:
1840 return NULL;
1841 }
1842
1843
1844 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1845 PyObject *resultobj;
1846 wxPen *arg1 = (wxPen *) 0 ;
1847 int arg2 ;
1848 wxDash *arg3 = (wxDash *) 0 ;
1849 PyObject * obj0 = 0 ;
1850 PyObject * obj1 = 0 ;
1851 char *kwnames[] = {
1852 (char *) "self",(char *) "dashes", NULL
1853 };
1854
1855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1857 {
1858 arg2 = PyList_Size(obj1);
1859 arg3 = (wxDash*)byte_LIST_helper(obj1);
1860 if (arg3 == NULL) SWIG_fail;
1861 }
1862 {
1863 PyThreadState* __tstate = wxPyBeginAllowThreads();
1864 (arg1)->SetDashes(arg2,arg3);
1865
1866 wxPyEndAllowThreads(__tstate);
1867 if (PyErr_Occurred()) SWIG_fail;
1868 }
1869 Py_INCREF(Py_None); resultobj = Py_None;
1870 {
1871 if (arg3) delete [] arg3;
1872 }
1873 return resultobj;
1874 fail:
1875 {
1876 if (arg3) delete [] arg3;
1877 }
1878 return NULL;
1879 }
1880
1881
1882 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1883 PyObject *resultobj;
1884 wxPen *arg1 = (wxPen *) 0 ;
1885 PyObject *result;
1886 PyObject * obj0 = 0 ;
1887 char *kwnames[] = {
1888 (char *) "self", NULL
1889 };
1890
1891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1893 {
1894 PyThreadState* __tstate = wxPyBeginAllowThreads();
1895 result = (PyObject *)wxPen_GetDashes(arg1);
1896
1897 wxPyEndAllowThreads(__tstate);
1898 if (PyErr_Occurred()) SWIG_fail;
1899 }
1900 resultobj = result;
1901 return resultobj;
1902 fail:
1903 return NULL;
1904 }
1905
1906
1907 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1908 PyObject *resultobj;
1909 wxPen *arg1 = (wxPen *) 0 ;
1910 wxPen *arg2 = 0 ;
1911 bool result;
1912 PyObject * obj0 = 0 ;
1913 PyObject * obj1 = 0 ;
1914 char *kwnames[] = {
1915 (char *) "self",(char *) "pen", NULL
1916 };
1917
1918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
1919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1920 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1921 if (arg2 == NULL) {
1922 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1923 }
1924 {
1925 PyThreadState* __tstate = wxPyBeginAllowThreads();
1926 result = (bool)((wxPen const *)arg1)->operator ==((wxPen const &)*arg2);
1927
1928 wxPyEndAllowThreads(__tstate);
1929 if (PyErr_Occurred()) SWIG_fail;
1930 }
1931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1932 return resultobj;
1933 fail:
1934 return NULL;
1935 }
1936
1937
1938 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1939 PyObject *resultobj;
1940 wxPen *arg1 = (wxPen *) 0 ;
1941 int result;
1942 PyObject * obj0 = 0 ;
1943 char *kwnames[] = {
1944 (char *) "self", NULL
1945 };
1946
1947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
1948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1949 {
1950 PyThreadState* __tstate = wxPyBeginAllowThreads();
1951 result = (int)((wxPen const *)arg1)->GetDashCount();
1952
1953 wxPyEndAllowThreads(__tstate);
1954 if (PyErr_Occurred()) SWIG_fail;
1955 }
1956 resultobj = SWIG_PyObj_FromInt((int)result);
1957 return resultobj;
1958 fail:
1959 return NULL;
1960 }
1961
1962
1963 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1964 PyObject *resultobj;
1965 wxPen *arg1 = (wxPen *) 0 ;
1966 wxBitmap *result;
1967 PyObject * obj0 = 0 ;
1968 char *kwnames[] = {
1969 (char *) "self", NULL
1970 };
1971
1972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
1973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1974 {
1975 PyThreadState* __tstate = wxPyBeginAllowThreads();
1976 result = (wxBitmap *)(arg1)->GetStipple();
1977
1978 wxPyEndAllowThreads(__tstate);
1979 if (PyErr_Occurred()) SWIG_fail;
1980 }
1981 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
1982 return resultobj;
1983 fail:
1984 return NULL;
1985 }
1986
1987
1988 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1989 PyObject *resultobj;
1990 wxPen *arg1 = (wxPen *) 0 ;
1991 wxBitmap *arg2 = 0 ;
1992 PyObject * obj0 = 0 ;
1993 PyObject * obj1 = 0 ;
1994 char *kwnames[] = {
1995 (char *) "self",(char *) "stipple", NULL
1996 };
1997
1998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
1999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2000 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2001 if (arg2 == NULL) {
2002 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2003 }
2004 {
2005 PyThreadState* __tstate = wxPyBeginAllowThreads();
2006 (arg1)->SetStipple(*arg2);
2007
2008 wxPyEndAllowThreads(__tstate);
2009 if (PyErr_Occurred()) SWIG_fail;
2010 }
2011 Py_INCREF(Py_None); resultobj = Py_None;
2012 return resultobj;
2013 fail:
2014 return NULL;
2015 }
2016
2017
2018 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2019 PyObject *obj;
2020 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2021 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2022 Py_INCREF(obj);
2023 return Py_BuildValue((char *)"");
2024 }
2025 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2026 PyObject *resultobj;
2027 wxColour *arg1 = 0 ;
2028 int arg2 = (int) 1 ;
2029 int arg3 = (int) wxSOLID ;
2030 wxPyPen *result;
2031 wxColour temp1 ;
2032 PyObject * obj0 = 0 ;
2033 PyObject * obj1 = 0 ;
2034 PyObject * obj2 = 0 ;
2035 char *kwnames[] = {
2036 (char *) "colour",(char *) "width",(char *) "style", NULL
2037 };
2038
2039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2040 {
2041 arg1 = &temp1;
2042 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2043 }
2044 if (obj1) {
2045 {
2046 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2047 if (PyErr_Occurred()) SWIG_fail;
2048 }
2049 }
2050 if (obj2) {
2051 {
2052 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2053 if (PyErr_Occurred()) SWIG_fail;
2054 }
2055 }
2056 {
2057 PyThreadState* __tstate = wxPyBeginAllowThreads();
2058 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2059
2060 wxPyEndAllowThreads(__tstate);
2061 if (PyErr_Occurred()) SWIG_fail;
2062 }
2063 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
2064 return resultobj;
2065 fail:
2066 return NULL;
2067 }
2068
2069
2070 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2071 PyObject *resultobj;
2072 wxPyPen *arg1 = (wxPyPen *) 0 ;
2073 PyObject * obj0 = 0 ;
2074 char *kwnames[] = {
2075 (char *) "self", NULL
2076 };
2077
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2080 {
2081 PyThreadState* __tstate = wxPyBeginAllowThreads();
2082 delete arg1;
2083
2084 wxPyEndAllowThreads(__tstate);
2085 if (PyErr_Occurred()) SWIG_fail;
2086 }
2087 Py_INCREF(Py_None); resultobj = Py_None;
2088 return resultobj;
2089 fail:
2090 return NULL;
2091 }
2092
2093
2094 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2095 PyObject *resultobj;
2096 wxPyPen *arg1 = (wxPyPen *) 0 ;
2097 int arg2 ;
2098 wxDash *arg3 = (wxDash *) 0 ;
2099 PyObject * obj0 = 0 ;
2100 PyObject * obj1 = 0 ;
2101 char *kwnames[] = {
2102 (char *) "self",(char *) "dashes", NULL
2103 };
2104
2105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2107 {
2108 arg2 = PyList_Size(obj1);
2109 arg3 = (wxDash*)byte_LIST_helper(obj1);
2110 if (arg3 == NULL) SWIG_fail;
2111 }
2112 {
2113 PyThreadState* __tstate = wxPyBeginAllowThreads();
2114 (arg1)->SetDashes(arg2,arg3);
2115
2116 wxPyEndAllowThreads(__tstate);
2117 if (PyErr_Occurred()) SWIG_fail;
2118 }
2119 Py_INCREF(Py_None); resultobj = Py_None;
2120 {
2121 if (arg3) delete [] arg3;
2122 }
2123 return resultobj;
2124 fail:
2125 {
2126 if (arg3) delete [] arg3;
2127 }
2128 return NULL;
2129 }
2130
2131
2132 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2133 PyObject *obj;
2134 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2135 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2136 Py_INCREF(obj);
2137 return Py_BuildValue((char *)"");
2138 }
2139 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2140 PyObject *resultobj;
2141 wxColour *arg1 = 0 ;
2142 int arg2 = (int) wxSOLID ;
2143 wxBrush *result;
2144 wxColour temp1 ;
2145 PyObject * obj0 = 0 ;
2146 PyObject * obj1 = 0 ;
2147 char *kwnames[] = {
2148 (char *) "colour",(char *) "style", NULL
2149 };
2150
2151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2152 {
2153 arg1 = &temp1;
2154 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2155 }
2156 if (obj1) {
2157 {
2158 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2159 if (PyErr_Occurred()) SWIG_fail;
2160 }
2161 }
2162 {
2163 PyThreadState* __tstate = wxPyBeginAllowThreads();
2164 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2165
2166 wxPyEndAllowThreads(__tstate);
2167 if (PyErr_Occurred()) SWIG_fail;
2168 }
2169 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2170 return resultobj;
2171 fail:
2172 return NULL;
2173 }
2174
2175
2176 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2177 PyObject *resultobj;
2178 wxBrush *arg1 = (wxBrush *) 0 ;
2179 PyObject * obj0 = 0 ;
2180 char *kwnames[] = {
2181 (char *) "self", NULL
2182 };
2183
2184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2186 {
2187 PyThreadState* __tstate = wxPyBeginAllowThreads();
2188 delete arg1;
2189
2190 wxPyEndAllowThreads(__tstate);
2191 if (PyErr_Occurred()) SWIG_fail;
2192 }
2193 Py_INCREF(Py_None); resultobj = Py_None;
2194 return resultobj;
2195 fail:
2196 return NULL;
2197 }
2198
2199
2200 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2201 PyObject *resultobj;
2202 wxBrush *arg1 = (wxBrush *) 0 ;
2203 wxColour *arg2 = 0 ;
2204 wxColour temp2 ;
2205 PyObject * obj0 = 0 ;
2206 PyObject * obj1 = 0 ;
2207 char *kwnames[] = {
2208 (char *) "self",(char *) "col", NULL
2209 };
2210
2211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2213 {
2214 arg2 = &temp2;
2215 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2216 }
2217 {
2218 PyThreadState* __tstate = wxPyBeginAllowThreads();
2219 (arg1)->SetColour((wxColour const &)*arg2);
2220
2221 wxPyEndAllowThreads(__tstate);
2222 if (PyErr_Occurred()) SWIG_fail;
2223 }
2224 Py_INCREF(Py_None); resultobj = Py_None;
2225 return resultobj;
2226 fail:
2227 return NULL;
2228 }
2229
2230
2231 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2232 PyObject *resultobj;
2233 wxBrush *arg1 = (wxBrush *) 0 ;
2234 int arg2 ;
2235 PyObject * obj0 = 0 ;
2236 PyObject * obj1 = 0 ;
2237 char *kwnames[] = {
2238 (char *) "self",(char *) "style", NULL
2239 };
2240
2241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2243 {
2244 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2245 if (PyErr_Occurred()) SWIG_fail;
2246 }
2247 {
2248 PyThreadState* __tstate = wxPyBeginAllowThreads();
2249 (arg1)->SetStyle(arg2);
2250
2251 wxPyEndAllowThreads(__tstate);
2252 if (PyErr_Occurred()) SWIG_fail;
2253 }
2254 Py_INCREF(Py_None); resultobj = Py_None;
2255 return resultobj;
2256 fail:
2257 return NULL;
2258 }
2259
2260
2261 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2262 PyObject *resultobj;
2263 wxBrush *arg1 = (wxBrush *) 0 ;
2264 wxBitmap *arg2 = 0 ;
2265 PyObject * obj0 = 0 ;
2266 PyObject * obj1 = 0 ;
2267 char *kwnames[] = {
2268 (char *) "self",(char *) "stipple", NULL
2269 };
2270
2271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2273 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2274 if (arg2 == NULL) {
2275 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2276 }
2277 {
2278 PyThreadState* __tstate = wxPyBeginAllowThreads();
2279 (arg1)->SetStipple((wxBitmap const &)*arg2);
2280
2281 wxPyEndAllowThreads(__tstate);
2282 if (PyErr_Occurred()) SWIG_fail;
2283 }
2284 Py_INCREF(Py_None); resultobj = Py_None;
2285 return resultobj;
2286 fail:
2287 return NULL;
2288 }
2289
2290
2291 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2292 PyObject *resultobj;
2293 wxBrush *arg1 = (wxBrush *) 0 ;
2294 wxColour result;
2295 PyObject * obj0 = 0 ;
2296 char *kwnames[] = {
2297 (char *) "self", NULL
2298 };
2299
2300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2302 {
2303 PyThreadState* __tstate = wxPyBeginAllowThreads();
2304 result = ((wxBrush const *)arg1)->GetColour();
2305
2306 wxPyEndAllowThreads(__tstate);
2307 if (PyErr_Occurred()) SWIG_fail;
2308 }
2309 {
2310 wxColour * resultptr;
2311 resultptr = new wxColour((wxColour &) result);
2312 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2313 }
2314 return resultobj;
2315 fail:
2316 return NULL;
2317 }
2318
2319
2320 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2321 PyObject *resultobj;
2322 wxBrush *arg1 = (wxBrush *) 0 ;
2323 int result;
2324 PyObject * obj0 = 0 ;
2325 char *kwnames[] = {
2326 (char *) "self", NULL
2327 };
2328
2329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2331 {
2332 PyThreadState* __tstate = wxPyBeginAllowThreads();
2333 result = (int)((wxBrush const *)arg1)->GetStyle();
2334
2335 wxPyEndAllowThreads(__tstate);
2336 if (PyErr_Occurred()) SWIG_fail;
2337 }
2338 resultobj = SWIG_PyObj_FromInt((int)result);
2339 return resultobj;
2340 fail:
2341 return NULL;
2342 }
2343
2344
2345 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2346 PyObject *resultobj;
2347 wxBrush *arg1 = (wxBrush *) 0 ;
2348 wxBitmap *result;
2349 PyObject * obj0 = 0 ;
2350 char *kwnames[] = {
2351 (char *) "self", NULL
2352 };
2353
2354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2356 {
2357 PyThreadState* __tstate = wxPyBeginAllowThreads();
2358 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2359
2360 wxPyEndAllowThreads(__tstate);
2361 if (PyErr_Occurred()) SWIG_fail;
2362 }
2363 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2364 return resultobj;
2365 fail:
2366 return NULL;
2367 }
2368
2369
2370 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2371 PyObject *resultobj;
2372 wxBrush *arg1 = (wxBrush *) 0 ;
2373 bool result;
2374 PyObject * obj0 = 0 ;
2375 char *kwnames[] = {
2376 (char *) "self", NULL
2377 };
2378
2379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2381 {
2382 PyThreadState* __tstate = wxPyBeginAllowThreads();
2383 result = (bool)(arg1)->Ok();
2384
2385 wxPyEndAllowThreads(__tstate);
2386 if (PyErr_Occurred()) SWIG_fail;
2387 }
2388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2389 return resultobj;
2390 fail:
2391 return NULL;
2392 }
2393
2394
2395 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2396 PyObject *obj;
2397 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2398 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2399 Py_INCREF(obj);
2400 return Py_BuildValue((char *)"");
2401 }
2402 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2403 PyObject *resultobj;
2404 wxString *arg1 = 0 ;
2405 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2406 wxBitmap *result;
2407 bool temp1 = False ;
2408 PyObject * obj0 = 0 ;
2409 PyObject * obj1 = 0 ;
2410 char *kwnames[] = {
2411 (char *) "name",(char *) "type", NULL
2412 };
2413
2414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2415 {
2416 arg1 = wxString_in_helper(obj0);
2417 if (arg1 == NULL) SWIG_fail;
2418 temp1 = True;
2419 }
2420 if (obj1) {
2421 {
2422 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
2423 if (PyErr_Occurred()) SWIG_fail;
2424 }
2425 }
2426 {
2427 PyThreadState* __tstate = wxPyBeginAllowThreads();
2428 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2429
2430 wxPyEndAllowThreads(__tstate);
2431 if (PyErr_Occurred()) SWIG_fail;
2432 }
2433 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2434 {
2435 if (temp1)
2436 delete arg1;
2437 }
2438 return resultobj;
2439 fail:
2440 {
2441 if (temp1)
2442 delete arg1;
2443 }
2444 return NULL;
2445 }
2446
2447
2448 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2449 PyObject *resultobj;
2450 wxBitmap *arg1 = (wxBitmap *) 0 ;
2451 PyObject * obj0 = 0 ;
2452 char *kwnames[] = {
2453 (char *) "self", NULL
2454 };
2455
2456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2458 {
2459 PyThreadState* __tstate = wxPyBeginAllowThreads();
2460 delete arg1;
2461
2462 wxPyEndAllowThreads(__tstate);
2463 if (PyErr_Occurred()) SWIG_fail;
2464 }
2465 Py_INCREF(Py_None); resultobj = Py_None;
2466 return resultobj;
2467 fail:
2468 return NULL;
2469 }
2470
2471
2472 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2473 PyObject *resultobj;
2474 int arg1 ;
2475 int arg2 ;
2476 int arg3 = (int) -1 ;
2477 wxBitmap *result;
2478 PyObject * obj0 = 0 ;
2479 PyObject * obj1 = 0 ;
2480 PyObject * obj2 = 0 ;
2481 char *kwnames[] = {
2482 (char *) "width",(char *) "height",(char *) "depth", NULL
2483 };
2484
2485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2486 {
2487 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2488 if (PyErr_Occurred()) SWIG_fail;
2489 }
2490 {
2491 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2492 if (PyErr_Occurred()) SWIG_fail;
2493 }
2494 if (obj2) {
2495 {
2496 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2497 if (PyErr_Occurred()) SWIG_fail;
2498 }
2499 }
2500 {
2501 PyThreadState* __tstate = wxPyBeginAllowThreads();
2502 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2503
2504 wxPyEndAllowThreads(__tstate);
2505 if (PyErr_Occurred()) SWIG_fail;
2506 }
2507 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2508 return resultobj;
2509 fail:
2510 return NULL;
2511 }
2512
2513
2514 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2515 PyObject *resultobj;
2516 wxIcon *arg1 = 0 ;
2517 wxBitmap *result;
2518 PyObject * obj0 = 0 ;
2519 char *kwnames[] = {
2520 (char *) "icon", NULL
2521 };
2522
2523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2525 if (arg1 == NULL) {
2526 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2527 }
2528 {
2529 PyThreadState* __tstate = wxPyBeginAllowThreads();
2530 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2531
2532 wxPyEndAllowThreads(__tstate);
2533 if (PyErr_Occurred()) SWIG_fail;
2534 }
2535 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2536 return resultobj;
2537 fail:
2538 return NULL;
2539 }
2540
2541
2542 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2543 PyObject *resultobj;
2544 wxImage *arg1 = 0 ;
2545 int arg2 = (int) -1 ;
2546 wxBitmap *result;
2547 PyObject * obj0 = 0 ;
2548 PyObject * obj1 = 0 ;
2549 char *kwnames[] = {
2550 (char *) "image",(char *) "depth", NULL
2551 };
2552
2553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2555 if (arg1 == NULL) {
2556 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2557 }
2558 if (obj1) {
2559 {
2560 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2561 if (PyErr_Occurred()) SWIG_fail;
2562 }
2563 }
2564 {
2565 PyThreadState* __tstate = wxPyBeginAllowThreads();
2566 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2567
2568 wxPyEndAllowThreads(__tstate);
2569 if (PyErr_Occurred()) SWIG_fail;
2570 }
2571 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2572 return resultobj;
2573 fail:
2574 return NULL;
2575 }
2576
2577
2578 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2579 PyObject *resultobj;
2580 PyObject *arg1 = (PyObject *) 0 ;
2581 wxBitmap *result;
2582 PyObject * obj0 = 0 ;
2583 char *kwnames[] = {
2584 (char *) "listOfStrings", NULL
2585 };
2586
2587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2588 arg1 = obj0;
2589 {
2590 PyThreadState* __tstate = wxPyBeginAllowThreads();
2591 result = (wxBitmap *)new_wxBitmap(arg1);
2592
2593 wxPyEndAllowThreads(__tstate);
2594 if (PyErr_Occurred()) SWIG_fail;
2595 }
2596 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2597 return resultobj;
2598 fail:
2599 return NULL;
2600 }
2601
2602
2603 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2604 PyObject *resultobj;
2605 PyObject *arg1 = (PyObject *) 0 ;
2606 int arg2 ;
2607 int arg3 ;
2608 int arg4 = (int) 1 ;
2609 wxBitmap *result;
2610 PyObject * obj0 = 0 ;
2611 PyObject * obj1 = 0 ;
2612 PyObject * obj2 = 0 ;
2613 PyObject * obj3 = 0 ;
2614 char *kwnames[] = {
2615 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2616 };
2617
2618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2619 arg1 = obj0;
2620 {
2621 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2622 if (PyErr_Occurred()) SWIG_fail;
2623 }
2624 {
2625 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2626 if (PyErr_Occurred()) SWIG_fail;
2627 }
2628 if (obj3) {
2629 {
2630 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2631 if (PyErr_Occurred()) SWIG_fail;
2632 }
2633 }
2634 {
2635 PyThreadState* __tstate = wxPyBeginAllowThreads();
2636 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2637
2638 wxPyEndAllowThreads(__tstate);
2639 if (PyErr_Occurred()) SWIG_fail;
2640 }
2641 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2642 return resultobj;
2643 fail:
2644 return NULL;
2645 }
2646
2647
2648 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2649 PyObject *resultobj;
2650 wxBitmap *arg1 = (wxBitmap *) 0 ;
2651 wxPalette *arg2 = 0 ;
2652 PyObject * obj0 = 0 ;
2653 PyObject * obj1 = 0 ;
2654 char *kwnames[] = {
2655 (char *) "self",(char *) "palette", NULL
2656 };
2657
2658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2660 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2661 if (arg2 == NULL) {
2662 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2663 }
2664 {
2665 PyThreadState* __tstate = wxPyBeginAllowThreads();
2666 (arg1)->SetPalette(*arg2);
2667
2668 wxPyEndAllowThreads(__tstate);
2669 if (PyErr_Occurred()) SWIG_fail;
2670 }
2671 Py_INCREF(Py_None); resultobj = Py_None;
2672 return resultobj;
2673 fail:
2674 return NULL;
2675 }
2676
2677
2678 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2679 PyObject *resultobj;
2680 wxBitmap *arg1 = (wxBitmap *) 0 ;
2681 long result;
2682 PyObject * obj0 = 0 ;
2683 char *kwnames[] = {
2684 (char *) "self", NULL
2685 };
2686
2687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2689 {
2690 PyThreadState* __tstate = wxPyBeginAllowThreads();
2691 result = (long)(arg1)->GetHandle();
2692
2693 wxPyEndAllowThreads(__tstate);
2694 if (PyErr_Occurred()) SWIG_fail;
2695 }
2696 resultobj = SWIG_PyObj_FromLong((long)result);
2697 return resultobj;
2698 fail:
2699 return NULL;
2700 }
2701
2702
2703 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2704 PyObject *resultobj;
2705 wxBitmap *arg1 = (wxBitmap *) 0 ;
2706 long arg2 ;
2707 PyObject * obj0 = 0 ;
2708 PyObject * obj1 = 0 ;
2709 char *kwnames[] = {
2710 (char *) "self",(char *) "handle", NULL
2711 };
2712
2713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2715 {
2716 arg2 = (long) SWIG_PyObj_AsLong(obj1);
2717 if (PyErr_Occurred()) SWIG_fail;
2718 }
2719 {
2720 PyThreadState* __tstate = wxPyBeginAllowThreads();
2721 (arg1)->SetHandle(arg2);
2722
2723 wxPyEndAllowThreads(__tstate);
2724 if (PyErr_Occurred()) SWIG_fail;
2725 }
2726 Py_INCREF(Py_None); resultobj = Py_None;
2727 return resultobj;
2728 fail:
2729 return NULL;
2730 }
2731
2732
2733 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2734 PyObject *resultobj;
2735 wxBitmap *arg1 = (wxBitmap *) 0 ;
2736 bool result;
2737 PyObject * obj0 = 0 ;
2738 char *kwnames[] = {
2739 (char *) "self", NULL
2740 };
2741
2742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2744 {
2745 PyThreadState* __tstate = wxPyBeginAllowThreads();
2746 result = (bool)(arg1)->Ok();
2747
2748 wxPyEndAllowThreads(__tstate);
2749 if (PyErr_Occurred()) SWIG_fail;
2750 }
2751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2752 return resultobj;
2753 fail:
2754 return NULL;
2755 }
2756
2757
2758 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2759 PyObject *resultobj;
2760 wxBitmap *arg1 = (wxBitmap *) 0 ;
2761 int result;
2762 PyObject * obj0 = 0 ;
2763 char *kwnames[] = {
2764 (char *) "self", NULL
2765 };
2766
2767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2769 {
2770 PyThreadState* __tstate = wxPyBeginAllowThreads();
2771 result = (int)(arg1)->GetWidth();
2772
2773 wxPyEndAllowThreads(__tstate);
2774 if (PyErr_Occurred()) SWIG_fail;
2775 }
2776 resultobj = SWIG_PyObj_FromInt((int)result);
2777 return resultobj;
2778 fail:
2779 return NULL;
2780 }
2781
2782
2783 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2784 PyObject *resultobj;
2785 wxBitmap *arg1 = (wxBitmap *) 0 ;
2786 int result;
2787 PyObject * obj0 = 0 ;
2788 char *kwnames[] = {
2789 (char *) "self", NULL
2790 };
2791
2792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2794 {
2795 PyThreadState* __tstate = wxPyBeginAllowThreads();
2796 result = (int)(arg1)->GetHeight();
2797
2798 wxPyEndAllowThreads(__tstate);
2799 if (PyErr_Occurred()) SWIG_fail;
2800 }
2801 resultobj = SWIG_PyObj_FromInt((int)result);
2802 return resultobj;
2803 fail:
2804 return NULL;
2805 }
2806
2807
2808 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2809 PyObject *resultobj;
2810 wxBitmap *arg1 = (wxBitmap *) 0 ;
2811 int result;
2812 PyObject * obj0 = 0 ;
2813 char *kwnames[] = {
2814 (char *) "self", NULL
2815 };
2816
2817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2819 {
2820 PyThreadState* __tstate = wxPyBeginAllowThreads();
2821 result = (int)(arg1)->GetDepth();
2822
2823 wxPyEndAllowThreads(__tstate);
2824 if (PyErr_Occurred()) SWIG_fail;
2825 }
2826 resultobj = SWIG_PyObj_FromInt((int)result);
2827 return resultobj;
2828 fail:
2829 return NULL;
2830 }
2831
2832
2833 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2834 PyObject *resultobj;
2835 wxBitmap *arg1 = (wxBitmap *) 0 ;
2836 SwigValueWrapper< wxImage > result;
2837 PyObject * obj0 = 0 ;
2838 char *kwnames[] = {
2839 (char *) "self", NULL
2840 };
2841
2842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2844 {
2845 PyThreadState* __tstate = wxPyBeginAllowThreads();
2846 result = ((wxBitmap const *)arg1)->ConvertToImage();
2847
2848 wxPyEndAllowThreads(__tstate);
2849 if (PyErr_Occurred()) SWIG_fail;
2850 }
2851 {
2852 wxImage * resultptr;
2853 resultptr = new wxImage((wxImage &) result);
2854 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2855 }
2856 return resultobj;
2857 fail:
2858 return NULL;
2859 }
2860
2861
2862 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2863 PyObject *resultobj;
2864 wxBitmap *arg1 = (wxBitmap *) 0 ;
2865 wxMask *result;
2866 PyObject * obj0 = 0 ;
2867 char *kwnames[] = {
2868 (char *) "self", NULL
2869 };
2870
2871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2873 {
2874 PyThreadState* __tstate = wxPyBeginAllowThreads();
2875 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2876
2877 wxPyEndAllowThreads(__tstate);
2878 if (PyErr_Occurred()) SWIG_fail;
2879 }
2880 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2881 return resultobj;
2882 fail:
2883 return NULL;
2884 }
2885
2886
2887 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2888 PyObject *resultobj;
2889 wxBitmap *arg1 = (wxBitmap *) 0 ;
2890 wxMask *arg2 = (wxMask *) 0 ;
2891 PyObject * obj0 = 0 ;
2892 PyObject * obj1 = 0 ;
2893 char *kwnames[] = {
2894 (char *) "self",(char *) "mask", NULL
2895 };
2896
2897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2898 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2899 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2900 {
2901 PyThreadState* __tstate = wxPyBeginAllowThreads();
2902 (arg1)->SetMask(arg2);
2903
2904 wxPyEndAllowThreads(__tstate);
2905 if (PyErr_Occurred()) SWIG_fail;
2906 }
2907 Py_INCREF(Py_None); resultobj = Py_None;
2908 return resultobj;
2909 fail:
2910 return NULL;
2911 }
2912
2913
2914 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2915 PyObject *resultobj;
2916 wxBitmap *arg1 = (wxBitmap *) 0 ;
2917 wxColour *arg2 = 0 ;
2918 wxColour temp2 ;
2919 PyObject * obj0 = 0 ;
2920 PyObject * obj1 = 0 ;
2921 char *kwnames[] = {
2922 (char *) "self",(char *) "colour", NULL
2923 };
2924
2925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2927 {
2928 arg2 = &temp2;
2929 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2930 }
2931 {
2932 PyThreadState* __tstate = wxPyBeginAllowThreads();
2933 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2934
2935 wxPyEndAllowThreads(__tstate);
2936 if (PyErr_Occurred()) SWIG_fail;
2937 }
2938 Py_INCREF(Py_None); resultobj = Py_None;
2939 return resultobj;
2940 fail:
2941 return NULL;
2942 }
2943
2944
2945 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2946 PyObject *resultobj;
2947 wxBitmap *arg1 = (wxBitmap *) 0 ;
2948 wxRect *arg2 = 0 ;
2949 SwigValueWrapper< wxBitmap > result;
2950 wxRect temp2 ;
2951 PyObject * obj0 = 0 ;
2952 PyObject * obj1 = 0 ;
2953 char *kwnames[] = {
2954 (char *) "self",(char *) "rect", NULL
2955 };
2956
2957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2959 {
2960 arg2 = &temp2;
2961 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2962 }
2963 {
2964 PyThreadState* __tstate = wxPyBeginAllowThreads();
2965 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2966
2967 wxPyEndAllowThreads(__tstate);
2968 if (PyErr_Occurred()) SWIG_fail;
2969 }
2970 {
2971 wxBitmap * resultptr;
2972 resultptr = new wxBitmap((wxBitmap &) result);
2973 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2974 }
2975 return resultobj;
2976 fail:
2977 return NULL;
2978 }
2979
2980
2981 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2982 PyObject *resultobj;
2983 wxBitmap *arg1 = (wxBitmap *) 0 ;
2984 wxString *arg2 = 0 ;
2985 int arg3 ;
2986 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2987 bool result;
2988 bool temp2 = False ;
2989 PyObject * obj0 = 0 ;
2990 PyObject * obj1 = 0 ;
2991 PyObject * obj2 = 0 ;
2992 PyObject * obj3 = 0 ;
2993 char *kwnames[] = {
2994 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2995 };
2996
2997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2999 {
3000 arg2 = wxString_in_helper(obj1);
3001 if (arg2 == NULL) SWIG_fail;
3002 temp2 = True;
3003 }
3004 {
3005 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3006 if (PyErr_Occurred()) SWIG_fail;
3007 }
3008 if (obj3) {
3009 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3010 }
3011 {
3012 PyThreadState* __tstate = wxPyBeginAllowThreads();
3013 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3014
3015 wxPyEndAllowThreads(__tstate);
3016 if (PyErr_Occurred()) SWIG_fail;
3017 }
3018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3019 {
3020 if (temp2)
3021 delete arg2;
3022 }
3023 return resultobj;
3024 fail:
3025 {
3026 if (temp2)
3027 delete arg2;
3028 }
3029 return NULL;
3030 }
3031
3032
3033 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3034 PyObject *resultobj;
3035 wxBitmap *arg1 = (wxBitmap *) 0 ;
3036 wxString *arg2 = 0 ;
3037 int arg3 ;
3038 bool result;
3039 bool temp2 = False ;
3040 PyObject * obj0 = 0 ;
3041 PyObject * obj1 = 0 ;
3042 PyObject * obj2 = 0 ;
3043 char *kwnames[] = {
3044 (char *) "self",(char *) "name",(char *) "type", NULL
3045 };
3046
3047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3049 {
3050 arg2 = wxString_in_helper(obj1);
3051 if (arg2 == NULL) SWIG_fail;
3052 temp2 = True;
3053 }
3054 {
3055 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3056 if (PyErr_Occurred()) SWIG_fail;
3057 }
3058 {
3059 PyThreadState* __tstate = wxPyBeginAllowThreads();
3060 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3061
3062 wxPyEndAllowThreads(__tstate);
3063 if (PyErr_Occurred()) SWIG_fail;
3064 }
3065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3066 {
3067 if (temp2)
3068 delete arg2;
3069 }
3070 return resultobj;
3071 fail:
3072 {
3073 if (temp2)
3074 delete arg2;
3075 }
3076 return NULL;
3077 }
3078
3079
3080 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3081 PyObject *resultobj;
3082 wxBitmap *arg1 = (wxBitmap *) 0 ;
3083 wxIcon *arg2 = 0 ;
3084 bool result;
3085 PyObject * obj0 = 0 ;
3086 PyObject * obj1 = 0 ;
3087 char *kwnames[] = {
3088 (char *) "self",(char *) "icon", NULL
3089 };
3090
3091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3093 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3094 if (arg2 == NULL) {
3095 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3096 }
3097 {
3098 PyThreadState* __tstate = wxPyBeginAllowThreads();
3099 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3100
3101 wxPyEndAllowThreads(__tstate);
3102 if (PyErr_Occurred()) SWIG_fail;
3103 }
3104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3105 return resultobj;
3106 fail:
3107 return NULL;
3108 }
3109
3110
3111 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3112 PyObject *resultobj;
3113 wxBitmap *arg1 = (wxBitmap *) 0 ;
3114 int arg2 ;
3115 PyObject * obj0 = 0 ;
3116 PyObject * obj1 = 0 ;
3117 char *kwnames[] = {
3118 (char *) "self",(char *) "height", NULL
3119 };
3120
3121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3122 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3123 {
3124 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3125 if (PyErr_Occurred()) SWIG_fail;
3126 }
3127 {
3128 PyThreadState* __tstate = wxPyBeginAllowThreads();
3129 (arg1)->SetHeight(arg2);
3130
3131 wxPyEndAllowThreads(__tstate);
3132 if (PyErr_Occurred()) SWIG_fail;
3133 }
3134 Py_INCREF(Py_None); resultobj = Py_None;
3135 return resultobj;
3136 fail:
3137 return NULL;
3138 }
3139
3140
3141 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3142 PyObject *resultobj;
3143 wxBitmap *arg1 = (wxBitmap *) 0 ;
3144 int arg2 ;
3145 PyObject * obj0 = 0 ;
3146 PyObject * obj1 = 0 ;
3147 char *kwnames[] = {
3148 (char *) "self",(char *) "width", NULL
3149 };
3150
3151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3153 {
3154 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3155 if (PyErr_Occurred()) SWIG_fail;
3156 }
3157 {
3158 PyThreadState* __tstate = wxPyBeginAllowThreads();
3159 (arg1)->SetWidth(arg2);
3160
3161 wxPyEndAllowThreads(__tstate);
3162 if (PyErr_Occurred()) SWIG_fail;
3163 }
3164 Py_INCREF(Py_None); resultobj = Py_None;
3165 return resultobj;
3166 fail:
3167 return NULL;
3168 }
3169
3170
3171 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3172 PyObject *resultobj;
3173 wxBitmap *arg1 = (wxBitmap *) 0 ;
3174 int arg2 ;
3175 PyObject * obj0 = 0 ;
3176 PyObject * obj1 = 0 ;
3177 char *kwnames[] = {
3178 (char *) "self",(char *) "depth", NULL
3179 };
3180
3181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3183 {
3184 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3185 if (PyErr_Occurred()) SWIG_fail;
3186 }
3187 {
3188 PyThreadState* __tstate = wxPyBeginAllowThreads();
3189 (arg1)->SetDepth(arg2);
3190
3191 wxPyEndAllowThreads(__tstate);
3192 if (PyErr_Occurred()) SWIG_fail;
3193 }
3194 Py_INCREF(Py_None); resultobj = Py_None;
3195 return resultobj;
3196 fail:
3197 return NULL;
3198 }
3199
3200
3201 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3202 PyObject *resultobj;
3203 wxBitmap *arg1 = (wxBitmap *) 0 ;
3204 wxCursor *arg2 = 0 ;
3205 bool result;
3206 PyObject * obj0 = 0 ;
3207 PyObject * obj1 = 0 ;
3208 char *kwnames[] = {
3209 (char *) "self",(char *) "cursor", NULL
3210 };
3211
3212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3214 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3215 if (arg2 == NULL) {
3216 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3217 }
3218 {
3219 PyThreadState* __tstate = wxPyBeginAllowThreads();
3220 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3221
3222 wxPyEndAllowThreads(__tstate);
3223 if (PyErr_Occurred()) SWIG_fail;
3224 }
3225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3226 return resultobj;
3227 fail:
3228 return NULL;
3229 }
3230
3231
3232 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3233 PyObject *resultobj;
3234 wxBitmap *arg1 = (wxBitmap *) 0 ;
3235 int result;
3236 PyObject * obj0 = 0 ;
3237 char *kwnames[] = {
3238 (char *) "self", NULL
3239 };
3240
3241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3243 {
3244 PyThreadState* __tstate = wxPyBeginAllowThreads();
3245 result = (int)(arg1)->GetQuality();
3246
3247 wxPyEndAllowThreads(__tstate);
3248 if (PyErr_Occurred()) SWIG_fail;
3249 }
3250 resultobj = SWIG_PyObj_FromInt((int)result);
3251 return resultobj;
3252 fail:
3253 return NULL;
3254 }
3255
3256
3257 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3258 PyObject *resultobj;
3259 wxBitmap *arg1 = (wxBitmap *) 0 ;
3260 int arg2 ;
3261 PyObject * obj0 = 0 ;
3262 PyObject * obj1 = 0 ;
3263 char *kwnames[] = {
3264 (char *) "self",(char *) "q", NULL
3265 };
3266
3267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3269 {
3270 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3271 if (PyErr_Occurred()) SWIG_fail;
3272 }
3273 {
3274 PyThreadState* __tstate = wxPyBeginAllowThreads();
3275 (arg1)->SetQuality(arg2);
3276
3277 wxPyEndAllowThreads(__tstate);
3278 if (PyErr_Occurred()) SWIG_fail;
3279 }
3280 Py_INCREF(Py_None); resultobj = Py_None;
3281 return resultobj;
3282 fail:
3283 return NULL;
3284 }
3285
3286
3287 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3288 PyObject *obj;
3289 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3290 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3291 Py_INCREF(obj);
3292 return Py_BuildValue((char *)"");
3293 }
3294 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3295 PyObject *resultobj;
3296 wxBitmap *arg1 = 0 ;
3297 wxMask *result;
3298 PyObject * obj0 = 0 ;
3299 char *kwnames[] = {
3300 (char *) "bitmap", NULL
3301 };
3302
3303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
3304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3305 if (arg1 == NULL) {
3306 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3307 }
3308 {
3309 PyThreadState* __tstate = wxPyBeginAllowThreads();
3310 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
3311
3312 wxPyEndAllowThreads(__tstate);
3313 if (PyErr_Occurred()) SWIG_fail;
3314 }
3315 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3316 return resultobj;
3317 fail:
3318 return NULL;
3319 }
3320
3321
3322 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3323 PyObject *resultobj;
3324 wxBitmap *arg1 = 0 ;
3325 wxColour *arg2 = 0 ;
3326 wxMask *result;
3327 wxColour temp2 ;
3328 PyObject * obj0 = 0 ;
3329 PyObject * obj1 = 0 ;
3330 char *kwnames[] = {
3331 (char *) "bitmap",(char *) "colour", NULL
3332 };
3333
3334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
3335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3336 if (arg1 == NULL) {
3337 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3338 }
3339 {
3340 arg2 = &temp2;
3341 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3342 }
3343 {
3344 PyThreadState* __tstate = wxPyBeginAllowThreads();
3345 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3346
3347 wxPyEndAllowThreads(__tstate);
3348 if (PyErr_Occurred()) SWIG_fail;
3349 }
3350 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3351 return resultobj;
3352 fail:
3353 return NULL;
3354 }
3355
3356
3357 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3358 PyObject *obj;
3359 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3360 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3361 Py_INCREF(obj);
3362 return Py_BuildValue((char *)"");
3363 }
3364 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3365 PyObject *resultobj;
3366 wxString *arg1 = 0 ;
3367 int arg2 ;
3368 int arg3 = (int) -1 ;
3369 int arg4 = (int) -1 ;
3370 wxIcon *result;
3371 bool temp1 = False ;
3372 PyObject * obj0 = 0 ;
3373 PyObject * obj1 = 0 ;
3374 PyObject * obj2 = 0 ;
3375 PyObject * obj3 = 0 ;
3376 char *kwnames[] = {
3377 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3378 };
3379
3380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3381 {
3382 arg1 = wxString_in_helper(obj0);
3383 if (arg1 == NULL) SWIG_fail;
3384 temp1 = True;
3385 }
3386 {
3387 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
3388 if (PyErr_Occurred()) SWIG_fail;
3389 }
3390 if (obj2) {
3391 {
3392 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3393 if (PyErr_Occurred()) SWIG_fail;
3394 }
3395 }
3396 if (obj3) {
3397 {
3398 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3399 if (PyErr_Occurred()) SWIG_fail;
3400 }
3401 }
3402 {
3403 PyThreadState* __tstate = wxPyBeginAllowThreads();
3404 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3405
3406 wxPyEndAllowThreads(__tstate);
3407 if (PyErr_Occurred()) SWIG_fail;
3408 }
3409 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3410 {
3411 if (temp1)
3412 delete arg1;
3413 }
3414 return resultobj;
3415 fail:
3416 {
3417 if (temp1)
3418 delete arg1;
3419 }
3420 return NULL;
3421 }
3422
3423
3424 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3425 PyObject *resultobj;
3426 wxIcon *arg1 = (wxIcon *) 0 ;
3427 PyObject * obj0 = 0 ;
3428 char *kwnames[] = {
3429 (char *) "self", NULL
3430 };
3431
3432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3434 {
3435 PyThreadState* __tstate = wxPyBeginAllowThreads();
3436 delete arg1;
3437
3438 wxPyEndAllowThreads(__tstate);
3439 if (PyErr_Occurred()) SWIG_fail;
3440 }
3441 Py_INCREF(Py_None); resultobj = Py_None;
3442 return resultobj;
3443 fail:
3444 return NULL;
3445 }
3446
3447
3448 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3449 PyObject *resultobj;
3450 wxIcon *result;
3451 char *kwnames[] = {
3452 NULL
3453 };
3454
3455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3456 {
3457 PyThreadState* __tstate = wxPyBeginAllowThreads();
3458 result = (wxIcon *)new wxIcon();
3459
3460 wxPyEndAllowThreads(__tstate);
3461 if (PyErr_Occurred()) SWIG_fail;
3462 }
3463 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3464 return resultobj;
3465 fail:
3466 return NULL;
3467 }
3468
3469
3470 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3471 PyObject *resultobj;
3472 wxIconLocation *arg1 = 0 ;
3473 wxIcon *result;
3474 PyObject * obj0 = 0 ;
3475 char *kwnames[] = {
3476 (char *) "loc", NULL
3477 };
3478
3479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3481 if (arg1 == NULL) {
3482 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3483 }
3484 {
3485 PyThreadState* __tstate = wxPyBeginAllowThreads();
3486 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3487
3488 wxPyEndAllowThreads(__tstate);
3489 if (PyErr_Occurred()) SWIG_fail;
3490 }
3491 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3492 return resultobj;
3493 fail:
3494 return NULL;
3495 }
3496
3497
3498 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3499 PyObject *resultobj;
3500 wxBitmap *arg1 = 0 ;
3501 wxIcon *result;
3502 PyObject * obj0 = 0 ;
3503 char *kwnames[] = {
3504 (char *) "bmp", NULL
3505 };
3506
3507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3509 if (arg1 == NULL) {
3510 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3511 }
3512 {
3513 PyThreadState* __tstate = wxPyBeginAllowThreads();
3514 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3515
3516 wxPyEndAllowThreads(__tstate);
3517 if (PyErr_Occurred()) SWIG_fail;
3518 }
3519 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3520 return resultobj;
3521 fail:
3522 return NULL;
3523 }
3524
3525
3526 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3527 PyObject *resultobj;
3528 PyObject *arg1 = (PyObject *) 0 ;
3529 wxIcon *result;
3530 PyObject * obj0 = 0 ;
3531 char *kwnames[] = {
3532 (char *) "listOfStrings", NULL
3533 };
3534
3535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3536 arg1 = obj0;
3537 {
3538 PyThreadState* __tstate = wxPyBeginAllowThreads();
3539 result = (wxIcon *)new_wxIcon(arg1);
3540
3541 wxPyEndAllowThreads(__tstate);
3542 if (PyErr_Occurred()) SWIG_fail;
3543 }
3544 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3545 return resultobj;
3546 fail:
3547 return NULL;
3548 }
3549
3550
3551 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3552 PyObject *resultobj;
3553 wxIcon *arg1 = (wxIcon *) 0 ;
3554 wxString *arg2 = 0 ;
3555 int arg3 ;
3556 bool result;
3557 bool temp2 = False ;
3558 PyObject * obj0 = 0 ;
3559 PyObject * obj1 = 0 ;
3560 PyObject * obj2 = 0 ;
3561 char *kwnames[] = {
3562 (char *) "self",(char *) "name",(char *) "type", NULL
3563 };
3564
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3567 {
3568 arg2 = wxString_in_helper(obj1);
3569 if (arg2 == NULL) SWIG_fail;
3570 temp2 = True;
3571 }
3572 {
3573 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3574 if (PyErr_Occurred()) SWIG_fail;
3575 }
3576 {
3577 PyThreadState* __tstate = wxPyBeginAllowThreads();
3578 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3579
3580 wxPyEndAllowThreads(__tstate);
3581 if (PyErr_Occurred()) SWIG_fail;
3582 }
3583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3584 {
3585 if (temp2)
3586 delete arg2;
3587 }
3588 return resultobj;
3589 fail:
3590 {
3591 if (temp2)
3592 delete arg2;
3593 }
3594 return NULL;
3595 }
3596
3597
3598 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3599 PyObject *resultobj;
3600 wxIcon *arg1 = (wxIcon *) 0 ;
3601 long result;
3602 PyObject * obj0 = 0 ;
3603 char *kwnames[] = {
3604 (char *) "self", NULL
3605 };
3606
3607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
3608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3609 {
3610 PyThreadState* __tstate = wxPyBeginAllowThreads();
3611 result = (long)(arg1)->GetHandle();
3612
3613 wxPyEndAllowThreads(__tstate);
3614 if (PyErr_Occurred()) SWIG_fail;
3615 }
3616 resultobj = SWIG_PyObj_FromLong((long)result);
3617 return resultobj;
3618 fail:
3619 return NULL;
3620 }
3621
3622
3623 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3624 PyObject *resultobj;
3625 wxIcon *arg1 = (wxIcon *) 0 ;
3626 long arg2 ;
3627 PyObject * obj0 = 0 ;
3628 PyObject * obj1 = 0 ;
3629 char *kwnames[] = {
3630 (char *) "self",(char *) "handle", NULL
3631 };
3632
3633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3635 {
3636 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3637 if (PyErr_Occurred()) SWIG_fail;
3638 }
3639 {
3640 PyThreadState* __tstate = wxPyBeginAllowThreads();
3641 (arg1)->SetHandle(arg2);
3642
3643 wxPyEndAllowThreads(__tstate);
3644 if (PyErr_Occurred()) SWIG_fail;
3645 }
3646 Py_INCREF(Py_None); resultobj = Py_None;
3647 return resultobj;
3648 fail:
3649 return NULL;
3650 }
3651
3652
3653 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3654 PyObject *resultobj;
3655 wxIcon *arg1 = (wxIcon *) 0 ;
3656 bool result;
3657 PyObject * obj0 = 0 ;
3658 char *kwnames[] = {
3659 (char *) "self", NULL
3660 };
3661
3662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3663 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3664 {
3665 PyThreadState* __tstate = wxPyBeginAllowThreads();
3666 result = (bool)(arg1)->Ok();
3667
3668 wxPyEndAllowThreads(__tstate);
3669 if (PyErr_Occurred()) SWIG_fail;
3670 }
3671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3672 return resultobj;
3673 fail:
3674 return NULL;
3675 }
3676
3677
3678 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3679 PyObject *resultobj;
3680 wxIcon *arg1 = (wxIcon *) 0 ;
3681 int result;
3682 PyObject * obj0 = 0 ;
3683 char *kwnames[] = {
3684 (char *) "self", NULL
3685 };
3686
3687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3689 {
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 result = (int)(arg1)->GetWidth();
3692
3693 wxPyEndAllowThreads(__tstate);
3694 if (PyErr_Occurred()) SWIG_fail;
3695 }
3696 resultobj = SWIG_PyObj_FromInt((int)result);
3697 return resultobj;
3698 fail:
3699 return NULL;
3700 }
3701
3702
3703 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3704 PyObject *resultobj;
3705 wxIcon *arg1 = (wxIcon *) 0 ;
3706 int result;
3707 PyObject * obj0 = 0 ;
3708 char *kwnames[] = {
3709 (char *) "self", NULL
3710 };
3711
3712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3714 {
3715 PyThreadState* __tstate = wxPyBeginAllowThreads();
3716 result = (int)(arg1)->GetHeight();
3717
3718 wxPyEndAllowThreads(__tstate);
3719 if (PyErr_Occurred()) SWIG_fail;
3720 }
3721 resultobj = SWIG_PyObj_FromInt((int)result);
3722 return resultobj;
3723 fail:
3724 return NULL;
3725 }
3726
3727
3728 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3729 PyObject *resultobj;
3730 wxIcon *arg1 = (wxIcon *) 0 ;
3731 int result;
3732 PyObject * obj0 = 0 ;
3733 char *kwnames[] = {
3734 (char *) "self", NULL
3735 };
3736
3737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3739 {
3740 PyThreadState* __tstate = wxPyBeginAllowThreads();
3741 result = (int)(arg1)->GetDepth();
3742
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 resultobj = SWIG_PyObj_FromInt((int)result);
3747 return resultobj;
3748 fail:
3749 return NULL;
3750 }
3751
3752
3753 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3754 PyObject *resultobj;
3755 wxIcon *arg1 = (wxIcon *) 0 ;
3756 int arg2 ;
3757 PyObject * obj0 = 0 ;
3758 PyObject * obj1 = 0 ;
3759 char *kwnames[] = {
3760 (char *) "self",(char *) "w", NULL
3761 };
3762
3763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3765 {
3766 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3767 if (PyErr_Occurred()) SWIG_fail;
3768 }
3769 {
3770 PyThreadState* __tstate = wxPyBeginAllowThreads();
3771 (arg1)->SetWidth(arg2);
3772
3773 wxPyEndAllowThreads(__tstate);
3774 if (PyErr_Occurred()) SWIG_fail;
3775 }
3776 Py_INCREF(Py_None); resultobj = Py_None;
3777 return resultobj;
3778 fail:
3779 return NULL;
3780 }
3781
3782
3783 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3784 PyObject *resultobj;
3785 wxIcon *arg1 = (wxIcon *) 0 ;
3786 int arg2 ;
3787 PyObject * obj0 = 0 ;
3788 PyObject * obj1 = 0 ;
3789 char *kwnames[] = {
3790 (char *) "self",(char *) "h", NULL
3791 };
3792
3793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3795 {
3796 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3797 if (PyErr_Occurred()) SWIG_fail;
3798 }
3799 {
3800 PyThreadState* __tstate = wxPyBeginAllowThreads();
3801 (arg1)->SetHeight(arg2);
3802
3803 wxPyEndAllowThreads(__tstate);
3804 if (PyErr_Occurred()) SWIG_fail;
3805 }
3806 Py_INCREF(Py_None); resultobj = Py_None;
3807 return resultobj;
3808 fail:
3809 return NULL;
3810 }
3811
3812
3813 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3814 PyObject *resultobj;
3815 wxIcon *arg1 = (wxIcon *) 0 ;
3816 int arg2 ;
3817 PyObject * obj0 = 0 ;
3818 PyObject * obj1 = 0 ;
3819 char *kwnames[] = {
3820 (char *) "self",(char *) "d", NULL
3821 };
3822
3823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3825 {
3826 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3827 if (PyErr_Occurred()) SWIG_fail;
3828 }
3829 {
3830 PyThreadState* __tstate = wxPyBeginAllowThreads();
3831 (arg1)->SetDepth(arg2);
3832
3833 wxPyEndAllowThreads(__tstate);
3834 if (PyErr_Occurred()) SWIG_fail;
3835 }
3836 Py_INCREF(Py_None); resultobj = Py_None;
3837 return resultobj;
3838 fail:
3839 return NULL;
3840 }
3841
3842
3843 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3844 PyObject *resultobj;
3845 wxIcon *arg1 = (wxIcon *) 0 ;
3846 wxSize *arg2 = 0 ;
3847 wxSize temp2 ;
3848 PyObject * obj0 = 0 ;
3849 PyObject * obj1 = 0 ;
3850 char *kwnames[] = {
3851 (char *) "self",(char *) "size", NULL
3852 };
3853
3854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
3855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3856 {
3857 arg2 = &temp2;
3858 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3859 }
3860 {
3861 PyThreadState* __tstate = wxPyBeginAllowThreads();
3862 (arg1)->SetSize((wxSize const &)*arg2);
3863
3864 wxPyEndAllowThreads(__tstate);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 }
3867 Py_INCREF(Py_None); resultobj = Py_None;
3868 return resultobj;
3869 fail:
3870 return NULL;
3871 }
3872
3873
3874 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3875 PyObject *resultobj;
3876 wxIcon *arg1 = (wxIcon *) 0 ;
3877 wxBitmap *arg2 = 0 ;
3878 PyObject * obj0 = 0 ;
3879 PyObject * obj1 = 0 ;
3880 char *kwnames[] = {
3881 (char *) "self",(char *) "bmp", NULL
3882 };
3883
3884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3886 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3887 if (arg2 == NULL) {
3888 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3889 }
3890 {
3891 PyThreadState* __tstate = wxPyBeginAllowThreads();
3892 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3893
3894 wxPyEndAllowThreads(__tstate);
3895 if (PyErr_Occurred()) SWIG_fail;
3896 }
3897 Py_INCREF(Py_None); resultobj = Py_None;
3898 return resultobj;
3899 fail:
3900 return NULL;
3901 }
3902
3903
3904 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3905 PyObject *obj;
3906 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3907 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3908 Py_INCREF(obj);
3909 return Py_BuildValue((char *)"");
3910 }
3911 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3912 PyObject *resultobj;
3913 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3914 int arg2 = (int) 0 ;
3915 wxIconLocation *result;
3916 bool temp1 = False ;
3917 PyObject * obj0 = 0 ;
3918 PyObject * obj1 = 0 ;
3919 char *kwnames[] = {
3920 (char *) "filename",(char *) "num", NULL
3921 };
3922
3923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3924 if (obj0) {
3925 {
3926 arg1 = wxString_in_helper(obj0);
3927 if (arg1 == NULL) SWIG_fail;
3928 temp1 = True;
3929 }
3930 }
3931 if (obj1) {
3932 {
3933 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3934 if (PyErr_Occurred()) SWIG_fail;
3935 }
3936 }
3937 {
3938 PyThreadState* __tstate = wxPyBeginAllowThreads();
3939 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3940
3941 wxPyEndAllowThreads(__tstate);
3942 if (PyErr_Occurred()) SWIG_fail;
3943 }
3944 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3945 {
3946 if (temp1)
3947 delete arg1;
3948 }
3949 return resultobj;
3950 fail:
3951 {
3952 if (temp1)
3953 delete arg1;
3954 }
3955 return NULL;
3956 }
3957
3958
3959 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3960 PyObject *resultobj;
3961 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3962 PyObject * obj0 = 0 ;
3963 char *kwnames[] = {
3964 (char *) "self", NULL
3965 };
3966
3967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3969 {
3970 PyThreadState* __tstate = wxPyBeginAllowThreads();
3971 delete arg1;
3972
3973 wxPyEndAllowThreads(__tstate);
3974 if (PyErr_Occurred()) SWIG_fail;
3975 }
3976 Py_INCREF(Py_None); resultobj = Py_None;
3977 return resultobj;
3978 fail:
3979 return NULL;
3980 }
3981
3982
3983 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3984 PyObject *resultobj;
3985 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3986 bool result;
3987 PyObject * obj0 = 0 ;
3988 char *kwnames[] = {
3989 (char *) "self", NULL
3990 };
3991
3992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3994 {
3995 PyThreadState* __tstate = wxPyBeginAllowThreads();
3996 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3997
3998 wxPyEndAllowThreads(__tstate);
3999 if (PyErr_Occurred()) SWIG_fail;
4000 }
4001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4002 return resultobj;
4003 fail:
4004 return NULL;
4005 }
4006
4007
4008 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4009 PyObject *resultobj;
4010 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4011 wxString *arg2 = 0 ;
4012 bool temp2 = False ;
4013 PyObject * obj0 = 0 ;
4014 PyObject * obj1 = 0 ;
4015 char *kwnames[] = {
4016 (char *) "self",(char *) "filename", NULL
4017 };
4018
4019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4021 {
4022 arg2 = wxString_in_helper(obj1);
4023 if (arg2 == NULL) SWIG_fail;
4024 temp2 = True;
4025 }
4026 {
4027 PyThreadState* __tstate = wxPyBeginAllowThreads();
4028 (arg1)->SetFileName((wxString const &)*arg2);
4029
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 }
4033 Py_INCREF(Py_None); resultobj = Py_None;
4034 {
4035 if (temp2)
4036 delete arg2;
4037 }
4038 return resultobj;
4039 fail:
4040 {
4041 if (temp2)
4042 delete arg2;
4043 }
4044 return NULL;
4045 }
4046
4047
4048 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4049 PyObject *resultobj;
4050 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4051 wxString *result;
4052 PyObject * obj0 = 0 ;
4053 char *kwnames[] = {
4054 (char *) "self", NULL
4055 };
4056
4057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 {
4062 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4063 result = (wxString *) &_result_ref;
4064 }
4065
4066 wxPyEndAllowThreads(__tstate);
4067 if (PyErr_Occurred()) SWIG_fail;
4068 }
4069 {
4070 #if wxUSE_UNICODE
4071 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4072 #else
4073 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4074 #endif
4075 }
4076 return resultobj;
4077 fail:
4078 return NULL;
4079 }
4080
4081
4082 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4083 PyObject *resultobj;
4084 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4085 int arg2 ;
4086 PyObject * obj0 = 0 ;
4087 PyObject * obj1 = 0 ;
4088 char *kwnames[] = {
4089 (char *) "self",(char *) "num", NULL
4090 };
4091
4092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4094 {
4095 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4096 if (PyErr_Occurred()) SWIG_fail;
4097 }
4098 {
4099 PyThreadState* __tstate = wxPyBeginAllowThreads();
4100 wxIconLocation_SetIndex(arg1,arg2);
4101
4102 wxPyEndAllowThreads(__tstate);
4103 if (PyErr_Occurred()) SWIG_fail;
4104 }
4105 Py_INCREF(Py_None); resultobj = Py_None;
4106 return resultobj;
4107 fail:
4108 return NULL;
4109 }
4110
4111
4112 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4113 PyObject *resultobj;
4114 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4115 int result;
4116 PyObject * obj0 = 0 ;
4117 char *kwnames[] = {
4118 (char *) "self", NULL
4119 };
4120
4121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4122 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4123 {
4124 PyThreadState* __tstate = wxPyBeginAllowThreads();
4125 result = (int)wxIconLocation_GetIndex(arg1);
4126
4127 wxPyEndAllowThreads(__tstate);
4128 if (PyErr_Occurred()) SWIG_fail;
4129 }
4130 resultobj = SWIG_PyObj_FromInt((int)result);
4131 return resultobj;
4132 fail:
4133 return NULL;
4134 }
4135
4136
4137 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4138 PyObject *obj;
4139 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4140 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4141 Py_INCREF(obj);
4142 return Py_BuildValue((char *)"");
4143 }
4144 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4145 PyObject *resultobj;
4146 wxIconBundle *result;
4147 char *kwnames[] = {
4148 NULL
4149 };
4150
4151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4152 {
4153 PyThreadState* __tstate = wxPyBeginAllowThreads();
4154 result = (wxIconBundle *)new wxIconBundle();
4155
4156 wxPyEndAllowThreads(__tstate);
4157 if (PyErr_Occurred()) SWIG_fail;
4158 }
4159 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4160 return resultobj;
4161 fail:
4162 return NULL;
4163 }
4164
4165
4166 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4167 PyObject *resultobj;
4168 wxString *arg1 = 0 ;
4169 long arg2 ;
4170 wxIconBundle *result;
4171 bool temp1 = False ;
4172 PyObject * obj0 = 0 ;
4173 PyObject * obj1 = 0 ;
4174 char *kwnames[] = {
4175 (char *) "file",(char *) "type", NULL
4176 };
4177
4178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4179 {
4180 arg1 = wxString_in_helper(obj0);
4181 if (arg1 == NULL) SWIG_fail;
4182 temp1 = True;
4183 }
4184 {
4185 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4186 if (PyErr_Occurred()) SWIG_fail;
4187 }
4188 {
4189 PyThreadState* __tstate = wxPyBeginAllowThreads();
4190 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4191
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4196 {
4197 if (temp1)
4198 delete arg1;
4199 }
4200 return resultobj;
4201 fail:
4202 {
4203 if (temp1)
4204 delete arg1;
4205 }
4206 return NULL;
4207 }
4208
4209
4210 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4211 PyObject *resultobj;
4212 wxIcon *arg1 = 0 ;
4213 wxIconBundle *result;
4214 PyObject * obj0 = 0 ;
4215 char *kwnames[] = {
4216 (char *) "icon", NULL
4217 };
4218
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4221 if (arg1 == NULL) {
4222 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4223 }
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4227
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj;
4240 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4241 PyObject * obj0 = 0 ;
4242 char *kwnames[] = {
4243 (char *) "self", NULL
4244 };
4245
4246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
4250 delete arg1;
4251
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 Py_INCREF(Py_None); resultobj = Py_None;
4256 return resultobj;
4257 fail:
4258 return NULL;
4259 }
4260
4261
4262 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4263 PyObject *resultobj;
4264 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4265 wxIcon *arg2 = 0 ;
4266 PyObject * obj0 = 0 ;
4267 PyObject * obj1 = 0 ;
4268 char *kwnames[] = {
4269 (char *) "self",(char *) "icon", NULL
4270 };
4271
4272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4274 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4275 if (arg2 == NULL) {
4276 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4277 }
4278 {
4279 PyThreadState* __tstate = wxPyBeginAllowThreads();
4280 (arg1)->AddIcon((wxIcon const &)*arg2);
4281
4282 wxPyEndAllowThreads(__tstate);
4283 if (PyErr_Occurred()) SWIG_fail;
4284 }
4285 Py_INCREF(Py_None); resultobj = Py_None;
4286 return resultobj;
4287 fail:
4288 return NULL;
4289 }
4290
4291
4292 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4293 PyObject *resultobj;
4294 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4295 wxString *arg2 = 0 ;
4296 long arg3 ;
4297 bool temp2 = False ;
4298 PyObject * obj0 = 0 ;
4299 PyObject * obj1 = 0 ;
4300 PyObject * obj2 = 0 ;
4301 char *kwnames[] = {
4302 (char *) "self",(char *) "file",(char *) "type", NULL
4303 };
4304
4305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4307 {
4308 arg2 = wxString_in_helper(obj1);
4309 if (arg2 == NULL) SWIG_fail;
4310 temp2 = True;
4311 }
4312 {
4313 arg3 = (long) SWIG_PyObj_AsLong(obj2);
4314 if (PyErr_Occurred()) SWIG_fail;
4315 }
4316 {
4317 PyThreadState* __tstate = wxPyBeginAllowThreads();
4318 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4319
4320 wxPyEndAllowThreads(__tstate);
4321 if (PyErr_Occurred()) SWIG_fail;
4322 }
4323 Py_INCREF(Py_None); resultobj = Py_None;
4324 {
4325 if (temp2)
4326 delete arg2;
4327 }
4328 return resultobj;
4329 fail:
4330 {
4331 if (temp2)
4332 delete arg2;
4333 }
4334 return NULL;
4335 }
4336
4337
4338 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4339 PyObject *resultobj;
4340 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4341 wxSize *arg2 = 0 ;
4342 wxIcon *result;
4343 wxSize temp2 ;
4344 PyObject * obj0 = 0 ;
4345 PyObject * obj1 = 0 ;
4346 char *kwnames[] = {
4347 (char *) "self",(char *) "size", NULL
4348 };
4349
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4352 {
4353 arg2 = &temp2;
4354 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4355 }
4356 {
4357 PyThreadState* __tstate = wxPyBeginAllowThreads();
4358 {
4359 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4360 result = (wxIcon *) &_result_ref;
4361 }
4362
4363 wxPyEndAllowThreads(__tstate);
4364 if (PyErr_Occurred()) SWIG_fail;
4365 }
4366 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
4367 return resultobj;
4368 fail:
4369 return NULL;
4370 }
4371
4372
4373 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4374 PyObject *obj;
4375 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4376 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4377 Py_INCREF(obj);
4378 return Py_BuildValue((char *)"");
4379 }
4380 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4381 PyObject *resultobj;
4382 wxString *arg1 = (wxString *) 0 ;
4383 long arg2 ;
4384 int arg3 = (int) 0 ;
4385 int arg4 = (int) 0 ;
4386 wxCursor *result;
4387 bool temp1 = False ;
4388 PyObject * obj0 = 0 ;
4389 PyObject * obj1 = 0 ;
4390 PyObject * obj2 = 0 ;
4391 PyObject * obj3 = 0 ;
4392 char *kwnames[] = {
4393 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4394 };
4395
4396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4397 {
4398 arg1 = wxString_in_helper(obj0);
4399 if (arg1 == NULL) SWIG_fail;
4400 temp1 = True;
4401 }
4402 {
4403 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 if (obj2) {
4407 {
4408 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4409 if (PyErr_Occurred()) SWIG_fail;
4410 }
4411 }
4412 if (obj3) {
4413 {
4414 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4415 if (PyErr_Occurred()) SWIG_fail;
4416 }
4417 }
4418 {
4419 PyThreadState* __tstate = wxPyBeginAllowThreads();
4420 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4421
4422 wxPyEndAllowThreads(__tstate);
4423 if (PyErr_Occurred()) SWIG_fail;
4424 }
4425 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4426 {
4427 if (temp1)
4428 delete arg1;
4429 }
4430 return resultobj;
4431 fail:
4432 {
4433 if (temp1)
4434 delete arg1;
4435 }
4436 return NULL;
4437 }
4438
4439
4440 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4441 PyObject *resultobj;
4442 wxCursor *arg1 = (wxCursor *) 0 ;
4443 PyObject * obj0 = 0 ;
4444 char *kwnames[] = {
4445 (char *) "self", NULL
4446 };
4447
4448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4450 {
4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
4452 delete arg1;
4453
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 Py_INCREF(Py_None); resultobj = Py_None;
4458 return resultobj;
4459 fail:
4460 return NULL;
4461 }
4462
4463
4464 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4465 PyObject *resultobj;
4466 int arg1 ;
4467 wxCursor *result;
4468 PyObject * obj0 = 0 ;
4469 char *kwnames[] = {
4470 (char *) "id", NULL
4471 };
4472
4473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4474 {
4475 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 {
4479 PyThreadState* __tstate = wxPyBeginAllowThreads();
4480 result = (wxCursor *)new wxCursor(arg1);
4481
4482 wxPyEndAllowThreads(__tstate);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4486 return resultobj;
4487 fail:
4488 return NULL;
4489 }
4490
4491
4492 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4493 PyObject *resultobj;
4494 wxImage *arg1 = 0 ;
4495 wxCursor *result;
4496 PyObject * obj0 = 0 ;
4497 char *kwnames[] = {
4498 (char *) "image", NULL
4499 };
4500
4501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4503 if (arg1 == NULL) {
4504 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4505 }
4506 {
4507 PyThreadState* __tstate = wxPyBeginAllowThreads();
4508 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4509
4510 wxPyEndAllowThreads(__tstate);
4511 if (PyErr_Occurred()) SWIG_fail;
4512 }
4513 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4514 return resultobj;
4515 fail:
4516 return NULL;
4517 }
4518
4519
4520 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj;
4522 PyObject *arg1 = (PyObject *) 0 ;
4523 int arg2 ;
4524 int arg3 ;
4525 int arg4 = (int) -1 ;
4526 int arg5 = (int) -1 ;
4527 PyObject *arg6 = (PyObject *) 0 ;
4528 wxCursor *result;
4529 PyObject * obj0 = 0 ;
4530 PyObject * obj1 = 0 ;
4531 PyObject * obj2 = 0 ;
4532 PyObject * obj3 = 0 ;
4533 PyObject * obj4 = 0 ;
4534 PyObject * obj5 = 0 ;
4535 char *kwnames[] = {
4536 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4537 };
4538
4539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4540 arg1 = obj0;
4541 {
4542 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4543 if (PyErr_Occurred()) SWIG_fail;
4544 }
4545 {
4546 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4547 if (PyErr_Occurred()) SWIG_fail;
4548 }
4549 if (obj3) {
4550 {
4551 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4552 if (PyErr_Occurred()) SWIG_fail;
4553 }
4554 }
4555 if (obj4) {
4556 {
4557 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4558 if (PyErr_Occurred()) SWIG_fail;
4559 }
4560 }
4561 if (obj5) {
4562 arg6 = obj5;
4563 }
4564 {
4565 PyThreadState* __tstate = wxPyBeginAllowThreads();
4566 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4567
4568 wxPyEndAllowThreads(__tstate);
4569 if (PyErr_Occurred()) SWIG_fail;
4570 }
4571 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4572 return resultobj;
4573 fail:
4574 return NULL;
4575 }
4576
4577
4578 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4579 PyObject *resultobj;
4580 wxCursor *arg1 = (wxCursor *) 0 ;
4581 long result;
4582 PyObject * obj0 = 0 ;
4583 char *kwnames[] = {
4584 (char *) "self", NULL
4585 };
4586
4587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4589 {
4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
4591 result = (long)(arg1)->GetHandle();
4592
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 resultobj = SWIG_PyObj_FromLong((long)result);
4597 return resultobj;
4598 fail:
4599 return NULL;
4600 }
4601
4602
4603 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4604 PyObject *resultobj;
4605 wxCursor *arg1 = (wxCursor *) 0 ;
4606 long arg2 ;
4607 PyObject * obj0 = 0 ;
4608 PyObject * obj1 = 0 ;
4609 char *kwnames[] = {
4610 (char *) "self",(char *) "handle", NULL
4611 };
4612
4613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4614 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4615 {
4616 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 {
4620 PyThreadState* __tstate = wxPyBeginAllowThreads();
4621 (arg1)->SetHandle(arg2);
4622
4623 wxPyEndAllowThreads(__tstate);
4624 if (PyErr_Occurred()) SWIG_fail;
4625 }
4626 Py_INCREF(Py_None); resultobj = Py_None;
4627 return resultobj;
4628 fail:
4629 return NULL;
4630 }
4631
4632
4633 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4634 PyObject *resultobj;
4635 wxCursor *arg1 = (wxCursor *) 0 ;
4636 bool result;
4637 PyObject * obj0 = 0 ;
4638 char *kwnames[] = {
4639 (char *) "self", NULL
4640 };
4641
4642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4644 {
4645 PyThreadState* __tstate = wxPyBeginAllowThreads();
4646 result = (bool)(arg1)->Ok();
4647
4648 wxPyEndAllowThreads(__tstate);
4649 if (PyErr_Occurred()) SWIG_fail;
4650 }
4651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4652 return resultobj;
4653 fail:
4654 return NULL;
4655 }
4656
4657
4658 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4659 PyObject *resultobj;
4660 wxCursor *arg1 = (wxCursor *) 0 ;
4661 int result;
4662 PyObject * obj0 = 0 ;
4663 char *kwnames[] = {
4664 (char *) "self", NULL
4665 };
4666
4667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4669 {
4670 PyThreadState* __tstate = wxPyBeginAllowThreads();
4671 result = (int)(arg1)->GetWidth();
4672
4673 wxPyEndAllowThreads(__tstate);
4674 if (PyErr_Occurred()) SWIG_fail;
4675 }
4676 resultobj = SWIG_PyObj_FromInt((int)result);
4677 return resultobj;
4678 fail:
4679 return NULL;
4680 }
4681
4682
4683 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4684 PyObject *resultobj;
4685 wxCursor *arg1 = (wxCursor *) 0 ;
4686 int result;
4687 PyObject * obj0 = 0 ;
4688 char *kwnames[] = {
4689 (char *) "self", NULL
4690 };
4691
4692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
4693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4694 {
4695 PyThreadState* __tstate = wxPyBeginAllowThreads();
4696 result = (int)(arg1)->GetHeight();
4697
4698 wxPyEndAllowThreads(__tstate);
4699 if (PyErr_Occurred()) SWIG_fail;
4700 }
4701 resultobj = SWIG_PyObj_FromInt((int)result);
4702 return resultobj;
4703 fail:
4704 return NULL;
4705 }
4706
4707
4708 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4709 PyObject *resultobj;
4710 wxCursor *arg1 = (wxCursor *) 0 ;
4711 int result;
4712 PyObject * obj0 = 0 ;
4713 char *kwnames[] = {
4714 (char *) "self", NULL
4715 };
4716
4717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
4718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4719 {
4720 PyThreadState* __tstate = wxPyBeginAllowThreads();
4721 result = (int)(arg1)->GetDepth();
4722
4723 wxPyEndAllowThreads(__tstate);
4724 if (PyErr_Occurred()) SWIG_fail;
4725 }
4726 resultobj = SWIG_PyObj_FromInt((int)result);
4727 return resultobj;
4728 fail:
4729 return NULL;
4730 }
4731
4732
4733 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4734 PyObject *resultobj;
4735 wxCursor *arg1 = (wxCursor *) 0 ;
4736 int arg2 ;
4737 PyObject * obj0 = 0 ;
4738 PyObject * obj1 = 0 ;
4739 char *kwnames[] = {
4740 (char *) "self",(char *) "w", NULL
4741 };
4742
4743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4745 {
4746 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4747 if (PyErr_Occurred()) SWIG_fail;
4748 }
4749 {
4750 PyThreadState* __tstate = wxPyBeginAllowThreads();
4751 (arg1)->SetWidth(arg2);
4752
4753 wxPyEndAllowThreads(__tstate);
4754 if (PyErr_Occurred()) SWIG_fail;
4755 }
4756 Py_INCREF(Py_None); resultobj = Py_None;
4757 return resultobj;
4758 fail:
4759 return NULL;
4760 }
4761
4762
4763 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4764 PyObject *resultobj;
4765 wxCursor *arg1 = (wxCursor *) 0 ;
4766 int arg2 ;
4767 PyObject * obj0 = 0 ;
4768 PyObject * obj1 = 0 ;
4769 char *kwnames[] = {
4770 (char *) "self",(char *) "h", NULL
4771 };
4772
4773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4774 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4775 {
4776 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 {
4780 PyThreadState* __tstate = wxPyBeginAllowThreads();
4781 (arg1)->SetHeight(arg2);
4782
4783 wxPyEndAllowThreads(__tstate);
4784 if (PyErr_Occurred()) SWIG_fail;
4785 }
4786 Py_INCREF(Py_None); resultobj = Py_None;
4787 return resultobj;
4788 fail:
4789 return NULL;
4790 }
4791
4792
4793 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4794 PyObject *resultobj;
4795 wxCursor *arg1 = (wxCursor *) 0 ;
4796 int arg2 ;
4797 PyObject * obj0 = 0 ;
4798 PyObject * obj1 = 0 ;
4799 char *kwnames[] = {
4800 (char *) "self",(char *) "d", NULL
4801 };
4802
4803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4805 {
4806 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 }
4809 {
4810 PyThreadState* __tstate = wxPyBeginAllowThreads();
4811 (arg1)->SetDepth(arg2);
4812
4813 wxPyEndAllowThreads(__tstate);
4814 if (PyErr_Occurred()) SWIG_fail;
4815 }
4816 Py_INCREF(Py_None); resultobj = Py_None;
4817 return resultobj;
4818 fail:
4819 return NULL;
4820 }
4821
4822
4823 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4824 PyObject *resultobj;
4825 wxCursor *arg1 = (wxCursor *) 0 ;
4826 wxSize *arg2 = 0 ;
4827 wxSize temp2 ;
4828 PyObject * obj0 = 0 ;
4829 PyObject * obj1 = 0 ;
4830 char *kwnames[] = {
4831 (char *) "self",(char *) "size", NULL
4832 };
4833
4834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
4835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4836 {
4837 arg2 = &temp2;
4838 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4839 }
4840 {
4841 PyThreadState* __tstate = wxPyBeginAllowThreads();
4842 (arg1)->SetSize((wxSize const &)*arg2);
4843
4844 wxPyEndAllowThreads(__tstate);
4845 if (PyErr_Occurred()) SWIG_fail;
4846 }
4847 Py_INCREF(Py_None); resultobj = Py_None;
4848 return resultobj;
4849 fail:
4850 return NULL;
4851 }
4852
4853
4854 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4855 PyObject *obj;
4856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4857 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4858 Py_INCREF(obj);
4859 return Py_BuildValue((char *)"");
4860 }
4861 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj;
4863 int arg1 = (int) 0 ;
4864 int arg2 = (int) 0 ;
4865 int arg3 = (int) 0 ;
4866 int arg4 = (int) 0 ;
4867 wxRegion *result;
4868 PyObject * obj0 = 0 ;
4869 PyObject * obj1 = 0 ;
4870 PyObject * obj2 = 0 ;
4871 PyObject * obj3 = 0 ;
4872 char *kwnames[] = {
4873 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4874 };
4875
4876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4877 if (obj0) {
4878 {
4879 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4880 if (PyErr_Occurred()) SWIG_fail;
4881 }
4882 }
4883 if (obj1) {
4884 {
4885 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4886 if (PyErr_Occurred()) SWIG_fail;
4887 }
4888 }
4889 if (obj2) {
4890 {
4891 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 }
4894 }
4895 if (obj3) {
4896 {
4897 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 }
4900 }
4901 {
4902 PyThreadState* __tstate = wxPyBeginAllowThreads();
4903 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4904
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4909 return resultobj;
4910 fail:
4911 return NULL;
4912 }
4913
4914
4915 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4916 PyObject *resultobj;
4917 wxBitmap *arg1 = 0 ;
4918 wxColour const &arg2_defvalue = wxNullColour ;
4919 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4920 int arg3 = (int) 0 ;
4921 wxRegion *result;
4922 wxColour temp2 ;
4923 PyObject * obj0 = 0 ;
4924 PyObject * obj1 = 0 ;
4925 PyObject * obj2 = 0 ;
4926 char *kwnames[] = {
4927 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4928 };
4929
4930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4932 if (arg1 == NULL) {
4933 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4934 }
4935 if (obj1) {
4936 {
4937 arg2 = &temp2;
4938 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4939 }
4940 }
4941 if (obj2) {
4942 {
4943 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4944 if (PyErr_Occurred()) SWIG_fail;
4945 }
4946 }
4947 {
4948 PyThreadState* __tstate = wxPyBeginAllowThreads();
4949 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4950
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4962 PyObject *resultobj;
4963 int arg1 ;
4964 wxPoint *arg2 = (wxPoint *) 0 ;
4965 int arg3 = (int) wxWINDING_RULE ;
4966 wxRegion *result;
4967 PyObject * obj0 = 0 ;
4968 PyObject * obj1 = 0 ;
4969 char *kwnames[] = {
4970 (char *) "points",(char *) "fillStyle", NULL
4971 };
4972
4973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4974 {
4975 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4976 if (arg2 == NULL) SWIG_fail;
4977 }
4978 if (obj1) {
4979 {
4980 arg3 = (int) SWIG_PyObj_AsInt(obj1);
4981 if (PyErr_Occurred()) SWIG_fail;
4982 }
4983 }
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4987
4988 wxPyEndAllowThreads(__tstate);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 }
4991 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4992 {
4993 if (arg2) delete [] arg2;
4994 }
4995 return resultobj;
4996 fail:
4997 {
4998 if (arg2) delete [] arg2;
4999 }
5000 return NULL;
5001 }
5002
5003
5004 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5005 PyObject *resultobj;
5006 wxRegion *arg1 = (wxRegion *) 0 ;
5007 PyObject * obj0 = 0 ;
5008 char *kwnames[] = {
5009 (char *) "self", NULL
5010 };
5011
5012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 delete arg1;
5017
5018 wxPyEndAllowThreads(__tstate);
5019 if (PyErr_Occurred()) SWIG_fail;
5020 }
5021 Py_INCREF(Py_None); resultobj = Py_None;
5022 return resultobj;
5023 fail:
5024 return NULL;
5025 }
5026
5027
5028 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5029 PyObject *resultobj;
5030 wxRegion *arg1 = (wxRegion *) 0 ;
5031 PyObject * obj0 = 0 ;
5032 char *kwnames[] = {
5033 (char *) "self", NULL
5034 };
5035
5036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5038 {
5039 PyThreadState* __tstate = wxPyBeginAllowThreads();
5040 (arg1)->Clear();
5041
5042 wxPyEndAllowThreads(__tstate);
5043 if (PyErr_Occurred()) SWIG_fail;
5044 }
5045 Py_INCREF(Py_None); resultobj = Py_None;
5046 return resultobj;
5047 fail:
5048 return NULL;
5049 }
5050
5051
5052 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5053 PyObject *resultobj;
5054 wxRegion *arg1 = (wxRegion *) 0 ;
5055 int arg2 ;
5056 int arg3 ;
5057 bool result;
5058 PyObject * obj0 = 0 ;
5059 PyObject * obj1 = 0 ;
5060 PyObject * obj2 = 0 ;
5061 char *kwnames[] = {
5062 (char *) "self",(char *) "x",(char *) "y", NULL
5063 };
5064
5065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5067 {
5068 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5069 if (PyErr_Occurred()) SWIG_fail;
5070 }
5071 {
5072 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5073 if (PyErr_Occurred()) SWIG_fail;
5074 }
5075 {
5076 PyThreadState* __tstate = wxPyBeginAllowThreads();
5077 result = (bool)(arg1)->Offset(arg2,arg3);
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_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj;
5091 wxRegion *arg1 = (wxRegion *) 0 ;
5092 int arg2 ;
5093 int arg3 ;
5094 int result;
5095 PyObject * obj0 = 0 ;
5096 PyObject * obj1 = 0 ;
5097 PyObject * obj2 = 0 ;
5098 char *kwnames[] = {
5099 (char *) "self",(char *) "x",(char *) "y", NULL
5100 };
5101
5102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5104 {
5105 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5106 if (PyErr_Occurred()) SWIG_fail;
5107 }
5108 {
5109 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5110 if (PyErr_Occurred()) SWIG_fail;
5111 }
5112 {
5113 PyThreadState* __tstate = wxPyBeginAllowThreads();
5114 result = (int)(arg1)->Contains(arg2,arg3);
5115
5116 wxPyEndAllowThreads(__tstate);
5117 if (PyErr_Occurred()) SWIG_fail;
5118 }
5119 resultobj = SWIG_PyObj_FromInt((int)result);
5120 return resultobj;
5121 fail:
5122 return NULL;
5123 }
5124
5125
5126 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5127 PyObject *resultobj;
5128 wxRegion *arg1 = (wxRegion *) 0 ;
5129 wxPoint *arg2 = 0 ;
5130 int result;
5131 wxPoint temp2 ;
5132 PyObject * obj0 = 0 ;
5133 PyObject * obj1 = 0 ;
5134 char *kwnames[] = {
5135 (char *) "self",(char *) "pt", NULL
5136 };
5137
5138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5140 {
5141 arg2 = &temp2;
5142 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5143 }
5144 {
5145 PyThreadState* __tstate = wxPyBeginAllowThreads();
5146 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5147
5148 wxPyEndAllowThreads(__tstate);
5149 if (PyErr_Occurred()) SWIG_fail;
5150 }
5151 resultobj = SWIG_PyObj_FromInt((int)result);
5152 return resultobj;
5153 fail:
5154 return NULL;
5155 }
5156
5157
5158 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5159 PyObject *resultobj;
5160 wxRegion *arg1 = (wxRegion *) 0 ;
5161 wxRect *arg2 = 0 ;
5162 int result;
5163 wxRect temp2 ;
5164 PyObject * obj0 = 0 ;
5165 PyObject * obj1 = 0 ;
5166 char *kwnames[] = {
5167 (char *) "self",(char *) "rect", NULL
5168 };
5169
5170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5172 {
5173 arg2 = &temp2;
5174 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5175 }
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5179
5180 wxPyEndAllowThreads(__tstate);
5181 if (PyErr_Occurred()) SWIG_fail;
5182 }
5183 resultobj = SWIG_PyObj_FromInt((int)result);
5184 return resultobj;
5185 fail:
5186 return NULL;
5187 }
5188
5189
5190 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5191 PyObject *resultobj;
5192 wxRegion *arg1 = (wxRegion *) 0 ;
5193 int arg2 ;
5194 int arg3 ;
5195 int arg4 ;
5196 int arg5 ;
5197 int result;
5198 PyObject * obj0 = 0 ;
5199 PyObject * obj1 = 0 ;
5200 PyObject * obj2 = 0 ;
5201 PyObject * obj3 = 0 ;
5202 PyObject * obj4 = 0 ;
5203 char *kwnames[] = {
5204 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5205 };
5206
5207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5209 {
5210 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 }
5213 {
5214 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 {
5218 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5219 if (PyErr_Occurred()) SWIG_fail;
5220 }
5221 {
5222 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5223 if (PyErr_Occurred()) SWIG_fail;
5224 }
5225 {
5226 PyThreadState* __tstate = wxPyBeginAllowThreads();
5227 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5228
5229 wxPyEndAllowThreads(__tstate);
5230 if (PyErr_Occurred()) SWIG_fail;
5231 }
5232 resultobj = SWIG_PyObj_FromInt((int)result);
5233 return resultobj;
5234 fail:
5235 return NULL;
5236 }
5237
5238
5239 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5240 PyObject *resultobj;
5241 wxRegion *arg1 = (wxRegion *) 0 ;
5242 wxRect result;
5243 PyObject * obj0 = 0 ;
5244 char *kwnames[] = {
5245 (char *) "self", NULL
5246 };
5247
5248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5250 {
5251 PyThreadState* __tstate = wxPyBeginAllowThreads();
5252 result = (arg1)->GetBox();
5253
5254 wxPyEndAllowThreads(__tstate);
5255 if (PyErr_Occurred()) SWIG_fail;
5256 }
5257 {
5258 wxRect * resultptr;
5259 resultptr = new wxRect((wxRect &) result);
5260 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5261 }
5262 return resultobj;
5263 fail:
5264 return NULL;
5265 }
5266
5267
5268 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5269 PyObject *resultobj;
5270 wxRegion *arg1 = (wxRegion *) 0 ;
5271 int arg2 ;
5272 int arg3 ;
5273 int arg4 ;
5274 int arg5 ;
5275 bool result;
5276 PyObject * obj0 = 0 ;
5277 PyObject * obj1 = 0 ;
5278 PyObject * obj2 = 0 ;
5279 PyObject * obj3 = 0 ;
5280 PyObject * obj4 = 0 ;
5281 char *kwnames[] = {
5282 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5283 };
5284
5285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5287 {
5288 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 {
5292 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5293 if (PyErr_Occurred()) SWIG_fail;
5294 }
5295 {
5296 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5297 if (PyErr_Occurred()) SWIG_fail;
5298 }
5299 {
5300 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5301 if (PyErr_Occurred()) SWIG_fail;
5302 }
5303 {
5304 PyThreadState* __tstate = wxPyBeginAllowThreads();
5305 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5306
5307 wxPyEndAllowThreads(__tstate);
5308 if (PyErr_Occurred()) SWIG_fail;
5309 }
5310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5311 return resultobj;
5312 fail:
5313 return NULL;
5314 }
5315
5316
5317 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5318 PyObject *resultobj;
5319 wxRegion *arg1 = (wxRegion *) 0 ;
5320 wxRect *arg2 = 0 ;
5321 bool result;
5322 wxRect temp2 ;
5323 PyObject * obj0 = 0 ;
5324 PyObject * obj1 = 0 ;
5325 char *kwnames[] = {
5326 (char *) "self",(char *) "rect", NULL
5327 };
5328
5329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5331 {
5332 arg2 = &temp2;
5333 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5334 }
5335 {
5336 PyThreadState* __tstate = wxPyBeginAllowThreads();
5337 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5338
5339 wxPyEndAllowThreads(__tstate);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 }
5342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5343 return resultobj;
5344 fail:
5345 return NULL;
5346 }
5347
5348
5349 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5350 PyObject *resultobj;
5351 wxRegion *arg1 = (wxRegion *) 0 ;
5352 wxRegion *arg2 = 0 ;
5353 bool result;
5354 PyObject * obj0 = 0 ;
5355 PyObject * obj1 = 0 ;
5356 char *kwnames[] = {
5357 (char *) "self",(char *) "region", NULL
5358 };
5359
5360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5362 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5363 if (arg2 == NULL) {
5364 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5365 }
5366 {
5367 PyThreadState* __tstate = wxPyBeginAllowThreads();
5368 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5369
5370 wxPyEndAllowThreads(__tstate);
5371 if (PyErr_Occurred()) SWIG_fail;
5372 }
5373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5374 return resultobj;
5375 fail:
5376 return NULL;
5377 }
5378
5379
5380 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5381 PyObject *resultobj;
5382 wxRegion *arg1 = (wxRegion *) 0 ;
5383 bool result;
5384 PyObject * obj0 = 0 ;
5385 char *kwnames[] = {
5386 (char *) "self", NULL
5387 };
5388
5389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5391 {
5392 PyThreadState* __tstate = wxPyBeginAllowThreads();
5393 result = (bool)(arg1)->IsEmpty();
5394
5395 wxPyEndAllowThreads(__tstate);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5399 return resultobj;
5400 fail:
5401 return NULL;
5402 }
5403
5404
5405 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5406 PyObject *resultobj;
5407 wxRegion *arg1 = (wxRegion *) 0 ;
5408 int arg2 ;
5409 int arg3 ;
5410 int arg4 ;
5411 int arg5 ;
5412 bool result;
5413 PyObject * obj0 = 0 ;
5414 PyObject * obj1 = 0 ;
5415 PyObject * obj2 = 0 ;
5416 PyObject * obj3 = 0 ;
5417 PyObject * obj4 = 0 ;
5418 char *kwnames[] = {
5419 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5420 };
5421
5422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5424 {
5425 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 {
5429 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 {
5433 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5434 if (PyErr_Occurred()) SWIG_fail;
5435 }
5436 {
5437 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5438 if (PyErr_Occurred()) SWIG_fail;
5439 }
5440 {
5441 PyThreadState* __tstate = wxPyBeginAllowThreads();
5442 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5443
5444 wxPyEndAllowThreads(__tstate);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 }
5447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5448 return resultobj;
5449 fail:
5450 return NULL;
5451 }
5452
5453
5454 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5455 PyObject *resultobj;
5456 wxRegion *arg1 = (wxRegion *) 0 ;
5457 wxRect *arg2 = 0 ;
5458 bool result;
5459 wxRect temp2 ;
5460 PyObject * obj0 = 0 ;
5461 PyObject * obj1 = 0 ;
5462 char *kwnames[] = {
5463 (char *) "self",(char *) "rect", NULL
5464 };
5465
5466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5468 {
5469 arg2 = &temp2;
5470 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5471 }
5472 {
5473 PyThreadState* __tstate = wxPyBeginAllowThreads();
5474 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5475
5476 wxPyEndAllowThreads(__tstate);
5477 if (PyErr_Occurred()) SWIG_fail;
5478 }
5479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5480 return resultobj;
5481 fail:
5482 return NULL;
5483 }
5484
5485
5486 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5487 PyObject *resultobj;
5488 wxRegion *arg1 = (wxRegion *) 0 ;
5489 wxRegion *arg2 = 0 ;
5490 bool result;
5491 PyObject * obj0 = 0 ;
5492 PyObject * obj1 = 0 ;
5493 char *kwnames[] = {
5494 (char *) "self",(char *) "region", NULL
5495 };
5496
5497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5499 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5500 if (arg2 == NULL) {
5501 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5502 }
5503 {
5504 PyThreadState* __tstate = wxPyBeginAllowThreads();
5505 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5506
5507 wxPyEndAllowThreads(__tstate);
5508 if (PyErr_Occurred()) SWIG_fail;
5509 }
5510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5511 return resultobj;
5512 fail:
5513 return NULL;
5514 }
5515
5516
5517 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5518 PyObject *resultobj;
5519 wxRegion *arg1 = (wxRegion *) 0 ;
5520 int arg2 ;
5521 int arg3 ;
5522 int arg4 ;
5523 int arg5 ;
5524 bool result;
5525 PyObject * obj0 = 0 ;
5526 PyObject * obj1 = 0 ;
5527 PyObject * obj2 = 0 ;
5528 PyObject * obj3 = 0 ;
5529 PyObject * obj4 = 0 ;
5530 char *kwnames[] = {
5531 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5532 };
5533
5534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5536 {
5537 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5538 if (PyErr_Occurred()) SWIG_fail;
5539 }
5540 {
5541 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5542 if (PyErr_Occurred()) SWIG_fail;
5543 }
5544 {
5545 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5546 if (PyErr_Occurred()) SWIG_fail;
5547 }
5548 {
5549 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 }
5552 {
5553 PyThreadState* __tstate = wxPyBeginAllowThreads();
5554 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5555
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5560 return resultobj;
5561 fail:
5562 return NULL;
5563 }
5564
5565
5566 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5567 PyObject *resultobj;
5568 wxRegion *arg1 = (wxRegion *) 0 ;
5569 wxRect *arg2 = 0 ;
5570 bool result;
5571 wxRect temp2 ;
5572 PyObject * obj0 = 0 ;
5573 PyObject * obj1 = 0 ;
5574 char *kwnames[] = {
5575 (char *) "self",(char *) "rect", NULL
5576 };
5577
5578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5580 {
5581 arg2 = &temp2;
5582 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5583 }
5584 {
5585 PyThreadState* __tstate = wxPyBeginAllowThreads();
5586 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5587
5588 wxPyEndAllowThreads(__tstate);
5589 if (PyErr_Occurred()) SWIG_fail;
5590 }
5591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5592 return resultobj;
5593 fail:
5594 return NULL;
5595 }
5596
5597
5598 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5599 PyObject *resultobj;
5600 wxRegion *arg1 = (wxRegion *) 0 ;
5601 wxRegion *arg2 = 0 ;
5602 bool result;
5603 PyObject * obj0 = 0 ;
5604 PyObject * obj1 = 0 ;
5605 char *kwnames[] = {
5606 (char *) "self",(char *) "region", NULL
5607 };
5608
5609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5611 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5612 if (arg2 == NULL) {
5613 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5614 }
5615 {
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5618
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5623 return resultobj;
5624 fail:
5625 return NULL;
5626 }
5627
5628
5629 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj;
5631 wxRegion *arg1 = (wxRegion *) 0 ;
5632 int arg2 ;
5633 int arg3 ;
5634 int arg4 ;
5635 int arg5 ;
5636 bool result;
5637 PyObject * obj0 = 0 ;
5638 PyObject * obj1 = 0 ;
5639 PyObject * obj2 = 0 ;
5640 PyObject * obj3 = 0 ;
5641 PyObject * obj4 = 0 ;
5642 char *kwnames[] = {
5643 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5644 };
5645
5646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5648 {
5649 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5650 if (PyErr_Occurred()) SWIG_fail;
5651 }
5652 {
5653 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5654 if (PyErr_Occurred()) SWIG_fail;
5655 }
5656 {
5657 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 {
5661 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5662 if (PyErr_Occurred()) SWIG_fail;
5663 }
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5667
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5672 return resultobj;
5673 fail:
5674 return NULL;
5675 }
5676
5677
5678 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject *resultobj;
5680 wxRegion *arg1 = (wxRegion *) 0 ;
5681 wxRect *arg2 = 0 ;
5682 bool result;
5683 wxRect temp2 ;
5684 PyObject * obj0 = 0 ;
5685 PyObject * obj1 = 0 ;
5686 char *kwnames[] = {
5687 (char *) "self",(char *) "rect", NULL
5688 };
5689
5690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5692 {
5693 arg2 = &temp2;
5694 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5695 }
5696 {
5697 PyThreadState* __tstate = wxPyBeginAllowThreads();
5698 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5699
5700 wxPyEndAllowThreads(__tstate);
5701 if (PyErr_Occurred()) SWIG_fail;
5702 }
5703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5704 return resultobj;
5705 fail:
5706 return NULL;
5707 }
5708
5709
5710 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5711 PyObject *resultobj;
5712 wxRegion *arg1 = (wxRegion *) 0 ;
5713 wxRegion *arg2 = 0 ;
5714 bool result;
5715 PyObject * obj0 = 0 ;
5716 PyObject * obj1 = 0 ;
5717 char *kwnames[] = {
5718 (char *) "self",(char *) "region", NULL
5719 };
5720
5721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5723 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5724 if (arg2 == NULL) {
5725 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5726 }
5727 {
5728 PyThreadState* __tstate = wxPyBeginAllowThreads();
5729 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5730
5731 wxPyEndAllowThreads(__tstate);
5732 if (PyErr_Occurred()) SWIG_fail;
5733 }
5734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5735 return resultobj;
5736 fail:
5737 return NULL;
5738 }
5739
5740
5741 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5742 PyObject *resultobj;
5743 wxRegion *arg1 = (wxRegion *) 0 ;
5744 SwigValueWrapper< wxBitmap > result;
5745 PyObject * obj0 = 0 ;
5746 char *kwnames[] = {
5747 (char *) "self", NULL
5748 };
5749
5750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5752 {
5753 PyThreadState* __tstate = wxPyBeginAllowThreads();
5754 result = (arg1)->ConvertToBitmap();
5755
5756 wxPyEndAllowThreads(__tstate);
5757 if (PyErr_Occurred()) SWIG_fail;
5758 }
5759 {
5760 wxBitmap * resultptr;
5761 resultptr = new wxBitmap((wxBitmap &) result);
5762 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5763 }
5764 return resultobj;
5765 fail:
5766 return NULL;
5767 }
5768
5769
5770 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5771 PyObject *resultobj;
5772 wxRegion *arg1 = (wxRegion *) 0 ;
5773 wxBitmap *arg2 = 0 ;
5774 wxColour const &arg3_defvalue = wxNullColour ;
5775 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5776 int arg4 = (int) 0 ;
5777 bool result;
5778 wxColour temp3 ;
5779 PyObject * obj0 = 0 ;
5780 PyObject * obj1 = 0 ;
5781 PyObject * obj2 = 0 ;
5782 PyObject * obj3 = 0 ;
5783 char *kwnames[] = {
5784 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5785 };
5786
5787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5789 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5790 if (arg2 == NULL) {
5791 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5792 }
5793 if (obj2) {
5794 {
5795 arg3 = &temp3;
5796 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5797 }
5798 }
5799 if (obj3) {
5800 {
5801 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
5804 }
5805 {
5806 PyThreadState* __tstate = wxPyBeginAllowThreads();
5807 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5808
5809 wxPyEndAllowThreads(__tstate);
5810 if (PyErr_Occurred()) SWIG_fail;
5811 }
5812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5813 return resultobj;
5814 fail:
5815 return NULL;
5816 }
5817
5818
5819 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5820 PyObject *obj;
5821 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5822 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5823 Py_INCREF(obj);
5824 return Py_BuildValue((char *)"");
5825 }
5826 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5827 PyObject *resultobj;
5828 wxRegion *arg1 = 0 ;
5829 wxRegionIterator *result;
5830 PyObject * obj0 = 0 ;
5831 char *kwnames[] = {
5832 (char *) "region", NULL
5833 };
5834
5835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5837 if (arg1 == NULL) {
5838 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5839 }
5840 {
5841 PyThreadState* __tstate = wxPyBeginAllowThreads();
5842 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5843
5844 wxPyEndAllowThreads(__tstate);
5845 if (PyErr_Occurred()) SWIG_fail;
5846 }
5847 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5848 return resultobj;
5849 fail:
5850 return NULL;
5851 }
5852
5853
5854 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5855 PyObject *resultobj;
5856 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5857 PyObject * obj0 = 0 ;
5858 char *kwnames[] = {
5859 (char *) "self", NULL
5860 };
5861
5862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5864 {
5865 PyThreadState* __tstate = wxPyBeginAllowThreads();
5866 delete arg1;
5867
5868 wxPyEndAllowThreads(__tstate);
5869 if (PyErr_Occurred()) SWIG_fail;
5870 }
5871 Py_INCREF(Py_None); resultobj = Py_None;
5872 return resultobj;
5873 fail:
5874 return NULL;
5875 }
5876
5877
5878 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5879 PyObject *resultobj;
5880 wxRegionIterator *arg1 = (wxRegionIterator *) 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:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5889 {
5890 PyThreadState* __tstate = wxPyBeginAllowThreads();
5891 result = (int)(arg1)->GetX();
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_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5904 PyObject *resultobj;
5905 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5906 int result;
5907 PyObject * obj0 = 0 ;
5908 char *kwnames[] = {
5909 (char *) "self", NULL
5910 };
5911
5912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 result = (int)(arg1)->GetY();
5917
5918 wxPyEndAllowThreads(__tstate);
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 resultobj = SWIG_PyObj_FromInt((int)result);
5922 return resultobj;
5923 fail:
5924 return NULL;
5925 }
5926
5927
5928 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5929 PyObject *resultobj;
5930 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5931 int result;
5932 PyObject * obj0 = 0 ;
5933 char *kwnames[] = {
5934 (char *) "self", NULL
5935 };
5936
5937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5939 {
5940 PyThreadState* __tstate = wxPyBeginAllowThreads();
5941 result = (int)(arg1)->GetW();
5942
5943 wxPyEndAllowThreads(__tstate);
5944 if (PyErr_Occurred()) SWIG_fail;
5945 }
5946 resultobj = SWIG_PyObj_FromInt((int)result);
5947 return resultobj;
5948 fail:
5949 return NULL;
5950 }
5951
5952
5953 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5954 PyObject *resultobj;
5955 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5956 int result;
5957 PyObject * obj0 = 0 ;
5958 char *kwnames[] = {
5959 (char *) "self", NULL
5960 };
5961
5962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 result = (int)(arg1)->GetWidth();
5967
5968 wxPyEndAllowThreads(__tstate);
5969 if (PyErr_Occurred()) SWIG_fail;
5970 }
5971 resultobj = SWIG_PyObj_FromInt((int)result);
5972 return resultobj;
5973 fail:
5974 return NULL;
5975 }
5976
5977
5978 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5979 PyObject *resultobj;
5980 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5981 int result;
5982 PyObject * obj0 = 0 ;
5983 char *kwnames[] = {
5984 (char *) "self", NULL
5985 };
5986
5987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5989 {
5990 PyThreadState* __tstate = wxPyBeginAllowThreads();
5991 result = (int)(arg1)->GetH();
5992
5993 wxPyEndAllowThreads(__tstate);
5994 if (PyErr_Occurred()) SWIG_fail;
5995 }
5996 resultobj = SWIG_PyObj_FromInt((int)result);
5997 return resultobj;
5998 fail:
5999 return NULL;
6000 }
6001
6002
6003 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6004 PyObject *resultobj;
6005 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6006 int result;
6007 PyObject * obj0 = 0 ;
6008 char *kwnames[] = {
6009 (char *) "self", NULL
6010 };
6011
6012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6014 {
6015 PyThreadState* __tstate = wxPyBeginAllowThreads();
6016 result = (int)(arg1)->GetHeight();
6017
6018 wxPyEndAllowThreads(__tstate);
6019 if (PyErr_Occurred()) SWIG_fail;
6020 }
6021 resultobj = SWIG_PyObj_FromInt((int)result);
6022 return resultobj;
6023 fail:
6024 return NULL;
6025 }
6026
6027
6028 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6029 PyObject *resultobj;
6030 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6031 wxRect result;
6032 PyObject * obj0 = 0 ;
6033 char *kwnames[] = {
6034 (char *) "self", NULL
6035 };
6036
6037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6039 {
6040 PyThreadState* __tstate = wxPyBeginAllowThreads();
6041 result = (arg1)->GetRect();
6042
6043 wxPyEndAllowThreads(__tstate);
6044 if (PyErr_Occurred()) SWIG_fail;
6045 }
6046 {
6047 wxRect * resultptr;
6048 resultptr = new wxRect((wxRect &) result);
6049 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
6050 }
6051 return resultobj;
6052 fail:
6053 return NULL;
6054 }
6055
6056
6057 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6058 PyObject *resultobj;
6059 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6060 bool result;
6061 PyObject * obj0 = 0 ;
6062 char *kwnames[] = {
6063 (char *) "self", NULL
6064 };
6065
6066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6068 {
6069 PyThreadState* __tstate = wxPyBeginAllowThreads();
6070 result = (bool)(arg1)->HaveRects();
6071
6072 wxPyEndAllowThreads(__tstate);
6073 if (PyErr_Occurred()) SWIG_fail;
6074 }
6075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6076 return resultobj;
6077 fail:
6078 return NULL;
6079 }
6080
6081
6082 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6083 PyObject *resultobj;
6084 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6085 PyObject * obj0 = 0 ;
6086 char *kwnames[] = {
6087 (char *) "self", NULL
6088 };
6089
6090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6092 {
6093 PyThreadState* __tstate = wxPyBeginAllowThreads();
6094 (arg1)->Reset();
6095
6096 wxPyEndAllowThreads(__tstate);
6097 if (PyErr_Occurred()) SWIG_fail;
6098 }
6099 Py_INCREF(Py_None); resultobj = Py_None;
6100 return resultobj;
6101 fail:
6102 return NULL;
6103 }
6104
6105
6106 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6107 PyObject *resultobj;
6108 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6109 PyObject * obj0 = 0 ;
6110 char *kwnames[] = {
6111 (char *) "self", NULL
6112 };
6113
6114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6116 {
6117 PyThreadState* __tstate = wxPyBeginAllowThreads();
6118 wxRegionIterator_Next(arg1);
6119
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 Py_INCREF(Py_None); resultobj = Py_None;
6124 return resultobj;
6125 fail:
6126 return NULL;
6127 }
6128
6129
6130 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6131 PyObject *resultobj;
6132 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6133 bool result;
6134 PyObject * obj0 = 0 ;
6135 char *kwnames[] = {
6136 (char *) "self", NULL
6137 };
6138
6139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6141 {
6142 PyThreadState* __tstate = wxPyBeginAllowThreads();
6143 result = (bool)wxRegionIterator___nonzero__(arg1);
6144
6145 wxPyEndAllowThreads(__tstate);
6146 if (PyErr_Occurred()) SWIG_fail;
6147 }
6148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6149 return resultobj;
6150 fail:
6151 return NULL;
6152 }
6153
6154
6155 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6156 PyObject *obj;
6157 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6158 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6159 Py_INCREF(obj);
6160 return Py_BuildValue((char *)"");
6161 }
6162 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6163 PyObject *resultobj;
6164 wxNativeFontInfo *result;
6165 char *kwnames[] = {
6166 NULL
6167 };
6168
6169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6170 {
6171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6172 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6173
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
6178 return resultobj;
6179 fail:
6180 return NULL;
6181 }
6182
6183
6184 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6185 PyObject *resultobj;
6186 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6187 PyObject * obj0 = 0 ;
6188 char *kwnames[] = {
6189 (char *) "self", NULL
6190 };
6191
6192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6194 {
6195 PyThreadState* __tstate = wxPyBeginAllowThreads();
6196 delete arg1;
6197
6198 wxPyEndAllowThreads(__tstate);
6199 if (PyErr_Occurred()) SWIG_fail;
6200 }
6201 Py_INCREF(Py_None); resultobj = Py_None;
6202 return resultobj;
6203 fail:
6204 return NULL;
6205 }
6206
6207
6208 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6209 PyObject *resultobj;
6210 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6211 PyObject * obj0 = 0 ;
6212 char *kwnames[] = {
6213 (char *) "self", NULL
6214 };
6215
6216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6218 {
6219 PyThreadState* __tstate = wxPyBeginAllowThreads();
6220 (arg1)->Init();
6221
6222 wxPyEndAllowThreads(__tstate);
6223 if (PyErr_Occurred()) SWIG_fail;
6224 }
6225 Py_INCREF(Py_None); resultobj = Py_None;
6226 return resultobj;
6227 fail:
6228 return NULL;
6229 }
6230
6231
6232 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6233 PyObject *resultobj;
6234 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6235 wxFont *arg2 = 0 ;
6236 PyObject * obj0 = 0 ;
6237 PyObject * obj1 = 0 ;
6238 char *kwnames[] = {
6239 (char *) "self",(char *) "font", NULL
6240 };
6241
6242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6244 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6245 if (arg2 == NULL) {
6246 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6247 }
6248 {
6249 PyThreadState* __tstate = wxPyBeginAllowThreads();
6250 (arg1)->InitFromFont((wxFont const &)*arg2);
6251
6252 wxPyEndAllowThreads(__tstate);
6253 if (PyErr_Occurred()) SWIG_fail;
6254 }
6255 Py_INCREF(Py_None); resultobj = Py_None;
6256 return resultobj;
6257 fail:
6258 return NULL;
6259 }
6260
6261
6262 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6263 PyObject *resultobj;
6264 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6265 int result;
6266 PyObject * obj0 = 0 ;
6267 char *kwnames[] = {
6268 (char *) "self", NULL
6269 };
6270
6271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6273 {
6274 PyThreadState* __tstate = wxPyBeginAllowThreads();
6275 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6276
6277 wxPyEndAllowThreads(__tstate);
6278 if (PyErr_Occurred()) SWIG_fail;
6279 }
6280 resultobj = SWIG_PyObj_FromInt((int)result);
6281 return resultobj;
6282 fail:
6283 return NULL;
6284 }
6285
6286
6287 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6288 PyObject *resultobj;
6289 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6290 int result;
6291 PyObject * obj0 = 0 ;
6292 char *kwnames[] = {
6293 (char *) "self", NULL
6294 };
6295
6296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6298 {
6299 PyThreadState* __tstate = wxPyBeginAllowThreads();
6300 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6301
6302 wxPyEndAllowThreads(__tstate);
6303 if (PyErr_Occurred()) SWIG_fail;
6304 }
6305 resultobj = SWIG_PyObj_FromInt((int)result);
6306 return resultobj;
6307 fail:
6308 return NULL;
6309 }
6310
6311
6312 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6313 PyObject *resultobj;
6314 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6315 int result;
6316 PyObject * obj0 = 0 ;
6317 char *kwnames[] = {
6318 (char *) "self", NULL
6319 };
6320
6321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6323 {
6324 PyThreadState* __tstate = wxPyBeginAllowThreads();
6325 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6326
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 resultobj = SWIG_PyObj_FromInt((int)result);
6331 return resultobj;
6332 fail:
6333 return NULL;
6334 }
6335
6336
6337 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6338 PyObject *resultobj;
6339 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6340 bool result;
6341 PyObject * obj0 = 0 ;
6342 char *kwnames[] = {
6343 (char *) "self", NULL
6344 };
6345
6346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6348 {
6349 PyThreadState* __tstate = wxPyBeginAllowThreads();
6350 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6351
6352 wxPyEndAllowThreads(__tstate);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
6355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6356 return resultobj;
6357 fail:
6358 return NULL;
6359 }
6360
6361
6362 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj;
6364 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6365 wxString result;
6366 PyObject * obj0 = 0 ;
6367 char *kwnames[] = {
6368 (char *) "self", NULL
6369 };
6370
6371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6373 {
6374 PyThreadState* __tstate = wxPyBeginAllowThreads();
6375 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6376
6377 wxPyEndAllowThreads(__tstate);
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
6380 {
6381 #if wxUSE_UNICODE
6382 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6383 #else
6384 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6385 #endif
6386 }
6387 return resultobj;
6388 fail:
6389 return NULL;
6390 }
6391
6392
6393 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6394 PyObject *resultobj;
6395 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6396 int result;
6397 PyObject * obj0 = 0 ;
6398 char *kwnames[] = {
6399 (char *) "self", NULL
6400 };
6401
6402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6404 {
6405 PyThreadState* __tstate = wxPyBeginAllowThreads();
6406 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6407
6408 wxPyEndAllowThreads(__tstate);
6409 if (PyErr_Occurred()) SWIG_fail;
6410 }
6411 resultobj = SWIG_PyObj_FromInt((int)result);
6412 return resultobj;
6413 fail:
6414 return NULL;
6415 }
6416
6417
6418 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6419 PyObject *resultobj;
6420 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6421 int result;
6422 PyObject * obj0 = 0 ;
6423 char *kwnames[] = {
6424 (char *) "self", NULL
6425 };
6426
6427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6429 {
6430 PyThreadState* __tstate = wxPyBeginAllowThreads();
6431 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6432
6433 wxPyEndAllowThreads(__tstate);
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 resultobj = SWIG_PyObj_FromInt((int)result);
6437 return resultobj;
6438 fail:
6439 return NULL;
6440 }
6441
6442
6443 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj;
6445 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6446 int arg2 ;
6447 PyObject * obj0 = 0 ;
6448 PyObject * obj1 = 0 ;
6449 char *kwnames[] = {
6450 (char *) "self",(char *) "pointsize", NULL
6451 };
6452
6453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6455 {
6456 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6457 if (PyErr_Occurred()) SWIG_fail;
6458 }
6459 {
6460 PyThreadState* __tstate = wxPyBeginAllowThreads();
6461 (arg1)->SetPointSize(arg2);
6462
6463 wxPyEndAllowThreads(__tstate);
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
6466 Py_INCREF(Py_None); resultobj = Py_None;
6467 return resultobj;
6468 fail:
6469 return NULL;
6470 }
6471
6472
6473 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6474 PyObject *resultobj;
6475 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6476 int arg2 ;
6477 PyObject * obj0 = 0 ;
6478 PyObject * obj1 = 0 ;
6479 char *kwnames[] = {
6480 (char *) "self",(char *) "style", NULL
6481 };
6482
6483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6485 {
6486 arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 (arg1)->SetStyle((wxFontStyle )arg2);
6492
6493 wxPyEndAllowThreads(__tstate);
6494 if (PyErr_Occurred()) SWIG_fail;
6495 }
6496 Py_INCREF(Py_None); resultobj = Py_None;
6497 return resultobj;
6498 fail:
6499 return NULL;
6500 }
6501
6502
6503 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6504 PyObject *resultobj;
6505 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6506 int arg2 ;
6507 PyObject * obj0 = 0 ;
6508 PyObject * obj1 = 0 ;
6509 char *kwnames[] = {
6510 (char *) "self",(char *) "weight", NULL
6511 };
6512
6513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6515 {
6516 arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1);
6517 if (PyErr_Occurred()) SWIG_fail;
6518 }
6519 {
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 (arg1)->SetWeight((wxFontWeight )arg2);
6522
6523 wxPyEndAllowThreads(__tstate);
6524 if (PyErr_Occurred()) SWIG_fail;
6525 }
6526 Py_INCREF(Py_None); resultobj = Py_None;
6527 return resultobj;
6528 fail:
6529 return NULL;
6530 }
6531
6532
6533 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6534 PyObject *resultobj;
6535 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6536 bool arg2 ;
6537 PyObject * obj0 = 0 ;
6538 PyObject * obj1 = 0 ;
6539 char *kwnames[] = {
6540 (char *) "self",(char *) "underlined", NULL
6541 };
6542
6543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6545 {
6546 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
6547 if (PyErr_Occurred()) SWIG_fail;
6548 }
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 (arg1)->SetUnderlined(arg2);
6552
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 Py_INCREF(Py_None); resultobj = Py_None;
6557 return resultobj;
6558 fail:
6559 return NULL;
6560 }
6561
6562
6563 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6564 PyObject *resultobj;
6565 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6566 wxString arg2 ;
6567 PyObject * obj0 = 0 ;
6568 PyObject * obj1 = 0 ;
6569 char *kwnames[] = {
6570 (char *) "self",(char *) "facename", NULL
6571 };
6572
6573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6575 {
6576 wxString* sptr = wxString_in_helper(obj1);
6577 if (sptr == NULL) SWIG_fail;
6578 arg2 = *sptr;
6579 delete sptr;
6580 }
6581 {
6582 PyThreadState* __tstate = wxPyBeginAllowThreads();
6583 (arg1)->SetFaceName(arg2);
6584
6585 wxPyEndAllowThreads(__tstate);
6586 if (PyErr_Occurred()) SWIG_fail;
6587 }
6588 Py_INCREF(Py_None); resultobj = Py_None;
6589 return resultobj;
6590 fail:
6591 return NULL;
6592 }
6593
6594
6595 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6596 PyObject *resultobj;
6597 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6598 int arg2 ;
6599 PyObject * obj0 = 0 ;
6600 PyObject * obj1 = 0 ;
6601 char *kwnames[] = {
6602 (char *) "self",(char *) "family", NULL
6603 };
6604
6605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6607 {
6608 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
6609 if (PyErr_Occurred()) SWIG_fail;
6610 }
6611 {
6612 PyThreadState* __tstate = wxPyBeginAllowThreads();
6613 (arg1)->SetFamily((wxFontFamily )arg2);
6614
6615 wxPyEndAllowThreads(__tstate);
6616 if (PyErr_Occurred()) SWIG_fail;
6617 }
6618 Py_INCREF(Py_None); resultobj = Py_None;
6619 return resultobj;
6620 fail:
6621 return NULL;
6622 }
6623
6624
6625 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6626 PyObject *resultobj;
6627 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6628 int arg2 ;
6629 PyObject * obj0 = 0 ;
6630 PyObject * obj1 = 0 ;
6631 char *kwnames[] = {
6632 (char *) "self",(char *) "encoding", NULL
6633 };
6634
6635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6637 {
6638 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6639 if (PyErr_Occurred()) SWIG_fail;
6640 }
6641 {
6642 PyThreadState* __tstate = wxPyBeginAllowThreads();
6643 (arg1)->SetEncoding((wxFontEncoding )arg2);
6644
6645 wxPyEndAllowThreads(__tstate);
6646 if (PyErr_Occurred()) SWIG_fail;
6647 }
6648 Py_INCREF(Py_None); resultobj = Py_None;
6649 return resultobj;
6650 fail:
6651 return NULL;
6652 }
6653
6654
6655 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6656 PyObject *resultobj;
6657 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6658 wxString *arg2 = 0 ;
6659 bool result;
6660 bool temp2 = False ;
6661 PyObject * obj0 = 0 ;
6662 PyObject * obj1 = 0 ;
6663 char *kwnames[] = {
6664 (char *) "self",(char *) "s", NULL
6665 };
6666
6667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6669 {
6670 arg2 = wxString_in_helper(obj1);
6671 if (arg2 == NULL) SWIG_fail;
6672 temp2 = True;
6673 }
6674 {
6675 PyThreadState* __tstate = wxPyBeginAllowThreads();
6676 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6677
6678 wxPyEndAllowThreads(__tstate);
6679 if (PyErr_Occurred()) SWIG_fail;
6680 }
6681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6682 {
6683 if (temp2)
6684 delete arg2;
6685 }
6686 return resultobj;
6687 fail:
6688 {
6689 if (temp2)
6690 delete arg2;
6691 }
6692 return NULL;
6693 }
6694
6695
6696 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6697 PyObject *resultobj;
6698 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6699 wxString result;
6700 PyObject * obj0 = 0 ;
6701 char *kwnames[] = {
6702 (char *) "self", NULL
6703 };
6704
6705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6707 {
6708 PyThreadState* __tstate = wxPyBeginAllowThreads();
6709 result = ((wxNativeFontInfo const *)arg1)->ToString();
6710
6711 wxPyEndAllowThreads(__tstate);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 {
6715 #if wxUSE_UNICODE
6716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6717 #else
6718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6719 #endif
6720 }
6721 return resultobj;
6722 fail:
6723 return NULL;
6724 }
6725
6726
6727 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj;
6729 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6730 wxString result;
6731 PyObject * obj0 = 0 ;
6732 char *kwnames[] = {
6733 (char *) "self", NULL
6734 };
6735
6736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6738 {
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 result = wxNativeFontInfo___str__(arg1);
6741
6742 wxPyEndAllowThreads(__tstate);
6743 if (PyErr_Occurred()) SWIG_fail;
6744 }
6745 {
6746 #if wxUSE_UNICODE
6747 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6748 #else
6749 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6750 #endif
6751 }
6752 return resultobj;
6753 fail:
6754 return NULL;
6755 }
6756
6757
6758 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6759 PyObject *resultobj;
6760 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6761 wxString *arg2 = 0 ;
6762 bool result;
6763 bool temp2 = False ;
6764 PyObject * obj0 = 0 ;
6765 PyObject * obj1 = 0 ;
6766 char *kwnames[] = {
6767 (char *) "self",(char *) "s", NULL
6768 };
6769
6770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6772 {
6773 arg2 = wxString_in_helper(obj1);
6774 if (arg2 == NULL) SWIG_fail;
6775 temp2 = True;
6776 }
6777 {
6778 PyThreadState* __tstate = wxPyBeginAllowThreads();
6779 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6780
6781 wxPyEndAllowThreads(__tstate);
6782 if (PyErr_Occurred()) SWIG_fail;
6783 }
6784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6785 {
6786 if (temp2)
6787 delete arg2;
6788 }
6789 return resultobj;
6790 fail:
6791 {
6792 if (temp2)
6793 delete arg2;
6794 }
6795 return NULL;
6796 }
6797
6798
6799 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj;
6801 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6802 wxString result;
6803 PyObject * obj0 = 0 ;
6804 char *kwnames[] = {
6805 (char *) "self", NULL
6806 };
6807
6808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6810 {
6811 PyThreadState* __tstate = wxPyBeginAllowThreads();
6812 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6813
6814 wxPyEndAllowThreads(__tstate);
6815 if (PyErr_Occurred()) SWIG_fail;
6816 }
6817 {
6818 #if wxUSE_UNICODE
6819 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6820 #else
6821 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6822 #endif
6823 }
6824 return resultobj;
6825 fail:
6826 return NULL;
6827 }
6828
6829
6830 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6831 PyObject *obj;
6832 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6833 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6834 Py_INCREF(obj);
6835 return Py_BuildValue((char *)"");
6836 }
6837 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6838 PyObject *resultobj;
6839 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6840 wxString *arg2 = (wxString *) 0 ;
6841 bool temp2 = False ;
6842 PyObject * obj0 = 0 ;
6843 PyObject * obj1 = 0 ;
6844 char *kwnames[] = {
6845 (char *) "self",(char *) "facename", NULL
6846 };
6847
6848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6850 {
6851 arg2 = wxString_in_helper(obj1);
6852 if (arg2 == NULL) SWIG_fail;
6853 temp2 = True;
6854 }
6855 if (arg1) (arg1)->facename = *arg2;
6856
6857 Py_INCREF(Py_None); resultobj = Py_None;
6858 {
6859 if (temp2)
6860 delete arg2;
6861 }
6862 return resultobj;
6863 fail:
6864 {
6865 if (temp2)
6866 delete arg2;
6867 }
6868 return NULL;
6869 }
6870
6871
6872 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6873 PyObject *resultobj;
6874 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6875 wxString *result;
6876 PyObject * obj0 = 0 ;
6877 char *kwnames[] = {
6878 (char *) "self", NULL
6879 };
6880
6881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6883 result = (wxString *)& ((arg1)->facename);
6884
6885 {
6886 #if wxUSE_UNICODE
6887 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6888 #else
6889 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6890 #endif
6891 }
6892 return resultobj;
6893 fail:
6894 return NULL;
6895 }
6896
6897
6898 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6899 PyObject *resultobj;
6900 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6901 int arg2 ;
6902 PyObject * obj0 = 0 ;
6903 PyObject * obj1 = 0 ;
6904 char *kwnames[] = {
6905 (char *) "self",(char *) "encoding", NULL
6906 };
6907
6908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6910 {
6911 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6912 if (PyErr_Occurred()) SWIG_fail;
6913 }
6914 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6915
6916 Py_INCREF(Py_None); resultobj = Py_None;
6917 return resultobj;
6918 fail:
6919 return NULL;
6920 }
6921
6922
6923 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6924 PyObject *resultobj;
6925 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6926 int result;
6927 PyObject * obj0 = 0 ;
6928 char *kwnames[] = {
6929 (char *) "self", NULL
6930 };
6931
6932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6934 result = (int) ((arg1)->encoding);
6935
6936 resultobj = SWIG_PyObj_FromInt((int)result);
6937 return resultobj;
6938 fail:
6939 return NULL;
6940 }
6941
6942
6943 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6944 PyObject *resultobj;
6945 wxNativeEncodingInfo *result;
6946 char *kwnames[] = {
6947 NULL
6948 };
6949
6950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6951 {
6952 PyThreadState* __tstate = wxPyBeginAllowThreads();
6953 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6954
6955 wxPyEndAllowThreads(__tstate);
6956 if (PyErr_Occurred()) SWIG_fail;
6957 }
6958 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6959 return resultobj;
6960 fail:
6961 return NULL;
6962 }
6963
6964
6965 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6966 PyObject *resultobj;
6967 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6968 PyObject * obj0 = 0 ;
6969 char *kwnames[] = {
6970 (char *) "self", NULL
6971 };
6972
6973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6975 {
6976 PyThreadState* __tstate = wxPyBeginAllowThreads();
6977 delete arg1;
6978
6979 wxPyEndAllowThreads(__tstate);
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 Py_INCREF(Py_None); resultobj = Py_None;
6983 return resultobj;
6984 fail:
6985 return NULL;
6986 }
6987
6988
6989 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6990 PyObject *resultobj;
6991 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6992 wxString *arg2 = 0 ;
6993 bool result;
6994 bool temp2 = False ;
6995 PyObject * obj0 = 0 ;
6996 PyObject * obj1 = 0 ;
6997 char *kwnames[] = {
6998 (char *) "self",(char *) "s", NULL
6999 };
7000
7001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7003 {
7004 arg2 = wxString_in_helper(obj1);
7005 if (arg2 == NULL) SWIG_fail;
7006 temp2 = True;
7007 }
7008 {
7009 PyThreadState* __tstate = wxPyBeginAllowThreads();
7010 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7011
7012 wxPyEndAllowThreads(__tstate);
7013 if (PyErr_Occurred()) SWIG_fail;
7014 }
7015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7016 {
7017 if (temp2)
7018 delete arg2;
7019 }
7020 return resultobj;
7021 fail:
7022 {
7023 if (temp2)
7024 delete arg2;
7025 }
7026 return NULL;
7027 }
7028
7029
7030 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7031 PyObject *resultobj;
7032 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7033 wxString result;
7034 PyObject * obj0 = 0 ;
7035 char *kwnames[] = {
7036 (char *) "self", NULL
7037 };
7038
7039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7044
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 {
7049 #if wxUSE_UNICODE
7050 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7051 #else
7052 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7053 #endif
7054 }
7055 return resultobj;
7056 fail:
7057 return NULL;
7058 }
7059
7060
7061 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7062 PyObject *obj;
7063 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7064 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7065 Py_INCREF(obj);
7066 return Py_BuildValue((char *)"");
7067 }
7068 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7069 PyObject *resultobj;
7070 int arg1 ;
7071 wxNativeEncodingInfo *result;
7072 PyObject * obj0 = 0 ;
7073 char *kwnames[] = {
7074 (char *) "encoding", NULL
7075 };
7076
7077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7078 {
7079 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7080 if (PyErr_Occurred()) SWIG_fail;
7081 }
7082 {
7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
7084 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7085
7086 wxPyEndAllowThreads(__tstate);
7087 if (PyErr_Occurred()) SWIG_fail;
7088 }
7089 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
7090 return resultobj;
7091 fail:
7092 return NULL;
7093 }
7094
7095
7096 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7097 PyObject *resultobj;
7098 wxNativeEncodingInfo *arg1 = 0 ;
7099 bool result;
7100 PyObject * obj0 = 0 ;
7101 char *kwnames[] = {
7102 (char *) "info", NULL
7103 };
7104
7105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7107 if (arg1 == NULL) {
7108 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7109 }
7110 {
7111 PyThreadState* __tstate = wxPyBeginAllowThreads();
7112 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7113
7114 wxPyEndAllowThreads(__tstate);
7115 if (PyErr_Occurred()) SWIG_fail;
7116 }
7117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7118 return resultobj;
7119 fail:
7120 return NULL;
7121 }
7122
7123
7124 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7125 PyObject *resultobj;
7126 wxFontMapper *result;
7127 char *kwnames[] = {
7128 NULL
7129 };
7130
7131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7132 {
7133 PyThreadState* __tstate = wxPyBeginAllowThreads();
7134 result = (wxFontMapper *)new wxFontMapper();
7135
7136 wxPyEndAllowThreads(__tstate);
7137 if (PyErr_Occurred()) SWIG_fail;
7138 }
7139 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
7140 return resultobj;
7141 fail:
7142 return NULL;
7143 }
7144
7145
7146 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7147 PyObject *resultobj;
7148 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7149 PyObject * obj0 = 0 ;
7150 char *kwnames[] = {
7151 (char *) "self", NULL
7152 };
7153
7154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7156 {
7157 PyThreadState* __tstate = wxPyBeginAllowThreads();
7158 delete arg1;
7159
7160 wxPyEndAllowThreads(__tstate);
7161 if (PyErr_Occurred()) SWIG_fail;
7162 }
7163 Py_INCREF(Py_None); resultobj = Py_None;
7164 return resultobj;
7165 fail:
7166 return NULL;
7167 }
7168
7169
7170 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7171 PyObject *resultobj;
7172 wxFontMapper *result;
7173 char *kwnames[] = {
7174 NULL
7175 };
7176
7177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7178 {
7179 PyThreadState* __tstate = wxPyBeginAllowThreads();
7180 result = (wxFontMapper *)wxFontMapper::Get();
7181
7182 wxPyEndAllowThreads(__tstate);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
7185 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
7186 return resultobj;
7187 fail:
7188 return NULL;
7189 }
7190
7191
7192 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7193 PyObject *resultobj;
7194 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7195 wxFontMapper *result;
7196 PyObject * obj0 = 0 ;
7197 char *kwnames[] = {
7198 (char *) "mapper", NULL
7199 };
7200
7201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7203 {
7204 PyThreadState* __tstate = wxPyBeginAllowThreads();
7205 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7206
7207 wxPyEndAllowThreads(__tstate);
7208 if (PyErr_Occurred()) SWIG_fail;
7209 }
7210 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
7211 return resultobj;
7212 fail:
7213 return NULL;
7214 }
7215
7216
7217 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7218 PyObject *resultobj;
7219 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7220 wxString *arg2 = 0 ;
7221 bool arg3 = (bool) True ;
7222 int result;
7223 bool temp2 = False ;
7224 PyObject * obj0 = 0 ;
7225 PyObject * obj1 = 0 ;
7226 PyObject * obj2 = 0 ;
7227 char *kwnames[] = {
7228 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7229 };
7230
7231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7232 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7233 {
7234 arg2 = wxString_in_helper(obj1);
7235 if (arg2 == NULL) SWIG_fail;
7236 temp2 = True;
7237 }
7238 if (obj2) {
7239 {
7240 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
7241 if (PyErr_Occurred()) SWIG_fail;
7242 }
7243 }
7244 {
7245 PyThreadState* __tstate = wxPyBeginAllowThreads();
7246 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7247
7248 wxPyEndAllowThreads(__tstate);
7249 if (PyErr_Occurred()) SWIG_fail;
7250 }
7251 resultobj = SWIG_PyObj_FromInt((int)result);
7252 {
7253 if (temp2)
7254 delete arg2;
7255 }
7256 return resultobj;
7257 fail:
7258 {
7259 if (temp2)
7260 delete arg2;
7261 }
7262 return NULL;
7263 }
7264
7265
7266 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7267 PyObject *resultobj;
7268 size_t result;
7269 char *kwnames[] = {
7270 NULL
7271 };
7272
7273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7274 {
7275 PyThreadState* __tstate = wxPyBeginAllowThreads();
7276 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7277
7278 wxPyEndAllowThreads(__tstate);
7279 if (PyErr_Occurred()) SWIG_fail;
7280 }
7281 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
7282 return resultobj;
7283 fail:
7284 return NULL;
7285 }
7286
7287
7288 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj;
7290 size_t arg1 ;
7291 int result;
7292 PyObject * obj0 = 0 ;
7293 char *kwnames[] = {
7294 (char *) "n", NULL
7295 };
7296
7297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7298 {
7299 arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0);
7300 if (PyErr_Occurred()) SWIG_fail;
7301 }
7302 {
7303 PyThreadState* __tstate = wxPyBeginAllowThreads();
7304 result = (int)wxFontMapper::GetEncoding(arg1);
7305
7306 wxPyEndAllowThreads(__tstate);
7307 if (PyErr_Occurred()) SWIG_fail;
7308 }
7309 resultobj = SWIG_PyObj_FromInt((int)result);
7310 return resultobj;
7311 fail:
7312 return NULL;
7313 }
7314
7315
7316 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7317 PyObject *resultobj;
7318 int arg1 ;
7319 wxString result;
7320 PyObject * obj0 = 0 ;
7321 char *kwnames[] = {
7322 (char *) "encoding", NULL
7323 };
7324
7325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7326 {
7327 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 {
7331 PyThreadState* __tstate = wxPyBeginAllowThreads();
7332 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7333
7334 wxPyEndAllowThreads(__tstate);
7335 if (PyErr_Occurred()) SWIG_fail;
7336 }
7337 {
7338 #if wxUSE_UNICODE
7339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7340 #else
7341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7342 #endif
7343 }
7344 return resultobj;
7345 fail:
7346 return NULL;
7347 }
7348
7349
7350 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7351 PyObject *resultobj;
7352 int arg1 ;
7353 wxString result;
7354 PyObject * obj0 = 0 ;
7355 char *kwnames[] = {
7356 (char *) "encoding", NULL
7357 };
7358
7359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7360 {
7361 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 {
7365 PyThreadState* __tstate = wxPyBeginAllowThreads();
7366 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7367
7368 wxPyEndAllowThreads(__tstate);
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 {
7372 #if wxUSE_UNICODE
7373 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7374 #else
7375 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7376 #endif
7377 }
7378 return resultobj;
7379 fail:
7380 return NULL;
7381 }
7382
7383
7384 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7385 PyObject *resultobj;
7386 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7387 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7388 PyObject * obj0 = 0 ;
7389 PyObject * obj1 = 0 ;
7390 char *kwnames[] = {
7391 (char *) "self",(char *) "config", NULL
7392 };
7393
7394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7396 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7397 {
7398 PyThreadState* __tstate = wxPyBeginAllowThreads();
7399 (arg1)->SetConfig(arg2);
7400
7401 wxPyEndAllowThreads(__tstate);
7402 if (PyErr_Occurred()) SWIG_fail;
7403 }
7404 Py_INCREF(Py_None); resultobj = Py_None;
7405 return resultobj;
7406 fail:
7407 return NULL;
7408 }
7409
7410
7411 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7412 PyObject *resultobj;
7413 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7414 wxString *arg2 = 0 ;
7415 bool temp2 = False ;
7416 PyObject * obj0 = 0 ;
7417 PyObject * obj1 = 0 ;
7418 char *kwnames[] = {
7419 (char *) "self",(char *) "prefix", NULL
7420 };
7421
7422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7424 {
7425 arg2 = wxString_in_helper(obj1);
7426 if (arg2 == NULL) SWIG_fail;
7427 temp2 = True;
7428 }
7429 {
7430 PyThreadState* __tstate = wxPyBeginAllowThreads();
7431 (arg1)->SetConfigPath((wxString const &)*arg2);
7432
7433 wxPyEndAllowThreads(__tstate);
7434 if (PyErr_Occurred()) SWIG_fail;
7435 }
7436 Py_INCREF(Py_None); resultobj = Py_None;
7437 {
7438 if (temp2)
7439 delete arg2;
7440 }
7441 return resultobj;
7442 fail:
7443 {
7444 if (temp2)
7445 delete arg2;
7446 }
7447 return NULL;
7448 }
7449
7450
7451 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7452 PyObject *resultobj;
7453 wxString result;
7454 char *kwnames[] = {
7455 NULL
7456 };
7457
7458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7459 {
7460 PyThreadState* __tstate = wxPyBeginAllowThreads();
7461 result = wxFontMapper::GetDefaultConfigPath();
7462
7463 wxPyEndAllowThreads(__tstate);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 {
7467 #if wxUSE_UNICODE
7468 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7469 #else
7470 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7471 #endif
7472 }
7473 return resultobj;
7474 fail:
7475 return NULL;
7476 }
7477
7478
7479 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7480 PyObject *resultobj;
7481 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7482 int arg2 ;
7483 wxString const &arg3_defvalue = wxPyEmptyString ;
7484 wxString *arg3 = (wxString *) &arg3_defvalue ;
7485 bool arg4 = (bool) True ;
7486 PyObject *result;
7487 bool temp3 = False ;
7488 PyObject * obj0 = 0 ;
7489 PyObject * obj1 = 0 ;
7490 PyObject * obj2 = 0 ;
7491 PyObject * obj3 = 0 ;
7492 char *kwnames[] = {
7493 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7494 };
7495
7496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7498 {
7499 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7500 if (PyErr_Occurred()) SWIG_fail;
7501 }
7502 if (obj2) {
7503 {
7504 arg3 = wxString_in_helper(obj2);
7505 if (arg3 == NULL) SWIG_fail;
7506 temp3 = True;
7507 }
7508 }
7509 if (obj3) {
7510 {
7511 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 }
7515 {
7516 PyThreadState* __tstate = wxPyBeginAllowThreads();
7517 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7518
7519 wxPyEndAllowThreads(__tstate);
7520 if (PyErr_Occurred()) SWIG_fail;
7521 }
7522 resultobj = result;
7523 {
7524 if (temp3)
7525 delete arg3;
7526 }
7527 return resultobj;
7528 fail:
7529 {
7530 if (temp3)
7531 delete arg3;
7532 }
7533 return NULL;
7534 }
7535
7536
7537 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7538 PyObject *resultobj;
7539 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7540 int arg2 ;
7541 wxString const &arg3_defvalue = wxPyEmptyString ;
7542 wxString *arg3 = (wxString *) &arg3_defvalue ;
7543 bool result;
7544 bool temp3 = False ;
7545 PyObject * obj0 = 0 ;
7546 PyObject * obj1 = 0 ;
7547 PyObject * obj2 = 0 ;
7548 char *kwnames[] = {
7549 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7550 };
7551
7552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7554 {
7555 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7556 if (PyErr_Occurred()) SWIG_fail;
7557 }
7558 if (obj2) {
7559 {
7560 arg3 = wxString_in_helper(obj2);
7561 if (arg3 == NULL) SWIG_fail;
7562 temp3 = True;
7563 }
7564 }
7565 {
7566 PyThreadState* __tstate = wxPyBeginAllowThreads();
7567 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7568
7569 wxPyEndAllowThreads(__tstate);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7573 {
7574 if (temp3)
7575 delete arg3;
7576 }
7577 return resultobj;
7578 fail:
7579 {
7580 if (temp3)
7581 delete arg3;
7582 }
7583 return NULL;
7584 }
7585
7586
7587 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7588 PyObject *resultobj;
7589 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7590 wxWindow *arg2 = (wxWindow *) 0 ;
7591 PyObject * obj0 = 0 ;
7592 PyObject * obj1 = 0 ;
7593 char *kwnames[] = {
7594 (char *) "self",(char *) "parent", NULL
7595 };
7596
7597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7599 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 (arg1)->SetDialogParent(arg2);
7603
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 Py_INCREF(Py_None); resultobj = Py_None;
7608 return resultobj;
7609 fail:
7610 return NULL;
7611 }
7612
7613
7614 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7615 PyObject *resultobj;
7616 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7617 wxString *arg2 = 0 ;
7618 bool temp2 = False ;
7619 PyObject * obj0 = 0 ;
7620 PyObject * obj1 = 0 ;
7621 char *kwnames[] = {
7622 (char *) "self",(char *) "title", NULL
7623 };
7624
7625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7627 {
7628 arg2 = wxString_in_helper(obj1);
7629 if (arg2 == NULL) SWIG_fail;
7630 temp2 = True;
7631 }
7632 {
7633 PyThreadState* __tstate = wxPyBeginAllowThreads();
7634 (arg1)->SetDialogTitle((wxString const &)*arg2);
7635
7636 wxPyEndAllowThreads(__tstate);
7637 if (PyErr_Occurred()) SWIG_fail;
7638 }
7639 Py_INCREF(Py_None); resultobj = Py_None;
7640 {
7641 if (temp2)
7642 delete arg2;
7643 }
7644 return resultobj;
7645 fail:
7646 {
7647 if (temp2)
7648 delete arg2;
7649 }
7650 return NULL;
7651 }
7652
7653
7654 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7655 PyObject *obj;
7656 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7657 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7658 Py_INCREF(obj);
7659 return Py_BuildValue((char *)"");
7660 }
7661 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7662 PyObject *resultobj;
7663 int arg1 ;
7664 int arg2 ;
7665 int arg3 ;
7666 int arg4 ;
7667 bool arg5 = (bool) False ;
7668 wxString const &arg6_defvalue = wxPyEmptyString ;
7669 wxString *arg6 = (wxString *) &arg6_defvalue ;
7670 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7671 wxFont *result;
7672 bool temp6 = False ;
7673 PyObject * obj0 = 0 ;
7674 PyObject * obj1 = 0 ;
7675 PyObject * obj2 = 0 ;
7676 PyObject * obj3 = 0 ;
7677 PyObject * obj4 = 0 ;
7678 PyObject * obj5 = 0 ;
7679 PyObject * obj6 = 0 ;
7680 char *kwnames[] = {
7681 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7682 };
7683
7684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7685 {
7686 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7687 if (PyErr_Occurred()) SWIG_fail;
7688 }
7689 {
7690 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7691 if (PyErr_Occurred()) SWIG_fail;
7692 }
7693 {
7694 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7695 if (PyErr_Occurred()) SWIG_fail;
7696 }
7697 {
7698 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 }
7701 if (obj4) {
7702 {
7703 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
7704 if (PyErr_Occurred()) SWIG_fail;
7705 }
7706 }
7707 if (obj5) {
7708 {
7709 arg6 = wxString_in_helper(obj5);
7710 if (arg6 == NULL) SWIG_fail;
7711 temp6 = True;
7712 }
7713 }
7714 if (obj6) {
7715 {
7716 arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 }
7720 {
7721 PyThreadState* __tstate = wxPyBeginAllowThreads();
7722 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7723
7724 wxPyEndAllowThreads(__tstate);
7725 if (PyErr_Occurred()) SWIG_fail;
7726 }
7727 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7728 {
7729 if (temp6)
7730 delete arg6;
7731 }
7732 return resultobj;
7733 fail:
7734 {
7735 if (temp6)
7736 delete arg6;
7737 }
7738 return NULL;
7739 }
7740
7741
7742 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7743 PyObject *resultobj;
7744 wxFont *arg1 = (wxFont *) 0 ;
7745 PyObject * obj0 = 0 ;
7746 char *kwnames[] = {
7747 (char *) "self", NULL
7748 };
7749
7750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7752 {
7753 PyThreadState* __tstate = wxPyBeginAllowThreads();
7754 delete arg1;
7755
7756 wxPyEndAllowThreads(__tstate);
7757 if (PyErr_Occurred()) SWIG_fail;
7758 }
7759 Py_INCREF(Py_None); resultobj = Py_None;
7760 return resultobj;
7761 fail:
7762 return NULL;
7763 }
7764
7765
7766 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7767 PyObject *resultobj;
7768 wxNativeFontInfo *arg1 = 0 ;
7769 wxFont *result;
7770 PyObject * obj0 = 0 ;
7771 char *kwnames[] = {
7772 (char *) "info", NULL
7773 };
7774
7775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7777 if (arg1 == NULL) {
7778 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7779 }
7780 {
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7783
7784 wxPyEndAllowThreads(__tstate);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7788 return resultobj;
7789 fail:
7790 return NULL;
7791 }
7792
7793
7794 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7795 PyObject *resultobj;
7796 wxString *arg1 = 0 ;
7797 wxFont *result;
7798 bool temp1 = False ;
7799 PyObject * obj0 = 0 ;
7800 char *kwnames[] = {
7801 (char *) "info", NULL
7802 };
7803
7804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7805 {
7806 arg1 = wxString_in_helper(obj0);
7807 if (arg1 == NULL) SWIG_fail;
7808 temp1 = True;
7809 }
7810 {
7811 PyThreadState* __tstate = wxPyBeginAllowThreads();
7812 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7813
7814 wxPyEndAllowThreads(__tstate);
7815 if (PyErr_Occurred()) SWIG_fail;
7816 }
7817 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7818 {
7819 if (temp1)
7820 delete arg1;
7821 }
7822 return resultobj;
7823 fail:
7824 {
7825 if (temp1)
7826 delete arg1;
7827 }
7828 return NULL;
7829 }
7830
7831
7832 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7833 PyObject *resultobj;
7834 int arg1 ;
7835 int arg2 ;
7836 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7837 wxString const &arg4_defvalue = wxPyEmptyString ;
7838 wxString *arg4 = (wxString *) &arg4_defvalue ;
7839 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7840 wxFont *result;
7841 bool temp4 = False ;
7842 PyObject * obj0 = 0 ;
7843 PyObject * obj1 = 0 ;
7844 PyObject * obj2 = 0 ;
7845 PyObject * obj3 = 0 ;
7846 PyObject * obj4 = 0 ;
7847 char *kwnames[] = {
7848 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7849 };
7850
7851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7852 {
7853 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7854 if (PyErr_Occurred()) SWIG_fail;
7855 }
7856 {
7857 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
7858 if (PyErr_Occurred()) SWIG_fail;
7859 }
7860 if (obj2) {
7861 {
7862 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7863 if (PyErr_Occurred()) SWIG_fail;
7864 }
7865 }
7866 if (obj3) {
7867 {
7868 arg4 = wxString_in_helper(obj3);
7869 if (arg4 == NULL) SWIG_fail;
7870 temp4 = True;
7871 }
7872 }
7873 if (obj4) {
7874 {
7875 arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4);
7876 if (PyErr_Occurred()) SWIG_fail;
7877 }
7878 }
7879 {
7880 PyThreadState* __tstate = wxPyBeginAllowThreads();
7881 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7882
7883 wxPyEndAllowThreads(__tstate);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7887 {
7888 if (temp4)
7889 delete arg4;
7890 }
7891 return resultobj;
7892 fail:
7893 {
7894 if (temp4)
7895 delete arg4;
7896 }
7897 return NULL;
7898 }
7899
7900
7901 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7902 PyObject *resultobj;
7903 wxFont *arg1 = (wxFont *) 0 ;
7904 bool result;
7905 PyObject * obj0 = 0 ;
7906 char *kwnames[] = {
7907 (char *) "self", NULL
7908 };
7909
7910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7912 {
7913 PyThreadState* __tstate = wxPyBeginAllowThreads();
7914 result = (bool)((wxFont const *)arg1)->Ok();
7915
7916 wxPyEndAllowThreads(__tstate);
7917 if (PyErr_Occurred()) SWIG_fail;
7918 }
7919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7920 return resultobj;
7921 fail:
7922 return NULL;
7923 }
7924
7925
7926 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7927 PyObject *resultobj;
7928 wxFont *arg1 = (wxFont *) 0 ;
7929 wxFont *arg2 = 0 ;
7930 bool result;
7931 PyObject * obj0 = 0 ;
7932 PyObject * obj1 = 0 ;
7933 char *kwnames[] = {
7934 (char *) "self",(char *) "font", NULL
7935 };
7936
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7939 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7940 if (arg2 == NULL) {
7941 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7942 }
7943 {
7944 PyThreadState* __tstate = wxPyBeginAllowThreads();
7945 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7946
7947 wxPyEndAllowThreads(__tstate);
7948 if (PyErr_Occurred()) SWIG_fail;
7949 }
7950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7951 return resultobj;
7952 fail:
7953 return NULL;
7954 }
7955
7956
7957 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7958 PyObject *resultobj;
7959 wxFont *arg1 = (wxFont *) 0 ;
7960 wxFont *arg2 = 0 ;
7961 bool result;
7962 PyObject * obj0 = 0 ;
7963 PyObject * obj1 = 0 ;
7964 char *kwnames[] = {
7965 (char *) "self",(char *) "font", NULL
7966 };
7967
7968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7970 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7971 if (arg2 == NULL) {
7972 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7973 }
7974 {
7975 PyThreadState* __tstate = wxPyBeginAllowThreads();
7976 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7977
7978 wxPyEndAllowThreads(__tstate);
7979 if (PyErr_Occurred()) SWIG_fail;
7980 }
7981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7982 return resultobj;
7983 fail:
7984 return NULL;
7985 }
7986
7987
7988 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7989 PyObject *resultobj;
7990 wxFont *arg1 = (wxFont *) 0 ;
7991 int result;
7992 PyObject * obj0 = 0 ;
7993 char *kwnames[] = {
7994 (char *) "self", NULL
7995 };
7996
7997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7999 {
8000 PyThreadState* __tstate = wxPyBeginAllowThreads();
8001 result = (int)((wxFont const *)arg1)->GetPointSize();
8002
8003 wxPyEndAllowThreads(__tstate);
8004 if (PyErr_Occurred()) SWIG_fail;
8005 }
8006 resultobj = SWIG_PyObj_FromInt((int)result);
8007 return resultobj;
8008 fail:
8009 return NULL;
8010 }
8011
8012
8013 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8014 PyObject *resultobj;
8015 wxFont *arg1 = (wxFont *) 0 ;
8016 int result;
8017 PyObject * obj0 = 0 ;
8018 char *kwnames[] = {
8019 (char *) "self", NULL
8020 };
8021
8022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8024 {
8025 PyThreadState* __tstate = wxPyBeginAllowThreads();
8026 result = (int)((wxFont const *)arg1)->GetFamily();
8027
8028 wxPyEndAllowThreads(__tstate);
8029 if (PyErr_Occurred()) SWIG_fail;
8030 }
8031 resultobj = SWIG_PyObj_FromInt((int)result);
8032 return resultobj;
8033 fail:
8034 return NULL;
8035 }
8036
8037
8038 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8039 PyObject *resultobj;
8040 wxFont *arg1 = (wxFont *) 0 ;
8041 int result;
8042 PyObject * obj0 = 0 ;
8043 char *kwnames[] = {
8044 (char *) "self", NULL
8045 };
8046
8047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8049 {
8050 PyThreadState* __tstate = wxPyBeginAllowThreads();
8051 result = (int)((wxFont const *)arg1)->GetStyle();
8052
8053 wxPyEndAllowThreads(__tstate);
8054 if (PyErr_Occurred()) SWIG_fail;
8055 }
8056 resultobj = SWIG_PyObj_FromInt((int)result);
8057 return resultobj;
8058 fail:
8059 return NULL;
8060 }
8061
8062
8063 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8064 PyObject *resultobj;
8065 wxFont *arg1 = (wxFont *) 0 ;
8066 int result;
8067 PyObject * obj0 = 0 ;
8068 char *kwnames[] = {
8069 (char *) "self", NULL
8070 };
8071
8072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8074 {
8075 PyThreadState* __tstate = wxPyBeginAllowThreads();
8076 result = (int)((wxFont const *)arg1)->GetWeight();
8077
8078 wxPyEndAllowThreads(__tstate);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 }
8081 resultobj = SWIG_PyObj_FromInt((int)result);
8082 return resultobj;
8083 fail:
8084 return NULL;
8085 }
8086
8087
8088 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8089 PyObject *resultobj;
8090 wxFont *arg1 = (wxFont *) 0 ;
8091 bool result;
8092 PyObject * obj0 = 0 ;
8093 char *kwnames[] = {
8094 (char *) "self", NULL
8095 };
8096
8097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8099 {
8100 PyThreadState* __tstate = wxPyBeginAllowThreads();
8101 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8102
8103 wxPyEndAllowThreads(__tstate);
8104 if (PyErr_Occurred()) SWIG_fail;
8105 }
8106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8107 return resultobj;
8108 fail:
8109 return NULL;
8110 }
8111
8112
8113 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8114 PyObject *resultobj;
8115 wxFont *arg1 = (wxFont *) 0 ;
8116 wxString result;
8117 PyObject * obj0 = 0 ;
8118 char *kwnames[] = {
8119 (char *) "self", NULL
8120 };
8121
8122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8124 {
8125 PyThreadState* __tstate = wxPyBeginAllowThreads();
8126 result = ((wxFont const *)arg1)->GetFaceName();
8127
8128 wxPyEndAllowThreads(__tstate);
8129 if (PyErr_Occurred()) SWIG_fail;
8130 }
8131 {
8132 #if wxUSE_UNICODE
8133 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8134 #else
8135 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8136 #endif
8137 }
8138 return resultobj;
8139 fail:
8140 return NULL;
8141 }
8142
8143
8144 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8145 PyObject *resultobj;
8146 wxFont *arg1 = (wxFont *) 0 ;
8147 int result;
8148 PyObject * obj0 = 0 ;
8149 char *kwnames[] = {
8150 (char *) "self", NULL
8151 };
8152
8153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8154 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8155 {
8156 PyThreadState* __tstate = wxPyBeginAllowThreads();
8157 result = (int)((wxFont const *)arg1)->GetEncoding();
8158
8159 wxPyEndAllowThreads(__tstate);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 }
8162 resultobj = SWIG_PyObj_FromInt((int)result);
8163 return resultobj;
8164 fail:
8165 return NULL;
8166 }
8167
8168
8169 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8170 PyObject *resultobj;
8171 wxFont *arg1 = (wxFont *) 0 ;
8172 wxNativeFontInfo *result;
8173 PyObject * obj0 = 0 ;
8174 char *kwnames[] = {
8175 (char *) "self", NULL
8176 };
8177
8178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
8182 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8183
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
8188 return resultobj;
8189 fail:
8190 return NULL;
8191 }
8192
8193
8194 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8195 PyObject *resultobj;
8196 wxFont *arg1 = (wxFont *) 0 ;
8197 bool result;
8198 PyObject * obj0 = 0 ;
8199 char *kwnames[] = {
8200 (char *) "self", NULL
8201 };
8202
8203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8205 {
8206 PyThreadState* __tstate = wxPyBeginAllowThreads();
8207 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8208
8209 wxPyEndAllowThreads(__tstate);
8210 if (PyErr_Occurred()) SWIG_fail;
8211 }
8212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8213 return resultobj;
8214 fail:
8215 return NULL;
8216 }
8217
8218
8219 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8220 PyObject *resultobj;
8221 wxFont *arg1 = (wxFont *) 0 ;
8222 wxString result;
8223 PyObject * obj0 = 0 ;
8224 char *kwnames[] = {
8225 (char *) "self", NULL
8226 };
8227
8228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8230 {
8231 PyThreadState* __tstate = wxPyBeginAllowThreads();
8232 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8233
8234 wxPyEndAllowThreads(__tstate);
8235 if (PyErr_Occurred()) SWIG_fail;
8236 }
8237 {
8238 #if wxUSE_UNICODE
8239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8240 #else
8241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8242 #endif
8243 }
8244 return resultobj;
8245 fail:
8246 return NULL;
8247 }
8248
8249
8250 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8251 PyObject *resultobj;
8252 wxFont *arg1 = (wxFont *) 0 ;
8253 wxString result;
8254 PyObject * obj0 = 0 ;
8255 char *kwnames[] = {
8256 (char *) "self", NULL
8257 };
8258
8259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8261 {
8262 PyThreadState* __tstate = wxPyBeginAllowThreads();
8263 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8264
8265 wxPyEndAllowThreads(__tstate);
8266 if (PyErr_Occurred()) SWIG_fail;
8267 }
8268 {
8269 #if wxUSE_UNICODE
8270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8271 #else
8272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8273 #endif
8274 }
8275 return resultobj;
8276 fail:
8277 return NULL;
8278 }
8279
8280
8281 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8282 PyObject *resultobj;
8283 wxFont *arg1 = (wxFont *) 0 ;
8284 int arg2 ;
8285 PyObject * obj0 = 0 ;
8286 PyObject * obj1 = 0 ;
8287 char *kwnames[] = {
8288 (char *) "self",(char *) "pointSize", NULL
8289 };
8290
8291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8293 {
8294 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8295 if (PyErr_Occurred()) SWIG_fail;
8296 }
8297 {
8298 PyThreadState* __tstate = wxPyBeginAllowThreads();
8299 (arg1)->SetPointSize(arg2);
8300
8301 wxPyEndAllowThreads(__tstate);
8302 if (PyErr_Occurred()) SWIG_fail;
8303 }
8304 Py_INCREF(Py_None); resultobj = Py_None;
8305 return resultobj;
8306 fail:
8307 return NULL;
8308 }
8309
8310
8311 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8312 PyObject *resultobj;
8313 wxFont *arg1 = (wxFont *) 0 ;
8314 int arg2 ;
8315 PyObject * obj0 = 0 ;
8316 PyObject * obj1 = 0 ;
8317 char *kwnames[] = {
8318 (char *) "self",(char *) "family", NULL
8319 };
8320
8321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8323 {
8324 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8325 if (PyErr_Occurred()) SWIG_fail;
8326 }
8327 {
8328 PyThreadState* __tstate = wxPyBeginAllowThreads();
8329 (arg1)->SetFamily(arg2);
8330
8331 wxPyEndAllowThreads(__tstate);
8332 if (PyErr_Occurred()) SWIG_fail;
8333 }
8334 Py_INCREF(Py_None); resultobj = Py_None;
8335 return resultobj;
8336 fail:
8337 return NULL;
8338 }
8339
8340
8341 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8342 PyObject *resultobj;
8343 wxFont *arg1 = (wxFont *) 0 ;
8344 int arg2 ;
8345 PyObject * obj0 = 0 ;
8346 PyObject * obj1 = 0 ;
8347 char *kwnames[] = {
8348 (char *) "self",(char *) "style", NULL
8349 };
8350
8351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8353 {
8354 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 {
8358 PyThreadState* __tstate = wxPyBeginAllowThreads();
8359 (arg1)->SetStyle(arg2);
8360
8361 wxPyEndAllowThreads(__tstate);
8362 if (PyErr_Occurred()) SWIG_fail;
8363 }
8364 Py_INCREF(Py_None); resultobj = Py_None;
8365 return resultobj;
8366 fail:
8367 return NULL;
8368 }
8369
8370
8371 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8372 PyObject *resultobj;
8373 wxFont *arg1 = (wxFont *) 0 ;
8374 int arg2 ;
8375 PyObject * obj0 = 0 ;
8376 PyObject * obj1 = 0 ;
8377 char *kwnames[] = {
8378 (char *) "self",(char *) "weight", NULL
8379 };
8380
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8382 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8383 {
8384 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 {
8388 PyThreadState* __tstate = wxPyBeginAllowThreads();
8389 (arg1)->SetWeight(arg2);
8390
8391 wxPyEndAllowThreads(__tstate);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
8394 Py_INCREF(Py_None); resultobj = Py_None;
8395 return resultobj;
8396 fail:
8397 return NULL;
8398 }
8399
8400
8401 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8402 PyObject *resultobj;
8403 wxFont *arg1 = (wxFont *) 0 ;
8404 wxString *arg2 = 0 ;
8405 bool temp2 = False ;
8406 PyObject * obj0 = 0 ;
8407 PyObject * obj1 = 0 ;
8408 char *kwnames[] = {
8409 (char *) "self",(char *) "faceName", NULL
8410 };
8411
8412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8414 {
8415 arg2 = wxString_in_helper(obj1);
8416 if (arg2 == NULL) SWIG_fail;
8417 temp2 = True;
8418 }
8419 {
8420 PyThreadState* __tstate = wxPyBeginAllowThreads();
8421 (arg1)->SetFaceName((wxString const &)*arg2);
8422
8423 wxPyEndAllowThreads(__tstate);
8424 if (PyErr_Occurred()) SWIG_fail;
8425 }
8426 Py_INCREF(Py_None); resultobj = Py_None;
8427 {
8428 if (temp2)
8429 delete arg2;
8430 }
8431 return resultobj;
8432 fail:
8433 {
8434 if (temp2)
8435 delete arg2;
8436 }
8437 return NULL;
8438 }
8439
8440
8441 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8442 PyObject *resultobj;
8443 wxFont *arg1 = (wxFont *) 0 ;
8444 bool arg2 ;
8445 PyObject * obj0 = 0 ;
8446 PyObject * obj1 = 0 ;
8447 char *kwnames[] = {
8448 (char *) "self",(char *) "underlined", NULL
8449 };
8450
8451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8453 {
8454 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8455 if (PyErr_Occurred()) SWIG_fail;
8456 }
8457 {
8458 PyThreadState* __tstate = wxPyBeginAllowThreads();
8459 (arg1)->SetUnderlined(arg2);
8460
8461 wxPyEndAllowThreads(__tstate);
8462 if (PyErr_Occurred()) SWIG_fail;
8463 }
8464 Py_INCREF(Py_None); resultobj = Py_None;
8465 return resultobj;
8466 fail:
8467 return NULL;
8468 }
8469
8470
8471 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8472 PyObject *resultobj;
8473 wxFont *arg1 = (wxFont *) 0 ;
8474 int arg2 ;
8475 PyObject * obj0 = 0 ;
8476 PyObject * obj1 = 0 ;
8477 char *kwnames[] = {
8478 (char *) "self",(char *) "encoding", NULL
8479 };
8480
8481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8483 {
8484 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 {
8488 PyThreadState* __tstate = wxPyBeginAllowThreads();
8489 (arg1)->SetEncoding((wxFontEncoding )arg2);
8490
8491 wxPyEndAllowThreads(__tstate);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 Py_INCREF(Py_None); resultobj = Py_None;
8495 return resultobj;
8496 fail:
8497 return NULL;
8498 }
8499
8500
8501 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj;
8503 wxFont *arg1 = (wxFont *) 0 ;
8504 wxNativeFontInfo *arg2 = 0 ;
8505 PyObject * obj0 = 0 ;
8506 PyObject * obj1 = 0 ;
8507 char *kwnames[] = {
8508 (char *) "self",(char *) "info", NULL
8509 };
8510
8511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8513 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8514 if (arg2 == NULL) {
8515 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8516 }
8517 {
8518 PyThreadState* __tstate = wxPyBeginAllowThreads();
8519 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8520
8521 wxPyEndAllowThreads(__tstate);
8522 if (PyErr_Occurred()) SWIG_fail;
8523 }
8524 Py_INCREF(Py_None); resultobj = Py_None;
8525 return resultobj;
8526 fail:
8527 return NULL;
8528 }
8529
8530
8531 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8532 PyObject *resultobj;
8533 wxFont *arg1 = (wxFont *) 0 ;
8534 wxString *arg2 = 0 ;
8535 bool temp2 = False ;
8536 PyObject * obj0 = 0 ;
8537 PyObject * obj1 = 0 ;
8538 char *kwnames[] = {
8539 (char *) "self",(char *) "info", NULL
8540 };
8541
8542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8544 {
8545 arg2 = wxString_in_helper(obj1);
8546 if (arg2 == NULL) SWIG_fail;
8547 temp2 = True;
8548 }
8549 {
8550 PyThreadState* __tstate = wxPyBeginAllowThreads();
8551 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8552
8553 wxPyEndAllowThreads(__tstate);
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 Py_INCREF(Py_None); resultobj = Py_None;
8557 {
8558 if (temp2)
8559 delete arg2;
8560 }
8561 return resultobj;
8562 fail:
8563 {
8564 if (temp2)
8565 delete arg2;
8566 }
8567 return NULL;
8568 }
8569
8570
8571 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8572 PyObject *resultobj;
8573 wxFont *arg1 = (wxFont *) 0 ;
8574 wxString *arg2 = 0 ;
8575 bool temp2 = False ;
8576 PyObject * obj0 = 0 ;
8577 PyObject * obj1 = 0 ;
8578 char *kwnames[] = {
8579 (char *) "self",(char *) "info", NULL
8580 };
8581
8582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8584 {
8585 arg2 = wxString_in_helper(obj1);
8586 if (arg2 == NULL) SWIG_fail;
8587 temp2 = True;
8588 }
8589 {
8590 PyThreadState* __tstate = wxPyBeginAllowThreads();
8591 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8592
8593 wxPyEndAllowThreads(__tstate);
8594 if (PyErr_Occurred()) SWIG_fail;
8595 }
8596 Py_INCREF(Py_None); resultobj = Py_None;
8597 {
8598 if (temp2)
8599 delete arg2;
8600 }
8601 return resultobj;
8602 fail:
8603 {
8604 if (temp2)
8605 delete arg2;
8606 }
8607 return NULL;
8608 }
8609
8610
8611 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8612 PyObject *resultobj;
8613 wxFont *arg1 = (wxFont *) 0 ;
8614 wxString result;
8615 PyObject * obj0 = 0 ;
8616 char *kwnames[] = {
8617 (char *) "self", NULL
8618 };
8619
8620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8622 {
8623 PyThreadState* __tstate = wxPyBeginAllowThreads();
8624 result = ((wxFont const *)arg1)->GetFamilyString();
8625
8626 wxPyEndAllowThreads(__tstate);
8627 if (PyErr_Occurred()) SWIG_fail;
8628 }
8629 {
8630 #if wxUSE_UNICODE
8631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8632 #else
8633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8634 #endif
8635 }
8636 return resultobj;
8637 fail:
8638 return NULL;
8639 }
8640
8641
8642 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8643 PyObject *resultobj;
8644 wxFont *arg1 = (wxFont *) 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:Font_GetStyleString",kwnames,&obj0)) goto fail;
8652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8653 {
8654 PyThreadState* __tstate = wxPyBeginAllowThreads();
8655 result = ((wxFont const *)arg1)->GetStyleString();
8656
8657 wxPyEndAllowThreads(__tstate);
8658 if (PyErr_Occurred()) SWIG_fail;
8659 }
8660 {
8661 #if wxUSE_UNICODE
8662 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8663 #else
8664 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8665 #endif
8666 }
8667 return resultobj;
8668 fail:
8669 return NULL;
8670 }
8671
8672
8673 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8674 PyObject *resultobj;
8675 wxFont *arg1 = (wxFont *) 0 ;
8676 wxString result;
8677 PyObject * obj0 = 0 ;
8678 char *kwnames[] = {
8679 (char *) "self", NULL
8680 };
8681
8682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8684 {
8685 PyThreadState* __tstate = wxPyBeginAllowThreads();
8686 result = ((wxFont const *)arg1)->GetWeightString();
8687
8688 wxPyEndAllowThreads(__tstate);
8689 if (PyErr_Occurred()) SWIG_fail;
8690 }
8691 {
8692 #if wxUSE_UNICODE
8693 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8694 #else
8695 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8696 #endif
8697 }
8698 return resultobj;
8699 fail:
8700 return NULL;
8701 }
8702
8703
8704 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8705 PyObject *resultobj;
8706 wxFont *arg1 = (wxFont *) 0 ;
8707 bool arg2 = (bool) True ;
8708 PyObject * obj0 = 0 ;
8709 PyObject * obj1 = 0 ;
8710 char *kwnames[] = {
8711 (char *) "self",(char *) "no", NULL
8712 };
8713
8714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8716 if (obj1) {
8717 {
8718 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 }
8722 {
8723 PyThreadState* __tstate = wxPyBeginAllowThreads();
8724 (arg1)->SetNoAntiAliasing(arg2);
8725
8726 wxPyEndAllowThreads(__tstate);
8727 if (PyErr_Occurred()) SWIG_fail;
8728 }
8729 Py_INCREF(Py_None); resultobj = Py_None;
8730 return resultobj;
8731 fail:
8732 return NULL;
8733 }
8734
8735
8736 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8737 PyObject *resultobj;
8738 wxFont *arg1 = (wxFont *) 0 ;
8739 bool result;
8740 PyObject * obj0 = 0 ;
8741 char *kwnames[] = {
8742 (char *) "self", NULL
8743 };
8744
8745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8747 {
8748 PyThreadState* __tstate = wxPyBeginAllowThreads();
8749 result = (bool)(arg1)->GetNoAntiAliasing();
8750
8751 wxPyEndAllowThreads(__tstate);
8752 if (PyErr_Occurred()) SWIG_fail;
8753 }
8754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8755 return resultobj;
8756 fail:
8757 return NULL;
8758 }
8759
8760
8761 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8762 PyObject *resultobj;
8763 int result;
8764 char *kwnames[] = {
8765 NULL
8766 };
8767
8768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8769 {
8770 PyThreadState* __tstate = wxPyBeginAllowThreads();
8771 result = (int)wxFont::GetDefaultEncoding();
8772
8773 wxPyEndAllowThreads(__tstate);
8774 if (PyErr_Occurred()) SWIG_fail;
8775 }
8776 resultobj = SWIG_PyObj_FromInt((int)result);
8777 return resultobj;
8778 fail:
8779 return NULL;
8780 }
8781
8782
8783 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8784 PyObject *resultobj;
8785 int arg1 ;
8786 PyObject * obj0 = 0 ;
8787 char *kwnames[] = {
8788 (char *) "encoding", NULL
8789 };
8790
8791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8792 {
8793 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
8794 if (PyErr_Occurred()) SWIG_fail;
8795 }
8796 {
8797 PyThreadState* __tstate = wxPyBeginAllowThreads();
8798 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8799
8800 wxPyEndAllowThreads(__tstate);
8801 if (PyErr_Occurred()) SWIG_fail;
8802 }
8803 Py_INCREF(Py_None); resultobj = Py_None;
8804 return resultobj;
8805 fail:
8806 return NULL;
8807 }
8808
8809
8810 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8811 PyObject *obj;
8812 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8813 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8814 Py_INCREF(obj);
8815 return Py_BuildValue((char *)"");
8816 }
8817 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8818 PyObject *resultobj;
8819 wxPyFontEnumerator *result;
8820 char *kwnames[] = {
8821 NULL
8822 };
8823
8824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8825 {
8826 PyThreadState* __tstate = wxPyBeginAllowThreads();
8827 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8828
8829 wxPyEndAllowThreads(__tstate);
8830 if (PyErr_Occurred()) SWIG_fail;
8831 }
8832 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8833 return resultobj;
8834 fail:
8835 return NULL;
8836 }
8837
8838
8839 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8840 PyObject *resultobj;
8841 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8842 PyObject * obj0 = 0 ;
8843 char *kwnames[] = {
8844 (char *) "self", NULL
8845 };
8846
8847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8849 {
8850 PyThreadState* __tstate = wxPyBeginAllowThreads();
8851 delete arg1;
8852
8853 wxPyEndAllowThreads(__tstate);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 }
8856 Py_INCREF(Py_None); resultobj = Py_None;
8857 return resultobj;
8858 fail:
8859 return NULL;
8860 }
8861
8862
8863 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8864 PyObject *resultobj;
8865 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8866 PyObject *arg2 = (PyObject *) 0 ;
8867 PyObject *arg3 = (PyObject *) 0 ;
8868 bool arg4 ;
8869 PyObject * obj0 = 0 ;
8870 PyObject * obj1 = 0 ;
8871 PyObject * obj2 = 0 ;
8872 PyObject * obj3 = 0 ;
8873 char *kwnames[] = {
8874 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8875 };
8876
8877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8879 arg2 = obj1;
8880 arg3 = obj2;
8881 {
8882 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8883 if (PyErr_Occurred()) SWIG_fail;
8884 }
8885 {
8886 PyThreadState* __tstate = wxPyBeginAllowThreads();
8887 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8888
8889 wxPyEndAllowThreads(__tstate);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
8892 Py_INCREF(Py_None); resultobj = Py_None;
8893 return resultobj;
8894 fail:
8895 return NULL;
8896 }
8897
8898
8899 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8900 PyObject *resultobj;
8901 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8902 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8903 bool arg3 = (bool) False ;
8904 bool result;
8905 PyObject * obj0 = 0 ;
8906 PyObject * obj1 = 0 ;
8907 PyObject * obj2 = 0 ;
8908 char *kwnames[] = {
8909 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8910 };
8911
8912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8914 if (obj1) {
8915 {
8916 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8917 if (PyErr_Occurred()) SWIG_fail;
8918 }
8919 }
8920 if (obj2) {
8921 {
8922 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8923 if (PyErr_Occurred()) SWIG_fail;
8924 }
8925 }
8926 {
8927 PyThreadState* __tstate = wxPyBeginAllowThreads();
8928 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8929
8930 wxPyEndAllowThreads(__tstate);
8931 if (PyErr_Occurred()) SWIG_fail;
8932 }
8933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8934 return resultobj;
8935 fail:
8936 return NULL;
8937 }
8938
8939
8940 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8941 PyObject *resultobj;
8942 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8943 wxString const &arg2_defvalue = wxPyEmptyString ;
8944 wxString *arg2 = (wxString *) &arg2_defvalue ;
8945 bool result;
8946 bool temp2 = False ;
8947 PyObject * obj0 = 0 ;
8948 PyObject * obj1 = 0 ;
8949 char *kwnames[] = {
8950 (char *) "self",(char *) "facename", NULL
8951 };
8952
8953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8955 if (obj1) {
8956 {
8957 arg2 = wxString_in_helper(obj1);
8958 if (arg2 == NULL) SWIG_fail;
8959 temp2 = True;
8960 }
8961 }
8962 {
8963 PyThreadState* __tstate = wxPyBeginAllowThreads();
8964 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8965
8966 wxPyEndAllowThreads(__tstate);
8967 if (PyErr_Occurred()) SWIG_fail;
8968 }
8969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8970 {
8971 if (temp2)
8972 delete arg2;
8973 }
8974 return resultobj;
8975 fail:
8976 {
8977 if (temp2)
8978 delete arg2;
8979 }
8980 return NULL;
8981 }
8982
8983
8984 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8985 PyObject *resultobj;
8986 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8987 PyObject *result;
8988 PyObject * obj0 = 0 ;
8989 char *kwnames[] = {
8990 (char *) "self", NULL
8991 };
8992
8993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8995 {
8996 PyThreadState* __tstate = wxPyBeginAllowThreads();
8997 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8998
8999 wxPyEndAllowThreads(__tstate);
9000 if (PyErr_Occurred()) SWIG_fail;
9001 }
9002 resultobj = result;
9003 return resultobj;
9004 fail:
9005 return NULL;
9006 }
9007
9008
9009 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9010 PyObject *resultobj;
9011 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9012 PyObject *result;
9013 PyObject * obj0 = 0 ;
9014 char *kwnames[] = {
9015 (char *) "self", NULL
9016 };
9017
9018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9020 {
9021 PyThreadState* __tstate = wxPyBeginAllowThreads();
9022 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9023
9024 wxPyEndAllowThreads(__tstate);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 resultobj = result;
9028 return resultobj;
9029 fail:
9030 return NULL;
9031 }
9032
9033
9034 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9035 PyObject *obj;
9036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9037 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9038 Py_INCREF(obj);
9039 return Py_BuildValue((char *)"");
9040 }
9041 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9042 PyObject *resultobj;
9043 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9044 int arg2 ;
9045 PyObject * obj0 = 0 ;
9046 PyObject * obj1 = 0 ;
9047 char *kwnames[] = {
9048 (char *) "self",(char *) "Language", NULL
9049 };
9050
9051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9052 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9053 {
9054 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9055 if (PyErr_Occurred()) SWIG_fail;
9056 }
9057 if (arg1) (arg1)->Language = arg2;
9058
9059 Py_INCREF(Py_None); resultobj = Py_None;
9060 return resultobj;
9061 fail:
9062 return NULL;
9063 }
9064
9065
9066 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9067 PyObject *resultobj;
9068 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9069 int result;
9070 PyObject * obj0 = 0 ;
9071 char *kwnames[] = {
9072 (char *) "self", NULL
9073 };
9074
9075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9077 result = (int) ((arg1)->Language);
9078
9079 resultobj = SWIG_PyObj_FromInt((int)result);
9080 return resultobj;
9081 fail:
9082 return NULL;
9083 }
9084
9085
9086 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9087 PyObject *resultobj;
9088 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9089 wxString *arg2 = (wxString *) 0 ;
9090 bool temp2 = False ;
9091 PyObject * obj0 = 0 ;
9092 PyObject * obj1 = 0 ;
9093 char *kwnames[] = {
9094 (char *) "self",(char *) "CanonicalName", NULL
9095 };
9096
9097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9099 {
9100 arg2 = wxString_in_helper(obj1);
9101 if (arg2 == NULL) SWIG_fail;
9102 temp2 = True;
9103 }
9104 if (arg1) (arg1)->CanonicalName = *arg2;
9105
9106 Py_INCREF(Py_None); resultobj = Py_None;
9107 {
9108 if (temp2)
9109 delete arg2;
9110 }
9111 return resultobj;
9112 fail:
9113 {
9114 if (temp2)
9115 delete arg2;
9116 }
9117 return NULL;
9118 }
9119
9120
9121 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9122 PyObject *resultobj;
9123 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9124 wxString *result;
9125 PyObject * obj0 = 0 ;
9126 char *kwnames[] = {
9127 (char *) "self", NULL
9128 };
9129
9130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9132 result = (wxString *)& ((arg1)->CanonicalName);
9133
9134 {
9135 #if wxUSE_UNICODE
9136 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9137 #else
9138 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9139 #endif
9140 }
9141 return resultobj;
9142 fail:
9143 return NULL;
9144 }
9145
9146
9147 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9148 PyObject *resultobj;
9149 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9150 wxString *arg2 = (wxString *) 0 ;
9151 bool temp2 = False ;
9152 PyObject * obj0 = 0 ;
9153 PyObject * obj1 = 0 ;
9154 char *kwnames[] = {
9155 (char *) "self",(char *) "Description", NULL
9156 };
9157
9158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9160 {
9161 arg2 = wxString_in_helper(obj1);
9162 if (arg2 == NULL) SWIG_fail;
9163 temp2 = True;
9164 }
9165 if (arg1) (arg1)->Description = *arg2;
9166
9167 Py_INCREF(Py_None); resultobj = Py_None;
9168 {
9169 if (temp2)
9170 delete arg2;
9171 }
9172 return resultobj;
9173 fail:
9174 {
9175 if (temp2)
9176 delete arg2;
9177 }
9178 return NULL;
9179 }
9180
9181
9182 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9183 PyObject *resultobj;
9184 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9185 wxString *result;
9186 PyObject * obj0 = 0 ;
9187 char *kwnames[] = {
9188 (char *) "self", NULL
9189 };
9190
9191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9193 result = (wxString *)& ((arg1)->Description);
9194
9195 {
9196 #if wxUSE_UNICODE
9197 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9198 #else
9199 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9200 #endif
9201 }
9202 return resultobj;
9203 fail:
9204 return NULL;
9205 }
9206
9207
9208 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9209 PyObject *obj;
9210 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9211 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9212 Py_INCREF(obj);
9213 return Py_BuildValue((char *)"");
9214 }
9215 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9216 PyObject *resultobj;
9217 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9218 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9219 wxLocale *result;
9220 PyObject * obj0 = 0 ;
9221 PyObject * obj1 = 0 ;
9222 char *kwnames[] = {
9223 (char *) "language",(char *) "flags", NULL
9224 };
9225
9226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9227 if (obj0) {
9228 {
9229 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9230 if (PyErr_Occurred()) SWIG_fail;
9231 }
9232 }
9233 if (obj1) {
9234 {
9235 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 }
9238 }
9239 {
9240 PyThreadState* __tstate = wxPyBeginAllowThreads();
9241 result = (wxLocale *)new wxLocale(arg1,arg2);
9242
9243 wxPyEndAllowThreads(__tstate);
9244 if (PyErr_Occurred()) SWIG_fail;
9245 }
9246 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
9247 return resultobj;
9248 fail:
9249 return NULL;
9250 }
9251
9252
9253 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9254 PyObject *resultobj;
9255 wxLocale *arg1 = (wxLocale *) 0 ;
9256 PyObject * obj0 = 0 ;
9257 char *kwnames[] = {
9258 (char *) "self", NULL
9259 };
9260
9261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 delete arg1;
9266
9267 wxPyEndAllowThreads(__tstate);
9268 if (PyErr_Occurred()) SWIG_fail;
9269 }
9270 Py_INCREF(Py_None); resultobj = Py_None;
9271 return resultobj;
9272 fail:
9273 return NULL;
9274 }
9275
9276
9277 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9278 PyObject *resultobj;
9279 wxLocale *arg1 = (wxLocale *) 0 ;
9280 wxString *arg2 = 0 ;
9281 wxString const &arg3_defvalue = wxPyEmptyString ;
9282 wxString *arg3 = (wxString *) &arg3_defvalue ;
9283 wxString const &arg4_defvalue = wxPyEmptyString ;
9284 wxString *arg4 = (wxString *) &arg4_defvalue ;
9285 bool arg5 = (bool) True ;
9286 bool arg6 = (bool) False ;
9287 bool result;
9288 bool temp2 = False ;
9289 bool temp3 = False ;
9290 bool temp4 = False ;
9291 PyObject * obj0 = 0 ;
9292 PyObject * obj1 = 0 ;
9293 PyObject * obj2 = 0 ;
9294 PyObject * obj3 = 0 ;
9295 PyObject * obj4 = 0 ;
9296 PyObject * obj5 = 0 ;
9297 char *kwnames[] = {
9298 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9299 };
9300
9301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9303 {
9304 arg2 = wxString_in_helper(obj1);
9305 if (arg2 == NULL) SWIG_fail;
9306 temp2 = True;
9307 }
9308 if (obj2) {
9309 {
9310 arg3 = wxString_in_helper(obj2);
9311 if (arg3 == NULL) SWIG_fail;
9312 temp3 = True;
9313 }
9314 }
9315 if (obj3) {
9316 {
9317 arg4 = wxString_in_helper(obj3);
9318 if (arg4 == NULL) SWIG_fail;
9319 temp4 = True;
9320 }
9321 }
9322 if (obj4) {
9323 {
9324 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 }
9327 }
9328 if (obj5) {
9329 {
9330 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 }
9333 }
9334 {
9335 PyThreadState* __tstate = wxPyBeginAllowThreads();
9336 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9337
9338 wxPyEndAllowThreads(__tstate);
9339 if (PyErr_Occurred()) SWIG_fail;
9340 }
9341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9342 {
9343 if (temp2)
9344 delete arg2;
9345 }
9346 {
9347 if (temp3)
9348 delete arg3;
9349 }
9350 {
9351 if (temp4)
9352 delete arg4;
9353 }
9354 return resultobj;
9355 fail:
9356 {
9357 if (temp2)
9358 delete arg2;
9359 }
9360 {
9361 if (temp3)
9362 delete arg3;
9363 }
9364 {
9365 if (temp4)
9366 delete arg4;
9367 }
9368 return NULL;
9369 }
9370
9371
9372 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9373 PyObject *resultobj;
9374 wxLocale *arg1 = (wxLocale *) 0 ;
9375 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9376 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9377 bool result;
9378 PyObject * obj0 = 0 ;
9379 PyObject * obj1 = 0 ;
9380 PyObject * obj2 = 0 ;
9381 char *kwnames[] = {
9382 (char *) "self",(char *) "language",(char *) "flags", NULL
9383 };
9384
9385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9387 if (obj1) {
9388 {
9389 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 }
9393 if (obj2) {
9394 {
9395 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9396 if (PyErr_Occurred()) SWIG_fail;
9397 }
9398 }
9399 {
9400 PyThreadState* __tstate = wxPyBeginAllowThreads();
9401 result = (bool)(arg1)->Init(arg2,arg3);
9402
9403 wxPyEndAllowThreads(__tstate);
9404 if (PyErr_Occurred()) SWIG_fail;
9405 }
9406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9407 return resultobj;
9408 fail:
9409 return NULL;
9410 }
9411
9412
9413 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9414 PyObject *resultobj;
9415 int result;
9416 char *kwnames[] = {
9417 NULL
9418 };
9419
9420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9421 {
9422 PyThreadState* __tstate = wxPyBeginAllowThreads();
9423 result = (int)wxLocale::GetSystemLanguage();
9424
9425 wxPyEndAllowThreads(__tstate);
9426 if (PyErr_Occurred()) SWIG_fail;
9427 }
9428 resultobj = SWIG_PyObj_FromInt((int)result);
9429 return resultobj;
9430 fail:
9431 return NULL;
9432 }
9433
9434
9435 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9436 PyObject *resultobj;
9437 int result;
9438 char *kwnames[] = {
9439 NULL
9440 };
9441
9442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 result = (int)wxLocale::GetSystemEncoding();
9446
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 resultobj = SWIG_PyObj_FromInt((int)result);
9451 return resultobj;
9452 fail:
9453 return NULL;
9454 }
9455
9456
9457 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9458 PyObject *resultobj;
9459 wxString result;
9460 char *kwnames[] = {
9461 NULL
9462 };
9463
9464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9465 {
9466 PyThreadState* __tstate = wxPyBeginAllowThreads();
9467 result = wxLocale::GetSystemEncodingName();
9468
9469 wxPyEndAllowThreads(__tstate);
9470 if (PyErr_Occurred()) SWIG_fail;
9471 }
9472 {
9473 #if wxUSE_UNICODE
9474 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9475 #else
9476 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9477 #endif
9478 }
9479 return resultobj;
9480 fail:
9481 return NULL;
9482 }
9483
9484
9485 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9486 PyObject *resultobj;
9487 wxLocale *arg1 = (wxLocale *) 0 ;
9488 bool result;
9489 PyObject * obj0 = 0 ;
9490 char *kwnames[] = {
9491 (char *) "self", NULL
9492 };
9493
9494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9496 {
9497 PyThreadState* __tstate = wxPyBeginAllowThreads();
9498 result = (bool)((wxLocale const *)arg1)->IsOk();
9499
9500 wxPyEndAllowThreads(__tstate);
9501 if (PyErr_Occurred()) SWIG_fail;
9502 }
9503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9504 return resultobj;
9505 fail:
9506 return NULL;
9507 }
9508
9509
9510 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9511 PyObject *resultobj;
9512 wxLocale *arg1 = (wxLocale *) 0 ;
9513 wxString result;
9514 PyObject * obj0 = 0 ;
9515 char *kwnames[] = {
9516 (char *) "self", NULL
9517 };
9518
9519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9521 {
9522 PyThreadState* __tstate = wxPyBeginAllowThreads();
9523 result = ((wxLocale const *)arg1)->GetLocale();
9524
9525 wxPyEndAllowThreads(__tstate);
9526 if (PyErr_Occurred()) SWIG_fail;
9527 }
9528 {
9529 #if wxUSE_UNICODE
9530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9531 #else
9532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9533 #endif
9534 }
9535 return resultobj;
9536 fail:
9537 return NULL;
9538 }
9539
9540
9541 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9542 PyObject *resultobj;
9543 wxLocale *arg1 = (wxLocale *) 0 ;
9544 int result;
9545 PyObject * obj0 = 0 ;
9546 char *kwnames[] = {
9547 (char *) "self", NULL
9548 };
9549
9550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 result = (int)((wxLocale const *)arg1)->GetLanguage();
9555
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 resultobj = SWIG_PyObj_FromInt((int)result);
9560 return resultobj;
9561 fail:
9562 return NULL;
9563 }
9564
9565
9566 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9567 PyObject *resultobj;
9568 wxLocale *arg1 = (wxLocale *) 0 ;
9569 wxString result;
9570 PyObject * obj0 = 0 ;
9571 char *kwnames[] = {
9572 (char *) "self", NULL
9573 };
9574
9575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9577 {
9578 PyThreadState* __tstate = wxPyBeginAllowThreads();
9579 result = ((wxLocale const *)arg1)->GetSysName();
9580
9581 wxPyEndAllowThreads(__tstate);
9582 if (PyErr_Occurred()) SWIG_fail;
9583 }
9584 {
9585 #if wxUSE_UNICODE
9586 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9587 #else
9588 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9589 #endif
9590 }
9591 return resultobj;
9592 fail:
9593 return NULL;
9594 }
9595
9596
9597 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9598 PyObject *resultobj;
9599 wxLocale *arg1 = (wxLocale *) 0 ;
9600 wxString result;
9601 PyObject * obj0 = 0 ;
9602 char *kwnames[] = {
9603 (char *) "self", NULL
9604 };
9605
9606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9608 {
9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
9610 result = ((wxLocale const *)arg1)->GetCanonicalName();
9611
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 {
9616 #if wxUSE_UNICODE
9617 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9618 #else
9619 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9620 #endif
9621 }
9622 return resultobj;
9623 fail:
9624 return NULL;
9625 }
9626
9627
9628 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9629 PyObject *resultobj;
9630 wxString *arg1 = 0 ;
9631 bool temp1 = False ;
9632 PyObject * obj0 = 0 ;
9633 char *kwnames[] = {
9634 (char *) "prefix", NULL
9635 };
9636
9637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9638 {
9639 arg1 = wxString_in_helper(obj0);
9640 if (arg1 == NULL) SWIG_fail;
9641 temp1 = True;
9642 }
9643 {
9644 PyThreadState* __tstate = wxPyBeginAllowThreads();
9645 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9646
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 Py_INCREF(Py_None); resultobj = Py_None;
9651 {
9652 if (temp1)
9653 delete arg1;
9654 }
9655 return resultobj;
9656 fail:
9657 {
9658 if (temp1)
9659 delete arg1;
9660 }
9661 return NULL;
9662 }
9663
9664
9665 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj;
9667 wxLocale *arg1 = (wxLocale *) 0 ;
9668 wxString *arg2 = 0 ;
9669 bool result;
9670 bool temp2 = False ;
9671 PyObject * obj0 = 0 ;
9672 PyObject * obj1 = 0 ;
9673 char *kwnames[] = {
9674 (char *) "self",(char *) "szDomain", NULL
9675 };
9676
9677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9679 {
9680 arg2 = wxString_in_helper(obj1);
9681 if (arg2 == NULL) SWIG_fail;
9682 temp2 = True;
9683 }
9684 {
9685 PyThreadState* __tstate = wxPyBeginAllowThreads();
9686 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9687
9688 wxPyEndAllowThreads(__tstate);
9689 if (PyErr_Occurred()) SWIG_fail;
9690 }
9691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9692 {
9693 if (temp2)
9694 delete arg2;
9695 }
9696 return resultobj;
9697 fail:
9698 {
9699 if (temp2)
9700 delete arg2;
9701 }
9702 return NULL;
9703 }
9704
9705
9706 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9707 PyObject *resultobj;
9708 wxLocale *arg1 = (wxLocale *) 0 ;
9709 wxString *arg2 = 0 ;
9710 bool result;
9711 bool temp2 = False ;
9712 PyObject * obj0 = 0 ;
9713 PyObject * obj1 = 0 ;
9714 char *kwnames[] = {
9715 (char *) "self",(char *) "szDomain", NULL
9716 };
9717
9718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9720 {
9721 arg2 = wxString_in_helper(obj1);
9722 if (arg2 == NULL) SWIG_fail;
9723 temp2 = True;
9724 }
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9728
9729 wxPyEndAllowThreads(__tstate);
9730 if (PyErr_Occurred()) SWIG_fail;
9731 }
9732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9733 {
9734 if (temp2)
9735 delete arg2;
9736 }
9737 return resultobj;
9738 fail:
9739 {
9740 if (temp2)
9741 delete arg2;
9742 }
9743 return NULL;
9744 }
9745
9746
9747 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9748 PyObject *resultobj;
9749 int arg1 ;
9750 wxLanguageInfo *result;
9751 PyObject * obj0 = 0 ;
9752 char *kwnames[] = {
9753 (char *) "lang", NULL
9754 };
9755
9756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9757 {
9758 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9759 if (PyErr_Occurred()) SWIG_fail;
9760 }
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9764
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9776 PyObject *resultobj;
9777 int arg1 ;
9778 wxString result;
9779 PyObject * obj0 = 0 ;
9780 char *kwnames[] = {
9781 (char *) "lang", NULL
9782 };
9783
9784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9785 {
9786 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 result = wxLocale::GetLanguageName(arg1);
9792
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 {
9797 #if wxUSE_UNICODE
9798 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9799 #else
9800 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9801 #endif
9802 }
9803 return resultobj;
9804 fail:
9805 return NULL;
9806 }
9807
9808
9809 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9810 PyObject *resultobj;
9811 wxString *arg1 = 0 ;
9812 wxLanguageInfo *result;
9813 bool temp1 = False ;
9814 PyObject * obj0 = 0 ;
9815 char *kwnames[] = {
9816 (char *) "locale", NULL
9817 };
9818
9819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9820 {
9821 arg1 = wxString_in_helper(obj0);
9822 if (arg1 == NULL) SWIG_fail;
9823 temp1 = True;
9824 }
9825 {
9826 PyThreadState* __tstate = wxPyBeginAllowThreads();
9827 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9828
9829 wxPyEndAllowThreads(__tstate);
9830 if (PyErr_Occurred()) SWIG_fail;
9831 }
9832 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9833 {
9834 if (temp1)
9835 delete arg1;
9836 }
9837 return resultobj;
9838 fail:
9839 {
9840 if (temp1)
9841 delete arg1;
9842 }
9843 return NULL;
9844 }
9845
9846
9847 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9848 PyObject *resultobj;
9849 wxLanguageInfo *arg1 = 0 ;
9850 PyObject * obj0 = 0 ;
9851 char *kwnames[] = {
9852 (char *) "info", NULL
9853 };
9854
9855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9857 if (arg1 == NULL) {
9858 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9859 }
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9863
9864 wxPyEndAllowThreads(__tstate);
9865 if (PyErr_Occurred()) SWIG_fail;
9866 }
9867 Py_INCREF(Py_None); resultobj = Py_None;
9868 return resultobj;
9869 fail:
9870 return NULL;
9871 }
9872
9873
9874 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9875 PyObject *resultobj;
9876 wxLocale *arg1 = (wxLocale *) 0 ;
9877 wxString *arg2 = 0 ;
9878 wxString const &arg3_defvalue = wxPyEmptyString ;
9879 wxString *arg3 = (wxString *) &arg3_defvalue ;
9880 wxString result;
9881 bool temp2 = False ;
9882 bool temp3 = False ;
9883 PyObject * obj0 = 0 ;
9884 PyObject * obj1 = 0 ;
9885 PyObject * obj2 = 0 ;
9886 char *kwnames[] = {
9887 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9888 };
9889
9890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9892 {
9893 arg2 = wxString_in_helper(obj1);
9894 if (arg2 == NULL) SWIG_fail;
9895 temp2 = True;
9896 }
9897 if (obj2) {
9898 {
9899 arg3 = wxString_in_helper(obj2);
9900 if (arg3 == NULL) SWIG_fail;
9901 temp3 = True;
9902 }
9903 }
9904 {
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9907
9908 wxPyEndAllowThreads(__tstate);
9909 if (PyErr_Occurred()) SWIG_fail;
9910 }
9911 {
9912 #if wxUSE_UNICODE
9913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9914 #else
9915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9916 #endif
9917 }
9918 {
9919 if (temp2)
9920 delete arg2;
9921 }
9922 {
9923 if (temp3)
9924 delete arg3;
9925 }
9926 return resultobj;
9927 fail:
9928 {
9929 if (temp2)
9930 delete arg2;
9931 }
9932 {
9933 if (temp3)
9934 delete arg3;
9935 }
9936 return NULL;
9937 }
9938
9939
9940 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9941 PyObject *resultobj;
9942 wxLocale *arg1 = (wxLocale *) 0 ;
9943 wxString *result;
9944 PyObject * obj0 = 0 ;
9945 char *kwnames[] = {
9946 (char *) "self", NULL
9947 };
9948
9949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9951 {
9952 PyThreadState* __tstate = wxPyBeginAllowThreads();
9953 {
9954 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9955 result = (wxString *) &_result_ref;
9956 }
9957
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 {
9962 #if wxUSE_UNICODE
9963 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9964 #else
9965 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9966 #endif
9967 }
9968 return resultobj;
9969 fail:
9970 return NULL;
9971 }
9972
9973
9974 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9975 PyObject *obj;
9976 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9977 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9978 Py_INCREF(obj);
9979 return Py_BuildValue((char *)"");
9980 }
9981 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9982 PyObject *resultobj;
9983 wxLocale *result;
9984 char *kwnames[] = {
9985 NULL
9986 };
9987
9988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9989 {
9990 PyThreadState* __tstate = wxPyBeginAllowThreads();
9991 result = (wxLocale *)wxGetLocale();
9992
9993 wxPyEndAllowThreads(__tstate);
9994 if (PyErr_Occurred()) SWIG_fail;
9995 }
9996 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9997 return resultobj;
9998 fail:
9999 return NULL;
10000 }
10001
10002
10003 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10004 PyObject *resultobj;
10005 wxString *arg1 = 0 ;
10006 wxString result;
10007 bool temp1 = False ;
10008 PyObject * obj0 = 0 ;
10009
10010 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10011 {
10012 arg1 = wxString_in_helper(obj0);
10013 if (arg1 == NULL) SWIG_fail;
10014 temp1 = True;
10015 }
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 result = wxGetTranslation((wxString const &)*arg1);
10019
10020 wxPyEndAllowThreads(__tstate);
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 {
10024 #if wxUSE_UNICODE
10025 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10026 #else
10027 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10028 #endif
10029 }
10030 {
10031 if (temp1)
10032 delete arg1;
10033 }
10034 return resultobj;
10035 fail:
10036 {
10037 if (temp1)
10038 delete arg1;
10039 }
10040 return NULL;
10041 }
10042
10043
10044 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10045 PyObject *resultobj;
10046 wxString *arg1 = 0 ;
10047 wxString *arg2 = 0 ;
10048 size_t arg3 ;
10049 wxString result;
10050 bool temp1 = False ;
10051 bool temp2 = False ;
10052 PyObject * obj0 = 0 ;
10053 PyObject * obj1 = 0 ;
10054 PyObject * obj2 = 0 ;
10055
10056 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10057 {
10058 arg1 = wxString_in_helper(obj0);
10059 if (arg1 == NULL) SWIG_fail;
10060 temp1 = True;
10061 }
10062 {
10063 arg2 = wxString_in_helper(obj1);
10064 if (arg2 == NULL) SWIG_fail;
10065 temp2 = True;
10066 }
10067 {
10068 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
10069 if (PyErr_Occurred()) SWIG_fail;
10070 }
10071 {
10072 PyThreadState* __tstate = wxPyBeginAllowThreads();
10073 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10074
10075 wxPyEndAllowThreads(__tstate);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 }
10078 {
10079 #if wxUSE_UNICODE
10080 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10081 #else
10082 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10083 #endif
10084 }
10085 {
10086 if (temp1)
10087 delete arg1;
10088 }
10089 {
10090 if (temp2)
10091 delete arg2;
10092 }
10093 return resultobj;
10094 fail:
10095 {
10096 if (temp1)
10097 delete arg1;
10098 }
10099 {
10100 if (temp2)
10101 delete arg2;
10102 }
10103 return NULL;
10104 }
10105
10106
10107 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10108 int argc;
10109 PyObject *argv[4];
10110 int ii;
10111
10112 argc = PyObject_Length(args);
10113 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10114 argv[ii] = PyTuple_GetItem(args,ii);
10115 }
10116 if (argc == 1) {
10117 int _v;
10118 {
10119 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10120 }
10121 if (_v) {
10122 return _wrap_GetTranslation__SWIG_0(self,args);
10123 }
10124 }
10125 if (argc == 3) {
10126 int _v;
10127 {
10128 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10129 }
10130 if (_v) {
10131 {
10132 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10133 }
10134 if (_v) {
10135 {
10136 SWIG_PyObj_AsUnsignedLong(argv[2]);
10137 if (PyErr_Occurred()) {
10138 _v = 0;
10139 PyErr_Clear();
10140 } else {
10141 _v = 1;
10142 }
10143 }
10144 if (_v) {
10145 return _wrap_GetTranslation__SWIG_1(self,args);
10146 }
10147 }
10148 }
10149 }
10150
10151 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10152 return NULL;
10153 }
10154
10155
10156 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10157 PyObject *resultobj;
10158 wxEncodingConverter *result;
10159 char *kwnames[] = {
10160 NULL
10161 };
10162
10163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10164 {
10165 PyThreadState* __tstate = wxPyBeginAllowThreads();
10166 result = (wxEncodingConverter *)new wxEncodingConverter();
10167
10168 wxPyEndAllowThreads(__tstate);
10169 if (PyErr_Occurred()) SWIG_fail;
10170 }
10171 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
10172 return resultobj;
10173 fail:
10174 return NULL;
10175 }
10176
10177
10178 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10179 PyObject *resultobj;
10180 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10181 PyObject * obj0 = 0 ;
10182 char *kwnames[] = {
10183 (char *) "self", NULL
10184 };
10185
10186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10188 {
10189 PyThreadState* __tstate = wxPyBeginAllowThreads();
10190 delete arg1;
10191
10192 wxPyEndAllowThreads(__tstate);
10193 if (PyErr_Occurred()) SWIG_fail;
10194 }
10195 Py_INCREF(Py_None); resultobj = Py_None;
10196 return resultobj;
10197 fail:
10198 return NULL;
10199 }
10200
10201
10202 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10203 PyObject *resultobj;
10204 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10205 int arg2 ;
10206 int arg3 ;
10207 int arg4 = (int) wxCONVERT_STRICT ;
10208 bool result;
10209 PyObject * obj0 = 0 ;
10210 PyObject * obj1 = 0 ;
10211 PyObject * obj2 = 0 ;
10212 PyObject * obj3 = 0 ;
10213 char *kwnames[] = {
10214 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10215 };
10216
10217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10219 {
10220 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
10221 if (PyErr_Occurred()) SWIG_fail;
10222 }
10223 {
10224 arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2);
10225 if (PyErr_Occurred()) SWIG_fail;
10226 }
10227 if (obj3) {
10228 {
10229 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10230 if (PyErr_Occurred()) SWIG_fail;
10231 }
10232 }
10233 {
10234 PyThreadState* __tstate = wxPyBeginAllowThreads();
10235 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10236
10237 wxPyEndAllowThreads(__tstate);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 }
10240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10241 return resultobj;
10242 fail:
10243 return NULL;
10244 }
10245
10246
10247 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10248 PyObject *resultobj;
10249 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10250 wxString *arg2 = 0 ;
10251 wxString result;
10252 bool temp2 = False ;
10253 PyObject * obj0 = 0 ;
10254 PyObject * obj1 = 0 ;
10255 char *kwnames[] = {
10256 (char *) "self",(char *) "input", NULL
10257 };
10258
10259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10261 {
10262 arg2 = wxString_in_helper(obj1);
10263 if (arg2 == NULL) SWIG_fail;
10264 temp2 = True;
10265 }
10266 {
10267 PyThreadState* __tstate = wxPyBeginAllowThreads();
10268 result = (arg1)->Convert((wxString const &)*arg2);
10269
10270 wxPyEndAllowThreads(__tstate);
10271 if (PyErr_Occurred()) SWIG_fail;
10272 }
10273 {
10274 #if wxUSE_UNICODE
10275 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10276 #else
10277 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10278 #endif
10279 }
10280 {
10281 if (temp2)
10282 delete arg2;
10283 }
10284 return resultobj;
10285 fail:
10286 {
10287 if (temp2)
10288 delete arg2;
10289 }
10290 return NULL;
10291 }
10292
10293
10294 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10295 PyObject *resultobj;
10296 int arg1 ;
10297 int arg2 = (int) wxPLATFORM_CURRENT ;
10298 wxFontEncodingArray result;
10299 PyObject * obj0 = 0 ;
10300 PyObject * obj1 = 0 ;
10301 char *kwnames[] = {
10302 (char *) "enc",(char *) "platform", NULL
10303 };
10304
10305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10306 {
10307 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10308 if (PyErr_Occurred()) SWIG_fail;
10309 }
10310 if (obj1) {
10311 {
10312 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 }
10316 {
10317 PyThreadState* __tstate = wxPyBeginAllowThreads();
10318 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10319
10320 wxPyEndAllowThreads(__tstate);
10321 if (PyErr_Occurred()) SWIG_fail;
10322 }
10323 {
10324 resultobj = PyList_New(0);
10325 for (size_t i=0; i < (&result)->GetCount(); i++) {
10326 PyObject* number = PyInt_FromLong((&result)->Item(i));
10327 PyList_Append(resultobj, number);
10328 Py_DECREF(number);
10329 }
10330 }
10331 return resultobj;
10332 fail:
10333 return NULL;
10334 }
10335
10336
10337 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10338 PyObject *resultobj;
10339 int arg1 ;
10340 wxFontEncodingArray result;
10341 PyObject * obj0 = 0 ;
10342 char *kwnames[] = {
10343 (char *) "enc", NULL
10344 };
10345
10346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10347 {
10348 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10349 if (PyErr_Occurred()) SWIG_fail;
10350 }
10351 {
10352 PyThreadState* __tstate = wxPyBeginAllowThreads();
10353 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10354
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 {
10359 resultobj = PyList_New(0);
10360 for (size_t i=0; i < (&result)->GetCount(); i++) {
10361 PyObject* number = PyInt_FromLong((&result)->Item(i));
10362 PyList_Append(resultobj, number);
10363 Py_DECREF(number);
10364 }
10365 }
10366 return resultobj;
10367 fail:
10368 return NULL;
10369 }
10370
10371
10372 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10373 PyObject *resultobj;
10374 int arg1 ;
10375 int arg2 ;
10376 bool result;
10377 PyObject * obj0 = 0 ;
10378 PyObject * obj1 = 0 ;
10379 char *kwnames[] = {
10380 (char *) "encIn",(char *) "encOut", NULL
10381 };
10382
10383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10384 {
10385 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10386 if (PyErr_Occurred()) SWIG_fail;
10387 }
10388 {
10389 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
10390 if (PyErr_Occurred()) SWIG_fail;
10391 }
10392 {
10393 PyThreadState* __tstate = wxPyBeginAllowThreads();
10394 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10395
10396 wxPyEndAllowThreads(__tstate);
10397 if (PyErr_Occurred()) SWIG_fail;
10398 }
10399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10400 return resultobj;
10401 fail:
10402 return NULL;
10403 }
10404
10405
10406 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10407 PyObject *obj;
10408 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10409 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10410 Py_INCREF(obj);
10411 return Py_BuildValue((char *)"");
10412 }
10413 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10414 PyObject *resultobj;
10415 wxDC *arg1 = (wxDC *) 0 ;
10416 PyObject * obj0 = 0 ;
10417 char *kwnames[] = {
10418 (char *) "self", NULL
10419 };
10420
10421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10423 {
10424 PyThreadState* __tstate = wxPyBeginAllowThreads();
10425 delete arg1;
10426
10427 wxPyEndAllowThreads(__tstate);
10428 if (PyErr_Occurred()) SWIG_fail;
10429 }
10430 Py_INCREF(Py_None); resultobj = Py_None;
10431 return resultobj;
10432 fail:
10433 return NULL;
10434 }
10435
10436
10437 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10438 PyObject *resultobj;
10439 wxDC *arg1 = (wxDC *) 0 ;
10440 PyObject * obj0 = 0 ;
10441 char *kwnames[] = {
10442 (char *) "self", NULL
10443 };
10444
10445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10447 {
10448 PyThreadState* __tstate = wxPyBeginAllowThreads();
10449 (arg1)->BeginDrawing();
10450
10451 wxPyEndAllowThreads(__tstate);
10452 if (PyErr_Occurred()) SWIG_fail;
10453 }
10454 Py_INCREF(Py_None); resultobj = Py_None;
10455 return resultobj;
10456 fail:
10457 return NULL;
10458 }
10459
10460
10461 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10462 PyObject *resultobj;
10463 wxDC *arg1 = (wxDC *) 0 ;
10464 PyObject * obj0 = 0 ;
10465 char *kwnames[] = {
10466 (char *) "self", NULL
10467 };
10468
10469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10471 {
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 (arg1)->EndDrawing();
10474
10475 wxPyEndAllowThreads(__tstate);
10476 if (PyErr_Occurred()) SWIG_fail;
10477 }
10478 Py_INCREF(Py_None); resultobj = Py_None;
10479 return resultobj;
10480 fail:
10481 return NULL;
10482 }
10483
10484
10485 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10486 PyObject *resultobj;
10487 wxDC *arg1 = (wxDC *) 0 ;
10488 int arg2 ;
10489 int arg3 ;
10490 wxColour *arg4 = 0 ;
10491 int arg5 = (int) wxFLOOD_SURFACE ;
10492 bool result;
10493 wxColour temp4 ;
10494 PyObject * obj0 = 0 ;
10495 PyObject * obj1 = 0 ;
10496 PyObject * obj2 = 0 ;
10497 PyObject * obj3 = 0 ;
10498 PyObject * obj4 = 0 ;
10499 char *kwnames[] = {
10500 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10501 };
10502
10503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10505 {
10506 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 {
10510 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10511 if (PyErr_Occurred()) SWIG_fail;
10512 }
10513 {
10514 arg4 = &temp4;
10515 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10516 }
10517 if (obj4) {
10518 {
10519 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 }
10523 {
10524 PyThreadState* __tstate = wxPyBeginAllowThreads();
10525 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10526
10527 wxPyEndAllowThreads(__tstate);
10528 if (PyErr_Occurred()) SWIG_fail;
10529 }
10530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10531 return resultobj;
10532 fail:
10533 return NULL;
10534 }
10535
10536
10537 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10538 PyObject *resultobj;
10539 wxDC *arg1 = (wxDC *) 0 ;
10540 wxPoint *arg2 = 0 ;
10541 wxColour *arg3 = 0 ;
10542 int arg4 = (int) wxFLOOD_SURFACE ;
10543 bool result;
10544 wxPoint temp2 ;
10545 wxColour temp3 ;
10546 PyObject * obj0 = 0 ;
10547 PyObject * obj1 = 0 ;
10548 PyObject * obj2 = 0 ;
10549 PyObject * obj3 = 0 ;
10550 char *kwnames[] = {
10551 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10552 };
10553
10554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10556 {
10557 arg2 = &temp2;
10558 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10559 }
10560 {
10561 arg3 = &temp3;
10562 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10563 }
10564 if (obj3) {
10565 {
10566 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 }
10570 {
10571 PyThreadState* __tstate = wxPyBeginAllowThreads();
10572 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10573
10574 wxPyEndAllowThreads(__tstate);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10578 return resultobj;
10579 fail:
10580 return NULL;
10581 }
10582
10583
10584 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10585 PyObject *resultobj;
10586 wxDC *arg1 = (wxDC *) 0 ;
10587 int arg2 ;
10588 int arg3 ;
10589 wxColour result;
10590 PyObject * obj0 = 0 ;
10591 PyObject * obj1 = 0 ;
10592 PyObject * obj2 = 0 ;
10593 char *kwnames[] = {
10594 (char *) "self",(char *) "x",(char *) "y", NULL
10595 };
10596
10597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10599 {
10600 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 }
10603 {
10604 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 }
10607 {
10608 PyThreadState* __tstate = wxPyBeginAllowThreads();
10609 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10610
10611 wxPyEndAllowThreads(__tstate);
10612 if (PyErr_Occurred()) SWIG_fail;
10613 }
10614 {
10615 wxColour * resultptr;
10616 resultptr = new wxColour((wxColour &) result);
10617 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10618 }
10619 return resultobj;
10620 fail:
10621 return NULL;
10622 }
10623
10624
10625 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10626 PyObject *resultobj;
10627 wxDC *arg1 = (wxDC *) 0 ;
10628 wxPoint *arg2 = 0 ;
10629 wxColour result;
10630 wxPoint temp2 ;
10631 PyObject * obj0 = 0 ;
10632 PyObject * obj1 = 0 ;
10633 char *kwnames[] = {
10634 (char *) "self",(char *) "pt", NULL
10635 };
10636
10637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10639 {
10640 arg2 = &temp2;
10641 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10642 }
10643 {
10644 PyThreadState* __tstate = wxPyBeginAllowThreads();
10645 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10646
10647 wxPyEndAllowThreads(__tstate);
10648 if (PyErr_Occurred()) SWIG_fail;
10649 }
10650 {
10651 wxColour * resultptr;
10652 resultptr = new wxColour((wxColour &) result);
10653 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10654 }
10655 return resultobj;
10656 fail:
10657 return NULL;
10658 }
10659
10660
10661 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10662 PyObject *resultobj;
10663 wxDC *arg1 = (wxDC *) 0 ;
10664 int arg2 ;
10665 int arg3 ;
10666 int arg4 ;
10667 int arg5 ;
10668 PyObject * obj0 = 0 ;
10669 PyObject * obj1 = 0 ;
10670 PyObject * obj2 = 0 ;
10671 PyObject * obj3 = 0 ;
10672 PyObject * obj4 = 0 ;
10673 char *kwnames[] = {
10674 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10675 };
10676
10677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10679 {
10680 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10681 if (PyErr_Occurred()) SWIG_fail;
10682 }
10683 {
10684 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10685 if (PyErr_Occurred()) SWIG_fail;
10686 }
10687 {
10688 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10689 if (PyErr_Occurred()) SWIG_fail;
10690 }
10691 {
10692 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10693 if (PyErr_Occurred()) SWIG_fail;
10694 }
10695 {
10696 PyThreadState* __tstate = wxPyBeginAllowThreads();
10697 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10698
10699 wxPyEndAllowThreads(__tstate);
10700 if (PyErr_Occurred()) SWIG_fail;
10701 }
10702 Py_INCREF(Py_None); resultobj = Py_None;
10703 return resultobj;
10704 fail:
10705 return NULL;
10706 }
10707
10708
10709 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10710 PyObject *resultobj;
10711 wxDC *arg1 = (wxDC *) 0 ;
10712 wxPoint *arg2 = 0 ;
10713 wxPoint *arg3 = 0 ;
10714 wxPoint temp2 ;
10715 wxPoint temp3 ;
10716 PyObject * obj0 = 0 ;
10717 PyObject * obj1 = 0 ;
10718 PyObject * obj2 = 0 ;
10719 char *kwnames[] = {
10720 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10721 };
10722
10723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10725 {
10726 arg2 = &temp2;
10727 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10728 }
10729 {
10730 arg3 = &temp3;
10731 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10732 }
10733 {
10734 PyThreadState* __tstate = wxPyBeginAllowThreads();
10735 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10736
10737 wxPyEndAllowThreads(__tstate);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 }
10740 Py_INCREF(Py_None); resultobj = Py_None;
10741 return resultobj;
10742 fail:
10743 return NULL;
10744 }
10745
10746
10747 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10748 PyObject *resultobj;
10749 wxDC *arg1 = (wxDC *) 0 ;
10750 int arg2 ;
10751 int arg3 ;
10752 PyObject * obj0 = 0 ;
10753 PyObject * obj1 = 0 ;
10754 PyObject * obj2 = 0 ;
10755 char *kwnames[] = {
10756 (char *) "self",(char *) "x",(char *) "y", NULL
10757 };
10758
10759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10761 {
10762 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 {
10766 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 }
10769 {
10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
10771 (arg1)->CrossHair(arg2,arg3);
10772
10773 wxPyEndAllowThreads(__tstate);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
10776 Py_INCREF(Py_None); resultobj = Py_None;
10777 return resultobj;
10778 fail:
10779 return NULL;
10780 }
10781
10782
10783 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10784 PyObject *resultobj;
10785 wxDC *arg1 = (wxDC *) 0 ;
10786 wxPoint *arg2 = 0 ;
10787 wxPoint temp2 ;
10788 PyObject * obj0 = 0 ;
10789 PyObject * obj1 = 0 ;
10790 char *kwnames[] = {
10791 (char *) "self",(char *) "pt", NULL
10792 };
10793
10794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10796 {
10797 arg2 = &temp2;
10798 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10799 }
10800 {
10801 PyThreadState* __tstate = wxPyBeginAllowThreads();
10802 (arg1)->CrossHair((wxPoint const &)*arg2);
10803
10804 wxPyEndAllowThreads(__tstate);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 Py_INCREF(Py_None); resultobj = Py_None;
10808 return resultobj;
10809 fail:
10810 return NULL;
10811 }
10812
10813
10814 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj;
10816 wxDC *arg1 = (wxDC *) 0 ;
10817 int arg2 ;
10818 int arg3 ;
10819 int arg4 ;
10820 int arg5 ;
10821 int arg6 ;
10822 int arg7 ;
10823 PyObject * obj0 = 0 ;
10824 PyObject * obj1 = 0 ;
10825 PyObject * obj2 = 0 ;
10826 PyObject * obj3 = 0 ;
10827 PyObject * obj4 = 0 ;
10828 PyObject * obj5 = 0 ;
10829 PyObject * obj6 = 0 ;
10830 char *kwnames[] = {
10831 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10832 };
10833
10834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10836 {
10837 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 }
10840 {
10841 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10842 if (PyErr_Occurred()) SWIG_fail;
10843 }
10844 {
10845 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 {
10849 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10850 if (PyErr_Occurred()) SWIG_fail;
10851 }
10852 {
10853 arg6 = (int) SWIG_PyObj_AsInt(obj5);
10854 if (PyErr_Occurred()) SWIG_fail;
10855 }
10856 {
10857 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10858 if (PyErr_Occurred()) SWIG_fail;
10859 }
10860 {
10861 PyThreadState* __tstate = wxPyBeginAllowThreads();
10862 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10863
10864 wxPyEndAllowThreads(__tstate);
10865 if (PyErr_Occurred()) SWIG_fail;
10866 }
10867 Py_INCREF(Py_None); resultobj = Py_None;
10868 return resultobj;
10869 fail:
10870 return NULL;
10871 }
10872
10873
10874 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10875 PyObject *resultobj;
10876 wxDC *arg1 = (wxDC *) 0 ;
10877 wxPoint *arg2 = 0 ;
10878 wxPoint *arg3 = 0 ;
10879 wxPoint *arg4 = 0 ;
10880 wxPoint temp2 ;
10881 wxPoint temp3 ;
10882 wxPoint temp4 ;
10883 PyObject * obj0 = 0 ;
10884 PyObject * obj1 = 0 ;
10885 PyObject * obj2 = 0 ;
10886 PyObject * obj3 = 0 ;
10887 char *kwnames[] = {
10888 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10889 };
10890
10891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10893 {
10894 arg2 = &temp2;
10895 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10896 }
10897 {
10898 arg3 = &temp3;
10899 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10900 }
10901 {
10902 arg4 = &temp4;
10903 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10904 }
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10908
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 Py_INCREF(Py_None); resultobj = Py_None;
10913 return resultobj;
10914 fail:
10915 return NULL;
10916 }
10917
10918
10919 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10920 PyObject *resultobj;
10921 wxDC *arg1 = (wxDC *) 0 ;
10922 int arg2 ;
10923 int arg3 ;
10924 int arg4 ;
10925 int arg5 ;
10926 PyObject * obj0 = 0 ;
10927 PyObject * obj1 = 0 ;
10928 PyObject * obj2 = 0 ;
10929 PyObject * obj3 = 0 ;
10930 PyObject * obj4 = 0 ;
10931 char *kwnames[] = {
10932 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10933 };
10934
10935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10937 {
10938 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 {
10942 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10943 if (PyErr_Occurred()) SWIG_fail;
10944 }
10945 {
10946 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 }
10949 {
10950 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10951 if (PyErr_Occurred()) SWIG_fail;
10952 }
10953 {
10954 PyThreadState* __tstate = wxPyBeginAllowThreads();
10955 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10956
10957 wxPyEndAllowThreads(__tstate);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 Py_INCREF(Py_None); resultobj = Py_None;
10961 return resultobj;
10962 fail:
10963 return NULL;
10964 }
10965
10966
10967 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10968 PyObject *resultobj;
10969 wxDC *arg1 = (wxDC *) 0 ;
10970 wxRect *arg2 = 0 ;
10971 wxRect temp2 ;
10972 PyObject * obj0 = 0 ;
10973 PyObject * obj1 = 0 ;
10974 char *kwnames[] = {
10975 (char *) "self",(char *) "rect", NULL
10976 };
10977
10978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10980 {
10981 arg2 = &temp2;
10982 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10983 }
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10987
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 Py_INCREF(Py_None); resultobj = Py_None;
10992 return resultobj;
10993 fail:
10994 return NULL;
10995 }
10996
10997
10998 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10999 PyObject *resultobj;
11000 wxDC *arg1 = (wxDC *) 0 ;
11001 int arg2 ;
11002 int arg3 ;
11003 int arg4 ;
11004 int arg5 ;
11005 double arg6 ;
11006 double arg7 ;
11007 PyObject * obj0 = 0 ;
11008 PyObject * obj1 = 0 ;
11009 PyObject * obj2 = 0 ;
11010 PyObject * obj3 = 0 ;
11011 PyObject * obj4 = 0 ;
11012 PyObject * obj5 = 0 ;
11013 PyObject * obj6 = 0 ;
11014 char *kwnames[] = {
11015 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11016 };
11017
11018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11020 {
11021 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 }
11024 {
11025 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 }
11028 {
11029 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 {
11033 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11034 if (PyErr_Occurred()) SWIG_fail;
11035 }
11036 {
11037 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 {
11041 arg7 = (double) SWIG_PyObj_AsDouble(obj6);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 {
11045 PyThreadState* __tstate = wxPyBeginAllowThreads();
11046 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11047
11048 wxPyEndAllowThreads(__tstate);
11049 if (PyErr_Occurred()) SWIG_fail;
11050 }
11051 Py_INCREF(Py_None); resultobj = Py_None;
11052 return resultobj;
11053 fail:
11054 return NULL;
11055 }
11056
11057
11058 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11059 PyObject *resultobj;
11060 wxDC *arg1 = (wxDC *) 0 ;
11061 wxPoint *arg2 = 0 ;
11062 wxSize *arg3 = 0 ;
11063 double arg4 ;
11064 double arg5 ;
11065 wxPoint temp2 ;
11066 wxSize temp3 ;
11067 PyObject * obj0 = 0 ;
11068 PyObject * obj1 = 0 ;
11069 PyObject * obj2 = 0 ;
11070 PyObject * obj3 = 0 ;
11071 PyObject * obj4 = 0 ;
11072 char *kwnames[] = {
11073 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11074 };
11075
11076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11078 {
11079 arg2 = &temp2;
11080 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11081 }
11082 {
11083 arg3 = &temp3;
11084 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11085 }
11086 {
11087 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11088 if (PyErr_Occurred()) SWIG_fail;
11089 }
11090 {
11091 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 }
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11097
11098 wxPyEndAllowThreads(__tstate);
11099 if (PyErr_Occurred()) SWIG_fail;
11100 }
11101 Py_INCREF(Py_None); resultobj = Py_None;
11102 return resultobj;
11103 fail:
11104 return NULL;
11105 }
11106
11107
11108 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11109 PyObject *resultobj;
11110 wxDC *arg1 = (wxDC *) 0 ;
11111 int arg2 ;
11112 int arg3 ;
11113 PyObject * obj0 = 0 ;
11114 PyObject * obj1 = 0 ;
11115 PyObject * obj2 = 0 ;
11116 char *kwnames[] = {
11117 (char *) "self",(char *) "x",(char *) "y", NULL
11118 };
11119
11120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11122 {
11123 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11124 if (PyErr_Occurred()) SWIG_fail;
11125 }
11126 {
11127 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11128 if (PyErr_Occurred()) SWIG_fail;
11129 }
11130 {
11131 PyThreadState* __tstate = wxPyBeginAllowThreads();
11132 (arg1)->DrawPoint(arg2,arg3);
11133
11134 wxPyEndAllowThreads(__tstate);
11135 if (PyErr_Occurred()) SWIG_fail;
11136 }
11137 Py_INCREF(Py_None); resultobj = Py_None;
11138 return resultobj;
11139 fail:
11140 return NULL;
11141 }
11142
11143
11144 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11145 PyObject *resultobj;
11146 wxDC *arg1 = (wxDC *) 0 ;
11147 wxPoint *arg2 = 0 ;
11148 wxPoint temp2 ;
11149 PyObject * obj0 = 0 ;
11150 PyObject * obj1 = 0 ;
11151 char *kwnames[] = {
11152 (char *) "self",(char *) "pt", NULL
11153 };
11154
11155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
11156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11157 {
11158 arg2 = &temp2;
11159 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11160 }
11161 {
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
11163 (arg1)->DrawPoint((wxPoint const &)*arg2);
11164
11165 wxPyEndAllowThreads(__tstate);
11166 if (PyErr_Occurred()) SWIG_fail;
11167 }
11168 Py_INCREF(Py_None); resultobj = Py_None;
11169 return resultobj;
11170 fail:
11171 return NULL;
11172 }
11173
11174
11175 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11176 PyObject *resultobj;
11177 wxDC *arg1 = (wxDC *) 0 ;
11178 int arg2 ;
11179 int arg3 ;
11180 int arg4 ;
11181 int arg5 ;
11182 PyObject * obj0 = 0 ;
11183 PyObject * obj1 = 0 ;
11184 PyObject * obj2 = 0 ;
11185 PyObject * obj3 = 0 ;
11186 PyObject * obj4 = 0 ;
11187 char *kwnames[] = {
11188 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11189 };
11190
11191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11193 {
11194 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 {
11198 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 {
11202 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 {
11206 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11207 if (PyErr_Occurred()) SWIG_fail;
11208 }
11209 {
11210 PyThreadState* __tstate = wxPyBeginAllowThreads();
11211 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11212
11213 wxPyEndAllowThreads(__tstate);
11214 if (PyErr_Occurred()) SWIG_fail;
11215 }
11216 Py_INCREF(Py_None); resultobj = Py_None;
11217 return resultobj;
11218 fail:
11219 return NULL;
11220 }
11221
11222
11223 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11224 PyObject *resultobj;
11225 wxDC *arg1 = (wxDC *) 0 ;
11226 wxPoint *arg2 = 0 ;
11227 wxSize *arg3 = 0 ;
11228 wxPoint temp2 ;
11229 wxSize temp3 ;
11230 PyObject * obj0 = 0 ;
11231 PyObject * obj1 = 0 ;
11232 PyObject * obj2 = 0 ;
11233 char *kwnames[] = {
11234 (char *) "self",(char *) "pt",(char *) "sz", NULL
11235 };
11236
11237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11238 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11239 {
11240 arg2 = &temp2;
11241 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11242 }
11243 {
11244 arg3 = &temp3;
11245 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11246 }
11247 {
11248 PyThreadState* __tstate = wxPyBeginAllowThreads();
11249 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11250
11251 wxPyEndAllowThreads(__tstate);
11252 if (PyErr_Occurred()) SWIG_fail;
11253 }
11254 Py_INCREF(Py_None); resultobj = Py_None;
11255 return resultobj;
11256 fail:
11257 return NULL;
11258 }
11259
11260
11261 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11262 PyObject *resultobj;
11263 wxDC *arg1 = (wxDC *) 0 ;
11264 wxRect *arg2 = 0 ;
11265 wxRect temp2 ;
11266 PyObject * obj0 = 0 ;
11267 PyObject * obj1 = 0 ;
11268 char *kwnames[] = {
11269 (char *) "self",(char *) "rect", NULL
11270 };
11271
11272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11274 {
11275 arg2 = &temp2;
11276 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11277 }
11278 {
11279 PyThreadState* __tstate = wxPyBeginAllowThreads();
11280 (arg1)->DrawRectangle((wxRect const &)*arg2);
11281
11282 wxPyEndAllowThreads(__tstate);
11283 if (PyErr_Occurred()) SWIG_fail;
11284 }
11285 Py_INCREF(Py_None); resultobj = Py_None;
11286 return resultobj;
11287 fail:
11288 return NULL;
11289 }
11290
11291
11292 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11293 PyObject *resultobj;
11294 wxDC *arg1 = (wxDC *) 0 ;
11295 int arg2 ;
11296 int arg3 ;
11297 int arg4 ;
11298 int arg5 ;
11299 double arg6 ;
11300 PyObject * obj0 = 0 ;
11301 PyObject * obj1 = 0 ;
11302 PyObject * obj2 = 0 ;
11303 PyObject * obj3 = 0 ;
11304 PyObject * obj4 = 0 ;
11305 PyObject * obj5 = 0 ;
11306 char *kwnames[] = {
11307 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11308 };
11309
11310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11312 {
11313 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11314 if (PyErr_Occurred()) SWIG_fail;
11315 }
11316 {
11317 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11318 if (PyErr_Occurred()) SWIG_fail;
11319 }
11320 {
11321 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11322 if (PyErr_Occurred()) SWIG_fail;
11323 }
11324 {
11325 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 {
11329 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
11330 if (PyErr_Occurred()) SWIG_fail;
11331 }
11332 {
11333 PyThreadState* __tstate = wxPyBeginAllowThreads();
11334 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11335
11336 wxPyEndAllowThreads(__tstate);
11337 if (PyErr_Occurred()) SWIG_fail;
11338 }
11339 Py_INCREF(Py_None); resultobj = Py_None;
11340 return resultobj;
11341 fail:
11342 return NULL;
11343 }
11344
11345
11346 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11347 PyObject *resultobj;
11348 wxDC *arg1 = (wxDC *) 0 ;
11349 wxPoint *arg2 = 0 ;
11350 wxSize *arg3 = 0 ;
11351 double arg4 ;
11352 wxPoint temp2 ;
11353 wxSize temp3 ;
11354 PyObject * obj0 = 0 ;
11355 PyObject * obj1 = 0 ;
11356 PyObject * obj2 = 0 ;
11357 PyObject * obj3 = 0 ;
11358 char *kwnames[] = {
11359 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11360 };
11361
11362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11364 {
11365 arg2 = &temp2;
11366 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11367 }
11368 {
11369 arg3 = &temp3;
11370 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11371 }
11372 {
11373 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11374 if (PyErr_Occurred()) SWIG_fail;
11375 }
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
11378 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11379
11380 wxPyEndAllowThreads(__tstate);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 }
11383 Py_INCREF(Py_None); resultobj = Py_None;
11384 return resultobj;
11385 fail:
11386 return NULL;
11387 }
11388
11389
11390 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11391 PyObject *resultobj;
11392 wxDC *arg1 = (wxDC *) 0 ;
11393 wxRect *arg2 = 0 ;
11394 double arg3 ;
11395 wxRect temp2 ;
11396 PyObject * obj0 = 0 ;
11397 PyObject * obj1 = 0 ;
11398 PyObject * obj2 = 0 ;
11399 char *kwnames[] = {
11400 (char *) "self",(char *) "r",(char *) "radius", NULL
11401 };
11402
11403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11405 {
11406 arg2 = &temp2;
11407 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11408 }
11409 {
11410 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
11411 if (PyErr_Occurred()) SWIG_fail;
11412 }
11413 {
11414 PyThreadState* __tstate = wxPyBeginAllowThreads();
11415 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11416
11417 wxPyEndAllowThreads(__tstate);
11418 if (PyErr_Occurred()) SWIG_fail;
11419 }
11420 Py_INCREF(Py_None); resultobj = Py_None;
11421 return resultobj;
11422 fail:
11423 return NULL;
11424 }
11425
11426
11427 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11428 PyObject *resultobj;
11429 wxDC *arg1 = (wxDC *) 0 ;
11430 int arg2 ;
11431 int arg3 ;
11432 int arg4 ;
11433 PyObject * obj0 = 0 ;
11434 PyObject * obj1 = 0 ;
11435 PyObject * obj2 = 0 ;
11436 PyObject * obj3 = 0 ;
11437 char *kwnames[] = {
11438 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11439 };
11440
11441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11443 {
11444 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11445 if (PyErr_Occurred()) SWIG_fail;
11446 }
11447 {
11448 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 }
11451 {
11452 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11453 if (PyErr_Occurred()) SWIG_fail;
11454 }
11455 {
11456 PyThreadState* __tstate = wxPyBeginAllowThreads();
11457 (arg1)->DrawCircle(arg2,arg3,arg4);
11458
11459 wxPyEndAllowThreads(__tstate);
11460 if (PyErr_Occurred()) SWIG_fail;
11461 }
11462 Py_INCREF(Py_None); resultobj = Py_None;
11463 return resultobj;
11464 fail:
11465 return NULL;
11466 }
11467
11468
11469 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11470 PyObject *resultobj;
11471 wxDC *arg1 = (wxDC *) 0 ;
11472 wxPoint *arg2 = 0 ;
11473 int arg3 ;
11474 wxPoint temp2 ;
11475 PyObject * obj0 = 0 ;
11476 PyObject * obj1 = 0 ;
11477 PyObject * obj2 = 0 ;
11478 char *kwnames[] = {
11479 (char *) "self",(char *) "pt",(char *) "radius", NULL
11480 };
11481
11482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11484 {
11485 arg2 = &temp2;
11486 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11487 }
11488 {
11489 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11490 if (PyErr_Occurred()) SWIG_fail;
11491 }
11492 {
11493 PyThreadState* __tstate = wxPyBeginAllowThreads();
11494 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11495
11496 wxPyEndAllowThreads(__tstate);
11497 if (PyErr_Occurred()) SWIG_fail;
11498 }
11499 Py_INCREF(Py_None); resultobj = Py_None;
11500 return resultobj;
11501 fail:
11502 return NULL;
11503 }
11504
11505
11506 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11507 PyObject *resultobj;
11508 wxDC *arg1 = (wxDC *) 0 ;
11509 int arg2 ;
11510 int arg3 ;
11511 int arg4 ;
11512 int arg5 ;
11513 PyObject * obj0 = 0 ;
11514 PyObject * obj1 = 0 ;
11515 PyObject * obj2 = 0 ;
11516 PyObject * obj3 = 0 ;
11517 PyObject * obj4 = 0 ;
11518 char *kwnames[] = {
11519 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11520 };
11521
11522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11524 {
11525 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11526 if (PyErr_Occurred()) SWIG_fail;
11527 }
11528 {
11529 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11530 if (PyErr_Occurred()) SWIG_fail;
11531 }
11532 {
11533 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 {
11537 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11538 if (PyErr_Occurred()) SWIG_fail;
11539 }
11540 {
11541 PyThreadState* __tstate = wxPyBeginAllowThreads();
11542 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11543
11544 wxPyEndAllowThreads(__tstate);
11545 if (PyErr_Occurred()) SWIG_fail;
11546 }
11547 Py_INCREF(Py_None); resultobj = Py_None;
11548 return resultobj;
11549 fail:
11550 return NULL;
11551 }
11552
11553
11554 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11555 PyObject *resultobj;
11556 wxDC *arg1 = (wxDC *) 0 ;
11557 wxPoint *arg2 = 0 ;
11558 wxSize *arg3 = 0 ;
11559 wxPoint temp2 ;
11560 wxSize temp3 ;
11561 PyObject * obj0 = 0 ;
11562 PyObject * obj1 = 0 ;
11563 PyObject * obj2 = 0 ;
11564 char *kwnames[] = {
11565 (char *) "self",(char *) "pt",(char *) "sz", NULL
11566 };
11567
11568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11570 {
11571 arg2 = &temp2;
11572 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11573 }
11574 {
11575 arg3 = &temp3;
11576 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11577 }
11578 {
11579 PyThreadState* __tstate = wxPyBeginAllowThreads();
11580 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11581
11582 wxPyEndAllowThreads(__tstate);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 }
11585 Py_INCREF(Py_None); resultobj = Py_None;
11586 return resultobj;
11587 fail:
11588 return NULL;
11589 }
11590
11591
11592 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11593 PyObject *resultobj;
11594 wxDC *arg1 = (wxDC *) 0 ;
11595 wxRect *arg2 = 0 ;
11596 wxRect temp2 ;
11597 PyObject * obj0 = 0 ;
11598 PyObject * obj1 = 0 ;
11599 char *kwnames[] = {
11600 (char *) "self",(char *) "rect", NULL
11601 };
11602
11603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11605 {
11606 arg2 = &temp2;
11607 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11608 }
11609 {
11610 PyThreadState* __tstate = wxPyBeginAllowThreads();
11611 (arg1)->DrawEllipse((wxRect const &)*arg2);
11612
11613 wxPyEndAllowThreads(__tstate);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
11616 Py_INCREF(Py_None); resultobj = Py_None;
11617 return resultobj;
11618 fail:
11619 return NULL;
11620 }
11621
11622
11623 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11624 PyObject *resultobj;
11625 wxDC *arg1 = (wxDC *) 0 ;
11626 wxIcon *arg2 = 0 ;
11627 int arg3 ;
11628 int arg4 ;
11629 PyObject * obj0 = 0 ;
11630 PyObject * obj1 = 0 ;
11631 PyObject * obj2 = 0 ;
11632 PyObject * obj3 = 0 ;
11633 char *kwnames[] = {
11634 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11635 };
11636
11637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11639 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11640 if (arg2 == NULL) {
11641 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11642 }
11643 {
11644 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11645 if (PyErr_Occurred()) SWIG_fail;
11646 }
11647 {
11648 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 }
11651 {
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11654
11655 wxPyEndAllowThreads(__tstate);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 }
11658 Py_INCREF(Py_None); resultobj = Py_None;
11659 return resultobj;
11660 fail:
11661 return NULL;
11662 }
11663
11664
11665 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11666 PyObject *resultobj;
11667 wxDC *arg1 = (wxDC *) 0 ;
11668 wxIcon *arg2 = 0 ;
11669 wxPoint *arg3 = 0 ;
11670 wxPoint temp3 ;
11671 PyObject * obj0 = 0 ;
11672 PyObject * obj1 = 0 ;
11673 PyObject * obj2 = 0 ;
11674 char *kwnames[] = {
11675 (char *) "self",(char *) "icon",(char *) "pt", NULL
11676 };
11677
11678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11680 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11681 if (arg2 == NULL) {
11682 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11683 }
11684 {
11685 arg3 = &temp3;
11686 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11687 }
11688 {
11689 PyThreadState* __tstate = wxPyBeginAllowThreads();
11690 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11691
11692 wxPyEndAllowThreads(__tstate);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 }
11695 Py_INCREF(Py_None); resultobj = Py_None;
11696 return resultobj;
11697 fail:
11698 return NULL;
11699 }
11700
11701
11702 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11703 PyObject *resultobj;
11704 wxDC *arg1 = (wxDC *) 0 ;
11705 wxBitmap *arg2 = 0 ;
11706 int arg3 ;
11707 int arg4 ;
11708 bool arg5 = (bool) False ;
11709 PyObject * obj0 = 0 ;
11710 PyObject * obj1 = 0 ;
11711 PyObject * obj2 = 0 ;
11712 PyObject * obj3 = 0 ;
11713 PyObject * obj4 = 0 ;
11714 char *kwnames[] = {
11715 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11716 };
11717
11718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11720 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11721 if (arg2 == NULL) {
11722 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11723 }
11724 {
11725 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 {
11729 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 if (obj4) {
11733 {
11734 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
11735 if (PyErr_Occurred()) SWIG_fail;
11736 }
11737 }
11738 {
11739 PyThreadState* __tstate = wxPyBeginAllowThreads();
11740 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11741
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 Py_INCREF(Py_None); resultobj = Py_None;
11746 return resultobj;
11747 fail:
11748 return NULL;
11749 }
11750
11751
11752 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11753 PyObject *resultobj;
11754 wxDC *arg1 = (wxDC *) 0 ;
11755 wxBitmap *arg2 = 0 ;
11756 wxPoint *arg3 = 0 ;
11757 bool arg4 = (bool) False ;
11758 wxPoint temp3 ;
11759 PyObject * obj0 = 0 ;
11760 PyObject * obj1 = 0 ;
11761 PyObject * obj2 = 0 ;
11762 PyObject * obj3 = 0 ;
11763 char *kwnames[] = {
11764 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11765 };
11766
11767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11769 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11770 if (arg2 == NULL) {
11771 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11772 }
11773 {
11774 arg3 = &temp3;
11775 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11776 }
11777 if (obj3) {
11778 {
11779 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
11780 if (PyErr_Occurred()) SWIG_fail;
11781 }
11782 }
11783 {
11784 PyThreadState* __tstate = wxPyBeginAllowThreads();
11785 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11786
11787 wxPyEndAllowThreads(__tstate);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 Py_INCREF(Py_None); resultobj = Py_None;
11791 return resultobj;
11792 fail:
11793 return NULL;
11794 }
11795
11796
11797 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11798 PyObject *resultobj;
11799 wxDC *arg1 = (wxDC *) 0 ;
11800 wxString *arg2 = 0 ;
11801 int arg3 ;
11802 int arg4 ;
11803 bool temp2 = False ;
11804 PyObject * obj0 = 0 ;
11805 PyObject * obj1 = 0 ;
11806 PyObject * obj2 = 0 ;
11807 PyObject * obj3 = 0 ;
11808 char *kwnames[] = {
11809 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11810 };
11811
11812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11814 {
11815 arg2 = wxString_in_helper(obj1);
11816 if (arg2 == NULL) SWIG_fail;
11817 temp2 = True;
11818 }
11819 {
11820 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 {
11824 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11825 if (PyErr_Occurred()) SWIG_fail;
11826 }
11827 {
11828 PyThreadState* __tstate = wxPyBeginAllowThreads();
11829 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11830
11831 wxPyEndAllowThreads(__tstate);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 }
11834 Py_INCREF(Py_None); resultobj = Py_None;
11835 {
11836 if (temp2)
11837 delete arg2;
11838 }
11839 return resultobj;
11840 fail:
11841 {
11842 if (temp2)
11843 delete arg2;
11844 }
11845 return NULL;
11846 }
11847
11848
11849 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11850 PyObject *resultobj;
11851 wxDC *arg1 = (wxDC *) 0 ;
11852 wxString *arg2 = 0 ;
11853 wxPoint *arg3 = 0 ;
11854 bool temp2 = False ;
11855 wxPoint temp3 ;
11856 PyObject * obj0 = 0 ;
11857 PyObject * obj1 = 0 ;
11858 PyObject * obj2 = 0 ;
11859 char *kwnames[] = {
11860 (char *) "self",(char *) "text",(char *) "pt", NULL
11861 };
11862
11863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11865 {
11866 arg2 = wxString_in_helper(obj1);
11867 if (arg2 == NULL) SWIG_fail;
11868 temp2 = True;
11869 }
11870 {
11871 arg3 = &temp3;
11872 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11873 }
11874 {
11875 PyThreadState* __tstate = wxPyBeginAllowThreads();
11876 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11877
11878 wxPyEndAllowThreads(__tstate);
11879 if (PyErr_Occurred()) SWIG_fail;
11880 }
11881 Py_INCREF(Py_None); resultobj = Py_None;
11882 {
11883 if (temp2)
11884 delete arg2;
11885 }
11886 return resultobj;
11887 fail:
11888 {
11889 if (temp2)
11890 delete arg2;
11891 }
11892 return NULL;
11893 }
11894
11895
11896 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11897 PyObject *resultobj;
11898 wxDC *arg1 = (wxDC *) 0 ;
11899 wxString *arg2 = 0 ;
11900 int arg3 ;
11901 int arg4 ;
11902 double arg5 ;
11903 bool temp2 = False ;
11904 PyObject * obj0 = 0 ;
11905 PyObject * obj1 = 0 ;
11906 PyObject * obj2 = 0 ;
11907 PyObject * obj3 = 0 ;
11908 PyObject * obj4 = 0 ;
11909 char *kwnames[] = {
11910 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11911 };
11912
11913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11915 {
11916 arg2 = wxString_in_helper(obj1);
11917 if (arg2 == NULL) SWIG_fail;
11918 temp2 = True;
11919 }
11920 {
11921 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 {
11925 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11926 if (PyErr_Occurred()) SWIG_fail;
11927 }
11928 {
11929 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11930 if (PyErr_Occurred()) SWIG_fail;
11931 }
11932 {
11933 PyThreadState* __tstate = wxPyBeginAllowThreads();
11934 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11935
11936 wxPyEndAllowThreads(__tstate);
11937 if (PyErr_Occurred()) SWIG_fail;
11938 }
11939 Py_INCREF(Py_None); resultobj = Py_None;
11940 {
11941 if (temp2)
11942 delete arg2;
11943 }
11944 return resultobj;
11945 fail:
11946 {
11947 if (temp2)
11948 delete arg2;
11949 }
11950 return NULL;
11951 }
11952
11953
11954 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11955 PyObject *resultobj;
11956 wxDC *arg1 = (wxDC *) 0 ;
11957 wxString *arg2 = 0 ;
11958 wxPoint *arg3 = 0 ;
11959 double arg4 ;
11960 bool temp2 = False ;
11961 wxPoint temp3 ;
11962 PyObject * obj0 = 0 ;
11963 PyObject * obj1 = 0 ;
11964 PyObject * obj2 = 0 ;
11965 PyObject * obj3 = 0 ;
11966 char *kwnames[] = {
11967 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11968 };
11969
11970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11972 {
11973 arg2 = wxString_in_helper(obj1);
11974 if (arg2 == NULL) SWIG_fail;
11975 temp2 = True;
11976 }
11977 {
11978 arg3 = &temp3;
11979 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11980 }
11981 {
11982 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 }
11985 {
11986 PyThreadState* __tstate = wxPyBeginAllowThreads();
11987 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11988
11989 wxPyEndAllowThreads(__tstate);
11990 if (PyErr_Occurred()) SWIG_fail;
11991 }
11992 Py_INCREF(Py_None); resultobj = Py_None;
11993 {
11994 if (temp2)
11995 delete arg2;
11996 }
11997 return resultobj;
11998 fail:
11999 {
12000 if (temp2)
12001 delete arg2;
12002 }
12003 return NULL;
12004 }
12005
12006
12007 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12008 PyObject *resultobj;
12009 wxDC *arg1 = (wxDC *) 0 ;
12010 int arg2 ;
12011 int arg3 ;
12012 int arg4 ;
12013 int arg5 ;
12014 wxDC *arg6 = (wxDC *) 0 ;
12015 int arg7 ;
12016 int arg8 ;
12017 int arg9 = (int) wxCOPY ;
12018 bool arg10 = (bool) False ;
12019 int arg11 = (int) -1 ;
12020 int arg12 = (int) -1 ;
12021 bool result;
12022 PyObject * obj0 = 0 ;
12023 PyObject * obj1 = 0 ;
12024 PyObject * obj2 = 0 ;
12025 PyObject * obj3 = 0 ;
12026 PyObject * obj4 = 0 ;
12027 PyObject * obj5 = 0 ;
12028 PyObject * obj6 = 0 ;
12029 PyObject * obj7 = 0 ;
12030 PyObject * obj8 = 0 ;
12031 PyObject * obj9 = 0 ;
12032 PyObject * obj10 = 0 ;
12033 PyObject * obj11 = 0 ;
12034 char *kwnames[] = {
12035 (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
12036 };
12037
12038 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;
12039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12040 {
12041 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12042 if (PyErr_Occurred()) SWIG_fail;
12043 }
12044 {
12045 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 {
12049 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 {
12053 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12057 {
12058 arg7 = (int) SWIG_PyObj_AsInt(obj6);
12059 if (PyErr_Occurred()) SWIG_fail;
12060 }
12061 {
12062 arg8 = (int) SWIG_PyObj_AsInt(obj7);
12063 if (PyErr_Occurred()) SWIG_fail;
12064 }
12065 if (obj8) {
12066 {
12067 arg9 = (int) SWIG_PyObj_AsInt(obj8);
12068 if (PyErr_Occurred()) SWIG_fail;
12069 }
12070 }
12071 if (obj9) {
12072 {
12073 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
12074 if (PyErr_Occurred()) SWIG_fail;
12075 }
12076 }
12077 if (obj10) {
12078 {
12079 arg11 = (int) SWIG_PyObj_AsInt(obj10);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 }
12083 if (obj11) {
12084 {
12085 arg12 = (int) SWIG_PyObj_AsInt(obj11);
12086 if (PyErr_Occurred()) SWIG_fail;
12087 }
12088 }
12089 {
12090 PyThreadState* __tstate = wxPyBeginAllowThreads();
12091 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12092
12093 wxPyEndAllowThreads(__tstate);
12094 if (PyErr_Occurred()) SWIG_fail;
12095 }
12096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12097 return resultobj;
12098 fail:
12099 return NULL;
12100 }
12101
12102
12103 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12104 PyObject *resultobj;
12105 wxDC *arg1 = (wxDC *) 0 ;
12106 wxPoint *arg2 = 0 ;
12107 wxSize *arg3 = 0 ;
12108 wxDC *arg4 = (wxDC *) 0 ;
12109 wxPoint *arg5 = 0 ;
12110 int arg6 = (int) wxCOPY ;
12111 bool arg7 = (bool) False ;
12112 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12113 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12114 bool result;
12115 wxPoint temp2 ;
12116 wxSize temp3 ;
12117 wxPoint temp5 ;
12118 wxPoint temp8 ;
12119 PyObject * obj0 = 0 ;
12120 PyObject * obj1 = 0 ;
12121 PyObject * obj2 = 0 ;
12122 PyObject * obj3 = 0 ;
12123 PyObject * obj4 = 0 ;
12124 PyObject * obj5 = 0 ;
12125 PyObject * obj6 = 0 ;
12126 PyObject * obj7 = 0 ;
12127 char *kwnames[] = {
12128 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12129 };
12130
12131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12133 {
12134 arg2 = &temp2;
12135 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12136 }
12137 {
12138 arg3 = &temp3;
12139 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12140 }
12141 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12142 {
12143 arg5 = &temp5;
12144 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12145 }
12146 if (obj5) {
12147 {
12148 arg6 = (int) SWIG_PyObj_AsInt(obj5);
12149 if (PyErr_Occurred()) SWIG_fail;
12150 }
12151 }
12152 if (obj6) {
12153 {
12154 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 }
12158 if (obj7) {
12159 {
12160 arg8 = &temp8;
12161 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12162 }
12163 }
12164 {
12165 PyThreadState* __tstate = wxPyBeginAllowThreads();
12166 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12167
12168 wxPyEndAllowThreads(__tstate);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 }
12171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12172 return resultobj;
12173 fail:
12174 return NULL;
12175 }
12176
12177
12178 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12179 PyObject *resultobj;
12180 wxDC *arg1 = (wxDC *) 0 ;
12181 int arg2 ;
12182 wxPoint *arg3 = (wxPoint *) 0 ;
12183 int arg4 = (int) 0 ;
12184 int arg5 = (int) 0 ;
12185 PyObject * obj0 = 0 ;
12186 PyObject * obj1 = 0 ;
12187 PyObject * obj2 = 0 ;
12188 PyObject * obj3 = 0 ;
12189 char *kwnames[] = {
12190 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12191 };
12192
12193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12195 {
12196 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12197 if (arg3 == NULL) SWIG_fail;
12198 }
12199 if (obj2) {
12200 {
12201 arg4 = (int) SWIG_PyObj_AsInt(obj2);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 }
12205 if (obj3) {
12206 {
12207 arg5 = (int) SWIG_PyObj_AsInt(obj3);
12208 if (PyErr_Occurred()) SWIG_fail;
12209 }
12210 }
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12214
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 Py_INCREF(Py_None); resultobj = Py_None;
12219 {
12220 if (arg3) delete [] arg3;
12221 }
12222 return resultobj;
12223 fail:
12224 {
12225 if (arg3) delete [] arg3;
12226 }
12227 return NULL;
12228 }
12229
12230
12231 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12232 PyObject *resultobj;
12233 wxDC *arg1 = (wxDC *) 0 ;
12234 int arg2 ;
12235 wxPoint *arg3 = (wxPoint *) 0 ;
12236 int arg4 = (int) 0 ;
12237 int arg5 = (int) 0 ;
12238 int arg6 = (int) wxODDEVEN_RULE ;
12239 PyObject * obj0 = 0 ;
12240 PyObject * obj1 = 0 ;
12241 PyObject * obj2 = 0 ;
12242 PyObject * obj3 = 0 ;
12243 PyObject * obj4 = 0 ;
12244 char *kwnames[] = {
12245 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12246 };
12247
12248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12250 {
12251 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12252 if (arg3 == NULL) SWIG_fail;
12253 }
12254 if (obj2) {
12255 {
12256 arg4 = (int) SWIG_PyObj_AsInt(obj2);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 }
12260 if (obj3) {
12261 {
12262 arg5 = (int) SWIG_PyObj_AsInt(obj3);
12263 if (PyErr_Occurred()) SWIG_fail;
12264 }
12265 }
12266 if (obj4) {
12267 {
12268 arg6 = (int) SWIG_PyObj_AsInt(obj4);
12269 if (PyErr_Occurred()) SWIG_fail;
12270 }
12271 }
12272 {
12273 PyThreadState* __tstate = wxPyBeginAllowThreads();
12274 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12275
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 }
12279 Py_INCREF(Py_None); resultobj = Py_None;
12280 {
12281 if (arg3) delete [] arg3;
12282 }
12283 return resultobj;
12284 fail:
12285 {
12286 if (arg3) delete [] arg3;
12287 }
12288 return NULL;
12289 }
12290
12291
12292 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12293 PyObject *resultobj;
12294 wxDC *arg1 = (wxDC *) 0 ;
12295 wxString *arg2 = 0 ;
12296 wxRect *arg3 = 0 ;
12297 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12298 int arg5 = (int) -1 ;
12299 bool temp2 = False ;
12300 wxRect temp3 ;
12301 PyObject * obj0 = 0 ;
12302 PyObject * obj1 = 0 ;
12303 PyObject * obj2 = 0 ;
12304 PyObject * obj3 = 0 ;
12305 PyObject * obj4 = 0 ;
12306 char *kwnames[] = {
12307 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12308 };
12309
12310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12312 {
12313 arg2 = wxString_in_helper(obj1);
12314 if (arg2 == NULL) SWIG_fail;
12315 temp2 = True;
12316 }
12317 {
12318 arg3 = &temp3;
12319 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12320 }
12321 if (obj3) {
12322 {
12323 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12324 if (PyErr_Occurred()) SWIG_fail;
12325 }
12326 }
12327 if (obj4) {
12328 {
12329 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12330 if (PyErr_Occurred()) SWIG_fail;
12331 }
12332 }
12333 {
12334 PyThreadState* __tstate = wxPyBeginAllowThreads();
12335 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12336
12337 wxPyEndAllowThreads(__tstate);
12338 if (PyErr_Occurred()) SWIG_fail;
12339 }
12340 Py_INCREF(Py_None); resultobj = Py_None;
12341 {
12342 if (temp2)
12343 delete arg2;
12344 }
12345 return resultobj;
12346 fail:
12347 {
12348 if (temp2)
12349 delete arg2;
12350 }
12351 return NULL;
12352 }
12353
12354
12355 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12356 PyObject *resultobj;
12357 wxDC *arg1 = (wxDC *) 0 ;
12358 wxString *arg2 = 0 ;
12359 wxBitmap *arg3 = 0 ;
12360 wxRect *arg4 = 0 ;
12361 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12362 int arg6 = (int) -1 ;
12363 wxRect result;
12364 bool temp2 = False ;
12365 wxRect temp4 ;
12366 PyObject * obj0 = 0 ;
12367 PyObject * obj1 = 0 ;
12368 PyObject * obj2 = 0 ;
12369 PyObject * obj3 = 0 ;
12370 PyObject * obj4 = 0 ;
12371 PyObject * obj5 = 0 ;
12372 char *kwnames[] = {
12373 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12374 };
12375
12376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12378 {
12379 arg2 = wxString_in_helper(obj1);
12380 if (arg2 == NULL) SWIG_fail;
12381 temp2 = True;
12382 }
12383 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12384 if (arg3 == NULL) {
12385 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12386 }
12387 {
12388 arg4 = &temp4;
12389 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12390 }
12391 if (obj4) {
12392 {
12393 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 }
12397 if (obj5) {
12398 {
12399 arg6 = (int) SWIG_PyObj_AsInt(obj5);
12400 if (PyErr_Occurred()) SWIG_fail;
12401 }
12402 }
12403 {
12404 PyThreadState* __tstate = wxPyBeginAllowThreads();
12405 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12406
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 {
12411 wxRect * resultptr;
12412 resultptr = new wxRect((wxRect &) result);
12413 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12414 }
12415 {
12416 if (temp2)
12417 delete arg2;
12418 }
12419 return resultobj;
12420 fail:
12421 {
12422 if (temp2)
12423 delete arg2;
12424 }
12425 return NULL;
12426 }
12427
12428
12429 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12430 PyObject *resultobj;
12431 wxDC *arg1 = (wxDC *) 0 ;
12432 int arg2 ;
12433 wxPoint *arg3 = (wxPoint *) 0 ;
12434 PyObject * obj0 = 0 ;
12435 PyObject * obj1 = 0 ;
12436 char *kwnames[] = {
12437 (char *) "self",(char *) "points", NULL
12438 };
12439
12440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12441 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12442 {
12443 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12444 if (arg3 == NULL) SWIG_fail;
12445 }
12446 {
12447 PyThreadState* __tstate = wxPyBeginAllowThreads();
12448 (arg1)->DrawSpline(arg2,arg3);
12449
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 Py_INCREF(Py_None); resultobj = Py_None;
12454 {
12455 if (arg3) delete [] arg3;
12456 }
12457 return resultobj;
12458 fail:
12459 {
12460 if (arg3) delete [] arg3;
12461 }
12462 return NULL;
12463 }
12464
12465
12466 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12467 PyObject *resultobj;
12468 wxDC *arg1 = (wxDC *) 0 ;
12469 PyObject * obj0 = 0 ;
12470 char *kwnames[] = {
12471 (char *) "self", NULL
12472 };
12473
12474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12476 {
12477 PyThreadState* __tstate = wxPyBeginAllowThreads();
12478 (arg1)->Clear();
12479
12480 wxPyEndAllowThreads(__tstate);
12481 if (PyErr_Occurred()) SWIG_fail;
12482 }
12483 Py_INCREF(Py_None); resultobj = Py_None;
12484 return resultobj;
12485 fail:
12486 return NULL;
12487 }
12488
12489
12490 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12491 PyObject *resultobj;
12492 wxDC *arg1 = (wxDC *) 0 ;
12493 wxString *arg2 = 0 ;
12494 bool result;
12495 bool temp2 = False ;
12496 PyObject * obj0 = 0 ;
12497 PyObject * obj1 = 0 ;
12498 char *kwnames[] = {
12499 (char *) "self",(char *) "message", NULL
12500 };
12501
12502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12504 {
12505 arg2 = wxString_in_helper(obj1);
12506 if (arg2 == NULL) SWIG_fail;
12507 temp2 = True;
12508 }
12509 {
12510 PyThreadState* __tstate = wxPyBeginAllowThreads();
12511 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12512
12513 wxPyEndAllowThreads(__tstate);
12514 if (PyErr_Occurred()) SWIG_fail;
12515 }
12516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12517 {
12518 if (temp2)
12519 delete arg2;
12520 }
12521 return resultobj;
12522 fail:
12523 {
12524 if (temp2)
12525 delete arg2;
12526 }
12527 return NULL;
12528 }
12529
12530
12531 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12532 PyObject *resultobj;
12533 wxDC *arg1 = (wxDC *) 0 ;
12534 PyObject * obj0 = 0 ;
12535 char *kwnames[] = {
12536 (char *) "self", NULL
12537 };
12538
12539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12541 {
12542 PyThreadState* __tstate = wxPyBeginAllowThreads();
12543 (arg1)->EndDoc();
12544
12545 wxPyEndAllowThreads(__tstate);
12546 if (PyErr_Occurred()) SWIG_fail;
12547 }
12548 Py_INCREF(Py_None); resultobj = Py_None;
12549 return resultobj;
12550 fail:
12551 return NULL;
12552 }
12553
12554
12555 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12556 PyObject *resultobj;
12557 wxDC *arg1 = (wxDC *) 0 ;
12558 PyObject * obj0 = 0 ;
12559 char *kwnames[] = {
12560 (char *) "self", NULL
12561 };
12562
12563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12565 {
12566 PyThreadState* __tstate = wxPyBeginAllowThreads();
12567 (arg1)->StartPage();
12568
12569 wxPyEndAllowThreads(__tstate);
12570 if (PyErr_Occurred()) SWIG_fail;
12571 }
12572 Py_INCREF(Py_None); resultobj = Py_None;
12573 return resultobj;
12574 fail:
12575 return NULL;
12576 }
12577
12578
12579 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12580 PyObject *resultobj;
12581 wxDC *arg1 = (wxDC *) 0 ;
12582 PyObject * obj0 = 0 ;
12583 char *kwnames[] = {
12584 (char *) "self", NULL
12585 };
12586
12587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12589 {
12590 PyThreadState* __tstate = wxPyBeginAllowThreads();
12591 (arg1)->EndPage();
12592
12593 wxPyEndAllowThreads(__tstate);
12594 if (PyErr_Occurred()) SWIG_fail;
12595 }
12596 Py_INCREF(Py_None); resultobj = Py_None;
12597 return resultobj;
12598 fail:
12599 return NULL;
12600 }
12601
12602
12603 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12604 PyObject *resultobj;
12605 wxDC *arg1 = (wxDC *) 0 ;
12606 wxFont *arg2 = 0 ;
12607 PyObject * obj0 = 0 ;
12608 PyObject * obj1 = 0 ;
12609 char *kwnames[] = {
12610 (char *) "self",(char *) "font", NULL
12611 };
12612
12613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12614 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12615 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12616 if (arg2 == NULL) {
12617 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12618 }
12619 {
12620 PyThreadState* __tstate = wxPyBeginAllowThreads();
12621 (arg1)->SetFont((wxFont const &)*arg2);
12622
12623 wxPyEndAllowThreads(__tstate);
12624 if (PyErr_Occurred()) SWIG_fail;
12625 }
12626 Py_INCREF(Py_None); resultobj = Py_None;
12627 return resultobj;
12628 fail:
12629 return NULL;
12630 }
12631
12632
12633 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12634 PyObject *resultobj;
12635 wxDC *arg1 = (wxDC *) 0 ;
12636 wxPen *arg2 = 0 ;
12637 PyObject * obj0 = 0 ;
12638 PyObject * obj1 = 0 ;
12639 char *kwnames[] = {
12640 (char *) "self",(char *) "pen", NULL
12641 };
12642
12643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12644 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12645 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12646 if (arg2 == NULL) {
12647 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12648 }
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 (arg1)->SetPen((wxPen const &)*arg2);
12652
12653 wxPyEndAllowThreads(__tstate);
12654 if (PyErr_Occurred()) SWIG_fail;
12655 }
12656 Py_INCREF(Py_None); resultobj = Py_None;
12657 return resultobj;
12658 fail:
12659 return NULL;
12660 }
12661
12662
12663 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12664 PyObject *resultobj;
12665 wxDC *arg1 = (wxDC *) 0 ;
12666 wxBrush *arg2 = 0 ;
12667 PyObject * obj0 = 0 ;
12668 PyObject * obj1 = 0 ;
12669 char *kwnames[] = {
12670 (char *) "self",(char *) "brush", NULL
12671 };
12672
12673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12675 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12676 if (arg2 == NULL) {
12677 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12678 }
12679 {
12680 PyThreadState* __tstate = wxPyBeginAllowThreads();
12681 (arg1)->SetBrush((wxBrush const &)*arg2);
12682
12683 wxPyEndAllowThreads(__tstate);
12684 if (PyErr_Occurred()) SWIG_fail;
12685 }
12686 Py_INCREF(Py_None); resultobj = Py_None;
12687 return resultobj;
12688 fail:
12689 return NULL;
12690 }
12691
12692
12693 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12694 PyObject *resultobj;
12695 wxDC *arg1 = (wxDC *) 0 ;
12696 wxBrush *arg2 = 0 ;
12697 PyObject * obj0 = 0 ;
12698 PyObject * obj1 = 0 ;
12699 char *kwnames[] = {
12700 (char *) "self",(char *) "brush", NULL
12701 };
12702
12703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12704 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12705 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12706 if (arg2 == NULL) {
12707 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12708 }
12709 {
12710 PyThreadState* __tstate = wxPyBeginAllowThreads();
12711 (arg1)->SetBackground((wxBrush const &)*arg2);
12712
12713 wxPyEndAllowThreads(__tstate);
12714 if (PyErr_Occurred()) SWIG_fail;
12715 }
12716 Py_INCREF(Py_None); resultobj = Py_None;
12717 return resultobj;
12718 fail:
12719 return NULL;
12720 }
12721
12722
12723 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12724 PyObject *resultobj;
12725 wxDC *arg1 = (wxDC *) 0 ;
12726 int arg2 ;
12727 PyObject * obj0 = 0 ;
12728 PyObject * obj1 = 0 ;
12729 char *kwnames[] = {
12730 (char *) "self",(char *) "mode", NULL
12731 };
12732
12733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12734 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12735 {
12736 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12737 if (PyErr_Occurred()) SWIG_fail;
12738 }
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 (arg1)->SetBackgroundMode(arg2);
12742
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 Py_INCREF(Py_None); resultobj = Py_None;
12747 return resultobj;
12748 fail:
12749 return NULL;
12750 }
12751
12752
12753 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12754 PyObject *resultobj;
12755 wxDC *arg1 = (wxDC *) 0 ;
12756 wxPalette *arg2 = 0 ;
12757 PyObject * obj0 = 0 ;
12758 PyObject * obj1 = 0 ;
12759 char *kwnames[] = {
12760 (char *) "self",(char *) "palette", NULL
12761 };
12762
12763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12765 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12766 if (arg2 == NULL) {
12767 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12768 }
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 (arg1)->SetPalette((wxPalette const &)*arg2);
12772
12773 wxPyEndAllowThreads(__tstate);
12774 if (PyErr_Occurred()) SWIG_fail;
12775 }
12776 Py_INCREF(Py_None); resultobj = Py_None;
12777 return resultobj;
12778 fail:
12779 return NULL;
12780 }
12781
12782
12783 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12784 PyObject *resultobj;
12785 wxDC *arg1 = (wxDC *) 0 ;
12786 int arg2 ;
12787 int arg3 ;
12788 int arg4 ;
12789 int arg5 ;
12790 PyObject * obj0 = 0 ;
12791 PyObject * obj1 = 0 ;
12792 PyObject * obj2 = 0 ;
12793 PyObject * obj3 = 0 ;
12794 PyObject * obj4 = 0 ;
12795 char *kwnames[] = {
12796 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12797 };
12798
12799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12801 {
12802 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12803 if (PyErr_Occurred()) SWIG_fail;
12804 }
12805 {
12806 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12807 if (PyErr_Occurred()) SWIG_fail;
12808 }
12809 {
12810 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 {
12814 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12815 if (PyErr_Occurred()) SWIG_fail;
12816 }
12817 {
12818 PyThreadState* __tstate = wxPyBeginAllowThreads();
12819 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12820
12821 wxPyEndAllowThreads(__tstate);
12822 if (PyErr_Occurred()) SWIG_fail;
12823 }
12824 Py_INCREF(Py_None); resultobj = Py_None;
12825 return resultobj;
12826 fail:
12827 return NULL;
12828 }
12829
12830
12831 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12832 PyObject *resultobj;
12833 wxDC *arg1 = (wxDC *) 0 ;
12834 wxPoint *arg2 = 0 ;
12835 wxSize *arg3 = 0 ;
12836 wxPoint temp2 ;
12837 wxSize temp3 ;
12838 PyObject * obj0 = 0 ;
12839 PyObject * obj1 = 0 ;
12840 PyObject * obj2 = 0 ;
12841 char *kwnames[] = {
12842 (char *) "self",(char *) "pt",(char *) "sz", NULL
12843 };
12844
12845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12847 {
12848 arg2 = &temp2;
12849 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12850 }
12851 {
12852 arg3 = &temp3;
12853 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12854 }
12855 {
12856 PyThreadState* __tstate = wxPyBeginAllowThreads();
12857 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12858
12859 wxPyEndAllowThreads(__tstate);
12860 if (PyErr_Occurred()) SWIG_fail;
12861 }
12862 Py_INCREF(Py_None); resultobj = Py_None;
12863 return resultobj;
12864 fail:
12865 return NULL;
12866 }
12867
12868
12869 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12870 PyObject *resultobj;
12871 wxDC *arg1 = (wxDC *) 0 ;
12872 wxRect *arg2 = 0 ;
12873 wxRect temp2 ;
12874 PyObject * obj0 = 0 ;
12875 PyObject * obj1 = 0 ;
12876 char *kwnames[] = {
12877 (char *) "self",(char *) "rect", NULL
12878 };
12879
12880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12881 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12882 {
12883 arg2 = &temp2;
12884 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12885 }
12886 {
12887 PyThreadState* __tstate = wxPyBeginAllowThreads();
12888 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12889
12890 wxPyEndAllowThreads(__tstate);
12891 if (PyErr_Occurred()) SWIG_fail;
12892 }
12893 Py_INCREF(Py_None); resultobj = Py_None;
12894 return resultobj;
12895 fail:
12896 return NULL;
12897 }
12898
12899
12900 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12901 PyObject *resultobj;
12902 wxDC *arg1 = (wxDC *) 0 ;
12903 wxRegion *arg2 = 0 ;
12904 PyObject * obj0 = 0 ;
12905 PyObject * obj1 = 0 ;
12906 char *kwnames[] = {
12907 (char *) "self",(char *) "region", NULL
12908 };
12909
12910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12912 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12913 if (arg2 == NULL) {
12914 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12915 }
12916 {
12917 PyThreadState* __tstate = wxPyBeginAllowThreads();
12918 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12919
12920 wxPyEndAllowThreads(__tstate);
12921 if (PyErr_Occurred()) SWIG_fail;
12922 }
12923 Py_INCREF(Py_None); resultobj = Py_None;
12924 return resultobj;
12925 fail:
12926 return NULL;
12927 }
12928
12929
12930 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12931 PyObject *resultobj;
12932 wxDC *arg1 = (wxDC *) 0 ;
12933 PyObject * obj0 = 0 ;
12934 char *kwnames[] = {
12935 (char *) "self", NULL
12936 };
12937
12938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12940 {
12941 PyThreadState* __tstate = wxPyBeginAllowThreads();
12942 (arg1)->DestroyClippingRegion();
12943
12944 wxPyEndAllowThreads(__tstate);
12945 if (PyErr_Occurred()) SWIG_fail;
12946 }
12947 Py_INCREF(Py_None); resultobj = Py_None;
12948 return resultobj;
12949 fail:
12950 return NULL;
12951 }
12952
12953
12954 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12955 PyObject *resultobj;
12956 wxDC *arg1 = (wxDC *) 0 ;
12957 int *arg2 = (int *) 0 ;
12958 int *arg3 = (int *) 0 ;
12959 int *arg4 = (int *) 0 ;
12960 int *arg5 = (int *) 0 ;
12961 int temp2 ;
12962 int temp3 ;
12963 int temp4 ;
12964 int temp5 ;
12965 PyObject * obj0 = 0 ;
12966 char *kwnames[] = {
12967 (char *) "self", NULL
12968 };
12969
12970 arg2 = &temp2;
12971 arg3 = &temp3;
12972 arg4 = &temp4;
12973 arg5 = &temp5;
12974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12976 {
12977 PyThreadState* __tstate = wxPyBeginAllowThreads();
12978 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12979
12980 wxPyEndAllowThreads(__tstate);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 }
12983 Py_INCREF(Py_None); resultobj = Py_None;
12984 {
12985 PyObject *o = PyInt_FromLong((long) (*arg2));
12986 resultobj = t_output_helper(resultobj,o);
12987 }
12988 {
12989 PyObject *o = PyInt_FromLong((long) (*arg3));
12990 resultobj = t_output_helper(resultobj,o);
12991 }
12992 {
12993 PyObject *o = PyInt_FromLong((long) (*arg4));
12994 resultobj = t_output_helper(resultobj,o);
12995 }
12996 {
12997 PyObject *o = PyInt_FromLong((long) (*arg5));
12998 resultobj = t_output_helper(resultobj,o);
12999 }
13000 return resultobj;
13001 fail:
13002 return NULL;
13003 }
13004
13005
13006 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13007 PyObject *resultobj;
13008 wxDC *arg1 = (wxDC *) 0 ;
13009 wxRect result;
13010 PyObject * obj0 = 0 ;
13011 char *kwnames[] = {
13012 (char *) "self", NULL
13013 };
13014
13015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13017 {
13018 PyThreadState* __tstate = wxPyBeginAllowThreads();
13019 result = wxDC_GetClippingRect(arg1);
13020
13021 wxPyEndAllowThreads(__tstate);
13022 if (PyErr_Occurred()) SWIG_fail;
13023 }
13024 {
13025 wxRect * resultptr;
13026 resultptr = new wxRect((wxRect &) result);
13027 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
13028 }
13029 return resultobj;
13030 fail:
13031 return NULL;
13032 }
13033
13034
13035 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13036 PyObject *resultobj;
13037 wxDC *arg1 = (wxDC *) 0 ;
13038 int result;
13039 PyObject * obj0 = 0 ;
13040 char *kwnames[] = {
13041 (char *) "self", NULL
13042 };
13043
13044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13046 {
13047 PyThreadState* __tstate = wxPyBeginAllowThreads();
13048 result = (int)((wxDC const *)arg1)->GetCharHeight();
13049
13050 wxPyEndAllowThreads(__tstate);
13051 if (PyErr_Occurred()) SWIG_fail;
13052 }
13053 resultobj = SWIG_PyObj_FromInt((int)result);
13054 return resultobj;
13055 fail:
13056 return NULL;
13057 }
13058
13059
13060 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13061 PyObject *resultobj;
13062 wxDC *arg1 = (wxDC *) 0 ;
13063 int result;
13064 PyObject * obj0 = 0 ;
13065 char *kwnames[] = {
13066 (char *) "self", NULL
13067 };
13068
13069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13071 {
13072 PyThreadState* __tstate = wxPyBeginAllowThreads();
13073 result = (int)((wxDC const *)arg1)->GetCharWidth();
13074
13075 wxPyEndAllowThreads(__tstate);
13076 if (PyErr_Occurred()) SWIG_fail;
13077 }
13078 resultobj = SWIG_PyObj_FromInt((int)result);
13079 return resultobj;
13080 fail:
13081 return NULL;
13082 }
13083
13084
13085 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13086 PyObject *resultobj;
13087 wxDC *arg1 = (wxDC *) 0 ;
13088 wxString *arg2 = 0 ;
13089 int *arg3 = (int *) 0 ;
13090 int *arg4 = (int *) 0 ;
13091 bool temp2 = False ;
13092 int temp3 ;
13093 int temp4 ;
13094 PyObject * obj0 = 0 ;
13095 PyObject * obj1 = 0 ;
13096 char *kwnames[] = {
13097 (char *) "self",(char *) "string", NULL
13098 };
13099
13100 arg3 = &temp3;
13101 arg4 = &temp4;
13102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13104 {
13105 arg2 = wxString_in_helper(obj1);
13106 if (arg2 == NULL) SWIG_fail;
13107 temp2 = True;
13108 }
13109 {
13110 PyThreadState* __tstate = wxPyBeginAllowThreads();
13111 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13112
13113 wxPyEndAllowThreads(__tstate);
13114 if (PyErr_Occurred()) SWIG_fail;
13115 }
13116 Py_INCREF(Py_None); resultobj = Py_None;
13117 {
13118 PyObject *o = PyInt_FromLong((long) (*arg3));
13119 resultobj = t_output_helper(resultobj,o);
13120 }
13121 {
13122 PyObject *o = PyInt_FromLong((long) (*arg4));
13123 resultobj = t_output_helper(resultobj,o);
13124 }
13125 {
13126 if (temp2)
13127 delete arg2;
13128 }
13129 return resultobj;
13130 fail:
13131 {
13132 if (temp2)
13133 delete arg2;
13134 }
13135 return NULL;
13136 }
13137
13138
13139 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13140 PyObject *resultobj;
13141 wxDC *arg1 = (wxDC *) 0 ;
13142 wxString *arg2 = 0 ;
13143 int *arg3 = (int *) 0 ;
13144 int *arg4 = (int *) 0 ;
13145 int *arg5 = (int *) 0 ;
13146 int *arg6 = (int *) 0 ;
13147 wxFont *arg7 = (wxFont *) NULL ;
13148 bool temp2 = False ;
13149 int temp3 ;
13150 int temp4 ;
13151 int temp5 ;
13152 int temp6 ;
13153 PyObject * obj0 = 0 ;
13154 PyObject * obj1 = 0 ;
13155 PyObject * obj2 = 0 ;
13156 char *kwnames[] = {
13157 (char *) "self",(char *) "string",(char *) "font", NULL
13158 };
13159
13160 arg3 = &temp3;
13161 arg4 = &temp4;
13162 arg5 = &temp5;
13163 arg6 = &temp6;
13164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13166 {
13167 arg2 = wxString_in_helper(obj1);
13168 if (arg2 == NULL) SWIG_fail;
13169 temp2 = True;
13170 }
13171 if (obj2) {
13172 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13173 }
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13177
13178 wxPyEndAllowThreads(__tstate);
13179 if (PyErr_Occurred()) SWIG_fail;
13180 }
13181 Py_INCREF(Py_None); resultobj = Py_None;
13182 {
13183 PyObject *o = PyInt_FromLong((long) (*arg3));
13184 resultobj = t_output_helper(resultobj,o);
13185 }
13186 {
13187 PyObject *o = PyInt_FromLong((long) (*arg4));
13188 resultobj = t_output_helper(resultobj,o);
13189 }
13190 {
13191 PyObject *o = PyInt_FromLong((long) (*arg5));
13192 resultobj = t_output_helper(resultobj,o);
13193 }
13194 {
13195 PyObject *o = PyInt_FromLong((long) (*arg6));
13196 resultobj = t_output_helper(resultobj,o);
13197 }
13198 {
13199 if (temp2)
13200 delete arg2;
13201 }
13202 return resultobj;
13203 fail:
13204 {
13205 if (temp2)
13206 delete arg2;
13207 }
13208 return NULL;
13209 }
13210
13211
13212 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13213 PyObject *resultobj;
13214 wxDC *arg1 = (wxDC *) 0 ;
13215 wxString *arg2 = 0 ;
13216 int *arg3 = (int *) 0 ;
13217 int *arg4 = (int *) 0 ;
13218 int *arg5 = (int *) 0 ;
13219 wxFont *arg6 = (wxFont *) NULL ;
13220 bool temp2 = False ;
13221 int temp3 ;
13222 int temp4 ;
13223 int temp5 ;
13224 PyObject * obj0 = 0 ;
13225 PyObject * obj1 = 0 ;
13226 PyObject * obj2 = 0 ;
13227 char *kwnames[] = {
13228 (char *) "self",(char *) "text",(char *) "font", NULL
13229 };
13230
13231 arg3 = &temp3;
13232 arg4 = &temp4;
13233 arg5 = &temp5;
13234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13236 {
13237 arg2 = wxString_in_helper(obj1);
13238 if (arg2 == NULL) SWIG_fail;
13239 temp2 = True;
13240 }
13241 if (obj2) {
13242 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13243 }
13244 {
13245 PyThreadState* __tstate = wxPyBeginAllowThreads();
13246 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13247
13248 wxPyEndAllowThreads(__tstate);
13249 if (PyErr_Occurred()) SWIG_fail;
13250 }
13251 Py_INCREF(Py_None); resultobj = Py_None;
13252 {
13253 PyObject *o = PyInt_FromLong((long) (*arg3));
13254 resultobj = t_output_helper(resultobj,o);
13255 }
13256 {
13257 PyObject *o = PyInt_FromLong((long) (*arg4));
13258 resultobj = t_output_helper(resultobj,o);
13259 }
13260 {
13261 PyObject *o = PyInt_FromLong((long) (*arg5));
13262 resultobj = t_output_helper(resultobj,o);
13263 }
13264 {
13265 if (temp2)
13266 delete arg2;
13267 }
13268 return resultobj;
13269 fail:
13270 {
13271 if (temp2)
13272 delete arg2;
13273 }
13274 return NULL;
13275 }
13276
13277
13278 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13279 PyObject *resultobj;
13280 wxDC *arg1 = (wxDC *) 0 ;
13281 wxString *arg2 = 0 ;
13282 wxArrayInt result;
13283 bool temp2 = False ;
13284 PyObject * obj0 = 0 ;
13285 PyObject * obj1 = 0 ;
13286 char *kwnames[] = {
13287 (char *) "self",(char *) "text", NULL
13288 };
13289
13290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13292 {
13293 arg2 = wxString_in_helper(obj1);
13294 if (arg2 == NULL) SWIG_fail;
13295 temp2 = True;
13296 }
13297 {
13298 PyThreadState* __tstate = wxPyBeginAllowThreads();
13299 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13300
13301 wxPyEndAllowThreads(__tstate);
13302 if (PyErr_Occurred()) SWIG_fail;
13303 }
13304 {
13305 resultobj = PyList_New(0);
13306 size_t idx;
13307 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13308 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13309 PyList_Append(resultobj, val);
13310 Py_DECREF(val);
13311 }
13312 }
13313 {
13314 if (temp2)
13315 delete arg2;
13316 }
13317 return resultobj;
13318 fail:
13319 {
13320 if (temp2)
13321 delete arg2;
13322 }
13323 return NULL;
13324 }
13325
13326
13327 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13328 PyObject *resultobj;
13329 wxDC *arg1 = (wxDC *) 0 ;
13330 wxSize result;
13331 PyObject * obj0 = 0 ;
13332 char *kwnames[] = {
13333 (char *) "self", NULL
13334 };
13335
13336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13338 {
13339 PyThreadState* __tstate = wxPyBeginAllowThreads();
13340 result = (arg1)->GetSize();
13341
13342 wxPyEndAllowThreads(__tstate);
13343 if (PyErr_Occurred()) SWIG_fail;
13344 }
13345 {
13346 wxSize * resultptr;
13347 resultptr = new wxSize((wxSize &) result);
13348 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13349 }
13350 return resultobj;
13351 fail:
13352 return NULL;
13353 }
13354
13355
13356 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13357 PyObject *resultobj;
13358 wxDC *arg1 = (wxDC *) 0 ;
13359 int *arg2 = (int *) 0 ;
13360 int *arg3 = (int *) 0 ;
13361 int temp2 ;
13362 int temp3 ;
13363 PyObject * obj0 = 0 ;
13364 char *kwnames[] = {
13365 (char *) "self", NULL
13366 };
13367
13368 arg2 = &temp2;
13369 arg3 = &temp3;
13370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13372 {
13373 PyThreadState* __tstate = wxPyBeginAllowThreads();
13374 (arg1)->GetSize(arg2,arg3);
13375
13376 wxPyEndAllowThreads(__tstate);
13377 if (PyErr_Occurred()) SWIG_fail;
13378 }
13379 Py_INCREF(Py_None); resultobj = Py_None;
13380 {
13381 PyObject *o = PyInt_FromLong((long) (*arg2));
13382 resultobj = t_output_helper(resultobj,o);
13383 }
13384 {
13385 PyObject *o = PyInt_FromLong((long) (*arg3));
13386 resultobj = t_output_helper(resultobj,o);
13387 }
13388 return resultobj;
13389 fail:
13390 return NULL;
13391 }
13392
13393
13394 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13395 PyObject *resultobj;
13396 wxDC *arg1 = (wxDC *) 0 ;
13397 wxSize result;
13398 PyObject * obj0 = 0 ;
13399 char *kwnames[] = {
13400 (char *) "self", NULL
13401 };
13402
13403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13405 {
13406 PyThreadState* __tstate = wxPyBeginAllowThreads();
13407 result = ((wxDC const *)arg1)->GetSizeMM();
13408
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
13412 {
13413 wxSize * resultptr;
13414 resultptr = new wxSize((wxSize &) result);
13415 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13416 }
13417 return resultobj;
13418 fail:
13419 return NULL;
13420 }
13421
13422
13423 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13424 PyObject *resultobj;
13425 wxDC *arg1 = (wxDC *) 0 ;
13426 int *arg2 = (int *) 0 ;
13427 int *arg3 = (int *) 0 ;
13428 int temp2 ;
13429 int temp3 ;
13430 PyObject * obj0 = 0 ;
13431 char *kwnames[] = {
13432 (char *) "self", NULL
13433 };
13434
13435 arg2 = &temp2;
13436 arg3 = &temp3;
13437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13439 {
13440 PyThreadState* __tstate = wxPyBeginAllowThreads();
13441 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13442
13443 wxPyEndAllowThreads(__tstate);
13444 if (PyErr_Occurred()) SWIG_fail;
13445 }
13446 Py_INCREF(Py_None); resultobj = Py_None;
13447 {
13448 PyObject *o = PyInt_FromLong((long) (*arg2));
13449 resultobj = t_output_helper(resultobj,o);
13450 }
13451 {
13452 PyObject *o = PyInt_FromLong((long) (*arg3));
13453 resultobj = t_output_helper(resultobj,o);
13454 }
13455 return resultobj;
13456 fail:
13457 return NULL;
13458 }
13459
13460
13461 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13462 PyObject *resultobj;
13463 wxDC *arg1 = (wxDC *) 0 ;
13464 int arg2 ;
13465 int result;
13466 PyObject * obj0 = 0 ;
13467 PyObject * obj1 = 0 ;
13468 char *kwnames[] = {
13469 (char *) "self",(char *) "x", NULL
13470 };
13471
13472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13474 {
13475 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13476 if (PyErr_Occurred()) SWIG_fail;
13477 }
13478 {
13479 PyThreadState* __tstate = wxPyBeginAllowThreads();
13480 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13481
13482 wxPyEndAllowThreads(__tstate);
13483 if (PyErr_Occurred()) SWIG_fail;
13484 }
13485 resultobj = SWIG_PyObj_FromInt((int)result);
13486 return resultobj;
13487 fail:
13488 return NULL;
13489 }
13490
13491
13492 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13493 PyObject *resultobj;
13494 wxDC *arg1 = (wxDC *) 0 ;
13495 int arg2 ;
13496 int result;
13497 PyObject * obj0 = 0 ;
13498 PyObject * obj1 = 0 ;
13499 char *kwnames[] = {
13500 (char *) "self",(char *) "y", NULL
13501 };
13502
13503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13505 {
13506 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13507 if (PyErr_Occurred()) SWIG_fail;
13508 }
13509 {
13510 PyThreadState* __tstate = wxPyBeginAllowThreads();
13511 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13512
13513 wxPyEndAllowThreads(__tstate);
13514 if (PyErr_Occurred()) SWIG_fail;
13515 }
13516 resultobj = SWIG_PyObj_FromInt((int)result);
13517 return resultobj;
13518 fail:
13519 return NULL;
13520 }
13521
13522
13523 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13524 PyObject *resultobj;
13525 wxDC *arg1 = (wxDC *) 0 ;
13526 int arg2 ;
13527 int result;
13528 PyObject * obj0 = 0 ;
13529 PyObject * obj1 = 0 ;
13530 char *kwnames[] = {
13531 (char *) "self",(char *) "x", NULL
13532 };
13533
13534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13536 {
13537 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13538 if (PyErr_Occurred()) SWIG_fail;
13539 }
13540 {
13541 PyThreadState* __tstate = wxPyBeginAllowThreads();
13542 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13543
13544 wxPyEndAllowThreads(__tstate);
13545 if (PyErr_Occurred()) SWIG_fail;
13546 }
13547 resultobj = SWIG_PyObj_FromInt((int)result);
13548 return resultobj;
13549 fail:
13550 return NULL;
13551 }
13552
13553
13554 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13555 PyObject *resultobj;
13556 wxDC *arg1 = (wxDC *) 0 ;
13557 int arg2 ;
13558 int result;
13559 PyObject * obj0 = 0 ;
13560 PyObject * obj1 = 0 ;
13561 char *kwnames[] = {
13562 (char *) "self",(char *) "y", NULL
13563 };
13564
13565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13567 {
13568 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13569 if (PyErr_Occurred()) SWIG_fail;
13570 }
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13574
13575 wxPyEndAllowThreads(__tstate);
13576 if (PyErr_Occurred()) SWIG_fail;
13577 }
13578 resultobj = SWIG_PyObj_FromInt((int)result);
13579 return resultobj;
13580 fail:
13581 return NULL;
13582 }
13583
13584
13585 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13586 PyObject *resultobj;
13587 wxDC *arg1 = (wxDC *) 0 ;
13588 int arg2 ;
13589 int result;
13590 PyObject * obj0 = 0 ;
13591 PyObject * obj1 = 0 ;
13592 char *kwnames[] = {
13593 (char *) "self",(char *) "x", NULL
13594 };
13595
13596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13598 {
13599 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13600 if (PyErr_Occurred()) SWIG_fail;
13601 }
13602 {
13603 PyThreadState* __tstate = wxPyBeginAllowThreads();
13604 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13605
13606 wxPyEndAllowThreads(__tstate);
13607 if (PyErr_Occurred()) SWIG_fail;
13608 }
13609 resultobj = SWIG_PyObj_FromInt((int)result);
13610 return resultobj;
13611 fail:
13612 return NULL;
13613 }
13614
13615
13616 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13617 PyObject *resultobj;
13618 wxDC *arg1 = (wxDC *) 0 ;
13619 int arg2 ;
13620 int result;
13621 PyObject * obj0 = 0 ;
13622 PyObject * obj1 = 0 ;
13623 char *kwnames[] = {
13624 (char *) "self",(char *) "y", NULL
13625 };
13626
13627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13629 {
13630 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 {
13634 PyThreadState* __tstate = wxPyBeginAllowThreads();
13635 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13636
13637 wxPyEndAllowThreads(__tstate);
13638 if (PyErr_Occurred()) SWIG_fail;
13639 }
13640 resultobj = SWIG_PyObj_FromInt((int)result);
13641 return resultobj;
13642 fail:
13643 return NULL;
13644 }
13645
13646
13647 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13648 PyObject *resultobj;
13649 wxDC *arg1 = (wxDC *) 0 ;
13650 int arg2 ;
13651 int result;
13652 PyObject * obj0 = 0 ;
13653 PyObject * obj1 = 0 ;
13654 char *kwnames[] = {
13655 (char *) "self",(char *) "x", NULL
13656 };
13657
13658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13660 {
13661 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13667
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 resultobj = SWIG_PyObj_FromInt((int)result);
13672 return resultobj;
13673 fail:
13674 return NULL;
13675 }
13676
13677
13678 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj;
13680 wxDC *arg1 = (wxDC *) 0 ;
13681 int arg2 ;
13682 int result;
13683 PyObject * obj0 = 0 ;
13684 PyObject * obj1 = 0 ;
13685 char *kwnames[] = {
13686 (char *) "self",(char *) "y", NULL
13687 };
13688
13689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13691 {
13692 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13693 if (PyErr_Occurred()) SWIG_fail;
13694 }
13695 {
13696 PyThreadState* __tstate = wxPyBeginAllowThreads();
13697 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13698
13699 wxPyEndAllowThreads(__tstate);
13700 if (PyErr_Occurred()) SWIG_fail;
13701 }
13702 resultobj = SWIG_PyObj_FromInt((int)result);
13703 return resultobj;
13704 fail:
13705 return NULL;
13706 }
13707
13708
13709 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13710 PyObject *resultobj;
13711 wxDC *arg1 = (wxDC *) 0 ;
13712 bool result;
13713 PyObject * obj0 = 0 ;
13714 char *kwnames[] = {
13715 (char *) "self", NULL
13716 };
13717
13718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13720 {
13721 PyThreadState* __tstate = wxPyBeginAllowThreads();
13722 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13723
13724 wxPyEndAllowThreads(__tstate);
13725 if (PyErr_Occurred()) SWIG_fail;
13726 }
13727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13728 return resultobj;
13729 fail:
13730 return NULL;
13731 }
13732
13733
13734 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13735 PyObject *resultobj;
13736 wxDC *arg1 = (wxDC *) 0 ;
13737 bool result;
13738 PyObject * obj0 = 0 ;
13739 char *kwnames[] = {
13740 (char *) "self", NULL
13741 };
13742
13743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13745 {
13746 PyThreadState* __tstate = wxPyBeginAllowThreads();
13747 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13748
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13753 return resultobj;
13754 fail:
13755 return NULL;
13756 }
13757
13758
13759 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13760 PyObject *resultobj;
13761 wxDC *arg1 = (wxDC *) 0 ;
13762 int result;
13763 PyObject * obj0 = 0 ;
13764 char *kwnames[] = {
13765 (char *) "self", NULL
13766 };
13767
13768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13770 {
13771 PyThreadState* __tstate = wxPyBeginAllowThreads();
13772 result = (int)((wxDC const *)arg1)->GetDepth();
13773
13774 wxPyEndAllowThreads(__tstate);
13775 if (PyErr_Occurred()) SWIG_fail;
13776 }
13777 resultobj = SWIG_PyObj_FromInt((int)result);
13778 return resultobj;
13779 fail:
13780 return NULL;
13781 }
13782
13783
13784 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13785 PyObject *resultobj;
13786 wxDC *arg1 = (wxDC *) 0 ;
13787 wxSize result;
13788 PyObject * obj0 = 0 ;
13789 char *kwnames[] = {
13790 (char *) "self", NULL
13791 };
13792
13793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13795 {
13796 PyThreadState* __tstate = wxPyBeginAllowThreads();
13797 result = ((wxDC const *)arg1)->GetPPI();
13798
13799 wxPyEndAllowThreads(__tstate);
13800 if (PyErr_Occurred()) SWIG_fail;
13801 }
13802 {
13803 wxSize * resultptr;
13804 resultptr = new wxSize((wxSize &) result);
13805 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13806 }
13807 return resultobj;
13808 fail:
13809 return NULL;
13810 }
13811
13812
13813 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13814 PyObject *resultobj;
13815 wxDC *arg1 = (wxDC *) 0 ;
13816 bool result;
13817 PyObject * obj0 = 0 ;
13818 char *kwnames[] = {
13819 (char *) "self", NULL
13820 };
13821
13822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13824 {
13825 PyThreadState* __tstate = wxPyBeginAllowThreads();
13826 result = (bool)((wxDC const *)arg1)->Ok();
13827
13828 wxPyEndAllowThreads(__tstate);
13829 if (PyErr_Occurred()) SWIG_fail;
13830 }
13831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13832 return resultobj;
13833 fail:
13834 return NULL;
13835 }
13836
13837
13838 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13839 PyObject *resultobj;
13840 wxDC *arg1 = (wxDC *) 0 ;
13841 int result;
13842 PyObject * obj0 = 0 ;
13843 char *kwnames[] = {
13844 (char *) "self", NULL
13845 };
13846
13847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13849 {
13850 PyThreadState* __tstate = wxPyBeginAllowThreads();
13851 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13852
13853 wxPyEndAllowThreads(__tstate);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
13856 resultobj = SWIG_PyObj_FromInt((int)result);
13857 return resultobj;
13858 fail:
13859 return NULL;
13860 }
13861
13862
13863 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13864 PyObject *resultobj;
13865 wxDC *arg1 = (wxDC *) 0 ;
13866 wxBrush *result;
13867 PyObject * obj0 = 0 ;
13868 char *kwnames[] = {
13869 (char *) "self", NULL
13870 };
13871
13872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13874 {
13875 PyThreadState* __tstate = wxPyBeginAllowThreads();
13876 {
13877 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13878 result = (wxBrush *) &_result_ref;
13879 }
13880
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13885 return resultobj;
13886 fail:
13887 return NULL;
13888 }
13889
13890
13891 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13892 PyObject *resultobj;
13893 wxDC *arg1 = (wxDC *) 0 ;
13894 wxBrush *result;
13895 PyObject * obj0 = 0 ;
13896 char *kwnames[] = {
13897 (char *) "self", NULL
13898 };
13899
13900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13902 {
13903 PyThreadState* __tstate = wxPyBeginAllowThreads();
13904 {
13905 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13906 result = (wxBrush *) &_result_ref;
13907 }
13908
13909 wxPyEndAllowThreads(__tstate);
13910 if (PyErr_Occurred()) SWIG_fail;
13911 }
13912 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13913 return resultobj;
13914 fail:
13915 return NULL;
13916 }
13917
13918
13919 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13920 PyObject *resultobj;
13921 wxDC *arg1 = (wxDC *) 0 ;
13922 wxFont *result;
13923 PyObject * obj0 = 0 ;
13924 char *kwnames[] = {
13925 (char *) "self", NULL
13926 };
13927
13928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13930 {
13931 PyThreadState* __tstate = wxPyBeginAllowThreads();
13932 {
13933 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13934 result = (wxFont *) &_result_ref;
13935 }
13936
13937 wxPyEndAllowThreads(__tstate);
13938 if (PyErr_Occurred()) SWIG_fail;
13939 }
13940 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
13941 return resultobj;
13942 fail:
13943 return NULL;
13944 }
13945
13946
13947 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13948 PyObject *resultobj;
13949 wxDC *arg1 = (wxDC *) 0 ;
13950 wxPen *result;
13951 PyObject * obj0 = 0 ;
13952 char *kwnames[] = {
13953 (char *) "self", NULL
13954 };
13955
13956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13958 {
13959 PyThreadState* __tstate = wxPyBeginAllowThreads();
13960 {
13961 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13962 result = (wxPen *) &_result_ref;
13963 }
13964
13965 wxPyEndAllowThreads(__tstate);
13966 if (PyErr_Occurred()) SWIG_fail;
13967 }
13968 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
13969 return resultobj;
13970 fail:
13971 return NULL;
13972 }
13973
13974
13975 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13976 PyObject *resultobj;
13977 wxDC *arg1 = (wxDC *) 0 ;
13978 wxColour *result;
13979 PyObject * obj0 = 0 ;
13980 char *kwnames[] = {
13981 (char *) "self", NULL
13982 };
13983
13984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13986 {
13987 PyThreadState* __tstate = wxPyBeginAllowThreads();
13988 {
13989 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13990 result = (wxColour *) &_result_ref;
13991 }
13992
13993 wxPyEndAllowThreads(__tstate);
13994 if (PyErr_Occurred()) SWIG_fail;
13995 }
13996 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13997 return resultobj;
13998 fail:
13999 return NULL;
14000 }
14001
14002
14003 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14004 PyObject *resultobj;
14005 wxDC *arg1 = (wxDC *) 0 ;
14006 wxColour *result;
14007 PyObject * obj0 = 0 ;
14008 char *kwnames[] = {
14009 (char *) "self", NULL
14010 };
14011
14012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14014 {
14015 PyThreadState* __tstate = wxPyBeginAllowThreads();
14016 {
14017 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14018 result = (wxColour *) &_result_ref;
14019 }
14020
14021 wxPyEndAllowThreads(__tstate);
14022 if (PyErr_Occurred()) SWIG_fail;
14023 }
14024 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
14025 return resultobj;
14026 fail:
14027 return NULL;
14028 }
14029
14030
14031 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14032 PyObject *resultobj;
14033 wxDC *arg1 = (wxDC *) 0 ;
14034 wxColour *arg2 = 0 ;
14035 wxColour temp2 ;
14036 PyObject * obj0 = 0 ;
14037 PyObject * obj1 = 0 ;
14038 char *kwnames[] = {
14039 (char *) "self",(char *) "colour", NULL
14040 };
14041
14042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14044 {
14045 arg2 = &temp2;
14046 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14047 }
14048 {
14049 PyThreadState* __tstate = wxPyBeginAllowThreads();
14050 (arg1)->SetTextForeground((wxColour const &)*arg2);
14051
14052 wxPyEndAllowThreads(__tstate);
14053 if (PyErr_Occurred()) SWIG_fail;
14054 }
14055 Py_INCREF(Py_None); resultobj = Py_None;
14056 return resultobj;
14057 fail:
14058 return NULL;
14059 }
14060
14061
14062 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14063 PyObject *resultobj;
14064 wxDC *arg1 = (wxDC *) 0 ;
14065 wxColour *arg2 = 0 ;
14066 wxColour temp2 ;
14067 PyObject * obj0 = 0 ;
14068 PyObject * obj1 = 0 ;
14069 char *kwnames[] = {
14070 (char *) "self",(char *) "colour", NULL
14071 };
14072
14073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14075 {
14076 arg2 = &temp2;
14077 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14078 }
14079 {
14080 PyThreadState* __tstate = wxPyBeginAllowThreads();
14081 (arg1)->SetTextBackground((wxColour const &)*arg2);
14082
14083 wxPyEndAllowThreads(__tstate);
14084 if (PyErr_Occurred()) SWIG_fail;
14085 }
14086 Py_INCREF(Py_None); resultobj = Py_None;
14087 return resultobj;
14088 fail:
14089 return NULL;
14090 }
14091
14092
14093 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14094 PyObject *resultobj;
14095 wxDC *arg1 = (wxDC *) 0 ;
14096 int result;
14097 PyObject * obj0 = 0 ;
14098 char *kwnames[] = {
14099 (char *) "self", NULL
14100 };
14101
14102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14104 {
14105 PyThreadState* __tstate = wxPyBeginAllowThreads();
14106 result = (int)((wxDC const *)arg1)->GetMapMode();
14107
14108 wxPyEndAllowThreads(__tstate);
14109 if (PyErr_Occurred()) SWIG_fail;
14110 }
14111 resultobj = SWIG_PyObj_FromInt((int)result);
14112 return resultobj;
14113 fail:
14114 return NULL;
14115 }
14116
14117
14118 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14119 PyObject *resultobj;
14120 wxDC *arg1 = (wxDC *) 0 ;
14121 int arg2 ;
14122 PyObject * obj0 = 0 ;
14123 PyObject * obj1 = 0 ;
14124 char *kwnames[] = {
14125 (char *) "self",(char *) "mode", NULL
14126 };
14127
14128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14130 {
14131 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14132 if (PyErr_Occurred()) SWIG_fail;
14133 }
14134 {
14135 PyThreadState* __tstate = wxPyBeginAllowThreads();
14136 (arg1)->SetMapMode(arg2);
14137
14138 wxPyEndAllowThreads(__tstate);
14139 if (PyErr_Occurred()) SWIG_fail;
14140 }
14141 Py_INCREF(Py_None); resultobj = Py_None;
14142 return resultobj;
14143 fail:
14144 return NULL;
14145 }
14146
14147
14148 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14149 PyObject *resultobj;
14150 wxDC *arg1 = (wxDC *) 0 ;
14151 double *arg2 = (double *) 0 ;
14152 double *arg3 = (double *) 0 ;
14153 double temp2 ;
14154 double temp3 ;
14155 PyObject * obj0 = 0 ;
14156 char *kwnames[] = {
14157 (char *) "self", NULL
14158 };
14159
14160 arg2 = &temp2;
14161 arg3 = &temp3;
14162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14164 {
14165 PyThreadState* __tstate = wxPyBeginAllowThreads();
14166 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14167
14168 wxPyEndAllowThreads(__tstate);
14169 if (PyErr_Occurred()) SWIG_fail;
14170 }
14171 Py_INCREF(Py_None); resultobj = Py_None;
14172 {
14173 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14174 resultobj = t_output_helper(resultobj,o);
14175 }
14176 {
14177 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14178 resultobj = t_output_helper(resultobj,o);
14179 }
14180 return resultobj;
14181 fail:
14182 return NULL;
14183 }
14184
14185
14186 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14187 PyObject *resultobj;
14188 wxDC *arg1 = (wxDC *) 0 ;
14189 double arg2 ;
14190 double arg3 ;
14191 PyObject * obj0 = 0 ;
14192 PyObject * obj1 = 0 ;
14193 PyObject * obj2 = 0 ;
14194 char *kwnames[] = {
14195 (char *) "self",(char *) "x",(char *) "y", NULL
14196 };
14197
14198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14200 {
14201 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
14202 if (PyErr_Occurred()) SWIG_fail;
14203 }
14204 {
14205 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
14206 if (PyErr_Occurred()) SWIG_fail;
14207 }
14208 {
14209 PyThreadState* __tstate = wxPyBeginAllowThreads();
14210 (arg1)->SetUserScale(arg2,arg3);
14211
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 Py_INCREF(Py_None); resultobj = Py_None;
14216 return resultobj;
14217 fail:
14218 return NULL;
14219 }
14220
14221
14222 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14223 PyObject *resultobj;
14224 wxDC *arg1 = (wxDC *) 0 ;
14225 double *arg2 = (double *) 0 ;
14226 double *arg3 = (double *) 0 ;
14227 double temp2 ;
14228 double temp3 ;
14229 PyObject * obj0 = 0 ;
14230 char *kwnames[] = {
14231 (char *) "self", NULL
14232 };
14233
14234 arg2 = &temp2;
14235 arg3 = &temp3;
14236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14238 {
14239 PyThreadState* __tstate = wxPyBeginAllowThreads();
14240 (arg1)->GetLogicalScale(arg2,arg3);
14241
14242 wxPyEndAllowThreads(__tstate);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 }
14245 Py_INCREF(Py_None); resultobj = Py_None;
14246 {
14247 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14248 resultobj = t_output_helper(resultobj,o);
14249 }
14250 {
14251 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14252 resultobj = t_output_helper(resultobj,o);
14253 }
14254 return resultobj;
14255 fail:
14256 return NULL;
14257 }
14258
14259
14260 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14261 PyObject *resultobj;
14262 wxDC *arg1 = (wxDC *) 0 ;
14263 double arg2 ;
14264 double arg3 ;
14265 PyObject * obj0 = 0 ;
14266 PyObject * obj1 = 0 ;
14267 PyObject * obj2 = 0 ;
14268 char *kwnames[] = {
14269 (char *) "self",(char *) "x",(char *) "y", NULL
14270 };
14271
14272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14274 {
14275 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
14276 if (PyErr_Occurred()) SWIG_fail;
14277 }
14278 {
14279 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 {
14283 PyThreadState* __tstate = wxPyBeginAllowThreads();
14284 (arg1)->SetLogicalScale(arg2,arg3);
14285
14286 wxPyEndAllowThreads(__tstate);
14287 if (PyErr_Occurred()) SWIG_fail;
14288 }
14289 Py_INCREF(Py_None); resultobj = Py_None;
14290 return resultobj;
14291 fail:
14292 return NULL;
14293 }
14294
14295
14296 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14297 PyObject *resultobj;
14298 wxDC *arg1 = (wxDC *) 0 ;
14299 wxPoint result;
14300 PyObject * obj0 = 0 ;
14301 char *kwnames[] = {
14302 (char *) "self", NULL
14303 };
14304
14305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14307 {
14308 PyThreadState* __tstate = wxPyBeginAllowThreads();
14309 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14310
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 {
14315 wxPoint * resultptr;
14316 resultptr = new wxPoint((wxPoint &) result);
14317 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
14318 }
14319 return resultobj;
14320 fail:
14321 return NULL;
14322 }
14323
14324
14325 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14326 PyObject *resultobj;
14327 wxDC *arg1 = (wxDC *) 0 ;
14328 int *arg2 = (int *) 0 ;
14329 int *arg3 = (int *) 0 ;
14330 int temp2 ;
14331 int temp3 ;
14332 PyObject * obj0 = 0 ;
14333 char *kwnames[] = {
14334 (char *) "self", NULL
14335 };
14336
14337 arg2 = &temp2;
14338 arg3 = &temp3;
14339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14341 {
14342 PyThreadState* __tstate = wxPyBeginAllowThreads();
14343 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14344
14345 wxPyEndAllowThreads(__tstate);
14346 if (PyErr_Occurred()) SWIG_fail;
14347 }
14348 Py_INCREF(Py_None); resultobj = Py_None;
14349 {
14350 PyObject *o = PyInt_FromLong((long) (*arg2));
14351 resultobj = t_output_helper(resultobj,o);
14352 }
14353 {
14354 PyObject *o = PyInt_FromLong((long) (*arg3));
14355 resultobj = t_output_helper(resultobj,o);
14356 }
14357 return resultobj;
14358 fail:
14359 return NULL;
14360 }
14361
14362
14363 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14364 PyObject *resultobj;
14365 wxDC *arg1 = (wxDC *) 0 ;
14366 int arg2 ;
14367 int arg3 ;
14368 PyObject * obj0 = 0 ;
14369 PyObject * obj1 = 0 ;
14370 PyObject * obj2 = 0 ;
14371 char *kwnames[] = {
14372 (char *) "self",(char *) "x",(char *) "y", NULL
14373 };
14374
14375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14376 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14377 {
14378 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14379 if (PyErr_Occurred()) SWIG_fail;
14380 }
14381 {
14382 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14383 if (PyErr_Occurred()) SWIG_fail;
14384 }
14385 {
14386 PyThreadState* __tstate = wxPyBeginAllowThreads();
14387 (arg1)->SetLogicalOrigin(arg2,arg3);
14388
14389 wxPyEndAllowThreads(__tstate);
14390 if (PyErr_Occurred()) SWIG_fail;
14391 }
14392 Py_INCREF(Py_None); resultobj = Py_None;
14393 return resultobj;
14394 fail:
14395 return NULL;
14396 }
14397
14398
14399 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14400 PyObject *resultobj;
14401 wxDC *arg1 = (wxDC *) 0 ;
14402 wxPoint result;
14403 PyObject * obj0 = 0 ;
14404 char *kwnames[] = {
14405 (char *) "self", NULL
14406 };
14407
14408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14409 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14410 {
14411 PyThreadState* __tstate = wxPyBeginAllowThreads();
14412 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14413
14414 wxPyEndAllowThreads(__tstate);
14415 if (PyErr_Occurred()) SWIG_fail;
14416 }
14417 {
14418 wxPoint * resultptr;
14419 resultptr = new wxPoint((wxPoint &) result);
14420 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
14421 }
14422 return resultobj;
14423 fail:
14424 return NULL;
14425 }
14426
14427
14428 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14429 PyObject *resultobj;
14430 wxDC *arg1 = (wxDC *) 0 ;
14431 int *arg2 = (int *) 0 ;
14432 int *arg3 = (int *) 0 ;
14433 int temp2 ;
14434 int temp3 ;
14435 PyObject * obj0 = 0 ;
14436 char *kwnames[] = {
14437 (char *) "self", NULL
14438 };
14439
14440 arg2 = &temp2;
14441 arg3 = &temp3;
14442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14444 {
14445 PyThreadState* __tstate = wxPyBeginAllowThreads();
14446 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14447
14448 wxPyEndAllowThreads(__tstate);
14449 if (PyErr_Occurred()) SWIG_fail;
14450 }
14451 Py_INCREF(Py_None); resultobj = Py_None;
14452 {
14453 PyObject *o = PyInt_FromLong((long) (*arg2));
14454 resultobj = t_output_helper(resultobj,o);
14455 }
14456 {
14457 PyObject *o = PyInt_FromLong((long) (*arg3));
14458 resultobj = t_output_helper(resultobj,o);
14459 }
14460 return resultobj;
14461 fail:
14462 return NULL;
14463 }
14464
14465
14466 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14467 PyObject *resultobj;
14468 wxDC *arg1 = (wxDC *) 0 ;
14469 int arg2 ;
14470 int arg3 ;
14471 PyObject * obj0 = 0 ;
14472 PyObject * obj1 = 0 ;
14473 PyObject * obj2 = 0 ;
14474 char *kwnames[] = {
14475 (char *) "self",(char *) "x",(char *) "y", NULL
14476 };
14477
14478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14480 {
14481 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14482 if (PyErr_Occurred()) SWIG_fail;
14483 }
14484 {
14485 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14486 if (PyErr_Occurred()) SWIG_fail;
14487 }
14488 {
14489 PyThreadState* __tstate = wxPyBeginAllowThreads();
14490 (arg1)->SetDeviceOrigin(arg2,arg3);
14491
14492 wxPyEndAllowThreads(__tstate);
14493 if (PyErr_Occurred()) SWIG_fail;
14494 }
14495 Py_INCREF(Py_None); resultobj = Py_None;
14496 return resultobj;
14497 fail:
14498 return NULL;
14499 }
14500
14501
14502 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14503 PyObject *resultobj;
14504 wxDC *arg1 = (wxDC *) 0 ;
14505 bool arg2 ;
14506 bool arg3 ;
14507 PyObject * obj0 = 0 ;
14508 PyObject * obj1 = 0 ;
14509 PyObject * obj2 = 0 ;
14510 char *kwnames[] = {
14511 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14512 };
14513
14514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14516 {
14517 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14518 if (PyErr_Occurred()) SWIG_fail;
14519 }
14520 {
14521 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
14522 if (PyErr_Occurred()) SWIG_fail;
14523 }
14524 {
14525 PyThreadState* __tstate = wxPyBeginAllowThreads();
14526 (arg1)->SetAxisOrientation(arg2,arg3);
14527
14528 wxPyEndAllowThreads(__tstate);
14529 if (PyErr_Occurred()) SWIG_fail;
14530 }
14531 Py_INCREF(Py_None); resultobj = Py_None;
14532 return resultobj;
14533 fail:
14534 return NULL;
14535 }
14536
14537
14538 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14539 PyObject *resultobj;
14540 wxDC *arg1 = (wxDC *) 0 ;
14541 int result;
14542 PyObject * obj0 = 0 ;
14543 char *kwnames[] = {
14544 (char *) "self", NULL
14545 };
14546
14547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14548 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14549 {
14550 PyThreadState* __tstate = wxPyBeginAllowThreads();
14551 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14552
14553 wxPyEndAllowThreads(__tstate);
14554 if (PyErr_Occurred()) SWIG_fail;
14555 }
14556 resultobj = SWIG_PyObj_FromInt((int)result);
14557 return resultobj;
14558 fail:
14559 return NULL;
14560 }
14561
14562
14563 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14564 PyObject *resultobj;
14565 wxDC *arg1 = (wxDC *) 0 ;
14566 int arg2 ;
14567 PyObject * obj0 = 0 ;
14568 PyObject * obj1 = 0 ;
14569 char *kwnames[] = {
14570 (char *) "self",(char *) "function", NULL
14571 };
14572
14573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14575 {
14576 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14577 if (PyErr_Occurred()) SWIG_fail;
14578 }
14579 {
14580 PyThreadState* __tstate = wxPyBeginAllowThreads();
14581 (arg1)->SetLogicalFunction(arg2);
14582
14583 wxPyEndAllowThreads(__tstate);
14584 if (PyErr_Occurred()) SWIG_fail;
14585 }
14586 Py_INCREF(Py_None); resultobj = Py_None;
14587 return resultobj;
14588 fail:
14589 return NULL;
14590 }
14591
14592
14593 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14594 PyObject *resultobj;
14595 wxDC *arg1 = (wxDC *) 0 ;
14596 bool arg2 ;
14597 PyObject * obj0 = 0 ;
14598 PyObject * obj1 = 0 ;
14599 char *kwnames[] = {
14600 (char *) "self",(char *) "opt", NULL
14601 };
14602
14603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14605 {
14606 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14607 if (PyErr_Occurred()) SWIG_fail;
14608 }
14609 {
14610 PyThreadState* __tstate = wxPyBeginAllowThreads();
14611 (arg1)->SetOptimization(arg2);
14612
14613 wxPyEndAllowThreads(__tstate);
14614 if (PyErr_Occurred()) SWIG_fail;
14615 }
14616 Py_INCREF(Py_None); resultobj = Py_None;
14617 return resultobj;
14618 fail:
14619 return NULL;
14620 }
14621
14622
14623 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14624 PyObject *resultobj;
14625 wxDC *arg1 = (wxDC *) 0 ;
14626 bool result;
14627 PyObject * obj0 = 0 ;
14628 char *kwnames[] = {
14629 (char *) "self", NULL
14630 };
14631
14632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 result = (bool)(arg1)->GetOptimization();
14637
14638 wxPyEndAllowThreads(__tstate);
14639 if (PyErr_Occurred()) SWIG_fail;
14640 }
14641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14642 return resultobj;
14643 fail:
14644 return NULL;
14645 }
14646
14647
14648 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14649 PyObject *resultobj;
14650 wxDC *arg1 = (wxDC *) 0 ;
14651 int arg2 ;
14652 int arg3 ;
14653 PyObject * obj0 = 0 ;
14654 PyObject * obj1 = 0 ;
14655 PyObject * obj2 = 0 ;
14656 char *kwnames[] = {
14657 (char *) "self",(char *) "x",(char *) "y", NULL
14658 };
14659
14660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14662 {
14663 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14664 if (PyErr_Occurred()) SWIG_fail;
14665 }
14666 {
14667 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14668 if (PyErr_Occurred()) SWIG_fail;
14669 }
14670 {
14671 PyThreadState* __tstate = wxPyBeginAllowThreads();
14672 (arg1)->CalcBoundingBox(arg2,arg3);
14673
14674 wxPyEndAllowThreads(__tstate);
14675 if (PyErr_Occurred()) SWIG_fail;
14676 }
14677 Py_INCREF(Py_None); resultobj = Py_None;
14678 return resultobj;
14679 fail:
14680 return NULL;
14681 }
14682
14683
14684 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14685 PyObject *resultobj;
14686 wxDC *arg1 = (wxDC *) 0 ;
14687 PyObject * obj0 = 0 ;
14688 char *kwnames[] = {
14689 (char *) "self", NULL
14690 };
14691
14692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14694 {
14695 PyThreadState* __tstate = wxPyBeginAllowThreads();
14696 (arg1)->ResetBoundingBox();
14697
14698 wxPyEndAllowThreads(__tstate);
14699 if (PyErr_Occurred()) SWIG_fail;
14700 }
14701 Py_INCREF(Py_None); resultobj = Py_None;
14702 return resultobj;
14703 fail:
14704 return NULL;
14705 }
14706
14707
14708 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14709 PyObject *resultobj;
14710 wxDC *arg1 = (wxDC *) 0 ;
14711 int result;
14712 PyObject * obj0 = 0 ;
14713 char *kwnames[] = {
14714 (char *) "self", NULL
14715 };
14716
14717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14719 {
14720 PyThreadState* __tstate = wxPyBeginAllowThreads();
14721 result = (int)((wxDC const *)arg1)->MinX();
14722
14723 wxPyEndAllowThreads(__tstate);
14724 if (PyErr_Occurred()) SWIG_fail;
14725 }
14726 resultobj = SWIG_PyObj_FromInt((int)result);
14727 return resultobj;
14728 fail:
14729 return NULL;
14730 }
14731
14732
14733 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14734 PyObject *resultobj;
14735 wxDC *arg1 = (wxDC *) 0 ;
14736 int result;
14737 PyObject * obj0 = 0 ;
14738 char *kwnames[] = {
14739 (char *) "self", NULL
14740 };
14741
14742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 result = (int)((wxDC const *)arg1)->MaxX();
14747
14748 wxPyEndAllowThreads(__tstate);
14749 if (PyErr_Occurred()) SWIG_fail;
14750 }
14751 resultobj = SWIG_PyObj_FromInt((int)result);
14752 return resultobj;
14753 fail:
14754 return NULL;
14755 }
14756
14757
14758 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14759 PyObject *resultobj;
14760 wxDC *arg1 = (wxDC *) 0 ;
14761 int result;
14762 PyObject * obj0 = 0 ;
14763 char *kwnames[] = {
14764 (char *) "self", NULL
14765 };
14766
14767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14769 {
14770 PyThreadState* __tstate = wxPyBeginAllowThreads();
14771 result = (int)((wxDC const *)arg1)->MinY();
14772
14773 wxPyEndAllowThreads(__tstate);
14774 if (PyErr_Occurred()) SWIG_fail;
14775 }
14776 resultobj = SWIG_PyObj_FromInt((int)result);
14777 return resultobj;
14778 fail:
14779 return NULL;
14780 }
14781
14782
14783 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14784 PyObject *resultobj;
14785 wxDC *arg1 = (wxDC *) 0 ;
14786 int result;
14787 PyObject * obj0 = 0 ;
14788 char *kwnames[] = {
14789 (char *) "self", NULL
14790 };
14791
14792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14794 {
14795 PyThreadState* __tstate = wxPyBeginAllowThreads();
14796 result = (int)((wxDC const *)arg1)->MaxY();
14797
14798 wxPyEndAllowThreads(__tstate);
14799 if (PyErr_Occurred()) SWIG_fail;
14800 }
14801 resultobj = SWIG_PyObj_FromInt((int)result);
14802 return resultobj;
14803 fail:
14804 return NULL;
14805 }
14806
14807
14808 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14809 PyObject *resultobj;
14810 wxDC *arg1 = (wxDC *) 0 ;
14811 int *arg2 = (int *) 0 ;
14812 int *arg3 = (int *) 0 ;
14813 int *arg4 = (int *) 0 ;
14814 int *arg5 = (int *) 0 ;
14815 int temp2 ;
14816 int temp3 ;
14817 int temp4 ;
14818 int temp5 ;
14819 PyObject * obj0 = 0 ;
14820 char *kwnames[] = {
14821 (char *) "self", NULL
14822 };
14823
14824 arg2 = &temp2;
14825 arg3 = &temp3;
14826 arg4 = &temp4;
14827 arg5 = &temp5;
14828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14830 {
14831 PyThreadState* __tstate = wxPyBeginAllowThreads();
14832 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14833
14834 wxPyEndAllowThreads(__tstate);
14835 if (PyErr_Occurred()) SWIG_fail;
14836 }
14837 Py_INCREF(Py_None); resultobj = Py_None;
14838 {
14839 PyObject *o = PyInt_FromLong((long) (*arg2));
14840 resultobj = t_output_helper(resultobj,o);
14841 }
14842 {
14843 PyObject *o = PyInt_FromLong((long) (*arg3));
14844 resultobj = t_output_helper(resultobj,o);
14845 }
14846 {
14847 PyObject *o = PyInt_FromLong((long) (*arg4));
14848 resultobj = t_output_helper(resultobj,o);
14849 }
14850 {
14851 PyObject *o = PyInt_FromLong((long) (*arg5));
14852 resultobj = t_output_helper(resultobj,o);
14853 }
14854 return resultobj;
14855 fail:
14856 return NULL;
14857 }
14858
14859
14860 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14861 PyObject *resultobj;
14862 wxDC *arg1 = (wxDC *) 0 ;
14863 PyObject *arg2 = (PyObject *) 0 ;
14864 PyObject *arg3 = (PyObject *) 0 ;
14865 PyObject *arg4 = (PyObject *) 0 ;
14866 PyObject *result;
14867 PyObject * obj0 = 0 ;
14868 PyObject * obj1 = 0 ;
14869 PyObject * obj2 = 0 ;
14870 PyObject * obj3 = 0 ;
14871 char *kwnames[] = {
14872 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14873 };
14874
14875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14877 arg2 = obj1;
14878 arg3 = obj2;
14879 arg4 = obj3;
14880 {
14881 PyThreadState* __tstate = wxPyBeginAllowThreads();
14882 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14883
14884 wxPyEndAllowThreads(__tstate);
14885 if (PyErr_Occurred()) SWIG_fail;
14886 }
14887 resultobj = result;
14888 return resultobj;
14889 fail:
14890 return NULL;
14891 }
14892
14893
14894 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14895 PyObject *resultobj;
14896 wxDC *arg1 = (wxDC *) 0 ;
14897 PyObject *arg2 = (PyObject *) 0 ;
14898 PyObject *arg3 = (PyObject *) 0 ;
14899 PyObject *arg4 = (PyObject *) 0 ;
14900 PyObject *result;
14901 PyObject * obj0 = 0 ;
14902 PyObject * obj1 = 0 ;
14903 PyObject * obj2 = 0 ;
14904 PyObject * obj3 = 0 ;
14905 char *kwnames[] = {
14906 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14907 };
14908
14909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14911 arg2 = obj1;
14912 arg3 = obj2;
14913 arg4 = obj3;
14914 {
14915 PyThreadState* __tstate = wxPyBeginAllowThreads();
14916 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14917
14918 wxPyEndAllowThreads(__tstate);
14919 if (PyErr_Occurred()) SWIG_fail;
14920 }
14921 resultobj = result;
14922 return resultobj;
14923 fail:
14924 return NULL;
14925 }
14926
14927
14928 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14929 PyObject *resultobj;
14930 wxDC *arg1 = (wxDC *) 0 ;
14931 PyObject *arg2 = (PyObject *) 0 ;
14932 PyObject *arg3 = (PyObject *) 0 ;
14933 PyObject *arg4 = (PyObject *) 0 ;
14934 PyObject *result;
14935 PyObject * obj0 = 0 ;
14936 PyObject * obj1 = 0 ;
14937 PyObject * obj2 = 0 ;
14938 PyObject * obj3 = 0 ;
14939 char *kwnames[] = {
14940 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14941 };
14942
14943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14945 arg2 = obj1;
14946 arg3 = obj2;
14947 arg4 = obj3;
14948 {
14949 PyThreadState* __tstate = wxPyBeginAllowThreads();
14950 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14951
14952 wxPyEndAllowThreads(__tstate);
14953 if (PyErr_Occurred()) SWIG_fail;
14954 }
14955 resultobj = result;
14956 return resultobj;
14957 fail:
14958 return NULL;
14959 }
14960
14961
14962 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14963 PyObject *resultobj;
14964 wxDC *arg1 = (wxDC *) 0 ;
14965 PyObject *arg2 = (PyObject *) 0 ;
14966 PyObject *arg3 = (PyObject *) 0 ;
14967 PyObject *arg4 = (PyObject *) 0 ;
14968 PyObject *result;
14969 PyObject * obj0 = 0 ;
14970 PyObject * obj1 = 0 ;
14971 PyObject * obj2 = 0 ;
14972 PyObject * obj3 = 0 ;
14973 char *kwnames[] = {
14974 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14975 };
14976
14977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14979 arg2 = obj1;
14980 arg3 = obj2;
14981 arg4 = obj3;
14982 {
14983 PyThreadState* __tstate = wxPyBeginAllowThreads();
14984 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14985
14986 wxPyEndAllowThreads(__tstate);
14987 if (PyErr_Occurred()) SWIG_fail;
14988 }
14989 resultobj = result;
14990 return resultobj;
14991 fail:
14992 return NULL;
14993 }
14994
14995
14996 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14997 PyObject *resultobj;
14998 wxDC *arg1 = (wxDC *) 0 ;
14999 PyObject *arg2 = (PyObject *) 0 ;
15000 PyObject *arg3 = (PyObject *) 0 ;
15001 PyObject *arg4 = (PyObject *) 0 ;
15002 PyObject *result;
15003 PyObject * obj0 = 0 ;
15004 PyObject * obj1 = 0 ;
15005 PyObject * obj2 = 0 ;
15006 PyObject * obj3 = 0 ;
15007 char *kwnames[] = {
15008 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15009 };
15010
15011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15013 arg2 = obj1;
15014 arg3 = obj2;
15015 arg4 = obj3;
15016 {
15017 PyThreadState* __tstate = wxPyBeginAllowThreads();
15018 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15019
15020 wxPyEndAllowThreads(__tstate);
15021 if (PyErr_Occurred()) SWIG_fail;
15022 }
15023 resultobj = result;
15024 return resultobj;
15025 fail:
15026 return NULL;
15027 }
15028
15029
15030 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15031 PyObject *resultobj;
15032 wxDC *arg1 = (wxDC *) 0 ;
15033 PyObject *arg2 = (PyObject *) 0 ;
15034 PyObject *arg3 = (PyObject *) 0 ;
15035 PyObject *arg4 = (PyObject *) 0 ;
15036 PyObject *arg5 = (PyObject *) 0 ;
15037 PyObject *result;
15038 PyObject * obj0 = 0 ;
15039 PyObject * obj1 = 0 ;
15040 PyObject * obj2 = 0 ;
15041 PyObject * obj3 = 0 ;
15042 PyObject * obj4 = 0 ;
15043 char *kwnames[] = {
15044 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15045 };
15046
15047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15049 arg2 = obj1;
15050 arg3 = obj2;
15051 arg4 = obj3;
15052 arg5 = obj4;
15053 {
15054 PyThreadState* __tstate = wxPyBeginAllowThreads();
15055 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15056
15057 wxPyEndAllowThreads(__tstate);
15058 if (PyErr_Occurred()) SWIG_fail;
15059 }
15060 resultobj = result;
15061 return resultobj;
15062 fail:
15063 return NULL;
15064 }
15065
15066
15067 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15068 PyObject *obj;
15069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15070 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15071 Py_INCREF(obj);
15072 return Py_BuildValue((char *)"");
15073 }
15074 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15075 PyObject *resultobj;
15076 wxMemoryDC *result;
15077 char *kwnames[] = {
15078 NULL
15079 };
15080
15081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15082 {
15083 PyThreadState* __tstate = wxPyBeginAllowThreads();
15084 result = (wxMemoryDC *)new wxMemoryDC();
15085
15086 wxPyEndAllowThreads(__tstate);
15087 if (PyErr_Occurred()) SWIG_fail;
15088 }
15089 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
15090 return resultobj;
15091 fail:
15092 return NULL;
15093 }
15094
15095
15096 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15097 PyObject *resultobj;
15098 wxDC *arg1 = (wxDC *) 0 ;
15099 wxMemoryDC *result;
15100 PyObject * obj0 = 0 ;
15101 char *kwnames[] = {
15102 (char *) "oldDC", NULL
15103 };
15104
15105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15110
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
15115 return resultobj;
15116 fail:
15117 return NULL;
15118 }
15119
15120
15121 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15122 PyObject *resultobj;
15123 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15124 wxBitmap *arg2 = 0 ;
15125 PyObject * obj0 = 0 ;
15126 PyObject * obj1 = 0 ;
15127 char *kwnames[] = {
15128 (char *) "self",(char *) "bitmap", NULL
15129 };
15130
15131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15133 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15134 if (arg2 == NULL) {
15135 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15136 }
15137 {
15138 PyThreadState* __tstate = wxPyBeginAllowThreads();
15139 (arg1)->SelectObject((wxBitmap const &)*arg2);
15140
15141 wxPyEndAllowThreads(__tstate);
15142 if (PyErr_Occurred()) SWIG_fail;
15143 }
15144 Py_INCREF(Py_None); resultobj = Py_None;
15145 return resultobj;
15146 fail:
15147 return NULL;
15148 }
15149
15150
15151 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15152 PyObject *obj;
15153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15154 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15155 Py_INCREF(obj);
15156 return Py_BuildValue((char *)"");
15157 }
15158 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15159 PyObject *resultobj;
15160 wxDC *arg1 = (wxDC *) 0 ;
15161 wxBitmap *arg2 = 0 ;
15162 wxBufferedDC *result;
15163 PyObject * obj0 = 0 ;
15164 PyObject * obj1 = 0 ;
15165
15166 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15168 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15169 if (arg2 == NULL) {
15170 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15171 }
15172 {
15173 PyThreadState* __tstate = wxPyBeginAllowThreads();
15174 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15175
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
15180 return resultobj;
15181 fail:
15182 return NULL;
15183 }
15184
15185
15186 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15187 PyObject *resultobj;
15188 wxDC *arg1 = (wxDC *) 0 ;
15189 wxSize *arg2 = 0 ;
15190 int arg3 = (int) wxBUFFER_DC_DEFAULT ;
15191 wxBufferedDC *result;
15192 wxSize temp2 ;
15193 PyObject * obj0 = 0 ;
15194 PyObject * obj1 = 0 ;
15195 PyObject * obj2 = 0 ;
15196
15197 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
15198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15199 {
15200 arg2 = &temp2;
15201 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15202 }
15203 if (obj2) {
15204 {
15205 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15206 if (PyErr_Occurred()) SWIG_fail;
15207 }
15208 }
15209 {
15210 PyThreadState* __tstate = wxPyBeginAllowThreads();
15211 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
15212
15213 wxPyEndAllowThreads(__tstate);
15214 if (PyErr_Occurred()) SWIG_fail;
15215 }
15216 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
15217 return resultobj;
15218 fail:
15219 return NULL;
15220 }
15221
15222
15223 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15224 int argc;
15225 PyObject *argv[4];
15226 int ii;
15227
15228 argc = PyObject_Length(args);
15229 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
15230 argv[ii] = PyTuple_GetItem(args,ii);
15231 }
15232 if (argc == 2) {
15233 int _v;
15234 {
15235 void *ptr;
15236 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15237 _v = 0;
15238 PyErr_Clear();
15239 } else {
15240 _v = 1;
15241 }
15242 }
15243 if (_v) {
15244 {
15245 void *ptr;
15246 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15247 _v = 0;
15248 PyErr_Clear();
15249 } else {
15250 _v = 1;
15251 }
15252 }
15253 if (_v) {
15254 return _wrap_new_BufferedDC__SWIG_0(self,args);
15255 }
15256 }
15257 }
15258 if ((argc >= 2) && (argc <= 3)) {
15259 int _v;
15260 {
15261 void *ptr;
15262 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15263 _v = 0;
15264 PyErr_Clear();
15265 } else {
15266 _v = 1;
15267 }
15268 }
15269 if (_v) {
15270 {
15271 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15272 }
15273 if (_v) {
15274 if (argc <= 2) {
15275 return _wrap_new_BufferedDC__SWIG_1(self,args);
15276 }
15277 {
15278 SWIG_PyObj_AsInt(argv[2]);
15279 if (PyErr_Occurred()) {
15280 _v = 0;
15281 PyErr_Clear();
15282 } else {
15283 _v = 1;
15284 }
15285 }
15286 if (_v) {
15287 return _wrap_new_BufferedDC__SWIG_1(self,args);
15288 }
15289 }
15290 }
15291 }
15292
15293 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15294 return NULL;
15295 }
15296
15297
15298 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15299 PyObject *resultobj;
15300 wxDC *arg1 = (wxDC *) 0 ;
15301 wxSize *arg2 = 0 ;
15302 int arg3 = (int) wxBUFFER_DC_DEFAULT ;
15303 wxBufferedDC *result;
15304 wxSize temp2 ;
15305 PyObject * obj0 = 0 ;
15306 PyObject * obj1 = 0 ;
15307 PyObject * obj2 = 0 ;
15308
15309 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDCInternalBuffer",&obj0,&obj1,&obj2)) goto fail;
15310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15311 {
15312 arg2 = &temp2;
15313 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15314 }
15315 if (obj2) {
15316 {
15317 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15318 if (PyErr_Occurred()) SWIG_fail;
15319 }
15320 }
15321 {
15322 PyThreadState* __tstate = wxPyBeginAllowThreads();
15323 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
15324
15325 wxPyEndAllowThreads(__tstate);
15326 if (PyErr_Occurred()) SWIG_fail;
15327 }
15328 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
15329 return resultobj;
15330 fail:
15331 return NULL;
15332 }
15333
15334
15335 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15336 PyObject *resultobj;
15337 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15338 PyObject * obj0 = 0 ;
15339 char *kwnames[] = {
15340 (char *) "self", NULL
15341 };
15342
15343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15345 {
15346 PyThreadState* __tstate = wxPyBeginAllowThreads();
15347 (arg1)->UnMask();
15348
15349 wxPyEndAllowThreads(__tstate);
15350 if (PyErr_Occurred()) SWIG_fail;
15351 }
15352 Py_INCREF(Py_None); resultobj = Py_None;
15353 return resultobj;
15354 fail:
15355 return NULL;
15356 }
15357
15358
15359 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15360 PyObject *obj;
15361 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15362 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15363 Py_INCREF(obj);
15364 return Py_BuildValue((char *)"");
15365 }
15366 static PyObject *_wrap_new_BufferedPaintDC__SWIG_0(PyObject *self, PyObject *args) {
15367 PyObject *resultobj;
15368 wxWindow *arg1 = (wxWindow *) 0 ;
15369 wxBitmap *arg2 = 0 ;
15370 wxBufferedPaintDC *result;
15371 PyObject * obj0 = 0 ;
15372 PyObject * obj1 = 0 ;
15373
15374 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedPaintDC",&obj0,&obj1)) goto fail;
15375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15376 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15377 if (arg2 == NULL) {
15378 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15379 }
15380 {
15381 PyThreadState* __tstate = wxPyBeginAllowThreads();
15382 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15383
15384 wxPyEndAllowThreads(__tstate);
15385 if (PyErr_Occurred()) SWIG_fail;
15386 }
15387 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
15388 return resultobj;
15389 fail:
15390 return NULL;
15391 }
15392
15393
15394 static PyObject *_wrap_new_BufferedPaintDC__SWIG_1(PyObject *self, PyObject *args) {
15395 PyObject *resultobj;
15396 wxWindow *arg1 = (wxWindow *) 0 ;
15397 int arg2 = (int) wxBUFFER_DC_DEFAULT ;
15398 wxBufferedPaintDC *result;
15399 PyObject * obj0 = 0 ;
15400 PyObject * obj1 = 0 ;
15401
15402 if(!PyArg_ParseTuple(args,(char *)"O|O:new_BufferedPaintDC",&obj0,&obj1)) goto fail;
15403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15404 if (obj1) {
15405 {
15406 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15407 if (PyErr_Occurred()) SWIG_fail;
15408 }
15409 }
15410 {
15411 PyThreadState* __tstate = wxPyBeginAllowThreads();
15412 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,arg2);
15413
15414 wxPyEndAllowThreads(__tstate);
15415 if (PyErr_Occurred()) SWIG_fail;
15416 }
15417 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
15418 return resultobj;
15419 fail:
15420 return NULL;
15421 }
15422
15423
15424 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args) {
15425 int argc;
15426 PyObject *argv[3];
15427 int ii;
15428
15429 argc = PyObject_Length(args);
15430 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15431 argv[ii] = PyTuple_GetItem(args,ii);
15432 }
15433 if ((argc >= 1) && (argc <= 2)) {
15434 int _v;
15435 {
15436 void *ptr;
15437 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
15438 _v = 0;
15439 PyErr_Clear();
15440 } else {
15441 _v = 1;
15442 }
15443 }
15444 if (_v) {
15445 if (argc <= 1) {
15446 return _wrap_new_BufferedPaintDC__SWIG_1(self,args);
15447 }
15448 {
15449 SWIG_PyObj_AsInt(argv[1]);
15450 if (PyErr_Occurred()) {
15451 _v = 0;
15452 PyErr_Clear();
15453 } else {
15454 _v = 1;
15455 }
15456 }
15457 if (_v) {
15458 return _wrap_new_BufferedPaintDC__SWIG_1(self,args);
15459 }
15460 }
15461 }
15462 if (argc == 2) {
15463 int _v;
15464 {
15465 void *ptr;
15466 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
15467 _v = 0;
15468 PyErr_Clear();
15469 } else {
15470 _v = 1;
15471 }
15472 }
15473 if (_v) {
15474 {
15475 void *ptr;
15476 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15477 _v = 0;
15478 PyErr_Clear();
15479 } else {
15480 _v = 1;
15481 }
15482 }
15483 if (_v) {
15484 return _wrap_new_BufferedPaintDC__SWIG_0(self,args);
15485 }
15486 }
15487 }
15488
15489 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedPaintDC'");
15490 return NULL;
15491 }
15492
15493
15494 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15495 PyObject *obj;
15496 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15497 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15498 Py_INCREF(obj);
15499 return Py_BuildValue((char *)"");
15500 }
15501 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15502 PyObject *resultobj;
15503 wxScreenDC *result;
15504 char *kwnames[] = {
15505 NULL
15506 };
15507
15508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15509 {
15510 PyThreadState* __tstate = wxPyBeginAllowThreads();
15511 result = (wxScreenDC *)new wxScreenDC();
15512
15513 wxPyEndAllowThreads(__tstate);
15514 if (PyErr_Occurred()) SWIG_fail;
15515 }
15516 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
15517 return resultobj;
15518 fail:
15519 return NULL;
15520 }
15521
15522
15523 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15524 PyObject *resultobj;
15525 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15526 wxWindow *arg2 = (wxWindow *) 0 ;
15527 bool result;
15528 PyObject * obj0 = 0 ;
15529 PyObject * obj1 = 0 ;
15530 char *kwnames[] = {
15531 (char *) "self",(char *) "window", NULL
15532 };
15533
15534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15536 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15537 {
15538 PyThreadState* __tstate = wxPyBeginAllowThreads();
15539 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15540
15541 wxPyEndAllowThreads(__tstate);
15542 if (PyErr_Occurred()) SWIG_fail;
15543 }
15544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15545 return resultobj;
15546 fail:
15547 return NULL;
15548 }
15549
15550
15551 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15552 PyObject *resultobj;
15553 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15554 wxRect *arg2 = (wxRect *) NULL ;
15555 bool result;
15556 PyObject * obj0 = 0 ;
15557 PyObject * obj1 = 0 ;
15558 char *kwnames[] = {
15559 (char *) "self",(char *) "rect", NULL
15560 };
15561
15562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15564 if (obj1) {
15565 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15566 }
15567 {
15568 PyThreadState* __tstate = wxPyBeginAllowThreads();
15569 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15570
15571 wxPyEndAllowThreads(__tstate);
15572 if (PyErr_Occurred()) SWIG_fail;
15573 }
15574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15575 return resultobj;
15576 fail:
15577 return NULL;
15578 }
15579
15580
15581 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15582 PyObject *resultobj;
15583 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15584 bool result;
15585 PyObject * obj0 = 0 ;
15586 char *kwnames[] = {
15587 (char *) "self", NULL
15588 };
15589
15590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15592 {
15593 PyThreadState* __tstate = wxPyBeginAllowThreads();
15594 result = (bool)(arg1)->EndDrawingOnTop();
15595
15596 wxPyEndAllowThreads(__tstate);
15597 if (PyErr_Occurred()) SWIG_fail;
15598 }
15599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15600 return resultobj;
15601 fail:
15602 return NULL;
15603 }
15604
15605
15606 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15607 PyObject *obj;
15608 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15609 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15610 Py_INCREF(obj);
15611 return Py_BuildValue((char *)"");
15612 }
15613 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15614 PyObject *resultobj;
15615 wxWindow *arg1 = (wxWindow *) 0 ;
15616 wxClientDC *result;
15617 PyObject * obj0 = 0 ;
15618 char *kwnames[] = {
15619 (char *) "win", NULL
15620 };
15621
15622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15624 {
15625 PyThreadState* __tstate = wxPyBeginAllowThreads();
15626 result = (wxClientDC *)new wxClientDC(arg1);
15627
15628 wxPyEndAllowThreads(__tstate);
15629 if (PyErr_Occurred()) SWIG_fail;
15630 }
15631 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
15632 return resultobj;
15633 fail:
15634 return NULL;
15635 }
15636
15637
15638 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15639 PyObject *obj;
15640 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15641 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15642 Py_INCREF(obj);
15643 return Py_BuildValue((char *)"");
15644 }
15645 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15646 PyObject *resultobj;
15647 wxWindow *arg1 = (wxWindow *) 0 ;
15648 wxPaintDC *result;
15649 PyObject * obj0 = 0 ;
15650 char *kwnames[] = {
15651 (char *) "win", NULL
15652 };
15653
15654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15656 {
15657 PyThreadState* __tstate = wxPyBeginAllowThreads();
15658 result = (wxPaintDC *)new wxPaintDC(arg1);
15659
15660 wxPyEndAllowThreads(__tstate);
15661 if (PyErr_Occurred()) SWIG_fail;
15662 }
15663 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
15664 return resultobj;
15665 fail:
15666 return NULL;
15667 }
15668
15669
15670 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15671 PyObject *obj;
15672 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15673 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15674 Py_INCREF(obj);
15675 return Py_BuildValue((char *)"");
15676 }
15677 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15678 PyObject *resultobj;
15679 wxWindow *arg1 = (wxWindow *) 0 ;
15680 wxWindowDC *result;
15681 PyObject * obj0 = 0 ;
15682 char *kwnames[] = {
15683 (char *) "win", NULL
15684 };
15685
15686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15688 {
15689 PyThreadState* __tstate = wxPyBeginAllowThreads();
15690 result = (wxWindowDC *)new wxWindowDC(arg1);
15691
15692 wxPyEndAllowThreads(__tstate);
15693 if (PyErr_Occurred()) SWIG_fail;
15694 }
15695 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
15696 return resultobj;
15697 fail:
15698 return NULL;
15699 }
15700
15701
15702 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15703 PyObject *obj;
15704 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15705 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15706 Py_INCREF(obj);
15707 return Py_BuildValue((char *)"");
15708 }
15709 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15710 PyObject *resultobj;
15711 wxDC *arg1 = 0 ;
15712 bool arg2 ;
15713 wxMirrorDC *result;
15714 PyObject * obj0 = 0 ;
15715 PyObject * obj1 = 0 ;
15716 char *kwnames[] = {
15717 (char *) "dc",(char *) "mirror", NULL
15718 };
15719
15720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15721 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15722 if (arg1 == NULL) {
15723 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15724 }
15725 {
15726 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15727 if (PyErr_Occurred()) SWIG_fail;
15728 }
15729 {
15730 PyThreadState* __tstate = wxPyBeginAllowThreads();
15731 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15732
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
15737 return resultobj;
15738 fail:
15739 return NULL;
15740 }
15741
15742
15743 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15744 PyObject *obj;
15745 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15746 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15747 Py_INCREF(obj);
15748 return Py_BuildValue((char *)"");
15749 }
15750 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15751 PyObject *resultobj;
15752 wxPrintData *arg1 = 0 ;
15753 wxPostScriptDC *result;
15754 PyObject * obj0 = 0 ;
15755 char *kwnames[] = {
15756 (char *) "printData", NULL
15757 };
15758
15759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15761 if (arg1 == NULL) {
15762 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15763 }
15764 {
15765 PyThreadState* __tstate = wxPyBeginAllowThreads();
15766 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15767
15768 wxPyEndAllowThreads(__tstate);
15769 if (PyErr_Occurred()) SWIG_fail;
15770 }
15771 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
15772 return resultobj;
15773 fail:
15774 return NULL;
15775 }
15776
15777
15778 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15779 PyObject *resultobj;
15780 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15781 wxPrintData *result;
15782 PyObject * obj0 = 0 ;
15783 char *kwnames[] = {
15784 (char *) "self", NULL
15785 };
15786
15787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15789 {
15790 PyThreadState* __tstate = wxPyBeginAllowThreads();
15791 {
15792 wxPrintData &_result_ref = (arg1)->GetPrintData();
15793 result = (wxPrintData *) &_result_ref;
15794 }
15795
15796 wxPyEndAllowThreads(__tstate);
15797 if (PyErr_Occurred()) SWIG_fail;
15798 }
15799 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
15800 return resultobj;
15801 fail:
15802 return NULL;
15803 }
15804
15805
15806 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15807 PyObject *resultobj;
15808 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15809 wxPrintData *arg2 = 0 ;
15810 PyObject * obj0 = 0 ;
15811 PyObject * obj1 = 0 ;
15812 char *kwnames[] = {
15813 (char *) "self",(char *) "data", NULL
15814 };
15815
15816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15818 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15819 if (arg2 == NULL) {
15820 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15821 }
15822 {
15823 PyThreadState* __tstate = wxPyBeginAllowThreads();
15824 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15825
15826 wxPyEndAllowThreads(__tstate);
15827 if (PyErr_Occurred()) SWIG_fail;
15828 }
15829 Py_INCREF(Py_None); resultobj = Py_None;
15830 return resultobj;
15831 fail:
15832 return NULL;
15833 }
15834
15835
15836 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15837 PyObject *resultobj;
15838 int arg1 ;
15839 PyObject * obj0 = 0 ;
15840 char *kwnames[] = {
15841 (char *) "ppi", NULL
15842 };
15843
15844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15845 {
15846 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15847 if (PyErr_Occurred()) SWIG_fail;
15848 }
15849 {
15850 PyThreadState* __tstate = wxPyBeginAllowThreads();
15851 wxPostScriptDC::SetResolution(arg1);
15852
15853 wxPyEndAllowThreads(__tstate);
15854 if (PyErr_Occurred()) SWIG_fail;
15855 }
15856 Py_INCREF(Py_None); resultobj = Py_None;
15857 return resultobj;
15858 fail:
15859 return NULL;
15860 }
15861
15862
15863 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15864 PyObject *resultobj;
15865 int result;
15866 char *kwnames[] = {
15867 NULL
15868 };
15869
15870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15871 {
15872 PyThreadState* __tstate = wxPyBeginAllowThreads();
15873 result = (int)wxPostScriptDC::GetResolution();
15874
15875 wxPyEndAllowThreads(__tstate);
15876 if (PyErr_Occurred()) SWIG_fail;
15877 }
15878 resultobj = SWIG_PyObj_FromInt((int)result);
15879 return resultobj;
15880 fail:
15881 return NULL;
15882 }
15883
15884
15885 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15886 PyObject *obj;
15887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15888 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15889 Py_INCREF(obj);
15890 return Py_BuildValue((char *)"");
15891 }
15892 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15893 PyObject *resultobj;
15894 wxString const &arg1_defvalue = wxPyEmptyString ;
15895 wxString *arg1 = (wxString *) &arg1_defvalue ;
15896 wxMetaFile *result;
15897 bool temp1 = False ;
15898 PyObject * obj0 = 0 ;
15899 char *kwnames[] = {
15900 (char *) "filename", NULL
15901 };
15902
15903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15904 if (obj0) {
15905 {
15906 arg1 = wxString_in_helper(obj0);
15907 if (arg1 == NULL) SWIG_fail;
15908 temp1 = True;
15909 }
15910 }
15911 {
15912 PyThreadState* __tstate = wxPyBeginAllowThreads();
15913 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15914
15915 wxPyEndAllowThreads(__tstate);
15916 if (PyErr_Occurred()) SWIG_fail;
15917 }
15918 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
15919 {
15920 if (temp1)
15921 delete arg1;
15922 }
15923 return resultobj;
15924 fail:
15925 {
15926 if (temp1)
15927 delete arg1;
15928 }
15929 return NULL;
15930 }
15931
15932
15933 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15934 PyObject *resultobj;
15935 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15936 PyObject * obj0 = 0 ;
15937 char *kwnames[] = {
15938 (char *) "self", NULL
15939 };
15940
15941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15943 {
15944 PyThreadState* __tstate = wxPyBeginAllowThreads();
15945 delete arg1;
15946
15947 wxPyEndAllowThreads(__tstate);
15948 if (PyErr_Occurred()) SWIG_fail;
15949 }
15950 Py_INCREF(Py_None); resultobj = Py_None;
15951 return resultobj;
15952 fail:
15953 return NULL;
15954 }
15955
15956
15957 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15958 PyObject *resultobj;
15959 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15960 bool result;
15961 PyObject * obj0 = 0 ;
15962 char *kwnames[] = {
15963 (char *) "self", NULL
15964 };
15965
15966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15968 {
15969 PyThreadState* __tstate = wxPyBeginAllowThreads();
15970 result = (bool)(arg1)->Ok();
15971
15972 wxPyEndAllowThreads(__tstate);
15973 if (PyErr_Occurred()) SWIG_fail;
15974 }
15975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15976 return resultobj;
15977 fail:
15978 return NULL;
15979 }
15980
15981
15982 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15983 PyObject *resultobj;
15984 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15985 int arg2 = (int) 0 ;
15986 int arg3 = (int) 0 ;
15987 bool result;
15988 PyObject * obj0 = 0 ;
15989 PyObject * obj1 = 0 ;
15990 PyObject * obj2 = 0 ;
15991 char *kwnames[] = {
15992 (char *) "self",(char *) "width",(char *) "height", NULL
15993 };
15994
15995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15997 if (obj1) {
15998 {
15999 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16000 if (PyErr_Occurred()) SWIG_fail;
16001 }
16002 }
16003 if (obj2) {
16004 {
16005 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16006 if (PyErr_Occurred()) SWIG_fail;
16007 }
16008 }
16009 {
16010 PyThreadState* __tstate = wxPyBeginAllowThreads();
16011 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16012
16013 wxPyEndAllowThreads(__tstate);
16014 if (PyErr_Occurred()) SWIG_fail;
16015 }
16016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16017 return resultobj;
16018 fail:
16019 return NULL;
16020 }
16021
16022
16023 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16024 PyObject *resultobj;
16025 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16026 wxSize result;
16027 PyObject * obj0 = 0 ;
16028 char *kwnames[] = {
16029 (char *) "self", NULL
16030 };
16031
16032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16034 {
16035 PyThreadState* __tstate = wxPyBeginAllowThreads();
16036 result = (arg1)->GetSize();
16037
16038 wxPyEndAllowThreads(__tstate);
16039 if (PyErr_Occurred()) SWIG_fail;
16040 }
16041 {
16042 wxSize * resultptr;
16043 resultptr = new wxSize((wxSize &) result);
16044 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
16045 }
16046 return resultobj;
16047 fail:
16048 return NULL;
16049 }
16050
16051
16052 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16053 PyObject *resultobj;
16054 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16055 int result;
16056 PyObject * obj0 = 0 ;
16057 char *kwnames[] = {
16058 (char *) "self", NULL
16059 };
16060
16061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16063 {
16064 PyThreadState* __tstate = wxPyBeginAllowThreads();
16065 result = (int)(arg1)->GetWidth();
16066
16067 wxPyEndAllowThreads(__tstate);
16068 if (PyErr_Occurred()) SWIG_fail;
16069 }
16070 resultobj = SWIG_PyObj_FromInt((int)result);
16071 return resultobj;
16072 fail:
16073 return NULL;
16074 }
16075
16076
16077 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16078 PyObject *resultobj;
16079 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16080 int result;
16081 PyObject * obj0 = 0 ;
16082 char *kwnames[] = {
16083 (char *) "self", NULL
16084 };
16085
16086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16088 {
16089 PyThreadState* __tstate = wxPyBeginAllowThreads();
16090 result = (int)(arg1)->GetHeight();
16091
16092 wxPyEndAllowThreads(__tstate);
16093 if (PyErr_Occurred()) SWIG_fail;
16094 }
16095 resultobj = SWIG_PyObj_FromInt((int)result);
16096 return resultobj;
16097 fail:
16098 return NULL;
16099 }
16100
16101
16102 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16103 PyObject *resultobj;
16104 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16105 wxString *result;
16106 PyObject * obj0 = 0 ;
16107 char *kwnames[] = {
16108 (char *) "self", NULL
16109 };
16110
16111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16113 {
16114 PyThreadState* __tstate = wxPyBeginAllowThreads();
16115 {
16116 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16117 result = (wxString *) &_result_ref;
16118 }
16119
16120 wxPyEndAllowThreads(__tstate);
16121 if (PyErr_Occurred()) SWIG_fail;
16122 }
16123 {
16124 #if wxUSE_UNICODE
16125 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16126 #else
16127 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16128 #endif
16129 }
16130 return resultobj;
16131 fail:
16132 return NULL;
16133 }
16134
16135
16136 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16137 PyObject *obj;
16138 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16139 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16140 Py_INCREF(obj);
16141 return Py_BuildValue((char *)"");
16142 }
16143 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16144 PyObject *resultobj;
16145 wxString const &arg1_defvalue = wxPyEmptyString ;
16146 wxString *arg1 = (wxString *) &arg1_defvalue ;
16147 int arg2 = (int) 0 ;
16148 int arg3 = (int) 0 ;
16149 wxString const &arg4_defvalue = wxPyEmptyString ;
16150 wxString *arg4 = (wxString *) &arg4_defvalue ;
16151 wxMetaFileDC *result;
16152 bool temp1 = False ;
16153 bool temp4 = False ;
16154 PyObject * obj0 = 0 ;
16155 PyObject * obj1 = 0 ;
16156 PyObject * obj2 = 0 ;
16157 PyObject * obj3 = 0 ;
16158 char *kwnames[] = {
16159 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16160 };
16161
16162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16163 if (obj0) {
16164 {
16165 arg1 = wxString_in_helper(obj0);
16166 if (arg1 == NULL) SWIG_fail;
16167 temp1 = True;
16168 }
16169 }
16170 if (obj1) {
16171 {
16172 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16173 if (PyErr_Occurred()) SWIG_fail;
16174 }
16175 }
16176 if (obj2) {
16177 {
16178 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
16181 }
16182 if (obj3) {
16183 {
16184 arg4 = wxString_in_helper(obj3);
16185 if (arg4 == NULL) SWIG_fail;
16186 temp4 = True;
16187 }
16188 }
16189 {
16190 PyThreadState* __tstate = wxPyBeginAllowThreads();
16191 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16192
16193 wxPyEndAllowThreads(__tstate);
16194 if (PyErr_Occurred()) SWIG_fail;
16195 }
16196 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
16197 {
16198 if (temp1)
16199 delete arg1;
16200 }
16201 {
16202 if (temp4)
16203 delete arg4;
16204 }
16205 return resultobj;
16206 fail:
16207 {
16208 if (temp1)
16209 delete arg1;
16210 }
16211 {
16212 if (temp4)
16213 delete arg4;
16214 }
16215 return NULL;
16216 }
16217
16218
16219 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16220 PyObject *resultobj;
16221 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16222 wxMetaFile *result;
16223 PyObject * obj0 = 0 ;
16224 char *kwnames[] = {
16225 (char *) "self", NULL
16226 };
16227
16228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16230 {
16231 PyThreadState* __tstate = wxPyBeginAllowThreads();
16232 result = (wxMetaFile *)(arg1)->Close();
16233
16234 wxPyEndAllowThreads(__tstate);
16235 if (PyErr_Occurred()) SWIG_fail;
16236 }
16237 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0);
16238 return resultobj;
16239 fail:
16240 return NULL;
16241 }
16242
16243
16244 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16245 PyObject *obj;
16246 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16247 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16248 Py_INCREF(obj);
16249 return Py_BuildValue((char *)"");
16250 }
16251 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16252 PyObject *resultobj;
16253 wxPrintData *arg1 = 0 ;
16254 wxPrinterDC *result;
16255 PyObject * obj0 = 0 ;
16256 char *kwnames[] = {
16257 (char *) "printData", NULL
16258 };
16259
16260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16262 if (arg1 == NULL) {
16263 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16264 }
16265 {
16266 PyThreadState* __tstate = wxPyBeginAllowThreads();
16267 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16268
16269 wxPyEndAllowThreads(__tstate);
16270 if (PyErr_Occurred()) SWIG_fail;
16271 }
16272 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
16273 return resultobj;
16274 fail:
16275 return NULL;
16276 }
16277
16278
16279 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16280 PyObject *obj;
16281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16282 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16283 Py_INCREF(obj);
16284 return Py_BuildValue((char *)"");
16285 }
16286 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16287 PyObject *resultobj;
16288 int arg1 ;
16289 int arg2 ;
16290 int arg3 = (int) True ;
16291 int arg4 = (int) 1 ;
16292 wxImageList *result;
16293 PyObject * obj0 = 0 ;
16294 PyObject * obj1 = 0 ;
16295 PyObject * obj2 = 0 ;
16296 PyObject * obj3 = 0 ;
16297 char *kwnames[] = {
16298 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16299 };
16300
16301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16302 {
16303 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16304 if (PyErr_Occurred()) SWIG_fail;
16305 }
16306 {
16307 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16308 if (PyErr_Occurred()) SWIG_fail;
16309 }
16310 if (obj2) {
16311 {
16312 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16313 if (PyErr_Occurred()) SWIG_fail;
16314 }
16315 }
16316 if (obj3) {
16317 {
16318 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16319 if (PyErr_Occurred()) SWIG_fail;
16320 }
16321 }
16322 {
16323 PyThreadState* __tstate = wxPyBeginAllowThreads();
16324 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16325
16326 wxPyEndAllowThreads(__tstate);
16327 if (PyErr_Occurred()) SWIG_fail;
16328 }
16329 {
16330 resultobj = wxPyMake_wxObject(result);
16331 }
16332 return resultobj;
16333 fail:
16334 return NULL;
16335 }
16336
16337
16338 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16339 PyObject *resultobj;
16340 wxImageList *arg1 = (wxImageList *) 0 ;
16341 PyObject * obj0 = 0 ;
16342 char *kwnames[] = {
16343 (char *) "self", NULL
16344 };
16345
16346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16348 {
16349 PyThreadState* __tstate = wxPyBeginAllowThreads();
16350 delete arg1;
16351
16352 wxPyEndAllowThreads(__tstate);
16353 if (PyErr_Occurred()) SWIG_fail;
16354 }
16355 Py_INCREF(Py_None); resultobj = Py_None;
16356 return resultobj;
16357 fail:
16358 return NULL;
16359 }
16360
16361
16362 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16363 PyObject *resultobj;
16364 wxImageList *arg1 = (wxImageList *) 0 ;
16365 wxBitmap *arg2 = 0 ;
16366 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16367 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16368 int result;
16369 PyObject * obj0 = 0 ;
16370 PyObject * obj1 = 0 ;
16371 PyObject * obj2 = 0 ;
16372 char *kwnames[] = {
16373 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16374 };
16375
16376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16378 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16379 if (arg2 == NULL) {
16380 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16381 }
16382 if (obj2) {
16383 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16384 if (arg3 == NULL) {
16385 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16386 }
16387 }
16388 {
16389 PyThreadState* __tstate = wxPyBeginAllowThreads();
16390 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16391
16392 wxPyEndAllowThreads(__tstate);
16393 if (PyErr_Occurred()) SWIG_fail;
16394 }
16395 resultobj = SWIG_PyObj_FromInt((int)result);
16396 return resultobj;
16397 fail:
16398 return NULL;
16399 }
16400
16401
16402 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16403 PyObject *resultobj;
16404 wxImageList *arg1 = (wxImageList *) 0 ;
16405 wxBitmap *arg2 = 0 ;
16406 wxColour *arg3 = 0 ;
16407 int result;
16408 wxColour temp3 ;
16409 PyObject * obj0 = 0 ;
16410 PyObject * obj1 = 0 ;
16411 PyObject * obj2 = 0 ;
16412 char *kwnames[] = {
16413 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16414 };
16415
16416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16418 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16419 if (arg2 == NULL) {
16420 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16421 }
16422 {
16423 arg3 = &temp3;
16424 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16425 }
16426 {
16427 PyThreadState* __tstate = wxPyBeginAllowThreads();
16428 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16429
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 resultobj = SWIG_PyObj_FromInt((int)result);
16434 return resultobj;
16435 fail:
16436 return NULL;
16437 }
16438
16439
16440 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16441 PyObject *resultobj;
16442 wxImageList *arg1 = (wxImageList *) 0 ;
16443 wxIcon *arg2 = 0 ;
16444 int result;
16445 PyObject * obj0 = 0 ;
16446 PyObject * obj1 = 0 ;
16447 char *kwnames[] = {
16448 (char *) "self",(char *) "icon", NULL
16449 };
16450
16451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16453 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16454 if (arg2 == NULL) {
16455 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16456 }
16457 {
16458 PyThreadState* __tstate = wxPyBeginAllowThreads();
16459 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16460
16461 wxPyEndAllowThreads(__tstate);
16462 if (PyErr_Occurred()) SWIG_fail;
16463 }
16464 resultobj = SWIG_PyObj_FromInt((int)result);
16465 return resultobj;
16466 fail:
16467 return NULL;
16468 }
16469
16470
16471 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16472 PyObject *resultobj;
16473 wxImageList *arg1 = (wxImageList *) 0 ;
16474 int arg2 ;
16475 wxBitmap *arg3 = 0 ;
16476 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16477 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16478 bool result;
16479 PyObject * obj0 = 0 ;
16480 PyObject * obj1 = 0 ;
16481 PyObject * obj2 = 0 ;
16482 PyObject * obj3 = 0 ;
16483 char *kwnames[] = {
16484 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16485 };
16486
16487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16489 {
16490 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16491 if (PyErr_Occurred()) SWIG_fail;
16492 }
16493 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16494 if (arg3 == NULL) {
16495 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16496 }
16497 if (obj3) {
16498 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16499 if (arg4 == NULL) {
16500 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16501 }
16502 }
16503 {
16504 PyThreadState* __tstate = wxPyBeginAllowThreads();
16505 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16506
16507 wxPyEndAllowThreads(__tstate);
16508 if (PyErr_Occurred()) SWIG_fail;
16509 }
16510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16511 return resultobj;
16512 fail:
16513 return NULL;
16514 }
16515
16516
16517 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16518 PyObject *resultobj;
16519 wxImageList *arg1 = (wxImageList *) 0 ;
16520 int arg2 ;
16521 wxDC *arg3 = 0 ;
16522 int arg4 ;
16523 int arg5 ;
16524 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16525 bool arg7 = (bool) (bool)False ;
16526 bool result;
16527 PyObject * obj0 = 0 ;
16528 PyObject * obj1 = 0 ;
16529 PyObject * obj2 = 0 ;
16530 PyObject * obj3 = 0 ;
16531 PyObject * obj4 = 0 ;
16532 PyObject * obj5 = 0 ;
16533 PyObject * obj6 = 0 ;
16534 char *kwnames[] = {
16535 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16536 };
16537
16538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16540 {
16541 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16542 if (PyErr_Occurred()) SWIG_fail;
16543 }
16544 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16545 if (arg3 == NULL) {
16546 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16547 }
16548 {
16549 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16550 if (PyErr_Occurred()) SWIG_fail;
16551 }
16552 {
16553 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16554 if (PyErr_Occurred()) SWIG_fail;
16555 }
16556 if (obj5) {
16557 {
16558 arg6 = (int) SWIG_PyObj_AsInt(obj5);
16559 if (PyErr_Occurred()) SWIG_fail;
16560 }
16561 }
16562 if (obj6) {
16563 {
16564 arg7 = (bool const) SWIG_PyObj_AsBool(obj6);
16565 if (PyErr_Occurred()) SWIG_fail;
16566 }
16567 }
16568 {
16569 PyThreadState* __tstate = wxPyBeginAllowThreads();
16570 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16571
16572 wxPyEndAllowThreads(__tstate);
16573 if (PyErr_Occurred()) SWIG_fail;
16574 }
16575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16576 return resultobj;
16577 fail:
16578 return NULL;
16579 }
16580
16581
16582 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16583 PyObject *resultobj;
16584 wxImageList *arg1 = (wxImageList *) 0 ;
16585 int result;
16586 PyObject * obj0 = 0 ;
16587 char *kwnames[] = {
16588 (char *) "self", NULL
16589 };
16590
16591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16593 {
16594 PyThreadState* __tstate = wxPyBeginAllowThreads();
16595 result = (int)(arg1)->GetImageCount();
16596
16597 wxPyEndAllowThreads(__tstate);
16598 if (PyErr_Occurred()) SWIG_fail;
16599 }
16600 resultobj = SWIG_PyObj_FromInt((int)result);
16601 return resultobj;
16602 fail:
16603 return NULL;
16604 }
16605
16606
16607 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16608 PyObject *resultobj;
16609 wxImageList *arg1 = (wxImageList *) 0 ;
16610 int arg2 ;
16611 bool result;
16612 PyObject * obj0 = 0 ;
16613 PyObject * obj1 = 0 ;
16614 char *kwnames[] = {
16615 (char *) "self",(char *) "index", NULL
16616 };
16617
16618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16620 {
16621 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16622 if (PyErr_Occurred()) SWIG_fail;
16623 }
16624 {
16625 PyThreadState* __tstate = wxPyBeginAllowThreads();
16626 result = (bool)(arg1)->Remove(arg2);
16627
16628 wxPyEndAllowThreads(__tstate);
16629 if (PyErr_Occurred()) SWIG_fail;
16630 }
16631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16632 return resultobj;
16633 fail:
16634 return NULL;
16635 }
16636
16637
16638 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16639 PyObject *resultobj;
16640 wxImageList *arg1 = (wxImageList *) 0 ;
16641 bool result;
16642 PyObject * obj0 = 0 ;
16643 char *kwnames[] = {
16644 (char *) "self", NULL
16645 };
16646
16647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16649 {
16650 PyThreadState* __tstate = wxPyBeginAllowThreads();
16651 result = (bool)(arg1)->RemoveAll();
16652
16653 wxPyEndAllowThreads(__tstate);
16654 if (PyErr_Occurred()) SWIG_fail;
16655 }
16656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16657 return resultobj;
16658 fail:
16659 return NULL;
16660 }
16661
16662
16663 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16664 PyObject *resultobj;
16665 wxImageList *arg1 = (wxImageList *) 0 ;
16666 int arg2 ;
16667 int *arg3 = 0 ;
16668 int *arg4 = 0 ;
16669 int temp3 ;
16670 int temp4 ;
16671 PyObject * obj0 = 0 ;
16672 PyObject * obj1 = 0 ;
16673 char *kwnames[] = {
16674 (char *) "self",(char *) "index", NULL
16675 };
16676
16677 arg3 = &temp3;
16678 arg4 = &temp4;
16679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16681 {
16682 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 }
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 (arg1)->GetSize(arg2,*arg3,*arg4);
16688
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 Py_INCREF(Py_None); resultobj = Py_None;
16693 {
16694 PyObject *o = PyInt_FromLong((long) (*arg3));
16695 resultobj = t_output_helper(resultobj,o);
16696 }
16697 {
16698 PyObject *o = PyInt_FromLong((long) (*arg4));
16699 resultobj = t_output_helper(resultobj,o);
16700 }
16701 return resultobj;
16702 fail:
16703 return NULL;
16704 }
16705
16706
16707 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16708 PyObject *obj;
16709 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16710 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16711 Py_INCREF(obj);
16712 return Py_BuildValue((char *)"");
16713 }
16714 static int _wrap_NORMAL_FONT_set(PyObject *) {
16715 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16716 return 1;
16717 }
16718
16719
16720 static PyObject *_wrap_NORMAL_FONT_get() {
16721 PyObject *pyobj;
16722
16723 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
16724 return pyobj;
16725 }
16726
16727
16728 static int _wrap_SMALL_FONT_set(PyObject *) {
16729 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16730 return 1;
16731 }
16732
16733
16734 static PyObject *_wrap_SMALL_FONT_get() {
16735 PyObject *pyobj;
16736
16737 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
16738 return pyobj;
16739 }
16740
16741
16742 static int _wrap_ITALIC_FONT_set(PyObject *) {
16743 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16744 return 1;
16745 }
16746
16747
16748 static PyObject *_wrap_ITALIC_FONT_get() {
16749 PyObject *pyobj;
16750
16751 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
16752 return pyobj;
16753 }
16754
16755
16756 static int _wrap_SWISS_FONT_set(PyObject *) {
16757 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16758 return 1;
16759 }
16760
16761
16762 static PyObject *_wrap_SWISS_FONT_get() {
16763 PyObject *pyobj;
16764
16765 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
16766 return pyobj;
16767 }
16768
16769
16770 static int _wrap_RED_PEN_set(PyObject *) {
16771 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16772 return 1;
16773 }
16774
16775
16776 static PyObject *_wrap_RED_PEN_get() {
16777 PyObject *pyobj;
16778
16779 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
16780 return pyobj;
16781 }
16782
16783
16784 static int _wrap_CYAN_PEN_set(PyObject *) {
16785 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16786 return 1;
16787 }
16788
16789
16790 static PyObject *_wrap_CYAN_PEN_get() {
16791 PyObject *pyobj;
16792
16793 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
16794 return pyobj;
16795 }
16796
16797
16798 static int _wrap_GREEN_PEN_set(PyObject *) {
16799 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16800 return 1;
16801 }
16802
16803
16804 static PyObject *_wrap_GREEN_PEN_get() {
16805 PyObject *pyobj;
16806
16807 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
16808 return pyobj;
16809 }
16810
16811
16812 static int _wrap_BLACK_PEN_set(PyObject *) {
16813 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16814 return 1;
16815 }
16816
16817
16818 static PyObject *_wrap_BLACK_PEN_get() {
16819 PyObject *pyobj;
16820
16821 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
16822 return pyobj;
16823 }
16824
16825
16826 static int _wrap_WHITE_PEN_set(PyObject *) {
16827 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16828 return 1;
16829 }
16830
16831
16832 static PyObject *_wrap_WHITE_PEN_get() {
16833 PyObject *pyobj;
16834
16835 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
16836 return pyobj;
16837 }
16838
16839
16840 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16841 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16842 return 1;
16843 }
16844
16845
16846 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16847 PyObject *pyobj;
16848
16849 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
16850 return pyobj;
16851 }
16852
16853
16854 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16855 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16856 return 1;
16857 }
16858
16859
16860 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16861 PyObject *pyobj;
16862
16863 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
16864 return pyobj;
16865 }
16866
16867
16868 static int _wrap_GREY_PEN_set(PyObject *) {
16869 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16870 return 1;
16871 }
16872
16873
16874 static PyObject *_wrap_GREY_PEN_get() {
16875 PyObject *pyobj;
16876
16877 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
16878 return pyobj;
16879 }
16880
16881
16882 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16883 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16884 return 1;
16885 }
16886
16887
16888 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16889 PyObject *pyobj;
16890
16891 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16892 return pyobj;
16893 }
16894
16895
16896 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16897 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16898 return 1;
16899 }
16900
16901
16902 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16903 PyObject *pyobj;
16904
16905 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16906 return pyobj;
16907 }
16908
16909
16910 static int _wrap_BLUE_BRUSH_set(PyObject *) {
16911 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16912 return 1;
16913 }
16914
16915
16916 static PyObject *_wrap_BLUE_BRUSH_get() {
16917 PyObject *pyobj;
16918
16919 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16920 return pyobj;
16921 }
16922
16923
16924 static int _wrap_GREEN_BRUSH_set(PyObject *) {
16925 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16926 return 1;
16927 }
16928
16929
16930 static PyObject *_wrap_GREEN_BRUSH_get() {
16931 PyObject *pyobj;
16932
16933 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16934 return pyobj;
16935 }
16936
16937
16938 static int _wrap_WHITE_BRUSH_set(PyObject *) {
16939 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16940 return 1;
16941 }
16942
16943
16944 static PyObject *_wrap_WHITE_BRUSH_get() {
16945 PyObject *pyobj;
16946
16947 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16948 return pyobj;
16949 }
16950
16951
16952 static int _wrap_BLACK_BRUSH_set(PyObject *) {
16953 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16954 return 1;
16955 }
16956
16957
16958 static PyObject *_wrap_BLACK_BRUSH_get() {
16959 PyObject *pyobj;
16960
16961 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
16962 return pyobj;
16963 }
16964
16965
16966 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
16967 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16968 return 1;
16969 }
16970
16971
16972 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16973 PyObject *pyobj;
16974
16975 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
16976 return pyobj;
16977 }
16978
16979
16980 static int _wrap_CYAN_BRUSH_set(PyObject *) {
16981 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16982 return 1;
16983 }
16984
16985
16986 static PyObject *_wrap_CYAN_BRUSH_get() {
16987 PyObject *pyobj;
16988
16989 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16990 return pyobj;
16991 }
16992
16993
16994 static int _wrap_RED_BRUSH_set(PyObject *) {
16995 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16996 return 1;
16997 }
16998
16999
17000 static PyObject *_wrap_RED_BRUSH_get() {
17001 PyObject *pyobj;
17002
17003 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
17004 return pyobj;
17005 }
17006
17007
17008 static int _wrap_GREY_BRUSH_set(PyObject *) {
17009 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17010 return 1;
17011 }
17012
17013
17014 static PyObject *_wrap_GREY_BRUSH_get() {
17015 PyObject *pyobj;
17016
17017 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
17018 return pyobj;
17019 }
17020
17021
17022 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
17023 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17024 return 1;
17025 }
17026
17027
17028 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17029 PyObject *pyobj;
17030
17031 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
17032 return pyobj;
17033 }
17034
17035
17036 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
17037 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17038 return 1;
17039 }
17040
17041
17042 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17043 PyObject *pyobj;
17044
17045 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
17046 return pyobj;
17047 }
17048
17049
17050 static int _wrap_BLACK_set(PyObject *) {
17051 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17052 return 1;
17053 }
17054
17055
17056 static PyObject *_wrap_BLACK_get() {
17057 PyObject *pyobj;
17058
17059 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
17060 return pyobj;
17061 }
17062
17063
17064 static int _wrap_WHITE_set(PyObject *) {
17065 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17066 return 1;
17067 }
17068
17069
17070 static PyObject *_wrap_WHITE_get() {
17071 PyObject *pyobj;
17072
17073 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
17074 return pyobj;
17075 }
17076
17077
17078 static int _wrap_RED_set(PyObject *) {
17079 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17080 return 1;
17081 }
17082
17083
17084 static PyObject *_wrap_RED_get() {
17085 PyObject *pyobj;
17086
17087 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
17088 return pyobj;
17089 }
17090
17091
17092 static int _wrap_BLUE_set(PyObject *) {
17093 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17094 return 1;
17095 }
17096
17097
17098 static PyObject *_wrap_BLUE_get() {
17099 PyObject *pyobj;
17100
17101 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
17102 return pyobj;
17103 }
17104
17105
17106 static int _wrap_GREEN_set(PyObject *) {
17107 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17108 return 1;
17109 }
17110
17111
17112 static PyObject *_wrap_GREEN_get() {
17113 PyObject *pyobj;
17114
17115 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
17116 return pyobj;
17117 }
17118
17119
17120 static int _wrap_CYAN_set(PyObject *) {
17121 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17122 return 1;
17123 }
17124
17125
17126 static PyObject *_wrap_CYAN_get() {
17127 PyObject *pyobj;
17128
17129 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
17130 return pyobj;
17131 }
17132
17133
17134 static int _wrap_LIGHT_GREY_set(PyObject *) {
17135 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17136 return 1;
17137 }
17138
17139
17140 static PyObject *_wrap_LIGHT_GREY_get() {
17141 PyObject *pyobj;
17142
17143 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
17144 return pyobj;
17145 }
17146
17147
17148 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
17149 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17150 return 1;
17151 }
17152
17153
17154 static PyObject *_wrap_STANDARD_CURSOR_get() {
17155 PyObject *pyobj;
17156
17157 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
17158 return pyobj;
17159 }
17160
17161
17162 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
17163 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17164 return 1;
17165 }
17166
17167
17168 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17169 PyObject *pyobj;
17170
17171 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
17172 return pyobj;
17173 }
17174
17175
17176 static int _wrap_CROSS_CURSOR_set(PyObject *) {
17177 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17178 return 1;
17179 }
17180
17181
17182 static PyObject *_wrap_CROSS_CURSOR_get() {
17183 PyObject *pyobj;
17184
17185 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
17186 return pyobj;
17187 }
17188
17189
17190 static int _wrap_NullBitmap_set(PyObject *) {
17191 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17192 return 1;
17193 }
17194
17195
17196 static PyObject *_wrap_NullBitmap_get() {
17197 PyObject *pyobj;
17198
17199 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
17200 return pyobj;
17201 }
17202
17203
17204 static int _wrap_NullIcon_set(PyObject *) {
17205 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17206 return 1;
17207 }
17208
17209
17210 static PyObject *_wrap_NullIcon_get() {
17211 PyObject *pyobj;
17212
17213 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
17214 return pyobj;
17215 }
17216
17217
17218 static int _wrap_NullCursor_set(PyObject *) {
17219 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17220 return 1;
17221 }
17222
17223
17224 static PyObject *_wrap_NullCursor_get() {
17225 PyObject *pyobj;
17226
17227 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
17228 return pyobj;
17229 }
17230
17231
17232 static int _wrap_NullPen_set(PyObject *) {
17233 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17234 return 1;
17235 }
17236
17237
17238 static PyObject *_wrap_NullPen_get() {
17239 PyObject *pyobj;
17240
17241 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
17242 return pyobj;
17243 }
17244
17245
17246 static int _wrap_NullBrush_set(PyObject *) {
17247 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17248 return 1;
17249 }
17250
17251
17252 static PyObject *_wrap_NullBrush_get() {
17253 PyObject *pyobj;
17254
17255 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
17256 return pyobj;
17257 }
17258
17259
17260 static int _wrap_NullPalette_set(PyObject *) {
17261 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17262 return 1;
17263 }
17264
17265
17266 static PyObject *_wrap_NullPalette_get() {
17267 PyObject *pyobj;
17268
17269 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
17270 return pyobj;
17271 }
17272
17273
17274 static int _wrap_NullFont_set(PyObject *) {
17275 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17276 return 1;
17277 }
17278
17279
17280 static PyObject *_wrap_NullFont_get() {
17281 PyObject *pyobj;
17282
17283 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
17284 return pyobj;
17285 }
17286
17287
17288 static int _wrap_NullColour_set(PyObject *) {
17289 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17290 return 1;
17291 }
17292
17293
17294 static PyObject *_wrap_NullColour_get() {
17295 PyObject *pyobj;
17296
17297 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
17298 return pyobj;
17299 }
17300
17301
17302 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17303 PyObject *resultobj;
17304 wxPenList *arg1 = (wxPenList *) 0 ;
17305 wxPen *arg2 = (wxPen *) 0 ;
17306 PyObject * obj0 = 0 ;
17307 PyObject * obj1 = 0 ;
17308 char *kwnames[] = {
17309 (char *) "self",(char *) "pen", NULL
17310 };
17311
17312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17313 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17314 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17315 {
17316 PyThreadState* __tstate = wxPyBeginAllowThreads();
17317 (arg1)->AddPen(arg2);
17318
17319 wxPyEndAllowThreads(__tstate);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 }
17322 Py_INCREF(Py_None); resultobj = Py_None;
17323 return resultobj;
17324 fail:
17325 return NULL;
17326 }
17327
17328
17329 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17330 PyObject *resultobj;
17331 wxPenList *arg1 = (wxPenList *) 0 ;
17332 wxColour *arg2 = 0 ;
17333 int arg3 ;
17334 int arg4 ;
17335 wxPen *result;
17336 wxColour temp2 ;
17337 PyObject * obj0 = 0 ;
17338 PyObject * obj1 = 0 ;
17339 PyObject * obj2 = 0 ;
17340 PyObject * obj3 = 0 ;
17341 char *kwnames[] = {
17342 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17343 };
17344
17345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17347 {
17348 arg2 = &temp2;
17349 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17350 }
17351 {
17352 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17353 if (PyErr_Occurred()) SWIG_fail;
17354 }
17355 {
17356 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17357 if (PyErr_Occurred()) SWIG_fail;
17358 }
17359 {
17360 PyThreadState* __tstate = wxPyBeginAllowThreads();
17361 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17362
17363 wxPyEndAllowThreads(__tstate);
17364 if (PyErr_Occurred()) SWIG_fail;
17365 }
17366 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
17367 return resultobj;
17368 fail:
17369 return NULL;
17370 }
17371
17372
17373 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17374 PyObject *resultobj;
17375 wxPenList *arg1 = (wxPenList *) 0 ;
17376 wxPen *arg2 = (wxPen *) 0 ;
17377 PyObject * obj0 = 0 ;
17378 PyObject * obj1 = 0 ;
17379 char *kwnames[] = {
17380 (char *) "self",(char *) "pen", NULL
17381 };
17382
17383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17385 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17386 {
17387 PyThreadState* __tstate = wxPyBeginAllowThreads();
17388 (arg1)->RemovePen(arg2);
17389
17390 wxPyEndAllowThreads(__tstate);
17391 if (PyErr_Occurred()) SWIG_fail;
17392 }
17393 Py_INCREF(Py_None); resultobj = Py_None;
17394 return resultobj;
17395 fail:
17396 return NULL;
17397 }
17398
17399
17400 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17401 PyObject *resultobj;
17402 wxPenList *arg1 = (wxPenList *) 0 ;
17403 int result;
17404 PyObject * obj0 = 0 ;
17405 char *kwnames[] = {
17406 (char *) "self", NULL
17407 };
17408
17409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17411 {
17412 PyThreadState* __tstate = wxPyBeginAllowThreads();
17413 result = (int)(arg1)->GetCount();
17414
17415 wxPyEndAllowThreads(__tstate);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 resultobj = SWIG_PyObj_FromInt((int)result);
17419 return resultobj;
17420 fail:
17421 return NULL;
17422 }
17423
17424
17425 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17426 PyObject *obj;
17427 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17428 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17429 Py_INCREF(obj);
17430 return Py_BuildValue((char *)"");
17431 }
17432 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17433 PyObject *resultobj;
17434 wxBrushList *arg1 = (wxBrushList *) 0 ;
17435 wxBrush *arg2 = (wxBrush *) 0 ;
17436 PyObject * obj0 = 0 ;
17437 PyObject * obj1 = 0 ;
17438 char *kwnames[] = {
17439 (char *) "self",(char *) "brush", NULL
17440 };
17441
17442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17444 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17445 {
17446 PyThreadState* __tstate = wxPyBeginAllowThreads();
17447 (arg1)->AddBrush(arg2);
17448
17449 wxPyEndAllowThreads(__tstate);
17450 if (PyErr_Occurred()) SWIG_fail;
17451 }
17452 Py_INCREF(Py_None); resultobj = Py_None;
17453 return resultobj;
17454 fail:
17455 return NULL;
17456 }
17457
17458
17459 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17460 PyObject *resultobj;
17461 wxBrushList *arg1 = (wxBrushList *) 0 ;
17462 wxColour *arg2 = 0 ;
17463 int arg3 ;
17464 wxBrush *result;
17465 wxColour temp2 ;
17466 PyObject * obj0 = 0 ;
17467 PyObject * obj1 = 0 ;
17468 PyObject * obj2 = 0 ;
17469 char *kwnames[] = {
17470 (char *) "self",(char *) "colour",(char *) "style", NULL
17471 };
17472
17473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17475 {
17476 arg2 = &temp2;
17477 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17478 }
17479 {
17480 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17481 if (PyErr_Occurred()) SWIG_fail;
17482 }
17483 {
17484 PyThreadState* __tstate = wxPyBeginAllowThreads();
17485 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17486
17487 wxPyEndAllowThreads(__tstate);
17488 if (PyErr_Occurred()) SWIG_fail;
17489 }
17490 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
17491 return resultobj;
17492 fail:
17493 return NULL;
17494 }
17495
17496
17497 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17498 PyObject *resultobj;
17499 wxBrushList *arg1 = (wxBrushList *) 0 ;
17500 wxBrush *arg2 = (wxBrush *) 0 ;
17501 PyObject * obj0 = 0 ;
17502 PyObject * obj1 = 0 ;
17503 char *kwnames[] = {
17504 (char *) "self",(char *) "brush", NULL
17505 };
17506
17507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17509 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17510 {
17511 PyThreadState* __tstate = wxPyBeginAllowThreads();
17512 (arg1)->RemoveBrush(arg2);
17513
17514 wxPyEndAllowThreads(__tstate);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 }
17517 Py_INCREF(Py_None); resultobj = Py_None;
17518 return resultobj;
17519 fail:
17520 return NULL;
17521 }
17522
17523
17524 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17525 PyObject *resultobj;
17526 wxBrushList *arg1 = (wxBrushList *) 0 ;
17527 int result;
17528 PyObject * obj0 = 0 ;
17529 char *kwnames[] = {
17530 (char *) "self", NULL
17531 };
17532
17533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17535 {
17536 PyThreadState* __tstate = wxPyBeginAllowThreads();
17537 result = (int)(arg1)->GetCount();
17538
17539 wxPyEndAllowThreads(__tstate);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 }
17542 resultobj = SWIG_PyObj_FromInt((int)result);
17543 return resultobj;
17544 fail:
17545 return NULL;
17546 }
17547
17548
17549 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17550 PyObject *obj;
17551 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17552 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17553 Py_INCREF(obj);
17554 return Py_BuildValue((char *)"");
17555 }
17556 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17557 PyObject *resultobj;
17558 wxColourDatabase *result;
17559 char *kwnames[] = {
17560 NULL
17561 };
17562
17563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17564 {
17565 PyThreadState* __tstate = wxPyBeginAllowThreads();
17566 result = (wxColourDatabase *)new wxColourDatabase();
17567
17568 wxPyEndAllowThreads(__tstate);
17569 if (PyErr_Occurred()) SWIG_fail;
17570 }
17571 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
17572 return resultobj;
17573 fail:
17574 return NULL;
17575 }
17576
17577
17578 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17579 PyObject *resultobj;
17580 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17581 PyObject * obj0 = 0 ;
17582 char *kwnames[] = {
17583 (char *) "self", NULL
17584 };
17585
17586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17588 {
17589 PyThreadState* __tstate = wxPyBeginAllowThreads();
17590 delete arg1;
17591
17592 wxPyEndAllowThreads(__tstate);
17593 if (PyErr_Occurred()) SWIG_fail;
17594 }
17595 Py_INCREF(Py_None); resultobj = Py_None;
17596 return resultobj;
17597 fail:
17598 return NULL;
17599 }
17600
17601
17602 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17603 PyObject *resultobj;
17604 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17605 wxString *arg2 = 0 ;
17606 wxColour result;
17607 bool temp2 = False ;
17608 PyObject * obj0 = 0 ;
17609 PyObject * obj1 = 0 ;
17610 char *kwnames[] = {
17611 (char *) "self",(char *) "name", NULL
17612 };
17613
17614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17616 {
17617 arg2 = wxString_in_helper(obj1);
17618 if (arg2 == NULL) SWIG_fail;
17619 temp2 = True;
17620 }
17621 {
17622 PyThreadState* __tstate = wxPyBeginAllowThreads();
17623 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17624
17625 wxPyEndAllowThreads(__tstate);
17626 if (PyErr_Occurred()) SWIG_fail;
17627 }
17628 {
17629 wxColour * resultptr;
17630 resultptr = new wxColour((wxColour &) result);
17631 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17632 }
17633 {
17634 if (temp2)
17635 delete arg2;
17636 }
17637 return resultobj;
17638 fail:
17639 {
17640 if (temp2)
17641 delete arg2;
17642 }
17643 return NULL;
17644 }
17645
17646
17647 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17648 PyObject *resultobj;
17649 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17650 wxColour *arg2 = 0 ;
17651 wxString result;
17652 wxColour temp2 ;
17653 PyObject * obj0 = 0 ;
17654 PyObject * obj1 = 0 ;
17655 char *kwnames[] = {
17656 (char *) "self",(char *) "colour", NULL
17657 };
17658
17659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17661 {
17662 arg2 = &temp2;
17663 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17664 }
17665 {
17666 PyThreadState* __tstate = wxPyBeginAllowThreads();
17667 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17668
17669 wxPyEndAllowThreads(__tstate);
17670 if (PyErr_Occurred()) SWIG_fail;
17671 }
17672 {
17673 #if wxUSE_UNICODE
17674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17675 #else
17676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17677 #endif
17678 }
17679 return resultobj;
17680 fail:
17681 return NULL;
17682 }
17683
17684
17685 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17686 PyObject *resultobj;
17687 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17688 wxString *arg2 = 0 ;
17689 wxColour *arg3 = 0 ;
17690 bool temp2 = False ;
17691 wxColour temp3 ;
17692 PyObject * obj0 = 0 ;
17693 PyObject * obj1 = 0 ;
17694 PyObject * obj2 = 0 ;
17695 char *kwnames[] = {
17696 (char *) "self",(char *) "name",(char *) "colour", NULL
17697 };
17698
17699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17701 {
17702 arg2 = wxString_in_helper(obj1);
17703 if (arg2 == NULL) SWIG_fail;
17704 temp2 = True;
17705 }
17706 {
17707 arg3 = &temp3;
17708 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17709 }
17710 {
17711 PyThreadState* __tstate = wxPyBeginAllowThreads();
17712 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17713
17714 wxPyEndAllowThreads(__tstate);
17715 if (PyErr_Occurred()) SWIG_fail;
17716 }
17717 Py_INCREF(Py_None); resultobj = Py_None;
17718 {
17719 if (temp2)
17720 delete arg2;
17721 }
17722 return resultobj;
17723 fail:
17724 {
17725 if (temp2)
17726 delete arg2;
17727 }
17728 return NULL;
17729 }
17730
17731
17732 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17733 PyObject *resultobj;
17734 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17735 wxString *arg2 = 0 ;
17736 int arg3 ;
17737 int arg4 ;
17738 int arg5 ;
17739 bool temp2 = False ;
17740 PyObject * obj0 = 0 ;
17741 PyObject * obj1 = 0 ;
17742 PyObject * obj2 = 0 ;
17743 PyObject * obj3 = 0 ;
17744 PyObject * obj4 = 0 ;
17745 char *kwnames[] = {
17746 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17747 };
17748
17749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17751 {
17752 arg2 = wxString_in_helper(obj1);
17753 if (arg2 == NULL) SWIG_fail;
17754 temp2 = True;
17755 }
17756 {
17757 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17758 if (PyErr_Occurred()) SWIG_fail;
17759 }
17760 {
17761 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17762 if (PyErr_Occurred()) SWIG_fail;
17763 }
17764 {
17765 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17766 if (PyErr_Occurred()) SWIG_fail;
17767 }
17768 {
17769 PyThreadState* __tstate = wxPyBeginAllowThreads();
17770 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17771
17772 wxPyEndAllowThreads(__tstate);
17773 if (PyErr_Occurred()) SWIG_fail;
17774 }
17775 Py_INCREF(Py_None); resultobj = Py_None;
17776 {
17777 if (temp2)
17778 delete arg2;
17779 }
17780 return resultobj;
17781 fail:
17782 {
17783 if (temp2)
17784 delete arg2;
17785 }
17786 return NULL;
17787 }
17788
17789
17790 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17791 PyObject *obj;
17792 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17793 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17794 Py_INCREF(obj);
17795 return Py_BuildValue((char *)"");
17796 }
17797 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17798 PyObject *resultobj;
17799 wxFontList *arg1 = (wxFontList *) 0 ;
17800 wxFont *arg2 = (wxFont *) 0 ;
17801 PyObject * obj0 = 0 ;
17802 PyObject * obj1 = 0 ;
17803 char *kwnames[] = {
17804 (char *) "self",(char *) "font", NULL
17805 };
17806
17807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17808 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17809 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17810 {
17811 PyThreadState* __tstate = wxPyBeginAllowThreads();
17812 (arg1)->AddFont(arg2);
17813
17814 wxPyEndAllowThreads(__tstate);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 }
17817 Py_INCREF(Py_None); resultobj = Py_None;
17818 return resultobj;
17819 fail:
17820 return NULL;
17821 }
17822
17823
17824 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17825 PyObject *resultobj;
17826 wxFontList *arg1 = (wxFontList *) 0 ;
17827 int arg2 ;
17828 int arg3 ;
17829 int arg4 ;
17830 int arg5 ;
17831 bool arg6 = (bool) False ;
17832 wxString const &arg7_defvalue = wxPyEmptyString ;
17833 wxString *arg7 = (wxString *) &arg7_defvalue ;
17834 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17835 wxFont *result;
17836 bool temp7 = False ;
17837 PyObject * obj0 = 0 ;
17838 PyObject * obj1 = 0 ;
17839 PyObject * obj2 = 0 ;
17840 PyObject * obj3 = 0 ;
17841 PyObject * obj4 = 0 ;
17842 PyObject * obj5 = 0 ;
17843 PyObject * obj6 = 0 ;
17844 PyObject * obj7 = 0 ;
17845 char *kwnames[] = {
17846 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17847 };
17848
17849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17851 {
17852 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17853 if (PyErr_Occurred()) SWIG_fail;
17854 }
17855 {
17856 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
17859 {
17860 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17861 if (PyErr_Occurred()) SWIG_fail;
17862 }
17863 {
17864 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17865 if (PyErr_Occurred()) SWIG_fail;
17866 }
17867 if (obj5) {
17868 {
17869 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
17870 if (PyErr_Occurred()) SWIG_fail;
17871 }
17872 }
17873 if (obj6) {
17874 {
17875 arg7 = wxString_in_helper(obj6);
17876 if (arg7 == NULL) SWIG_fail;
17877 temp7 = True;
17878 }
17879 }
17880 if (obj7) {
17881 {
17882 arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7);
17883 if (PyErr_Occurred()) SWIG_fail;
17884 }
17885 }
17886 {
17887 PyThreadState* __tstate = wxPyBeginAllowThreads();
17888 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17889
17890 wxPyEndAllowThreads(__tstate);
17891 if (PyErr_Occurred()) SWIG_fail;
17892 }
17893 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
17894 {
17895 if (temp7)
17896 delete arg7;
17897 }
17898 return resultobj;
17899 fail:
17900 {
17901 if (temp7)
17902 delete arg7;
17903 }
17904 return NULL;
17905 }
17906
17907
17908 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj;
17910 wxFontList *arg1 = (wxFontList *) 0 ;
17911 wxFont *arg2 = (wxFont *) 0 ;
17912 PyObject * obj0 = 0 ;
17913 PyObject * obj1 = 0 ;
17914 char *kwnames[] = {
17915 (char *) "self",(char *) "font", NULL
17916 };
17917
17918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17920 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 (arg1)->RemoveFont(arg2);
17924
17925 wxPyEndAllowThreads(__tstate);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 }
17928 Py_INCREF(Py_None); resultobj = Py_None;
17929 return resultobj;
17930 fail:
17931 return NULL;
17932 }
17933
17934
17935 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17936 PyObject *resultobj;
17937 wxFontList *arg1 = (wxFontList *) 0 ;
17938 int result;
17939 PyObject * obj0 = 0 ;
17940 char *kwnames[] = {
17941 (char *) "self", NULL
17942 };
17943
17944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17946 {
17947 PyThreadState* __tstate = wxPyBeginAllowThreads();
17948 result = (int)(arg1)->GetCount();
17949
17950 wxPyEndAllowThreads(__tstate);
17951 if (PyErr_Occurred()) SWIG_fail;
17952 }
17953 resultobj = SWIG_PyObj_FromInt((int)result);
17954 return resultobj;
17955 fail:
17956 return NULL;
17957 }
17958
17959
17960 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17961 PyObject *obj;
17962 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17963 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17964 Py_INCREF(obj);
17965 return Py_BuildValue((char *)"");
17966 }
17967 static int _wrap_TheFontList_set(PyObject *) {
17968 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17969 return 1;
17970 }
17971
17972
17973 static PyObject *_wrap_TheFontList_get() {
17974 PyObject *pyobj;
17975
17976 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
17977 return pyobj;
17978 }
17979
17980
17981 static int _wrap_ThePenList_set(PyObject *) {
17982 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17983 return 1;
17984 }
17985
17986
17987 static PyObject *_wrap_ThePenList_get() {
17988 PyObject *pyobj;
17989
17990 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
17991 return pyobj;
17992 }
17993
17994
17995 static int _wrap_TheBrushList_set(PyObject *) {
17996 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17997 return 1;
17998 }
17999
18000
18001 static PyObject *_wrap_TheBrushList_get() {
18002 PyObject *pyobj;
18003
18004 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
18005 return pyobj;
18006 }
18007
18008
18009 static int _wrap_TheColourDatabase_set(PyObject *) {
18010 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18011 return 1;
18012 }
18013
18014
18015 static PyObject *_wrap_TheColourDatabase_get() {
18016 PyObject *pyobj;
18017
18018 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
18019 return pyobj;
18020 }
18021
18022
18023 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
18024 PyObject *resultobj;
18025 wxEffects *result;
18026 char *kwnames[] = {
18027 NULL
18028 };
18029
18030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18031 {
18032 PyThreadState* __tstate = wxPyBeginAllowThreads();
18033 result = (wxEffects *)new wxEffects();
18034
18035 wxPyEndAllowThreads(__tstate);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
18038 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
18039 return resultobj;
18040 fail:
18041 return NULL;
18042 }
18043
18044
18045 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18046 PyObject *resultobj;
18047 wxEffects *arg1 = (wxEffects *) 0 ;
18048 wxColour result;
18049 PyObject * obj0 = 0 ;
18050 char *kwnames[] = {
18051 (char *) "self", NULL
18052 };
18053
18054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18056 {
18057 PyThreadState* __tstate = wxPyBeginAllowThreads();
18058 result = ((wxEffects const *)arg1)->GetHighlightColour();
18059
18060 wxPyEndAllowThreads(__tstate);
18061 if (PyErr_Occurred()) SWIG_fail;
18062 }
18063 {
18064 wxColour * resultptr;
18065 resultptr = new wxColour((wxColour &) result);
18066 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18067 }
18068 return resultobj;
18069 fail:
18070 return NULL;
18071 }
18072
18073
18074 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18075 PyObject *resultobj;
18076 wxEffects *arg1 = (wxEffects *) 0 ;
18077 wxColour result;
18078 PyObject * obj0 = 0 ;
18079 char *kwnames[] = {
18080 (char *) "self", NULL
18081 };
18082
18083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18085 {
18086 PyThreadState* __tstate = wxPyBeginAllowThreads();
18087 result = ((wxEffects const *)arg1)->GetLightShadow();
18088
18089 wxPyEndAllowThreads(__tstate);
18090 if (PyErr_Occurred()) SWIG_fail;
18091 }
18092 {
18093 wxColour * resultptr;
18094 resultptr = new wxColour((wxColour &) result);
18095 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18096 }
18097 return resultobj;
18098 fail:
18099 return NULL;
18100 }
18101
18102
18103 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18104 PyObject *resultobj;
18105 wxEffects *arg1 = (wxEffects *) 0 ;
18106 wxColour result;
18107 PyObject * obj0 = 0 ;
18108 char *kwnames[] = {
18109 (char *) "self", NULL
18110 };
18111
18112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18114 {
18115 PyThreadState* __tstate = wxPyBeginAllowThreads();
18116 result = ((wxEffects const *)arg1)->GetFaceColour();
18117
18118 wxPyEndAllowThreads(__tstate);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 }
18121 {
18122 wxColour * resultptr;
18123 resultptr = new wxColour((wxColour &) result);
18124 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18125 }
18126 return resultobj;
18127 fail:
18128 return NULL;
18129 }
18130
18131
18132 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18133 PyObject *resultobj;
18134 wxEffects *arg1 = (wxEffects *) 0 ;
18135 wxColour result;
18136 PyObject * obj0 = 0 ;
18137 char *kwnames[] = {
18138 (char *) "self", NULL
18139 };
18140
18141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 result = ((wxEffects const *)arg1)->GetMediumShadow();
18146
18147 wxPyEndAllowThreads(__tstate);
18148 if (PyErr_Occurred()) SWIG_fail;
18149 }
18150 {
18151 wxColour * resultptr;
18152 resultptr = new wxColour((wxColour &) result);
18153 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18154 }
18155 return resultobj;
18156 fail:
18157 return NULL;
18158 }
18159
18160
18161 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18162 PyObject *resultobj;
18163 wxEffects *arg1 = (wxEffects *) 0 ;
18164 wxColour result;
18165 PyObject * obj0 = 0 ;
18166 char *kwnames[] = {
18167 (char *) "self", NULL
18168 };
18169
18170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18172 {
18173 PyThreadState* __tstate = wxPyBeginAllowThreads();
18174 result = ((wxEffects const *)arg1)->GetDarkShadow();
18175
18176 wxPyEndAllowThreads(__tstate);
18177 if (PyErr_Occurred()) SWIG_fail;
18178 }
18179 {
18180 wxColour * resultptr;
18181 resultptr = new wxColour((wxColour &) result);
18182 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18183 }
18184 return resultobj;
18185 fail:
18186 return NULL;
18187 }
18188
18189
18190 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18191 PyObject *resultobj;
18192 wxEffects *arg1 = (wxEffects *) 0 ;
18193 wxColour *arg2 = 0 ;
18194 wxColour temp2 ;
18195 PyObject * obj0 = 0 ;
18196 PyObject * obj1 = 0 ;
18197 char *kwnames[] = {
18198 (char *) "self",(char *) "c", NULL
18199 };
18200
18201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18203 {
18204 arg2 = &temp2;
18205 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18206 }
18207 {
18208 PyThreadState* __tstate = wxPyBeginAllowThreads();
18209 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18210
18211 wxPyEndAllowThreads(__tstate);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 Py_INCREF(Py_None); resultobj = Py_None;
18215 return resultobj;
18216 fail:
18217 return NULL;
18218 }
18219
18220
18221 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18222 PyObject *resultobj;
18223 wxEffects *arg1 = (wxEffects *) 0 ;
18224 wxColour *arg2 = 0 ;
18225 wxColour temp2 ;
18226 PyObject * obj0 = 0 ;
18227 PyObject * obj1 = 0 ;
18228 char *kwnames[] = {
18229 (char *) "self",(char *) "c", NULL
18230 };
18231
18232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18234 {
18235 arg2 = &temp2;
18236 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18237 }
18238 {
18239 PyThreadState* __tstate = wxPyBeginAllowThreads();
18240 (arg1)->SetLightShadow((wxColour const &)*arg2);
18241
18242 wxPyEndAllowThreads(__tstate);
18243 if (PyErr_Occurred()) SWIG_fail;
18244 }
18245 Py_INCREF(Py_None); resultobj = Py_None;
18246 return resultobj;
18247 fail:
18248 return NULL;
18249 }
18250
18251
18252 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18253 PyObject *resultobj;
18254 wxEffects *arg1 = (wxEffects *) 0 ;
18255 wxColour *arg2 = 0 ;
18256 wxColour temp2 ;
18257 PyObject * obj0 = 0 ;
18258 PyObject * obj1 = 0 ;
18259 char *kwnames[] = {
18260 (char *) "self",(char *) "c", NULL
18261 };
18262
18263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18265 {
18266 arg2 = &temp2;
18267 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18268 }
18269 {
18270 PyThreadState* __tstate = wxPyBeginAllowThreads();
18271 (arg1)->SetFaceColour((wxColour const &)*arg2);
18272
18273 wxPyEndAllowThreads(__tstate);
18274 if (PyErr_Occurred()) SWIG_fail;
18275 }
18276 Py_INCREF(Py_None); resultobj = Py_None;
18277 return resultobj;
18278 fail:
18279 return NULL;
18280 }
18281
18282
18283 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18284 PyObject *resultobj;
18285 wxEffects *arg1 = (wxEffects *) 0 ;
18286 wxColour *arg2 = 0 ;
18287 wxColour temp2 ;
18288 PyObject * obj0 = 0 ;
18289 PyObject * obj1 = 0 ;
18290 char *kwnames[] = {
18291 (char *) "self",(char *) "c", NULL
18292 };
18293
18294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18296 {
18297 arg2 = &temp2;
18298 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18299 }
18300 {
18301 PyThreadState* __tstate = wxPyBeginAllowThreads();
18302 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18303
18304 wxPyEndAllowThreads(__tstate);
18305 if (PyErr_Occurred()) SWIG_fail;
18306 }
18307 Py_INCREF(Py_None); resultobj = Py_None;
18308 return resultobj;
18309 fail:
18310 return NULL;
18311 }
18312
18313
18314 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18315 PyObject *resultobj;
18316 wxEffects *arg1 = (wxEffects *) 0 ;
18317 wxColour *arg2 = 0 ;
18318 wxColour temp2 ;
18319 PyObject * obj0 = 0 ;
18320 PyObject * obj1 = 0 ;
18321 char *kwnames[] = {
18322 (char *) "self",(char *) "c", NULL
18323 };
18324
18325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18327 {
18328 arg2 = &temp2;
18329 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18330 }
18331 {
18332 PyThreadState* __tstate = wxPyBeginAllowThreads();
18333 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18334
18335 wxPyEndAllowThreads(__tstate);
18336 if (PyErr_Occurred()) SWIG_fail;
18337 }
18338 Py_INCREF(Py_None); resultobj = Py_None;
18339 return resultobj;
18340 fail:
18341 return NULL;
18342 }
18343
18344
18345 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18346 PyObject *resultobj;
18347 wxEffects *arg1 = (wxEffects *) 0 ;
18348 wxColour *arg2 = 0 ;
18349 wxColour *arg3 = 0 ;
18350 wxColour *arg4 = 0 ;
18351 wxColour *arg5 = 0 ;
18352 wxColour *arg6 = 0 ;
18353 wxColour temp2 ;
18354 wxColour temp3 ;
18355 wxColour temp4 ;
18356 wxColour temp5 ;
18357 wxColour temp6 ;
18358 PyObject * obj0 = 0 ;
18359 PyObject * obj1 = 0 ;
18360 PyObject * obj2 = 0 ;
18361 PyObject * obj3 = 0 ;
18362 PyObject * obj4 = 0 ;
18363 PyObject * obj5 = 0 ;
18364 char *kwnames[] = {
18365 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18366 };
18367
18368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18370 {
18371 arg2 = &temp2;
18372 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18373 }
18374 {
18375 arg3 = &temp3;
18376 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18377 }
18378 {
18379 arg4 = &temp4;
18380 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18381 }
18382 {
18383 arg5 = &temp5;
18384 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18385 }
18386 {
18387 arg6 = &temp6;
18388 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18389 }
18390 {
18391 PyThreadState* __tstate = wxPyBeginAllowThreads();
18392 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18393
18394 wxPyEndAllowThreads(__tstate);
18395 if (PyErr_Occurred()) SWIG_fail;
18396 }
18397 Py_INCREF(Py_None); resultobj = Py_None;
18398 return resultobj;
18399 fail:
18400 return NULL;
18401 }
18402
18403
18404 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18405 PyObject *resultobj;
18406 wxEffects *arg1 = (wxEffects *) 0 ;
18407 wxDC *arg2 = 0 ;
18408 wxRect *arg3 = 0 ;
18409 int arg4 = (int) 1 ;
18410 wxRect temp3 ;
18411 PyObject * obj0 = 0 ;
18412 PyObject * obj1 = 0 ;
18413 PyObject * obj2 = 0 ;
18414 PyObject * obj3 = 0 ;
18415 char *kwnames[] = {
18416 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18417 };
18418
18419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18421 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18422 if (arg2 == NULL) {
18423 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18424 }
18425 {
18426 arg3 = &temp3;
18427 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18428 }
18429 if (obj3) {
18430 {
18431 arg4 = (int) SWIG_PyObj_AsInt(obj3);
18432 if (PyErr_Occurred()) SWIG_fail;
18433 }
18434 }
18435 {
18436 PyThreadState* __tstate = wxPyBeginAllowThreads();
18437 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18438
18439 wxPyEndAllowThreads(__tstate);
18440 if (PyErr_Occurred()) SWIG_fail;
18441 }
18442 Py_INCREF(Py_None); resultobj = Py_None;
18443 return resultobj;
18444 fail:
18445 return NULL;
18446 }
18447
18448
18449 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18450 PyObject *resultobj;
18451 wxEffects *arg1 = (wxEffects *) 0 ;
18452 wxRect *arg2 = 0 ;
18453 wxDC *arg3 = 0 ;
18454 wxBitmap *arg4 = 0 ;
18455 bool result;
18456 wxRect temp2 ;
18457 PyObject * obj0 = 0 ;
18458 PyObject * obj1 = 0 ;
18459 PyObject * obj2 = 0 ;
18460 PyObject * obj3 = 0 ;
18461 char *kwnames[] = {
18462 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18463 };
18464
18465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18467 {
18468 arg2 = &temp2;
18469 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18470 }
18471 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18472 if (arg3 == NULL) {
18473 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18474 }
18475 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18476 if (arg4 == NULL) {
18477 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18478 }
18479 {
18480 PyThreadState* __tstate = wxPyBeginAllowThreads();
18481 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18482
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18487 return resultobj;
18488 fail:
18489 return NULL;
18490 }
18491
18492
18493 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18494 PyObject *obj;
18495 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18496 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18497 Py_INCREF(obj);
18498 return Py_BuildValue((char *)"");
18499 }
18500 static PyMethodDef SwigMethods[] = {
18501 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18507 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18522 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18528 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18548 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18552 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18562 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18591 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18594 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18613 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18621 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18629 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18645 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18672 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18686 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18701 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18703 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18708 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18710 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18719 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18730 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18738 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18759 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18760 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18761 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18764 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18773 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18775 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18776 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18777 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18778 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18779 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18780 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18782 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18783 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18785 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18786 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18790 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18791 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18792 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18793 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18794 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18795 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18796 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18797 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18798 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18799 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18800 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18801 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18802 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18803 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18804 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18805 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18806 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18807 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18808 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18809 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18810 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18811 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18812 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18813 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18814 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18815 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18816 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18817 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18818 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18819 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18820 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18821 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18822 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18823 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18824 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18825 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18826 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18827 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18828 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18829 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18830 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18831 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18832 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18833 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18834 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18835 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18836 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18837 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18838 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18839 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18840 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18841 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18842 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18843 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18844 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18845 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18846 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18847 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18848 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18849 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18850 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18851 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18852 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18853 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18854 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18855 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18856 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18857 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18858 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18859 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18860 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18861 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18862 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18863 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18864 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18865 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18866 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18867 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18868 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18869 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18870 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18871 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18872 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18873 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18874 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18875 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18876 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18877 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18878 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18879 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18880 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18881 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18882 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18883 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18884 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18885 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18886 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18887 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18888 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18889 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18890 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18891 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18892 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18893 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18894 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18895 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18896 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18897 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18898 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18899 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18900 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18901 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18902 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18903 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18904 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18905 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18906 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18907 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18908 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18909 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18910 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18911 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18912 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18913 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18914 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18915 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18916 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18917 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18918 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18919 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18920 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18921 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18922 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18923 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18924 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18925 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18926 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18927 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18928 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18929 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18930 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18931 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18932 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18933 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18934 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18935 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18936 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18937 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18938 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18939 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18940 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18941 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18942 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18943 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18944 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18945 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18946 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18947 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18948 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18949 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18950 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18951 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18952 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18953 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18954 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18955 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18956 { (char *)"new_BufferedPaintDC", _wrap_new_BufferedPaintDC, METH_VARARGS },
18957 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18958 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18959 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18960 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18961 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18962 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18963 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18964 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18965 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18966 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18967 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18968 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18969 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18970 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18971 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18972 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18973 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18974 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18975 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18976 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18977 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18978 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18979 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18980 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18981 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18982 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18983 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18984 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
18985 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18986 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18987 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18988 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18989 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18990 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18991 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18992 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18993 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18994 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18995 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18996 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18997 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18998 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18999 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19000 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19001 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19002 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19003 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19004 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19005 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19006 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19007 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19008 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19009 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19010 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19011 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19012 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19013 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19014 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19015 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19016 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19017 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19018 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19019 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19020 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19021 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19022 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19023 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19024 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
19025 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19026 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19027 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19028 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19029 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19030 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19031 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19032 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19033 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19034 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19035 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19036 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19037 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19038 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19039 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19040 { NULL, NULL }
19041 };
19042
19043
19044 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19045
19046 static void *_p_wxControlTo_p_wxWindow(void *x) {
19047 return (void *)((wxWindow *) ((wxControl *) x));
19048 }
19049 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19050 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19051 }
19052 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19053 return (void *)((wxWindow *) ((wxMenuBar *) x));
19054 }
19055 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19056 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19057 }
19058 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19059 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19060 }
19061 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19062 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19063 }
19064 static void *_p_wxPenTo_p_wxObject(void *x) {
19065 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19066 }
19067 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19068 return (void *)((wxObject *) ((wxRegionIterator *) x));
19069 }
19070 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19071 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19072 }
19073 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19074 return (void *)((wxObject *) ((wxSizerItem *) x));
19075 }
19076 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19077 return (void *)((wxObject *) ((wxColourDatabase *) x));
19078 }
19079 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19080 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19081 }
19082 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19083 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19084 }
19085 static void *_p_wxIconTo_p_wxObject(void *x) {
19086 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19087 }
19088 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19089 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19090 }
19091 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19092 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19093 }
19094 static void *_p_wxSizerTo_p_wxObject(void *x) {
19095 return (void *)((wxObject *) ((wxSizer *) x));
19096 }
19097 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19098 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19099 }
19100 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19101 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19102 }
19103 static void *_p_wxPenListTo_p_wxObject(void *x) {
19104 return (void *)((wxObject *) ((wxPenList *) x));
19105 }
19106 static void *_p_wxEventTo_p_wxObject(void *x) {
19107 return (void *)((wxObject *) ((wxEvent *) x));
19108 }
19109 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19110 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19111 }
19112 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19113 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19114 }
19115 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19116 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19117 }
19118 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19119 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19120 }
19121 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19122 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19123 }
19124 static void *_p_wxDCTo_p_wxObject(void *x) {
19125 return (void *)((wxObject *) ((wxDC *) x));
19126 }
19127 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19128 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19129 }
19130 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19131 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19132 }
19133 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19134 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19135 }
19136 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19137 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19138 }
19139 static void *_p_wxControlTo_p_wxObject(void *x) {
19140 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19141 }
19142 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19143 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19144 }
19145 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19146 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19147 }
19148 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19149 return (void *)((wxObject *) ((wxFSFile *) x));
19150 }
19151 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19152 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19153 }
19154 static void *_p_wxRegionTo_p_wxObject(void *x) {
19155 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19156 }
19157 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19158 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19159 }
19160 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19161 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19162 }
19163 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19164 return (void *)((wxObject *) ((wxGDIObject *) x));
19165 }
19166 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19167 return (void *)((wxObject *) ((wxEffects *) x));
19168 }
19169 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19170 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19171 }
19172 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19173 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19174 }
19175 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19176 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19177 }
19178 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19179 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19180 }
19181 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19182 return (void *)((wxObject *) ((wxMenuItem *) x));
19183 }
19184 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19185 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19186 }
19187 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19188 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19189 }
19190 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19191 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19192 }
19193 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19194 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19195 }
19196 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19197 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19198 }
19199 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19200 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19201 }
19202 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19203 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19204 }
19205 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19206 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19207 }
19208 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19209 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19210 }
19211 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19212 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19213 }
19214 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19215 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19216 }
19217 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19218 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19219 }
19220 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19221 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19222 }
19223 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19224 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19225 }
19226 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19227 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19228 }
19229 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19230 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19231 }
19232 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19233 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19234 }
19235 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19236 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19237 }
19238 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19239 return (void *)((wxObject *) ((wxImageHandler *) x));
19240 }
19241 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19242 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19243 }
19244 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19245 return (void *)((wxObject *) ((wxEvtHandler *) x));
19246 }
19247 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19248 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19249 }
19250 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19251 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19252 }
19253 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19254 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19255 }
19256 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19257 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19258 }
19259 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19260 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19261 }
19262 static void *_p_wxImageTo_p_wxObject(void *x) {
19263 return (void *)((wxObject *) ((wxImage *) x));
19264 }
19265 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19266 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19267 }
19268 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19269 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19270 }
19271 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19272 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19273 }
19274 static void *_p_wxImageListTo_p_wxObject(void *x) {
19275 return (void *)((wxObject *) ((wxImageList *) x));
19276 }
19277 static void *_p_wxCursorTo_p_wxObject(void *x) {
19278 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19279 }
19280 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19281 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19282 }
19283 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19284 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19285 }
19286 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19287 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19288 }
19289 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19290 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19291 }
19292 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19293 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19294 }
19295 static void *_p_wxWindowTo_p_wxObject(void *x) {
19296 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19297 }
19298 static void *_p_wxMenuTo_p_wxObject(void *x) {
19299 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19300 }
19301 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19302 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19303 }
19304 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19305 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19306 }
19307 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19308 return (void *)((wxObject *) ((wxBrushList *) x));
19309 }
19310 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19311 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19312 }
19313 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19314 return (void *)((wxObject *) ((wxFileSystem *) x));
19315 }
19316 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19317 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19318 }
19319 static void *_p_wxMaskTo_p_wxObject(void *x) {
19320 return (void *)((wxObject *) ((wxMask *) x));
19321 }
19322 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19323 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19324 }
19325 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19326 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19327 }
19328 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19329 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19330 }
19331 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19332 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19333 }
19334 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19335 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19336 }
19337 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19338 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19339 }
19340 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19341 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19342 }
19343 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19344 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19345 }
19346 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19347 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19348 }
19349 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19350 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19351 }
19352 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19353 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19354 }
19355 static void *_p_wxFontTo_p_wxObject(void *x) {
19356 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19357 }
19358 static void *_p_wxBrushTo_p_wxObject(void *x) {
19359 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19360 }
19361 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19362 return (void *)((wxObject *) ((wxMetaFile *) x));
19363 }
19364 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19365 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19366 }
19367 static void *_p_wxColourTo_p_wxObject(void *x) {
19368 return (void *)((wxObject *) ((wxColour *) x));
19369 }
19370 static void *_p_wxFontListTo_p_wxObject(void *x) {
19371 return (void *)((wxObject *) ((wxFontList *) x));
19372 }
19373 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19374 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19375 }
19376 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19377 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19378 }
19379 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19380 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19381 }
19382 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19383 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19384 }
19385 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19386 return (void *)((wxDC *) ((wxScreenDC *) x));
19387 }
19388 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19389 return (void *)((wxDC *) ((wxMirrorDC *) x));
19390 }
19391 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19392 return (void *)((wxDC *) ((wxMemoryDC *) x));
19393 }
19394 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19395 return (void *)((wxDC *) ((wxWindowDC *) x));
19396 }
19397 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19398 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19399 }
19400 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19401 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19402 }
19403 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19404 return (void *)((wxDC *) ((wxClientDC *) x));
19405 }
19406 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19407 return (void *)((wxDC *) ((wxPaintDC *) x));
19408 }
19409 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19410 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19411 }
19412 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19413 return (void *)((wxDC *) ((wxPrinterDC *) x));
19414 }
19415 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19416 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19417 }
19418 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19419 return (void *)((wxGDIObject *) ((wxIcon *) x));
19420 }
19421 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19422 return (void *)((wxGDIObject *) ((wxPalette *) x));
19423 }
19424 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19425 return (void *)((wxGDIObject *) ((wxPen *) x));
19426 }
19427 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19428 return (void *)((wxGDIObject *) ((wxFont *) x));
19429 }
19430 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19431 return (void *)((wxGDIObject *) ((wxCursor *) x));
19432 }
19433 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19434 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19435 }
19436 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19437 return (void *)((wxGDIObject *) ((wxRegion *) x));
19438 }
19439 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19440 return (void *)((wxGDIObject *) ((wxBrush *) x));
19441 }
19442 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19443 return (void *)((wxPen *) ((wxPyPen *) x));
19444 }
19445 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
19446 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
19447 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
19448 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}};
19449 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
19450 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
19451 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
19452 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
19453 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
19454 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
19455 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
19456 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
19457 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
19458 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}};
19459 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
19460 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
19461 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}};
19462 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
19463 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
19464 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
19465 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
19466 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
19467 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}};
19468 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
19469 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
19470 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
19471 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
19472 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
19473 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
19474 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
19475 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
19476 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
19477 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
19478 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
19479 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
19480 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
19481 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}};
19482 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
19483 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
19484 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
19485 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
19486 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
19487 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
19488 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
19489 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
19490 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
19491 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
19492 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
19493 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
19494 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
19495 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
19496 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
19497 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
19498 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
19499 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
19500 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
19501
19502 static swig_type_info *swig_types_initial[] = {
19503 _swigt__p_wxPostScriptDC,
19504 _swigt__p_wxBrush,
19505 _swigt__p_wxColour,
19506 _swigt__p_wxDC,
19507 _swigt__p_wxMirrorDC,
19508 _swigt__p_byte,
19509 _swigt__p_wxPyFontEnumerator,
19510 _swigt__p_char,
19511 _swigt__p_wxIconLocation,
19512 _swigt__p_wxImage,
19513 _swigt__p_wxMetaFileDC,
19514 _swigt__p_wxMask,
19515 _swigt__p_wxFont,
19516 _swigt__p_wxWindow,
19517 _swigt__p_wxSize,
19518 _swigt__p_double,
19519 _swigt__p_wxMemoryDC,
19520 _swigt__p_wxFontMapper,
19521 _swigt__p_wxEffects,
19522 _swigt__p_wxNativeEncodingInfo,
19523 _swigt__p_wxPalette,
19524 _swigt__p_wxBitmap,
19525 _swigt__p_wxObject,
19526 _swigt__p_wxRegionIterator,
19527 _swigt__p_wxRect,
19528 _swigt__p_wxString,
19529 _swigt__p_wxPrinterDC,
19530 _swigt__p_wxIconBundle,
19531 _swigt__p_wxPoint,
19532 _swigt__p_wxDash,
19533 _swigt__p_wxScreenDC,
19534 _swigt__p_wxCursor,
19535 _swigt__p_wxClientDC,
19536 _swigt__p_wxBufferedDC,
19537 _swigt__p_wxImageList,
19538 _swigt__p_unsigned_char,
19539 _swigt__p_wxGDIObject,
19540 _swigt__p_wxIcon,
19541 _swigt__p_wxLocale,
19542 _swigt__p_wxRegion,
19543 _swigt__p_wxLanguageInfo,
19544 _swigt__p_wxConfigBase,
19545 _swigt__p_wxWindowDC,
19546 _swigt__p_wxPrintData,
19547 _swigt__p_wxBrushList,
19548 _swigt__p_wxFontList,
19549 _swigt__p_wxPen,
19550 _swigt__p_wxBufferedPaintDC,
19551 _swigt__p_wxPaintDC,
19552 _swigt__p_wxPenList,
19553 _swigt__p_wxPyPen,
19554 _swigt__p_int,
19555 _swigt__p_wxMetaFile,
19556 _swigt__p_wxNativeFontInfo,
19557 _swigt__p_wxEncodingConverter,
19558 _swigt__p_wxColourDatabase,
19559 0
19560 };
19561
19562
19563 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19564
19565 static swig_const_info swig_const_table[] = {
19566 {0}};
19567
19568 #ifdef __cplusplus
19569 }
19570 #endif
19571
19572 #ifdef __cplusplus
19573 extern "C"
19574 #endif
19575 SWIGEXPORT(void) SWIG_init(void) {
19576 static PyObject *SWIG_globals = 0;
19577 static int typeinit = 0;
19578 PyObject *m, *d;
19579 int i;
19580 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19581 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19582 d = PyModule_GetDict(m);
19583
19584 if (!typeinit) {
19585 for (i = 0; swig_types_initial[i]; i++) {
19586 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19587 }
19588 typeinit = 1;
19589 }
19590 SWIG_InstallConstants(d,swig_const_table);
19591
19592 PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion));
19593 PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion));
19594 PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion));
19595 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT));
19596 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE));
19597 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN));
19598 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT));
19599 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS));
19600 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN));
19601 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE));
19602 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX));
19603 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN));
19604 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL));
19605 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC));
19606 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT));
19607 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX));
19608 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL));
19609 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT));
19610 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD));
19611 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX));
19612 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT));
19613 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC));
19614 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT));
19615 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT));
19616 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD));
19617 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED));
19618 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19619 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED));
19620 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19621 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK));
19622 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM));
19623 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT));
19624 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1));
19625 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2));
19626 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3));
19627 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4));
19628 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5));
19629 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6));
19630 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7));
19631 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8));
19632 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9));
19633 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10));
19634 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11));
19635 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12));
19636 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13));
19637 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14));
19638 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15));
19639 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19640 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8));
19641 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19642 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN));
19643 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437));
19644 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850));
19645 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852));
19646 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855));
19647 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866));
19648 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874));
19649 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932));
19650 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936));
19651 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949));
19652 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950));
19653 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250));
19654 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251));
19655 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252));
19656 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253));
19657 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254));
19658 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255));
19659 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256));
19660 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257));
19661 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX));
19662 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7));
19663 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8));
19664 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP));
19665 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE));
19666 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE));
19667 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE));
19668 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE));
19669 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN));
19670 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE));
19671 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19672 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN));
19673 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC));
19674 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW));
19675 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK));
19676 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19677 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19678 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19679 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI));
19680 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA));
19681 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI));
19682 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL));
19683 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU));
19684 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA));
19685 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19686 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE));
19687 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE));
19688 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER));
19689 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI));
19690 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19691 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19692 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN));
19693 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19694 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN));
19695 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19696 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19697 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19698 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19699 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT));
19700 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL));
19701 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS));
19702 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH));
19703 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN));
19704 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC));
19705 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN));
19706 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC));
19707 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC));
19708 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19709 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN));
19710 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX));
19711 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX));
19712 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16));
19713 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32));
19714 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE));
19715 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312));
19716 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5));
19717 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19718
19719 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19720
19721 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT));
19722 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN));
19723 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19724 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR));
19725 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS));
19726 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN));
19727 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC));
19728 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC));
19729 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19730 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19731 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19732 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19733 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19734 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19735 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19736 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19737 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19738 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19739 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19740 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19741 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19742 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19743 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19744 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19745 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19746 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN));
19747 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE));
19748 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA));
19749 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI));
19750 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19751 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19752 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR));
19753 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE));
19754 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN));
19755 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI));
19756 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI));
19757 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI));
19758 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA));
19759 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON));
19760 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN));
19761 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE));
19762 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN));
19763 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN));
19764 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE));
19765 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19766 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19767 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19768 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19769 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19770 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19771 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN));
19772 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN));
19773 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH));
19774 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH));
19775 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH));
19776 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19777 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH));
19778 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19779 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US));
19780 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19781 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19782 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19783 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19784 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19785 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19786 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19787 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19788 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19789 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19790 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19791 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19792 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19793 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO));
19794 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN));
19795 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE));
19796 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI));
19797 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI));
19798 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH));
19799 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH));
19800 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19801 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19802 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19803 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19804 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19805 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN));
19806 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN));
19807 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN));
19808 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN));
19809 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19810 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19811 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19812 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19813 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19814 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK));
19815 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC));
19816 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI));
19817 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI));
19818 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA));
19819 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW));
19820 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI));
19821 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN));
19822 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC));
19823 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN));
19824 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA));
19825 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE));
19826 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT));
19827 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK));
19828 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH));
19829 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN));
19830 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19831 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE));
19832 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE));
19833 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA));
19834 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI));
19835 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19836 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH));
19837 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK));
19838 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA));
19839 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ));
19840 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI));
19841 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI));
19842 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN));
19843 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH));
19844 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN));
19845 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN));
19846 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN));
19847 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA));
19848 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN));
19849 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN));
19850 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY));
19851 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY));
19852 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM));
19853 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19854 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19855 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE));
19856 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI));
19857 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI));
19858 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI));
19859 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19860 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN));
19861 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU));
19862 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI));
19863 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19864 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19865 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19866 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN));
19867 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA));
19868 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO));
19869 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO));
19870 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH));
19871 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE));
19872 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19873 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI));
19874 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA));
19875 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19876 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN));
19877 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN));
19878 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19879 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN));
19880 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO));
19881 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT));
19882 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19883 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN));
19884 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19885 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19886 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19887 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO));
19888 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA));
19889 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA));
19890 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI));
19891 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE));
19892 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI));
19893 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK));
19894 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN));
19895 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI));
19896 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH));
19897 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19898 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19899 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19900 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19901 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19902 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19903 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19904 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19905 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19906 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19907 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19908 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19909 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19910 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19911 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19912 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19913 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19914 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19915 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US));
19916 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19917 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE));
19918 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI));
19919 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH));
19920 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19921 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG));
19922 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK));
19923 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL));
19924 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR));
19925 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU));
19926 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI));
19927 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN));
19928 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA));
19929 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA));
19930 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA));
19931 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH));
19932 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN));
19933 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI));
19934 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR));
19935 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN));
19936 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU));
19937 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA));
19938 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19939 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK));
19940 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19941 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19942 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE));
19943 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK));
19944 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH));
19945 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF));
19946 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA));
19947 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH));
19948 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA));
19949 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG));
19950 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU));
19951 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED));
19952 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER));
19953 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE));
19954 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY));
19955 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX));
19956 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19957 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT));
19958 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19959 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING));
19960 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT));
19961 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE));
19962 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT));
19963 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX));
19964 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS));
19965 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2));
19966 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC));
19967 PyDict_SetItemString(d,"BUFFER_DC_OVERWRITE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_OVERWRITE_BG));
19968 PyDict_SetItemString(d,"BUFFER_DC_PRESERVE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_PRESERVE_BG));
19969 PyDict_SetItemString(d,"BUFFER_DC_DEFAULT", SWIG_PyObj_FromInt((int)wxBUFFER_DC_DEFAULT));
19970 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19971 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19972 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19973 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19974 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL));
19975 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL));
19976 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE));
19977 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19978 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19979 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19980 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19981 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19982 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19983 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19984 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19985 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19986 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19987 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19988 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19989 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19990 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19991 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19992 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19993 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19994 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19995 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19996 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19997 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19998 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19999 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20000 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20001 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20002 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20003 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20004 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20005 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20006 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20007 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20008 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20009 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20010 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20011 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20012 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20013 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20014 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20015 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20016 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20017 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20018 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20019 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20020 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20021 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20022 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20023 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20024
20025 // Work around a chicken/egg problem in drawlist.cpp
20026 wxPyDrawList_SetAPIPtr();
20027
20028 }
20029