]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #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 SWIGSTATIC(short)
439 SWIG_PyObj_AsShort(PyObject *obj)
440 {
441 return numeric_cast(short,
442 SWIG_PyObj_AsLongInRange(obj, "short", SHRT_MIN, SHRT_MAX));
443 }
444
445
446 #include <wx/image.h>
447
448 static char** ConvertListOfStrings(PyObject* listOfStrings) {
449 char** cArray = NULL;
450 int count;
451
452 if (!PyList_Check(listOfStrings)) {
453 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
454 return NULL;
455 }
456 count = PyList_Size(listOfStrings);
457 cArray = new char*[count];
458
459 for(int x=0; x<count; x++) {
460 // TODO: Need some validation and error checking here
461 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
462 }
463 return cArray;
464 }
465
466
467 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
468 char** cArray = NULL;
469 wxBitmap* bmp;
470
471 cArray = ConvertListOfStrings(listOfStrings);
472 if (! cArray)
473 return NULL;
474 bmp = new wxBitmap(cArray);
475 delete [] cArray;
476 return bmp;
477 }
478 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
479 char* buf;
480 int length;
481 PyString_AsStringAndSize(bits, &buf, &length);
482 return new wxBitmap(buf, width, height, depth);
483 }
484 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
485 wxMask *mask = new wxMask(*self, colour);
486 self->SetMask(mask);
487 }
488 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
489 if ( !colour.Ok() )
490 return new wxMask(bitmap, *wxBLACK);
491 else
492 return new wxMask(bitmap, colour);
493 }
494
495 #include <wx/iconbndl.h>
496
497 wxIcon *new_wxIcon(wxBitmap const &bmp){
498 wxIcon* icon = new wxIcon();
499 icon->CopyFromBitmap(bmp);
500 return icon;
501 }
502 wxIcon *new_wxIcon(PyObject *listOfStrings){
503 char** cArray = NULL;
504 wxIcon* icon;
505
506 cArray = ConvertListOfStrings(listOfStrings);
507 if (! cArray)
508 return NULL;
509 icon = new wxIcon(cArray);
510 delete [] cArray;
511 return icon;
512 }
513 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
514
515
516
517 return new wxIconLocation(*filename);
518
519 }
520 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
521
522
523
524 // do nothing
525
526 }
527 int wxIconLocation_GetIndex(wxIconLocation *self){
528
529
530
531 return -1;
532
533 }
534
535 SWIGSTATIC(long)
536 SWIG_PyObj_AsLong(PyObject * obj)
537 {
538 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
539 }
540
541 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
542
543
544
545
546 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
547
548 }
549 wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
550 char* bitsbuf;
551 char* maskbuf = NULL;
552 int length;
553 PyString_AsStringAndSize(bits, &bitsbuf, &length);
554 if (maskBits)
555 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
556 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
557 }
558
559
560 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
561 wxPyRaiseNotImplemented();
562 return NULL;
563 }
564 void wxRegionIterator_Next(wxRegionIterator *self){
565 (*self) ++;
566 }
567 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
568 return self->operator bool();
569 }
570
571 #include <wx/fontutil.h>
572 #include <wx/fontmap.h>
573 #include <wx/fontenum.h>
574
575 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
576 return self->ToString();
577 }
578
579 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
580 static wxNativeEncodingInfo info;
581 if ( wxGetNativeFontEncoding(encoding, &info) )
582 return &info;
583 else
584 return NULL;
585 }
586
587
588 SWIGSTATIC(PyObject* )
589 SWIG_PyObj_FromUnsignedLong(unsigned long value)
590 {
591 return (value > (unsigned long)(LONG_MAX)) ?
592 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
593 }
594
595 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
596 wxFontEncoding alt_enc;
597 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
598 return PyInt_FromLong(alt_enc);
599 else {
600 Py_INCREF(Py_None);
601 return Py_None;
602 }
603 }
604 wxFont *new_wxFont(wxString const &info){
605 wxNativeFontInfo nfi;
606 nfi.FromString(info);
607 return new wxFont(nfi);
608 }
609 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
610 return wxFont::New(pointSize, family, flags, face, encoding);
611 }
612
613 class wxPyFontEnumerator : public wxFontEnumerator {
614 public:
615 wxPyFontEnumerator() {}
616 ~wxPyFontEnumerator() {}
617
618 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
619 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
620
621 PYPRIVATE;
622 };
623
624 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
625 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
626
627
628 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
629 wxArrayString* arr = self->GetEncodings();
630 return wxArrayString2PyList_helper(*arr);
631 }
632 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
633 wxArrayString* arr = self->GetFacenames();
634 return wxArrayString2PyList_helper(*arr);
635 }
636
637
638
639 #include "wx/wxPython/pydrawxxx.h"
640
641 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
642 wxColour col;
643 self->GetPixel(x, y, &col);
644 return col;
645 }
646 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
647 wxColour col;
648 self->GetPixel(pt, &col);
649 return col;
650 }
651
652 SWIGSTATIC(double)
653 SWIG_PyObj_AsDouble(PyObject *obj)
654 {
655 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
656 #if HAVE_LONG_LONG
657 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
658 #else
659 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
660 #endif
661 if (PyErr_Occurred()) {
662 PyErr_Clear();
663 PyErr_SetString(PyExc_TypeError, "a double is expected");
664 }
665 }
666
667 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
668 wxRect rv;
669 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
670 return rv;
671 }
672 wxRect wxDC_GetClippingRect(wxDC *self){
673 wxRect rect;
674 self->GetClippingBox(rect);
675 return rect;
676 }
677 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
678 wxArrayInt widths;
679 self->GetPartialTextExtents(text, widths);
680 return widths;
681 }
682 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
683 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
684 }
685 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
686 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
687 }
688 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
689 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
690 }
691 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
692 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
693 }
694 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
695 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
696 }
697 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
698 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
699 }
700
701 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
702 *x1 = dc->MinX();
703 *y1 = dc->MinY();
704 *x2 = dc->MaxX();
705 *y2 = dc->MaxY();
706 }
707
708
709 #include <wx/dcps.h>
710
711
712 class wxMetaFile : public wxObject {
713 public:
714 wxMetaFile(const wxString&)
715 { wxPyRaiseNotImplemented(); }
716 };
717
718 class wxMetaFileDC : public wxClientDC {
719 public:
720 wxMetaFileDC(const wxString&, int, int, const wxString&)
721 { wxPyRaiseNotImplemented(); }
722 };
723
724
725
726
727 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
728 self->AddColour(name, wxColour(red, green, blue));
729 }
730
731 #include <wx/effects.h>
732
733 #ifdef __cplusplus
734 extern "C" {
735 #endif
736 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
737 PyObject *resultobj;
738 wxGDIObject *result;
739 char *kwnames[] = {
740 NULL
741 };
742
743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
744 {
745 PyThreadState* __tstate = wxPyBeginAllowThreads();
746 result = (wxGDIObject *)new wxGDIObject();
747
748 wxPyEndAllowThreads(__tstate);
749 if (PyErr_Occurred()) SWIG_fail;
750 }
751 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
752 return resultobj;
753 fail:
754 return NULL;
755 }
756
757
758 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
759 PyObject *resultobj;
760 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
761 PyObject * obj0 = 0 ;
762 char *kwnames[] = {
763 (char *) "self", NULL
764 };
765
766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
768 {
769 PyThreadState* __tstate = wxPyBeginAllowThreads();
770 delete arg1;
771
772 wxPyEndAllowThreads(__tstate);
773 if (PyErr_Occurred()) SWIG_fail;
774 }
775 Py_INCREF(Py_None); resultobj = Py_None;
776 return resultobj;
777 fail:
778 return NULL;
779 }
780
781
782 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
783 PyObject *resultobj;
784 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
785 bool result;
786 PyObject * obj0 = 0 ;
787 char *kwnames[] = {
788 (char *) "self", NULL
789 };
790
791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
792 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
793 {
794 PyThreadState* __tstate = wxPyBeginAllowThreads();
795 result = (bool)(arg1)->GetVisible();
796
797 wxPyEndAllowThreads(__tstate);
798 if (PyErr_Occurred()) SWIG_fail;
799 }
800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
801 return resultobj;
802 fail:
803 return NULL;
804 }
805
806
807 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
808 PyObject *resultobj;
809 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
810 bool arg2 ;
811 PyObject * obj0 = 0 ;
812 PyObject * obj1 = 0 ;
813 char *kwnames[] = {
814 (char *) "self",(char *) "visible", NULL
815 };
816
817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
819 {
820 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
821 if (PyErr_Occurred()) SWIG_fail;
822 }
823 {
824 PyThreadState* __tstate = wxPyBeginAllowThreads();
825 (arg1)->SetVisible(arg2);
826
827 wxPyEndAllowThreads(__tstate);
828 if (PyErr_Occurred()) SWIG_fail;
829 }
830 Py_INCREF(Py_None); resultobj = Py_None;
831 return resultobj;
832 fail:
833 return NULL;
834 }
835
836
837 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
838 PyObject *resultobj;
839 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
840 bool result;
841 PyObject * obj0 = 0 ;
842 char *kwnames[] = {
843 (char *) "self", NULL
844 };
845
846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
848 {
849 PyThreadState* __tstate = wxPyBeginAllowThreads();
850 result = (bool)(arg1)->IsNull();
851
852 wxPyEndAllowThreads(__tstate);
853 if (PyErr_Occurred()) SWIG_fail;
854 }
855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
856 return resultobj;
857 fail:
858 return NULL;
859 }
860
861
862 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
863 PyObject *obj;
864 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
865 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
866 Py_INCREF(obj);
867 return Py_BuildValue((char *)"");
868 }
869 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
870 PyObject *resultobj;
871 unsigned char arg1 = (unsigned char) 0 ;
872 unsigned char arg2 = (unsigned char) 0 ;
873 unsigned char arg3 = (unsigned char) 0 ;
874 wxColour *result;
875 PyObject * obj0 = 0 ;
876 PyObject * obj1 = 0 ;
877 PyObject * obj2 = 0 ;
878 char *kwnames[] = {
879 (char *) "red",(char *) "green",(char *) "blue", NULL
880 };
881
882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
883 if (obj0) {
884 {
885 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
886 if (PyErr_Occurred()) SWIG_fail;
887 }
888 }
889 if (obj1) {
890 {
891 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
892 if (PyErr_Occurred()) SWIG_fail;
893 }
894 }
895 if (obj2) {
896 {
897 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
898 if (PyErr_Occurred()) SWIG_fail;
899 }
900 }
901 {
902 PyThreadState* __tstate = wxPyBeginAllowThreads();
903 result = (wxColour *)new wxColour(arg1,arg2,arg3);
904
905 wxPyEndAllowThreads(__tstate);
906 if (PyErr_Occurred()) SWIG_fail;
907 }
908 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
909 return resultobj;
910 fail:
911 return NULL;
912 }
913
914
915 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
916 PyObject *resultobj;
917 wxColour *arg1 = (wxColour *) 0 ;
918 PyObject * obj0 = 0 ;
919 char *kwnames[] = {
920 (char *) "self", NULL
921 };
922
923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
925 {
926 PyThreadState* __tstate = wxPyBeginAllowThreads();
927 delete arg1;
928
929 wxPyEndAllowThreads(__tstate);
930 if (PyErr_Occurred()) SWIG_fail;
931 }
932 Py_INCREF(Py_None); resultobj = Py_None;
933 return resultobj;
934 fail:
935 return NULL;
936 }
937
938
939 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
940 PyObject *resultobj;
941 wxString *arg1 = 0 ;
942 wxColour *result;
943 bool temp1 = False ;
944 PyObject * obj0 = 0 ;
945 char *kwnames[] = {
946 (char *) "colorName", NULL
947 };
948
949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
950 {
951 arg1 = wxString_in_helper(obj0);
952 if (arg1 == NULL) SWIG_fail;
953 temp1 = True;
954 }
955 {
956 PyThreadState* __tstate = wxPyBeginAllowThreads();
957 result = (wxColour *)new wxColour((wxString const &)*arg1);
958
959 wxPyEndAllowThreads(__tstate);
960 if (PyErr_Occurred()) SWIG_fail;
961 }
962 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
963 {
964 if (temp1)
965 delete arg1;
966 }
967 return resultobj;
968 fail:
969 {
970 if (temp1)
971 delete arg1;
972 }
973 return NULL;
974 }
975
976
977 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
978 PyObject *resultobj;
979 unsigned long arg1 ;
980 wxColour *result;
981 PyObject * obj0 = 0 ;
982 char *kwnames[] = {
983 (char *) "colRGB", NULL
984 };
985
986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
987 {
988 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
989 if (PyErr_Occurred()) SWIG_fail;
990 }
991 {
992 PyThreadState* __tstate = wxPyBeginAllowThreads();
993 result = (wxColour *)new wxColour(arg1);
994
995 wxPyEndAllowThreads(__tstate);
996 if (PyErr_Occurred()) SWIG_fail;
997 }
998 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
999 return resultobj;
1000 fail:
1001 return NULL;
1002 }
1003
1004
1005 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1006 PyObject *resultobj;
1007 wxColour *arg1 = (wxColour *) 0 ;
1008 unsigned char result;
1009 PyObject * obj0 = 0 ;
1010 char *kwnames[] = {
1011 (char *) "self", NULL
1012 };
1013
1014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1016 {
1017 PyThreadState* __tstate = wxPyBeginAllowThreads();
1018 result = (unsigned char)(arg1)->Red();
1019
1020 wxPyEndAllowThreads(__tstate);
1021 if (PyErr_Occurred()) SWIG_fail;
1022 }
1023 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1024 return resultobj;
1025 fail:
1026 return NULL;
1027 }
1028
1029
1030 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1031 PyObject *resultobj;
1032 wxColour *arg1 = (wxColour *) 0 ;
1033 unsigned char result;
1034 PyObject * obj0 = 0 ;
1035 char *kwnames[] = {
1036 (char *) "self", NULL
1037 };
1038
1039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1041 {
1042 PyThreadState* __tstate = wxPyBeginAllowThreads();
1043 result = (unsigned char)(arg1)->Green();
1044
1045 wxPyEndAllowThreads(__tstate);
1046 if (PyErr_Occurred()) SWIG_fail;
1047 }
1048 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1049 return resultobj;
1050 fail:
1051 return NULL;
1052 }
1053
1054
1055 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1056 PyObject *resultobj;
1057 wxColour *arg1 = (wxColour *) 0 ;
1058 unsigned char result;
1059 PyObject * obj0 = 0 ;
1060 char *kwnames[] = {
1061 (char *) "self", NULL
1062 };
1063
1064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1066 {
1067 PyThreadState* __tstate = wxPyBeginAllowThreads();
1068 result = (unsigned char)(arg1)->Blue();
1069
1070 wxPyEndAllowThreads(__tstate);
1071 if (PyErr_Occurred()) SWIG_fail;
1072 }
1073 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1074 return resultobj;
1075 fail:
1076 return NULL;
1077 }
1078
1079
1080 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1081 PyObject *resultobj;
1082 wxColour *arg1 = (wxColour *) 0 ;
1083 bool result;
1084 PyObject * obj0 = 0 ;
1085 char *kwnames[] = {
1086 (char *) "self", NULL
1087 };
1088
1089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1090 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1091 {
1092 PyThreadState* __tstate = wxPyBeginAllowThreads();
1093 result = (bool)(arg1)->Ok();
1094
1095 wxPyEndAllowThreads(__tstate);
1096 if (PyErr_Occurred()) SWIG_fail;
1097 }
1098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1099 return resultobj;
1100 fail:
1101 return NULL;
1102 }
1103
1104
1105 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1106 PyObject *resultobj;
1107 wxColour *arg1 = (wxColour *) 0 ;
1108 unsigned char arg2 ;
1109 unsigned char arg3 ;
1110 unsigned char arg4 ;
1111 PyObject * obj0 = 0 ;
1112 PyObject * obj1 = 0 ;
1113 PyObject * obj2 = 0 ;
1114 PyObject * obj3 = 0 ;
1115 char *kwnames[] = {
1116 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1117 };
1118
1119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1121 {
1122 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
1123 if (PyErr_Occurred()) SWIG_fail;
1124 }
1125 {
1126 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
1127 if (PyErr_Occurred()) SWIG_fail;
1128 }
1129 {
1130 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
1131 if (PyErr_Occurred()) SWIG_fail;
1132 }
1133 {
1134 PyThreadState* __tstate = wxPyBeginAllowThreads();
1135 (arg1)->Set(arg2,arg3,arg4);
1136
1137 wxPyEndAllowThreads(__tstate);
1138 if (PyErr_Occurred()) SWIG_fail;
1139 }
1140 Py_INCREF(Py_None); resultobj = Py_None;
1141 return resultobj;
1142 fail:
1143 return NULL;
1144 }
1145
1146
1147 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1148 PyObject *resultobj;
1149 wxColour *arg1 = (wxColour *) 0 ;
1150 unsigned long arg2 ;
1151 PyObject * obj0 = 0 ;
1152 PyObject * obj1 = 0 ;
1153 char *kwnames[] = {
1154 (char *) "self",(char *) "colRGB", NULL
1155 };
1156
1157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1159 {
1160 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
1161 if (PyErr_Occurred()) SWIG_fail;
1162 }
1163 {
1164 PyThreadState* __tstate = wxPyBeginAllowThreads();
1165 (arg1)->Set(arg2);
1166
1167 wxPyEndAllowThreads(__tstate);
1168 if (PyErr_Occurred()) SWIG_fail;
1169 }
1170 Py_INCREF(Py_None); resultobj = Py_None;
1171 return resultobj;
1172 fail:
1173 return NULL;
1174 }
1175
1176
1177 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1178 PyObject *resultobj;
1179 wxColour *arg1 = (wxColour *) 0 ;
1180 wxColour *arg2 = 0 ;
1181 bool result;
1182 wxColour temp2 ;
1183 PyObject * obj0 = 0 ;
1184 PyObject * obj1 = 0 ;
1185 char *kwnames[] = {
1186 (char *) "self",(char *) "colour", NULL
1187 };
1188
1189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1191 {
1192 arg2 = &temp2;
1193 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1194 }
1195 {
1196 PyThreadState* __tstate = wxPyBeginAllowThreads();
1197 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1198
1199 wxPyEndAllowThreads(__tstate);
1200 if (PyErr_Occurred()) SWIG_fail;
1201 }
1202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1203 return resultobj;
1204 fail:
1205 return NULL;
1206 }
1207
1208
1209 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1210 PyObject *resultobj;
1211 wxColour *arg1 = (wxColour *) 0 ;
1212 wxColour *arg2 = 0 ;
1213 bool result;
1214 wxColour temp2 ;
1215 PyObject * obj0 = 0 ;
1216 PyObject * obj1 = 0 ;
1217 char *kwnames[] = {
1218 (char *) "self",(char *) "colour", NULL
1219 };
1220
1221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",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 = &temp2;
1225 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1226 }
1227 {
1228 PyThreadState* __tstate = wxPyBeginAllowThreads();
1229 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1230
1231 wxPyEndAllowThreads(__tstate);
1232 if (PyErr_Occurred()) SWIG_fail;
1233 }
1234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1235 return resultobj;
1236 fail:
1237 return NULL;
1238 }
1239
1240
1241 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1242 PyObject *resultobj;
1243 wxColour *arg1 = (wxColour *) 0 ;
1244 wxString *arg2 = 0 ;
1245 bool temp2 = False ;
1246 PyObject * obj0 = 0 ;
1247 PyObject * obj1 = 0 ;
1248 char *kwnames[] = {
1249 (char *) "self",(char *) "colourName", NULL
1250 };
1251
1252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1254 {
1255 arg2 = wxString_in_helper(obj1);
1256 if (arg2 == NULL) SWIG_fail;
1257 temp2 = True;
1258 }
1259 {
1260 PyThreadState* __tstate = wxPyBeginAllowThreads();
1261 (arg1)->InitFromName((wxString const &)*arg2);
1262
1263 wxPyEndAllowThreads(__tstate);
1264 if (PyErr_Occurred()) SWIG_fail;
1265 }
1266 Py_INCREF(Py_None); resultobj = Py_None;
1267 {
1268 if (temp2)
1269 delete arg2;
1270 }
1271 return resultobj;
1272 fail:
1273 {
1274 if (temp2)
1275 delete arg2;
1276 }
1277 return NULL;
1278 }
1279
1280
1281 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1282 PyObject *resultobj;
1283 wxColour *arg1 = (wxColour *) 0 ;
1284 PyObject *result;
1285 PyObject * obj0 = 0 ;
1286 char *kwnames[] = {
1287 (char *) "self", NULL
1288 };
1289
1290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1292 {
1293 PyThreadState* __tstate = wxPyBeginAllowThreads();
1294 result = (PyObject *)wxColour_Get(arg1);
1295
1296 wxPyEndAllowThreads(__tstate);
1297 if (PyErr_Occurred()) SWIG_fail;
1298 }
1299 resultobj = result;
1300 return resultobj;
1301 fail:
1302 return NULL;
1303 }
1304
1305
1306 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1307 PyObject *obj;
1308 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1309 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1310 Py_INCREF(obj);
1311 return Py_BuildValue((char *)"");
1312 }
1313 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1314 PyObject *resultobj;
1315 int arg1 ;
1316 unsigned char *arg2 = (unsigned char *) 0 ;
1317 unsigned char *arg3 = (unsigned char *) 0 ;
1318 unsigned char *arg4 = (unsigned char *) 0 ;
1319 wxPalette *result;
1320 PyObject * obj0 = 0 ;
1321 PyObject * obj1 = 0 ;
1322 PyObject * obj2 = 0 ;
1323 PyObject * obj3 = 0 ;
1324 char *kwnames[] = {
1325 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1326 };
1327
1328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1329 {
1330 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1331 if (PyErr_Occurred()) SWIG_fail;
1332 }
1333 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1334 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1335 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1336 {
1337 PyThreadState* __tstate = wxPyBeginAllowThreads();
1338 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1339
1340 wxPyEndAllowThreads(__tstate);
1341 if (PyErr_Occurred()) SWIG_fail;
1342 }
1343 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1344 return resultobj;
1345 fail:
1346 return NULL;
1347 }
1348
1349
1350 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1351 PyObject *resultobj;
1352 wxPalette *arg1 = (wxPalette *) 0 ;
1353 PyObject * obj0 = 0 ;
1354 char *kwnames[] = {
1355 (char *) "self", NULL
1356 };
1357
1358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1360 {
1361 PyThreadState* __tstate = wxPyBeginAllowThreads();
1362 delete arg1;
1363
1364 wxPyEndAllowThreads(__tstate);
1365 if (PyErr_Occurred()) SWIG_fail;
1366 }
1367 Py_INCREF(Py_None); resultobj = Py_None;
1368 return resultobj;
1369 fail:
1370 return NULL;
1371 }
1372
1373
1374 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1375 PyObject *resultobj;
1376 wxPalette *arg1 = (wxPalette *) 0 ;
1377 byte arg2 ;
1378 byte arg3 ;
1379 byte arg4 ;
1380 int result;
1381 PyObject * obj0 = 0 ;
1382 PyObject * obj1 = 0 ;
1383 PyObject * obj2 = 0 ;
1384 PyObject * obj3 = 0 ;
1385 char *kwnames[] = {
1386 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1387 };
1388
1389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1391 {
1392 arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
1393 if (PyErr_Occurred()) SWIG_fail;
1394 }
1395 {
1396 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
1397 if (PyErr_Occurred()) SWIG_fail;
1398 }
1399 {
1400 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
1401 if (PyErr_Occurred()) SWIG_fail;
1402 }
1403 {
1404 PyThreadState* __tstate = wxPyBeginAllowThreads();
1405 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1406
1407 wxPyEndAllowThreads(__tstate);
1408 if (PyErr_Occurred()) SWIG_fail;
1409 }
1410 resultobj = SWIG_PyObj_FromInt((int)result);
1411 return resultobj;
1412 fail:
1413 return NULL;
1414 }
1415
1416
1417 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1418 PyObject *resultobj;
1419 wxPalette *arg1 = (wxPalette *) 0 ;
1420 int arg2 ;
1421 byte *arg3 = (byte *) 0 ;
1422 byte *arg4 = (byte *) 0 ;
1423 byte *arg5 = (byte *) 0 ;
1424 bool result;
1425 byte temp3 ;
1426 byte temp4 ;
1427 byte temp5 ;
1428 PyObject * obj0 = 0 ;
1429 PyObject * obj1 = 0 ;
1430 char *kwnames[] = {
1431 (char *) "self",(char *) "pixel", NULL
1432 };
1433
1434 arg3 = &temp3;
1435 arg4 = &temp4;
1436 arg5 = &temp5;
1437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1439 {
1440 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1441 if (PyErr_Occurred()) SWIG_fail;
1442 }
1443 {
1444 PyThreadState* __tstate = wxPyBeginAllowThreads();
1445 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1446
1447 wxPyEndAllowThreads(__tstate);
1448 if (PyErr_Occurred()) SWIG_fail;
1449 }
1450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1451 {
1452 PyObject *o = PyInt_FromLong((long) (*arg3));
1453 resultobj = t_output_helper(resultobj,o);
1454 }
1455 {
1456 PyObject *o = PyInt_FromLong((long) (*arg4));
1457 resultobj = t_output_helper(resultobj,o);
1458 }
1459 {
1460 PyObject *o = PyInt_FromLong((long) (*arg5));
1461 resultobj = t_output_helper(resultobj,o);
1462 }
1463 return resultobj;
1464 fail:
1465 return NULL;
1466 }
1467
1468
1469 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1470 PyObject *resultobj;
1471 wxPalette *arg1 = (wxPalette *) 0 ;
1472 bool result;
1473 PyObject * obj0 = 0 ;
1474 char *kwnames[] = {
1475 (char *) "self", NULL
1476 };
1477
1478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1480 {
1481 PyThreadState* __tstate = wxPyBeginAllowThreads();
1482 result = (bool)(arg1)->Ok();
1483
1484 wxPyEndAllowThreads(__tstate);
1485 if (PyErr_Occurred()) SWIG_fail;
1486 }
1487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1488 return resultobj;
1489 fail:
1490 return NULL;
1491 }
1492
1493
1494 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1495 PyObject *obj;
1496 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1497 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1498 Py_INCREF(obj);
1499 return Py_BuildValue((char *)"");
1500 }
1501 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1502 PyObject *resultobj;
1503 wxColour *arg1 = 0 ;
1504 int arg2 = (int) 1 ;
1505 int arg3 = (int) wxSOLID ;
1506 wxPen *result;
1507 wxColour temp1 ;
1508 PyObject * obj0 = 0 ;
1509 PyObject * obj1 = 0 ;
1510 PyObject * obj2 = 0 ;
1511 char *kwnames[] = {
1512 (char *) "colour",(char *) "width",(char *) "style", NULL
1513 };
1514
1515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1516 {
1517 arg1 = &temp1;
1518 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1519 }
1520 if (obj1) {
1521 {
1522 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1523 if (PyErr_Occurred()) SWIG_fail;
1524 }
1525 }
1526 if (obj2) {
1527 {
1528 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1529 if (PyErr_Occurred()) SWIG_fail;
1530 }
1531 }
1532 {
1533 PyThreadState* __tstate = wxPyBeginAllowThreads();
1534 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1535
1536 wxPyEndAllowThreads(__tstate);
1537 if (PyErr_Occurred()) SWIG_fail;
1538 }
1539 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1540 return resultobj;
1541 fail:
1542 return NULL;
1543 }
1544
1545
1546 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1547 PyObject *resultobj;
1548 wxPen *arg1 = (wxPen *) 0 ;
1549 PyObject * obj0 = 0 ;
1550 char *kwnames[] = {
1551 (char *) "self", NULL
1552 };
1553
1554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1556 {
1557 PyThreadState* __tstate = wxPyBeginAllowThreads();
1558 delete arg1;
1559
1560 wxPyEndAllowThreads(__tstate);
1561 if (PyErr_Occurred()) SWIG_fail;
1562 }
1563 Py_INCREF(Py_None); resultobj = Py_None;
1564 return resultobj;
1565 fail:
1566 return NULL;
1567 }
1568
1569
1570 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1571 PyObject *resultobj;
1572 wxPen *arg1 = (wxPen *) 0 ;
1573 int result;
1574 PyObject * obj0 = 0 ;
1575 char *kwnames[] = {
1576 (char *) "self", NULL
1577 };
1578
1579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1581 {
1582 PyThreadState* __tstate = wxPyBeginAllowThreads();
1583 result = (int)(arg1)->GetCap();
1584
1585 wxPyEndAllowThreads(__tstate);
1586 if (PyErr_Occurred()) SWIG_fail;
1587 }
1588 resultobj = SWIG_PyObj_FromInt((int)result);
1589 return resultobj;
1590 fail:
1591 return NULL;
1592 }
1593
1594
1595 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1596 PyObject *resultobj;
1597 wxPen *arg1 = (wxPen *) 0 ;
1598 wxColour result;
1599 PyObject * obj0 = 0 ;
1600 char *kwnames[] = {
1601 (char *) "self", NULL
1602 };
1603
1604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1606 {
1607 PyThreadState* __tstate = wxPyBeginAllowThreads();
1608 result = (arg1)->GetColour();
1609
1610 wxPyEndAllowThreads(__tstate);
1611 if (PyErr_Occurred()) SWIG_fail;
1612 }
1613 {
1614 wxColour * resultptr;
1615 resultptr = new wxColour((wxColour &) result);
1616 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1617 }
1618 return resultobj;
1619 fail:
1620 return NULL;
1621 }
1622
1623
1624 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1625 PyObject *resultobj;
1626 wxPen *arg1 = (wxPen *) 0 ;
1627 int result;
1628 PyObject * obj0 = 0 ;
1629 char *kwnames[] = {
1630 (char *) "self", NULL
1631 };
1632
1633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1635 {
1636 PyThreadState* __tstate = wxPyBeginAllowThreads();
1637 result = (int)(arg1)->GetJoin();
1638
1639 wxPyEndAllowThreads(__tstate);
1640 if (PyErr_Occurred()) SWIG_fail;
1641 }
1642 resultobj = SWIG_PyObj_FromInt((int)result);
1643 return resultobj;
1644 fail:
1645 return NULL;
1646 }
1647
1648
1649 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1650 PyObject *resultobj;
1651 wxPen *arg1 = (wxPen *) 0 ;
1652 int result;
1653 PyObject * obj0 = 0 ;
1654 char *kwnames[] = {
1655 (char *) "self", NULL
1656 };
1657
1658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1660 {
1661 PyThreadState* __tstate = wxPyBeginAllowThreads();
1662 result = (int)(arg1)->GetStyle();
1663
1664 wxPyEndAllowThreads(__tstate);
1665 if (PyErr_Occurred()) SWIG_fail;
1666 }
1667 resultobj = SWIG_PyObj_FromInt((int)result);
1668 return resultobj;
1669 fail:
1670 return NULL;
1671 }
1672
1673
1674 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1675 PyObject *resultobj;
1676 wxPen *arg1 = (wxPen *) 0 ;
1677 int result;
1678 PyObject * obj0 = 0 ;
1679 char *kwnames[] = {
1680 (char *) "self", NULL
1681 };
1682
1683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1685 {
1686 PyThreadState* __tstate = wxPyBeginAllowThreads();
1687 result = (int)(arg1)->GetWidth();
1688
1689 wxPyEndAllowThreads(__tstate);
1690 if (PyErr_Occurred()) SWIG_fail;
1691 }
1692 resultobj = SWIG_PyObj_FromInt((int)result);
1693 return resultobj;
1694 fail:
1695 return NULL;
1696 }
1697
1698
1699 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1700 PyObject *resultobj;
1701 wxPen *arg1 = (wxPen *) 0 ;
1702 bool result;
1703 PyObject * obj0 = 0 ;
1704 char *kwnames[] = {
1705 (char *) "self", NULL
1706 };
1707
1708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1710 {
1711 PyThreadState* __tstate = wxPyBeginAllowThreads();
1712 result = (bool)(arg1)->Ok();
1713
1714 wxPyEndAllowThreads(__tstate);
1715 if (PyErr_Occurred()) SWIG_fail;
1716 }
1717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1718 return resultobj;
1719 fail:
1720 return NULL;
1721 }
1722
1723
1724 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1725 PyObject *resultobj;
1726 wxPen *arg1 = (wxPen *) 0 ;
1727 int arg2 ;
1728 PyObject * obj0 = 0 ;
1729 PyObject * obj1 = 0 ;
1730 char *kwnames[] = {
1731 (char *) "self",(char *) "cap_style", NULL
1732 };
1733
1734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",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 = (int) SWIG_PyObj_AsInt(obj1);
1738 if (PyErr_Occurred()) SWIG_fail;
1739 }
1740 {
1741 PyThreadState* __tstate = wxPyBeginAllowThreads();
1742 (arg1)->SetCap(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_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1755 PyObject *resultobj;
1756 wxPen *arg1 = (wxPen *) 0 ;
1757 wxColour *arg2 = 0 ;
1758 wxColour temp2 ;
1759 PyObject * obj0 = 0 ;
1760 PyObject * obj1 = 0 ;
1761 char *kwnames[] = {
1762 (char *) "self",(char *) "colour", NULL
1763 };
1764
1765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1767 {
1768 arg2 = &temp2;
1769 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1770 }
1771 {
1772 PyThreadState* __tstate = wxPyBeginAllowThreads();
1773 (arg1)->SetColour(*arg2);
1774
1775 wxPyEndAllowThreads(__tstate);
1776 if (PyErr_Occurred()) SWIG_fail;
1777 }
1778 Py_INCREF(Py_None); resultobj = Py_None;
1779 return resultobj;
1780 fail:
1781 return NULL;
1782 }
1783
1784
1785 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1786 PyObject *resultobj;
1787 wxPen *arg1 = (wxPen *) 0 ;
1788 int arg2 ;
1789 PyObject * obj0 = 0 ;
1790 PyObject * obj1 = 0 ;
1791 char *kwnames[] = {
1792 (char *) "self",(char *) "join_style", NULL
1793 };
1794
1795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1797 {
1798 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1799 if (PyErr_Occurred()) SWIG_fail;
1800 }
1801 {
1802 PyThreadState* __tstate = wxPyBeginAllowThreads();
1803 (arg1)->SetJoin(arg2);
1804
1805 wxPyEndAllowThreads(__tstate);
1806 if (PyErr_Occurred()) SWIG_fail;
1807 }
1808 Py_INCREF(Py_None); resultobj = Py_None;
1809 return resultobj;
1810 fail:
1811 return NULL;
1812 }
1813
1814
1815 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1816 PyObject *resultobj;
1817 wxPen *arg1 = (wxPen *) 0 ;
1818 int arg2 ;
1819 PyObject * obj0 = 0 ;
1820 PyObject * obj1 = 0 ;
1821 char *kwnames[] = {
1822 (char *) "self",(char *) "style", NULL
1823 };
1824
1825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
1826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1827 {
1828 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1829 if (PyErr_Occurred()) SWIG_fail;
1830 }
1831 {
1832 PyThreadState* __tstate = wxPyBeginAllowThreads();
1833 (arg1)->SetStyle(arg2);
1834
1835 wxPyEndAllowThreads(__tstate);
1836 if (PyErr_Occurred()) SWIG_fail;
1837 }
1838 Py_INCREF(Py_None); resultobj = Py_None;
1839 return resultobj;
1840 fail:
1841 return NULL;
1842 }
1843
1844
1845 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1846 PyObject *resultobj;
1847 wxPen *arg1 = (wxPen *) 0 ;
1848 int arg2 ;
1849 PyObject * obj0 = 0 ;
1850 PyObject * obj1 = 0 ;
1851 char *kwnames[] = {
1852 (char *) "self",(char *) "width", NULL
1853 };
1854
1855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",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 = (int) SWIG_PyObj_AsInt(obj1);
1859 if (PyErr_Occurred()) SWIG_fail;
1860 }
1861 {
1862 PyThreadState* __tstate = wxPyBeginAllowThreads();
1863 (arg1)->SetWidth(arg2);
1864
1865 wxPyEndAllowThreads(__tstate);
1866 if (PyErr_Occurred()) SWIG_fail;
1867 }
1868 Py_INCREF(Py_None); resultobj = Py_None;
1869 return resultobj;
1870 fail:
1871 return NULL;
1872 }
1873
1874
1875 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1876 PyObject *resultobj;
1877 wxPen *arg1 = (wxPen *) 0 ;
1878 int arg2 ;
1879 wxDash *arg3 = (wxDash *) 0 ;
1880 PyObject * obj0 = 0 ;
1881 PyObject * obj1 = 0 ;
1882 char *kwnames[] = {
1883 (char *) "self",(char *) "dashes", NULL
1884 };
1885
1886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1888 {
1889 arg2 = PyList_Size(obj1);
1890 arg3 = (wxDash*)byte_LIST_helper(obj1);
1891 if (arg3 == NULL) SWIG_fail;
1892 }
1893 {
1894 PyThreadState* __tstate = wxPyBeginAllowThreads();
1895 (arg1)->SetDashes(arg2,arg3);
1896
1897 wxPyEndAllowThreads(__tstate);
1898 if (PyErr_Occurred()) SWIG_fail;
1899 }
1900 Py_INCREF(Py_None); resultobj = Py_None;
1901 {
1902 if (arg3) delete [] arg3;
1903 }
1904 return resultobj;
1905 fail:
1906 {
1907 if (arg3) delete [] arg3;
1908 }
1909 return NULL;
1910 }
1911
1912
1913 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1914 PyObject *resultobj;
1915 wxPen *arg1 = (wxPen *) 0 ;
1916 PyObject *result;
1917 PyObject * obj0 = 0 ;
1918 char *kwnames[] = {
1919 (char *) "self", NULL
1920 };
1921
1922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1924 {
1925 PyThreadState* __tstate = wxPyBeginAllowThreads();
1926 result = (PyObject *)wxPen_GetDashes(arg1);
1927
1928 wxPyEndAllowThreads(__tstate);
1929 if (PyErr_Occurred()) SWIG_fail;
1930 }
1931 resultobj = result;
1932 return resultobj;
1933 fail:
1934 return NULL;
1935 }
1936
1937
1938 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1939 PyObject *resultobj;
1940 wxPen *arg1 = (wxPen *) 0 ;
1941 wxPen *arg2 = 0 ;
1942 bool result;
1943 PyObject * obj0 = 0 ;
1944 PyObject * obj1 = 0 ;
1945 char *kwnames[] = {
1946 (char *) "self",(char *) "pen", NULL
1947 };
1948
1949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
1950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1951 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1952 if (arg2 == NULL) {
1953 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1954 }
1955 {
1956 PyThreadState* __tstate = wxPyBeginAllowThreads();
1957 result = (bool)(arg1)->operator ==((wxPen const &)*arg2);
1958
1959 wxPyEndAllowThreads(__tstate);
1960 if (PyErr_Occurred()) SWIG_fail;
1961 }
1962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1963 return resultobj;
1964 fail:
1965 return NULL;
1966 }
1967
1968
1969 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1970 PyObject *obj;
1971 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1972 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1973 Py_INCREF(obj);
1974 return Py_BuildValue((char *)"");
1975 }
1976 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1977 PyObject *resultobj;
1978 wxColour *arg1 = 0 ;
1979 int arg2 = (int) 1 ;
1980 int arg3 = (int) wxSOLID ;
1981 wxPyPen *result;
1982 wxColour temp1 ;
1983 PyObject * obj0 = 0 ;
1984 PyObject * obj1 = 0 ;
1985 PyObject * obj2 = 0 ;
1986 char *kwnames[] = {
1987 (char *) "colour",(char *) "width",(char *) "style", NULL
1988 };
1989
1990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1991 {
1992 arg1 = &temp1;
1993 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1994 }
1995 if (obj1) {
1996 {
1997 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1998 if (PyErr_Occurred()) SWIG_fail;
1999 }
2000 }
2001 if (obj2) {
2002 {
2003 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2004 if (PyErr_Occurred()) SWIG_fail;
2005 }
2006 }
2007 {
2008 PyThreadState* __tstate = wxPyBeginAllowThreads();
2009 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2010
2011 wxPyEndAllowThreads(__tstate);
2012 if (PyErr_Occurred()) SWIG_fail;
2013 }
2014 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
2015 return resultobj;
2016 fail:
2017 return NULL;
2018 }
2019
2020
2021 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2022 PyObject *resultobj;
2023 wxPyPen *arg1 = (wxPyPen *) 0 ;
2024 PyObject * obj0 = 0 ;
2025 char *kwnames[] = {
2026 (char *) "self", NULL
2027 };
2028
2029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2031 {
2032 PyThreadState* __tstate = wxPyBeginAllowThreads();
2033 delete arg1;
2034
2035 wxPyEndAllowThreads(__tstate);
2036 if (PyErr_Occurred()) SWIG_fail;
2037 }
2038 Py_INCREF(Py_None); resultobj = Py_None;
2039 return resultobj;
2040 fail:
2041 return NULL;
2042 }
2043
2044
2045 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2046 PyObject *resultobj;
2047 wxPyPen *arg1 = (wxPyPen *) 0 ;
2048 int arg2 ;
2049 wxDash *arg3 = (wxDash *) 0 ;
2050 PyObject * obj0 = 0 ;
2051 PyObject * obj1 = 0 ;
2052 char *kwnames[] = {
2053 (char *) "self",(char *) "dashes", NULL
2054 };
2055
2056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2058 {
2059 arg2 = PyList_Size(obj1);
2060 arg3 = (wxDash*)byte_LIST_helper(obj1);
2061 if (arg3 == NULL) SWIG_fail;
2062 }
2063 {
2064 PyThreadState* __tstate = wxPyBeginAllowThreads();
2065 (arg1)->SetDashes(arg2,arg3);
2066
2067 wxPyEndAllowThreads(__tstate);
2068 if (PyErr_Occurred()) SWIG_fail;
2069 }
2070 Py_INCREF(Py_None); resultobj = Py_None;
2071 {
2072 if (arg3) delete [] arg3;
2073 }
2074 return resultobj;
2075 fail:
2076 {
2077 if (arg3) delete [] arg3;
2078 }
2079 return NULL;
2080 }
2081
2082
2083 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2084 PyObject *obj;
2085 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2086 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2087 Py_INCREF(obj);
2088 return Py_BuildValue((char *)"");
2089 }
2090 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2091 PyObject *resultobj;
2092 wxColour *arg1 = 0 ;
2093 int arg2 = (int) wxSOLID ;
2094 wxBrush *result;
2095 wxColour temp1 ;
2096 PyObject * obj0 = 0 ;
2097 PyObject * obj1 = 0 ;
2098 char *kwnames[] = {
2099 (char *) "colour",(char *) "style", NULL
2100 };
2101
2102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2103 {
2104 arg1 = &temp1;
2105 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2106 }
2107 if (obj1) {
2108 {
2109 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2110 if (PyErr_Occurred()) SWIG_fail;
2111 }
2112 }
2113 {
2114 PyThreadState* __tstate = wxPyBeginAllowThreads();
2115 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2116
2117 wxPyEndAllowThreads(__tstate);
2118 if (PyErr_Occurred()) SWIG_fail;
2119 }
2120 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2121 return resultobj;
2122 fail:
2123 return NULL;
2124 }
2125
2126
2127 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2128 PyObject *resultobj;
2129 wxBrush *arg1 = (wxBrush *) 0 ;
2130 PyObject * obj0 = 0 ;
2131 char *kwnames[] = {
2132 (char *) "self", NULL
2133 };
2134
2135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2137 {
2138 PyThreadState* __tstate = wxPyBeginAllowThreads();
2139 delete arg1;
2140
2141 wxPyEndAllowThreads(__tstate);
2142 if (PyErr_Occurred()) SWIG_fail;
2143 }
2144 Py_INCREF(Py_None); resultobj = Py_None;
2145 return resultobj;
2146 fail:
2147 return NULL;
2148 }
2149
2150
2151 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2152 PyObject *resultobj;
2153 wxBrush *arg1 = (wxBrush *) 0 ;
2154 wxColour *arg2 = 0 ;
2155 wxColour temp2 ;
2156 PyObject * obj0 = 0 ;
2157 PyObject * obj1 = 0 ;
2158 char *kwnames[] = {
2159 (char *) "self",(char *) "col", NULL
2160 };
2161
2162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2164 {
2165 arg2 = &temp2;
2166 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2167 }
2168 {
2169 PyThreadState* __tstate = wxPyBeginAllowThreads();
2170 (arg1)->SetColour((wxColour const &)*arg2);
2171
2172 wxPyEndAllowThreads(__tstate);
2173 if (PyErr_Occurred()) SWIG_fail;
2174 }
2175 Py_INCREF(Py_None); resultobj = Py_None;
2176 return resultobj;
2177 fail:
2178 return NULL;
2179 }
2180
2181
2182 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2183 PyObject *resultobj;
2184 wxBrush *arg1 = (wxBrush *) 0 ;
2185 int arg2 ;
2186 PyObject * obj0 = 0 ;
2187 PyObject * obj1 = 0 ;
2188 char *kwnames[] = {
2189 (char *) "self",(char *) "style", NULL
2190 };
2191
2192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2194 {
2195 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2196 if (PyErr_Occurred()) SWIG_fail;
2197 }
2198 {
2199 PyThreadState* __tstate = wxPyBeginAllowThreads();
2200 (arg1)->SetStyle(arg2);
2201
2202 wxPyEndAllowThreads(__tstate);
2203 if (PyErr_Occurred()) SWIG_fail;
2204 }
2205 Py_INCREF(Py_None); resultobj = Py_None;
2206 return resultobj;
2207 fail:
2208 return NULL;
2209 }
2210
2211
2212 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2213 PyObject *resultobj;
2214 wxBrush *arg1 = (wxBrush *) 0 ;
2215 wxBitmap *arg2 = 0 ;
2216 PyObject * obj0 = 0 ;
2217 PyObject * obj1 = 0 ;
2218 char *kwnames[] = {
2219 (char *) "self",(char *) "stipple", NULL
2220 };
2221
2222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2224 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2225 if (arg2 == NULL) {
2226 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2227 }
2228 {
2229 PyThreadState* __tstate = wxPyBeginAllowThreads();
2230 (arg1)->SetStipple((wxBitmap const &)*arg2);
2231
2232 wxPyEndAllowThreads(__tstate);
2233 if (PyErr_Occurred()) SWIG_fail;
2234 }
2235 Py_INCREF(Py_None); resultobj = Py_None;
2236 return resultobj;
2237 fail:
2238 return NULL;
2239 }
2240
2241
2242 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2243 PyObject *resultobj;
2244 wxBrush *arg1 = (wxBrush *) 0 ;
2245 wxColour result;
2246 PyObject * obj0 = 0 ;
2247 char *kwnames[] = {
2248 (char *) "self", NULL
2249 };
2250
2251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2253 {
2254 PyThreadState* __tstate = wxPyBeginAllowThreads();
2255 result = ((wxBrush const *)arg1)->GetColour();
2256
2257 wxPyEndAllowThreads(__tstate);
2258 if (PyErr_Occurred()) SWIG_fail;
2259 }
2260 {
2261 wxColour * resultptr;
2262 resultptr = new wxColour((wxColour &) result);
2263 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2264 }
2265 return resultobj;
2266 fail:
2267 return NULL;
2268 }
2269
2270
2271 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2272 PyObject *resultobj;
2273 wxBrush *arg1 = (wxBrush *) 0 ;
2274 int result;
2275 PyObject * obj0 = 0 ;
2276 char *kwnames[] = {
2277 (char *) "self", NULL
2278 };
2279
2280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2282 {
2283 PyThreadState* __tstate = wxPyBeginAllowThreads();
2284 result = (int)((wxBrush const *)arg1)->GetStyle();
2285
2286 wxPyEndAllowThreads(__tstate);
2287 if (PyErr_Occurred()) SWIG_fail;
2288 }
2289 resultobj = SWIG_PyObj_FromInt((int)result);
2290 return resultobj;
2291 fail:
2292 return NULL;
2293 }
2294
2295
2296 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2297 PyObject *resultobj;
2298 wxBrush *arg1 = (wxBrush *) 0 ;
2299 wxBitmap *result;
2300 PyObject * obj0 = 0 ;
2301 char *kwnames[] = {
2302 (char *) "self", NULL
2303 };
2304
2305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2307 {
2308 PyThreadState* __tstate = wxPyBeginAllowThreads();
2309 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2310
2311 wxPyEndAllowThreads(__tstate);
2312 if (PyErr_Occurred()) SWIG_fail;
2313 }
2314 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2315 return resultobj;
2316 fail:
2317 return NULL;
2318 }
2319
2320
2321 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2322 PyObject *resultobj;
2323 wxBrush *arg1 = (wxBrush *) 0 ;
2324 bool result;
2325 PyObject * obj0 = 0 ;
2326 char *kwnames[] = {
2327 (char *) "self", NULL
2328 };
2329
2330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2332 {
2333 PyThreadState* __tstate = wxPyBeginAllowThreads();
2334 result = (bool)(arg1)->Ok();
2335
2336 wxPyEndAllowThreads(__tstate);
2337 if (PyErr_Occurred()) SWIG_fail;
2338 }
2339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2340 return resultobj;
2341 fail:
2342 return NULL;
2343 }
2344
2345
2346 static PyObject *_wrap_Brush_GetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2347 PyObject *resultobj;
2348 wxBrush *arg1 = (wxBrush *) 0 ;
2349 short result;
2350 PyObject * obj0 = 0 ;
2351 char *kwnames[] = {
2352 (char *) "self", NULL
2353 };
2354
2355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",kwnames,&obj0)) goto fail;
2356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2357 {
2358 PyThreadState* __tstate = wxPyBeginAllowThreads();
2359 result = (short)(arg1)->GetMacTheme();
2360
2361 wxPyEndAllowThreads(__tstate);
2362 if (PyErr_Occurred()) SWIG_fail;
2363 }
2364 resultobj = SWIG_PyObj_FromShort((short)result);
2365 return resultobj;
2366 fail:
2367 return NULL;
2368 }
2369
2370
2371 static PyObject *_wrap_Brush_SetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2372 PyObject *resultobj;
2373 wxBrush *arg1 = (wxBrush *) 0 ;
2374 short arg2 ;
2375 PyObject * obj0 = 0 ;
2376 PyObject * obj1 = 0 ;
2377 char *kwnames[] = {
2378 (char *) "self",(char *) "macThemeBrush", NULL
2379 };
2380
2381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetMacTheme",kwnames,&obj0,&obj1)) goto fail;
2382 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2383 {
2384 arg2 = (short) SWIG_PyObj_AsShort(obj1);
2385 if (PyErr_Occurred()) SWIG_fail;
2386 }
2387 {
2388 PyThreadState* __tstate = wxPyBeginAllowThreads();
2389 (arg1)->SetMacTheme(arg2);
2390
2391 wxPyEndAllowThreads(__tstate);
2392 if (PyErr_Occurred()) SWIG_fail;
2393 }
2394 Py_INCREF(Py_None); resultobj = Py_None;
2395 return resultobj;
2396 fail:
2397 return NULL;
2398 }
2399
2400
2401 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2402 PyObject *obj;
2403 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2404 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2405 Py_INCREF(obj);
2406 return Py_BuildValue((char *)"");
2407 }
2408 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2409 PyObject *resultobj;
2410 wxString *arg1 = 0 ;
2411 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2412 wxBitmap *result;
2413 bool temp1 = False ;
2414 PyObject * obj0 = 0 ;
2415 PyObject * obj1 = 0 ;
2416 char *kwnames[] = {
2417 (char *) "name",(char *) "type", NULL
2418 };
2419
2420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2421 {
2422 arg1 = wxString_in_helper(obj0);
2423 if (arg1 == NULL) SWIG_fail;
2424 temp1 = True;
2425 }
2426 if (obj1) {
2427 {
2428 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
2429 if (PyErr_Occurred()) SWIG_fail;
2430 }
2431 }
2432 {
2433 PyThreadState* __tstate = wxPyBeginAllowThreads();
2434 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2435
2436 wxPyEndAllowThreads(__tstate);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 }
2439 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2440 {
2441 if (temp1)
2442 delete arg1;
2443 }
2444 return resultobj;
2445 fail:
2446 {
2447 if (temp1)
2448 delete arg1;
2449 }
2450 return NULL;
2451 }
2452
2453
2454 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2455 PyObject *resultobj;
2456 wxBitmap *arg1 = (wxBitmap *) 0 ;
2457 PyObject * obj0 = 0 ;
2458 char *kwnames[] = {
2459 (char *) "self", NULL
2460 };
2461
2462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2464 {
2465 PyThreadState* __tstate = wxPyBeginAllowThreads();
2466 delete arg1;
2467
2468 wxPyEndAllowThreads(__tstate);
2469 if (PyErr_Occurred()) SWIG_fail;
2470 }
2471 Py_INCREF(Py_None); resultobj = Py_None;
2472 return resultobj;
2473 fail:
2474 return NULL;
2475 }
2476
2477
2478 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject *resultobj;
2480 int arg1 ;
2481 int arg2 ;
2482 int arg3 = (int) -1 ;
2483 wxBitmap *result;
2484 PyObject * obj0 = 0 ;
2485 PyObject * obj1 = 0 ;
2486 PyObject * obj2 = 0 ;
2487 char *kwnames[] = {
2488 (char *) "width",(char *) "height",(char *) "depth", NULL
2489 };
2490
2491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2492 {
2493 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2494 if (PyErr_Occurred()) SWIG_fail;
2495 }
2496 {
2497 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2498 if (PyErr_Occurred()) SWIG_fail;
2499 }
2500 if (obj2) {
2501 {
2502 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2503 if (PyErr_Occurred()) SWIG_fail;
2504 }
2505 }
2506 {
2507 PyThreadState* __tstate = wxPyBeginAllowThreads();
2508 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2509
2510 wxPyEndAllowThreads(__tstate);
2511 if (PyErr_Occurred()) SWIG_fail;
2512 }
2513 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2514 return resultobj;
2515 fail:
2516 return NULL;
2517 }
2518
2519
2520 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2521 PyObject *resultobj;
2522 wxIcon *arg1 = 0 ;
2523 wxBitmap *result;
2524 PyObject * obj0 = 0 ;
2525 char *kwnames[] = {
2526 (char *) "icon", NULL
2527 };
2528
2529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2531 if (arg1 == NULL) {
2532 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2533 }
2534 {
2535 PyThreadState* __tstate = wxPyBeginAllowThreads();
2536 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2537
2538 wxPyEndAllowThreads(__tstate);
2539 if (PyErr_Occurred()) SWIG_fail;
2540 }
2541 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2542 return resultobj;
2543 fail:
2544 return NULL;
2545 }
2546
2547
2548 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2549 PyObject *resultobj;
2550 wxImage *arg1 = 0 ;
2551 int arg2 = (int) -1 ;
2552 wxBitmap *result;
2553 PyObject * obj0 = 0 ;
2554 PyObject * obj1 = 0 ;
2555 char *kwnames[] = {
2556 (char *) "image",(char *) "depth", NULL
2557 };
2558
2559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2561 if (arg1 == NULL) {
2562 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2563 }
2564 if (obj1) {
2565 {
2566 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2567 if (PyErr_Occurred()) SWIG_fail;
2568 }
2569 }
2570 {
2571 PyThreadState* __tstate = wxPyBeginAllowThreads();
2572 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2573
2574 wxPyEndAllowThreads(__tstate);
2575 if (PyErr_Occurred()) SWIG_fail;
2576 }
2577 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2578 return resultobj;
2579 fail:
2580 return NULL;
2581 }
2582
2583
2584 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2585 PyObject *resultobj;
2586 PyObject *arg1 = (PyObject *) 0 ;
2587 wxBitmap *result;
2588 PyObject * obj0 = 0 ;
2589 char *kwnames[] = {
2590 (char *) "listOfStrings", NULL
2591 };
2592
2593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2594 arg1 = obj0;
2595 {
2596 PyThreadState* __tstate = wxPyBeginAllowThreads();
2597 result = (wxBitmap *)new_wxBitmap(arg1);
2598
2599 wxPyEndAllowThreads(__tstate);
2600 if (PyErr_Occurred()) SWIG_fail;
2601 }
2602 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2603 return resultobj;
2604 fail:
2605 return NULL;
2606 }
2607
2608
2609 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2610 PyObject *resultobj;
2611 PyObject *arg1 = (PyObject *) 0 ;
2612 int arg2 ;
2613 int arg3 ;
2614 int arg4 = (int) 1 ;
2615 wxBitmap *result;
2616 PyObject * obj0 = 0 ;
2617 PyObject * obj1 = 0 ;
2618 PyObject * obj2 = 0 ;
2619 PyObject * obj3 = 0 ;
2620 char *kwnames[] = {
2621 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2622 };
2623
2624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2625 arg1 = obj0;
2626 {
2627 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2628 if (PyErr_Occurred()) SWIG_fail;
2629 }
2630 {
2631 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2632 if (PyErr_Occurred()) SWIG_fail;
2633 }
2634 if (obj3) {
2635 {
2636 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2637 if (PyErr_Occurred()) SWIG_fail;
2638 }
2639 }
2640 {
2641 PyThreadState* __tstate = wxPyBeginAllowThreads();
2642 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2643
2644 wxPyEndAllowThreads(__tstate);
2645 if (PyErr_Occurred()) SWIG_fail;
2646 }
2647 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2648 return resultobj;
2649 fail:
2650 return NULL;
2651 }
2652
2653
2654 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2655 PyObject *resultobj;
2656 wxBitmap *arg1 = (wxBitmap *) 0 ;
2657 bool result;
2658 PyObject * obj0 = 0 ;
2659 char *kwnames[] = {
2660 (char *) "self", NULL
2661 };
2662
2663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2665 {
2666 PyThreadState* __tstate = wxPyBeginAllowThreads();
2667 result = (bool)(arg1)->Ok();
2668
2669 wxPyEndAllowThreads(__tstate);
2670 if (PyErr_Occurred()) SWIG_fail;
2671 }
2672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2673 return resultobj;
2674 fail:
2675 return NULL;
2676 }
2677
2678
2679 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2680 PyObject *resultobj;
2681 wxBitmap *arg1 = (wxBitmap *) 0 ;
2682 int result;
2683 PyObject * obj0 = 0 ;
2684 char *kwnames[] = {
2685 (char *) "self", NULL
2686 };
2687
2688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2690 {
2691 PyThreadState* __tstate = wxPyBeginAllowThreads();
2692 result = (int)(arg1)->GetWidth();
2693
2694 wxPyEndAllowThreads(__tstate);
2695 if (PyErr_Occurred()) SWIG_fail;
2696 }
2697 resultobj = SWIG_PyObj_FromInt((int)result);
2698 return resultobj;
2699 fail:
2700 return NULL;
2701 }
2702
2703
2704 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2705 PyObject *resultobj;
2706 wxBitmap *arg1 = (wxBitmap *) 0 ;
2707 int result;
2708 PyObject * obj0 = 0 ;
2709 char *kwnames[] = {
2710 (char *) "self", NULL
2711 };
2712
2713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2715 {
2716 PyThreadState* __tstate = wxPyBeginAllowThreads();
2717 result = (int)(arg1)->GetHeight();
2718
2719 wxPyEndAllowThreads(__tstate);
2720 if (PyErr_Occurred()) SWIG_fail;
2721 }
2722 resultobj = SWIG_PyObj_FromInt((int)result);
2723 return resultobj;
2724 fail:
2725 return NULL;
2726 }
2727
2728
2729 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2730 PyObject *resultobj;
2731 wxBitmap *arg1 = (wxBitmap *) 0 ;
2732 int result;
2733 PyObject * obj0 = 0 ;
2734 char *kwnames[] = {
2735 (char *) "self", NULL
2736 };
2737
2738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2740 {
2741 PyThreadState* __tstate = wxPyBeginAllowThreads();
2742 result = (int)(arg1)->GetDepth();
2743
2744 wxPyEndAllowThreads(__tstate);
2745 if (PyErr_Occurred()) SWIG_fail;
2746 }
2747 resultobj = SWIG_PyObj_FromInt((int)result);
2748 return resultobj;
2749 fail:
2750 return NULL;
2751 }
2752
2753
2754 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2755 PyObject *resultobj;
2756 wxBitmap *arg1 = (wxBitmap *) 0 ;
2757 SwigValueWrapper< wxImage > result;
2758 PyObject * obj0 = 0 ;
2759 char *kwnames[] = {
2760 (char *) "self", NULL
2761 };
2762
2763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2765 {
2766 PyThreadState* __tstate = wxPyBeginAllowThreads();
2767 result = ((wxBitmap const *)arg1)->ConvertToImage();
2768
2769 wxPyEndAllowThreads(__tstate);
2770 if (PyErr_Occurred()) SWIG_fail;
2771 }
2772 {
2773 wxImage * resultptr;
2774 resultptr = new wxImage((wxImage &) result);
2775 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2776 }
2777 return resultobj;
2778 fail:
2779 return NULL;
2780 }
2781
2782
2783 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2784 PyObject *resultobj;
2785 wxBitmap *arg1 = (wxBitmap *) 0 ;
2786 wxMask *result;
2787 PyObject * obj0 = 0 ;
2788 char *kwnames[] = {
2789 (char *) "self", NULL
2790 };
2791
2792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",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 = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2797
2798 wxPyEndAllowThreads(__tstate);
2799 if (PyErr_Occurred()) SWIG_fail;
2800 }
2801 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2802 return resultobj;
2803 fail:
2804 return NULL;
2805 }
2806
2807
2808 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2809 PyObject *resultobj;
2810 wxBitmap *arg1 = (wxBitmap *) 0 ;
2811 wxMask *arg2 = (wxMask *) 0 ;
2812 PyObject * obj0 = 0 ;
2813 PyObject * obj1 = 0 ;
2814 char *kwnames[] = {
2815 (char *) "self",(char *) "mask", NULL
2816 };
2817
2818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2820 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2821 {
2822 PyThreadState* __tstate = wxPyBeginAllowThreads();
2823 (arg1)->SetMask(arg2);
2824
2825 wxPyEndAllowThreads(__tstate);
2826 if (PyErr_Occurred()) SWIG_fail;
2827 }
2828 Py_INCREF(Py_None); resultobj = Py_None;
2829 return resultobj;
2830 fail:
2831 return NULL;
2832 }
2833
2834
2835 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2836 PyObject *resultobj;
2837 wxBitmap *arg1 = (wxBitmap *) 0 ;
2838 wxColour *arg2 = 0 ;
2839 wxColour temp2 ;
2840 PyObject * obj0 = 0 ;
2841 PyObject * obj1 = 0 ;
2842 char *kwnames[] = {
2843 (char *) "self",(char *) "colour", NULL
2844 };
2845
2846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2848 {
2849 arg2 = &temp2;
2850 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2851 }
2852 {
2853 PyThreadState* __tstate = wxPyBeginAllowThreads();
2854 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2855
2856 wxPyEndAllowThreads(__tstate);
2857 if (PyErr_Occurred()) SWIG_fail;
2858 }
2859 Py_INCREF(Py_None); resultobj = Py_None;
2860 return resultobj;
2861 fail:
2862 return NULL;
2863 }
2864
2865
2866 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2867 PyObject *resultobj;
2868 wxBitmap *arg1 = (wxBitmap *) 0 ;
2869 wxRect *arg2 = 0 ;
2870 SwigValueWrapper< wxBitmap > result;
2871 wxRect temp2 ;
2872 PyObject * obj0 = 0 ;
2873 PyObject * obj1 = 0 ;
2874 char *kwnames[] = {
2875 (char *) "self",(char *) "rect", NULL
2876 };
2877
2878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2880 {
2881 arg2 = &temp2;
2882 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2883 }
2884 {
2885 PyThreadState* __tstate = wxPyBeginAllowThreads();
2886 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2887
2888 wxPyEndAllowThreads(__tstate);
2889 if (PyErr_Occurred()) SWIG_fail;
2890 }
2891 {
2892 wxBitmap * resultptr;
2893 resultptr = new wxBitmap((wxBitmap &) result);
2894 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2895 }
2896 return resultobj;
2897 fail:
2898 return NULL;
2899 }
2900
2901
2902 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2903 PyObject *resultobj;
2904 wxBitmap *arg1 = (wxBitmap *) 0 ;
2905 wxString *arg2 = 0 ;
2906 int arg3 ;
2907 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2908 bool result;
2909 bool temp2 = False ;
2910 PyObject * obj0 = 0 ;
2911 PyObject * obj1 = 0 ;
2912 PyObject * obj2 = 0 ;
2913 PyObject * obj3 = 0 ;
2914 char *kwnames[] = {
2915 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2916 };
2917
2918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2920 {
2921 arg2 = wxString_in_helper(obj1);
2922 if (arg2 == NULL) SWIG_fail;
2923 temp2 = True;
2924 }
2925 {
2926 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2927 if (PyErr_Occurred()) SWIG_fail;
2928 }
2929 if (obj3) {
2930 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2931 }
2932 {
2933 PyThreadState* __tstate = wxPyBeginAllowThreads();
2934 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2935
2936 wxPyEndAllowThreads(__tstate);
2937 if (PyErr_Occurred()) SWIG_fail;
2938 }
2939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2940 {
2941 if (temp2)
2942 delete arg2;
2943 }
2944 return resultobj;
2945 fail:
2946 {
2947 if (temp2)
2948 delete arg2;
2949 }
2950 return NULL;
2951 }
2952
2953
2954 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2955 PyObject *resultobj;
2956 wxBitmap *arg1 = (wxBitmap *) 0 ;
2957 wxString *arg2 = 0 ;
2958 int arg3 ;
2959 bool result;
2960 bool temp2 = False ;
2961 PyObject * obj0 = 0 ;
2962 PyObject * obj1 = 0 ;
2963 PyObject * obj2 = 0 ;
2964 char *kwnames[] = {
2965 (char *) "self",(char *) "name",(char *) "type", NULL
2966 };
2967
2968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2970 {
2971 arg2 = wxString_in_helper(obj1);
2972 if (arg2 == NULL) SWIG_fail;
2973 temp2 = True;
2974 }
2975 {
2976 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2977 if (PyErr_Occurred()) SWIG_fail;
2978 }
2979 {
2980 PyThreadState* __tstate = wxPyBeginAllowThreads();
2981 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2982
2983 wxPyEndAllowThreads(__tstate);
2984 if (PyErr_Occurred()) SWIG_fail;
2985 }
2986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2987 {
2988 if (temp2)
2989 delete arg2;
2990 }
2991 return resultobj;
2992 fail:
2993 {
2994 if (temp2)
2995 delete arg2;
2996 }
2997 return NULL;
2998 }
2999
3000
3001 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3002 PyObject *resultobj;
3003 wxBitmap *arg1 = (wxBitmap *) 0 ;
3004 wxIcon *arg2 = 0 ;
3005 bool result;
3006 PyObject * obj0 = 0 ;
3007 PyObject * obj1 = 0 ;
3008 char *kwnames[] = {
3009 (char *) "self",(char *) "icon", NULL
3010 };
3011
3012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3014 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3015 if (arg2 == NULL) {
3016 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3017 }
3018 {
3019 PyThreadState* __tstate = wxPyBeginAllowThreads();
3020 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3021
3022 wxPyEndAllowThreads(__tstate);
3023 if (PyErr_Occurred()) SWIG_fail;
3024 }
3025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3026 return resultobj;
3027 fail:
3028 return NULL;
3029 }
3030
3031
3032 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3033 PyObject *resultobj;
3034 wxBitmap *arg1 = (wxBitmap *) 0 ;
3035 int arg2 ;
3036 PyObject * obj0 = 0 ;
3037 PyObject * obj1 = 0 ;
3038 char *kwnames[] = {
3039 (char *) "self",(char *) "height", NULL
3040 };
3041
3042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3044 {
3045 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3046 if (PyErr_Occurred()) SWIG_fail;
3047 }
3048 {
3049 PyThreadState* __tstate = wxPyBeginAllowThreads();
3050 (arg1)->SetHeight(arg2);
3051
3052 wxPyEndAllowThreads(__tstate);
3053 if (PyErr_Occurred()) SWIG_fail;
3054 }
3055 Py_INCREF(Py_None); resultobj = Py_None;
3056 return resultobj;
3057 fail:
3058 return NULL;
3059 }
3060
3061
3062 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3063 PyObject *resultobj;
3064 wxBitmap *arg1 = (wxBitmap *) 0 ;
3065 int arg2 ;
3066 PyObject * obj0 = 0 ;
3067 PyObject * obj1 = 0 ;
3068 char *kwnames[] = {
3069 (char *) "self",(char *) "width", NULL
3070 };
3071
3072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3074 {
3075 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3076 if (PyErr_Occurred()) SWIG_fail;
3077 }
3078 {
3079 PyThreadState* __tstate = wxPyBeginAllowThreads();
3080 (arg1)->SetWidth(arg2);
3081
3082 wxPyEndAllowThreads(__tstate);
3083 if (PyErr_Occurred()) SWIG_fail;
3084 }
3085 Py_INCREF(Py_None); resultobj = Py_None;
3086 return resultobj;
3087 fail:
3088 return NULL;
3089 }
3090
3091
3092 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3093 PyObject *resultobj;
3094 wxBitmap *arg1 = (wxBitmap *) 0 ;
3095 int arg2 ;
3096 PyObject * obj0 = 0 ;
3097 PyObject * obj1 = 0 ;
3098 char *kwnames[] = {
3099 (char *) "self",(char *) "depth", NULL
3100 };
3101
3102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3104 {
3105 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3106 if (PyErr_Occurred()) SWIG_fail;
3107 }
3108 {
3109 PyThreadState* __tstate = wxPyBeginAllowThreads();
3110 (arg1)->SetDepth(arg2);
3111
3112 wxPyEndAllowThreads(__tstate);
3113 if (PyErr_Occurred()) SWIG_fail;
3114 }
3115 Py_INCREF(Py_None); resultobj = Py_None;
3116 return resultobj;
3117 fail:
3118 return NULL;
3119 }
3120
3121
3122 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3123 PyObject *obj;
3124 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3125 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3126 Py_INCREF(obj);
3127 return Py_BuildValue((char *)"");
3128 }
3129 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3130 PyObject *resultobj;
3131 wxBitmap *arg1 = 0 ;
3132 wxColour const &arg2_defvalue = wxNullColour ;
3133 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3134 wxMask *result;
3135 wxColour temp2 ;
3136 PyObject * obj0 = 0 ;
3137 PyObject * obj1 = 0 ;
3138 char *kwnames[] = {
3139 (char *) "bitmap",(char *) "colour", NULL
3140 };
3141
3142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3144 if (arg1 == NULL) {
3145 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3146 }
3147 if (obj1) {
3148 {
3149 arg2 = &temp2;
3150 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3151 }
3152 }
3153 {
3154 PyThreadState* __tstate = wxPyBeginAllowThreads();
3155 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3156
3157 wxPyEndAllowThreads(__tstate);
3158 if (PyErr_Occurred()) SWIG_fail;
3159 }
3160 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3161 return resultobj;
3162 fail:
3163 return NULL;
3164 }
3165
3166
3167 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3168 PyObject *obj;
3169 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3170 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3171 Py_INCREF(obj);
3172 return Py_BuildValue((char *)"");
3173 }
3174 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3175 PyObject *resultobj;
3176 wxString *arg1 = 0 ;
3177 int arg2 ;
3178 int arg3 = (int) -1 ;
3179 int arg4 = (int) -1 ;
3180 wxIcon *result;
3181 bool temp1 = False ;
3182 PyObject * obj0 = 0 ;
3183 PyObject * obj1 = 0 ;
3184 PyObject * obj2 = 0 ;
3185 PyObject * obj3 = 0 ;
3186 char *kwnames[] = {
3187 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3188 };
3189
3190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3191 {
3192 arg1 = wxString_in_helper(obj0);
3193 if (arg1 == NULL) SWIG_fail;
3194 temp1 = True;
3195 }
3196 {
3197 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
3198 if (PyErr_Occurred()) SWIG_fail;
3199 }
3200 if (obj2) {
3201 {
3202 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3203 if (PyErr_Occurred()) SWIG_fail;
3204 }
3205 }
3206 if (obj3) {
3207 {
3208 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3209 if (PyErr_Occurred()) SWIG_fail;
3210 }
3211 }
3212 {
3213 PyThreadState* __tstate = wxPyBeginAllowThreads();
3214 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3215
3216 wxPyEndAllowThreads(__tstate);
3217 if (PyErr_Occurred()) SWIG_fail;
3218 }
3219 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3220 {
3221 if (temp1)
3222 delete arg1;
3223 }
3224 return resultobj;
3225 fail:
3226 {
3227 if (temp1)
3228 delete arg1;
3229 }
3230 return NULL;
3231 }
3232
3233
3234 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3235 PyObject *resultobj;
3236 wxIcon *arg1 = (wxIcon *) 0 ;
3237 PyObject * obj0 = 0 ;
3238 char *kwnames[] = {
3239 (char *) "self", NULL
3240 };
3241
3242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3244 {
3245 PyThreadState* __tstate = wxPyBeginAllowThreads();
3246 delete arg1;
3247
3248 wxPyEndAllowThreads(__tstate);
3249 if (PyErr_Occurred()) SWIG_fail;
3250 }
3251 Py_INCREF(Py_None); resultobj = Py_None;
3252 return resultobj;
3253 fail:
3254 return NULL;
3255 }
3256
3257
3258 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3259 PyObject *resultobj;
3260 wxIcon *result;
3261 char *kwnames[] = {
3262 NULL
3263 };
3264
3265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3266 {
3267 PyThreadState* __tstate = wxPyBeginAllowThreads();
3268 result = (wxIcon *)new wxIcon();
3269
3270 wxPyEndAllowThreads(__tstate);
3271 if (PyErr_Occurred()) SWIG_fail;
3272 }
3273 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3274 return resultobj;
3275 fail:
3276 return NULL;
3277 }
3278
3279
3280 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3281 PyObject *resultobj;
3282 wxIconLocation *arg1 = 0 ;
3283 wxIcon *result;
3284 PyObject * obj0 = 0 ;
3285 char *kwnames[] = {
3286 (char *) "loc", NULL
3287 };
3288
3289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3291 if (arg1 == NULL) {
3292 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3293 }
3294 {
3295 PyThreadState* __tstate = wxPyBeginAllowThreads();
3296 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3297
3298 wxPyEndAllowThreads(__tstate);
3299 if (PyErr_Occurred()) SWIG_fail;
3300 }
3301 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3302 return resultobj;
3303 fail:
3304 return NULL;
3305 }
3306
3307
3308 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3309 PyObject *resultobj;
3310 wxBitmap *arg1 = 0 ;
3311 wxIcon *result;
3312 PyObject * obj0 = 0 ;
3313 char *kwnames[] = {
3314 (char *) "bmp", NULL
3315 };
3316
3317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3319 if (arg1 == NULL) {
3320 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3321 }
3322 {
3323 PyThreadState* __tstate = wxPyBeginAllowThreads();
3324 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3325
3326 wxPyEndAllowThreads(__tstate);
3327 if (PyErr_Occurred()) SWIG_fail;
3328 }
3329 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3330 return resultobj;
3331 fail:
3332 return NULL;
3333 }
3334
3335
3336 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3337 PyObject *resultobj;
3338 PyObject *arg1 = (PyObject *) 0 ;
3339 wxIcon *result;
3340 PyObject * obj0 = 0 ;
3341 char *kwnames[] = {
3342 (char *) "listOfStrings", NULL
3343 };
3344
3345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3346 arg1 = obj0;
3347 {
3348 PyThreadState* __tstate = wxPyBeginAllowThreads();
3349 result = (wxIcon *)new_wxIcon(arg1);
3350
3351 wxPyEndAllowThreads(__tstate);
3352 if (PyErr_Occurred()) SWIG_fail;
3353 }
3354 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3355 return resultobj;
3356 fail:
3357 return NULL;
3358 }
3359
3360
3361 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3362 PyObject *resultobj;
3363 wxIcon *arg1 = (wxIcon *) 0 ;
3364 bool result;
3365 PyObject * obj0 = 0 ;
3366 char *kwnames[] = {
3367 (char *) "self", NULL
3368 };
3369
3370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3372 {
3373 PyThreadState* __tstate = wxPyBeginAllowThreads();
3374 result = (bool)(arg1)->Ok();
3375
3376 wxPyEndAllowThreads(__tstate);
3377 if (PyErr_Occurred()) SWIG_fail;
3378 }
3379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3380 return resultobj;
3381 fail:
3382 return NULL;
3383 }
3384
3385
3386 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3387 PyObject *resultobj;
3388 wxIcon *arg1 = (wxIcon *) 0 ;
3389 int result;
3390 PyObject * obj0 = 0 ;
3391 char *kwnames[] = {
3392 (char *) "self", NULL
3393 };
3394
3395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3397 {
3398 PyThreadState* __tstate = wxPyBeginAllowThreads();
3399 result = (int)(arg1)->GetWidth();
3400
3401 wxPyEndAllowThreads(__tstate);
3402 if (PyErr_Occurred()) SWIG_fail;
3403 }
3404 resultobj = SWIG_PyObj_FromInt((int)result);
3405 return resultobj;
3406 fail:
3407 return NULL;
3408 }
3409
3410
3411 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3412 PyObject *resultobj;
3413 wxIcon *arg1 = (wxIcon *) 0 ;
3414 int result;
3415 PyObject * obj0 = 0 ;
3416 char *kwnames[] = {
3417 (char *) "self", NULL
3418 };
3419
3420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3422 {
3423 PyThreadState* __tstate = wxPyBeginAllowThreads();
3424 result = (int)(arg1)->GetHeight();
3425
3426 wxPyEndAllowThreads(__tstate);
3427 if (PyErr_Occurred()) SWIG_fail;
3428 }
3429 resultobj = SWIG_PyObj_FromInt((int)result);
3430 return resultobj;
3431 fail:
3432 return NULL;
3433 }
3434
3435
3436 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3437 PyObject *resultobj;
3438 wxIcon *arg1 = (wxIcon *) 0 ;
3439 int result;
3440 PyObject * obj0 = 0 ;
3441 char *kwnames[] = {
3442 (char *) "self", NULL
3443 };
3444
3445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3447 {
3448 PyThreadState* __tstate = wxPyBeginAllowThreads();
3449 result = (int)(arg1)->GetDepth();
3450
3451 wxPyEndAllowThreads(__tstate);
3452 if (PyErr_Occurred()) SWIG_fail;
3453 }
3454 resultobj = SWIG_PyObj_FromInt((int)result);
3455 return resultobj;
3456 fail:
3457 return NULL;
3458 }
3459
3460
3461 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3462 PyObject *resultobj;
3463 wxIcon *arg1 = (wxIcon *) 0 ;
3464 int arg2 ;
3465 PyObject * obj0 = 0 ;
3466 PyObject * obj1 = 0 ;
3467 char *kwnames[] = {
3468 (char *) "self",(char *) "w", NULL
3469 };
3470
3471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3473 {
3474 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3475 if (PyErr_Occurred()) SWIG_fail;
3476 }
3477 {
3478 PyThreadState* __tstate = wxPyBeginAllowThreads();
3479 (arg1)->SetWidth(arg2);
3480
3481 wxPyEndAllowThreads(__tstate);
3482 if (PyErr_Occurred()) SWIG_fail;
3483 }
3484 Py_INCREF(Py_None); resultobj = Py_None;
3485 return resultobj;
3486 fail:
3487 return NULL;
3488 }
3489
3490
3491 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3492 PyObject *resultobj;
3493 wxIcon *arg1 = (wxIcon *) 0 ;
3494 int arg2 ;
3495 PyObject * obj0 = 0 ;
3496 PyObject * obj1 = 0 ;
3497 char *kwnames[] = {
3498 (char *) "self",(char *) "h", NULL
3499 };
3500
3501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3503 {
3504 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 }
3507 {
3508 PyThreadState* __tstate = wxPyBeginAllowThreads();
3509 (arg1)->SetHeight(arg2);
3510
3511 wxPyEndAllowThreads(__tstate);
3512 if (PyErr_Occurred()) SWIG_fail;
3513 }
3514 Py_INCREF(Py_None); resultobj = Py_None;
3515 return resultobj;
3516 fail:
3517 return NULL;
3518 }
3519
3520
3521 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3522 PyObject *resultobj;
3523 wxIcon *arg1 = (wxIcon *) 0 ;
3524 int arg2 ;
3525 PyObject * obj0 = 0 ;
3526 PyObject * obj1 = 0 ;
3527 char *kwnames[] = {
3528 (char *) "self",(char *) "d", NULL
3529 };
3530
3531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3533 {
3534 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3535 if (PyErr_Occurred()) SWIG_fail;
3536 }
3537 {
3538 PyThreadState* __tstate = wxPyBeginAllowThreads();
3539 (arg1)->SetDepth(arg2);
3540
3541 wxPyEndAllowThreads(__tstate);
3542 if (PyErr_Occurred()) SWIG_fail;
3543 }
3544 Py_INCREF(Py_None); resultobj = Py_None;
3545 return resultobj;
3546 fail:
3547 return NULL;
3548 }
3549
3550
3551 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3552 PyObject *resultobj;
3553 wxIcon *arg1 = (wxIcon *) 0 ;
3554 wxBitmap *arg2 = 0 ;
3555 PyObject * obj0 = 0 ;
3556 PyObject * obj1 = 0 ;
3557 char *kwnames[] = {
3558 (char *) "self",(char *) "bmp", NULL
3559 };
3560
3561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3563 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3564 if (arg2 == NULL) {
3565 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3566 }
3567 {
3568 PyThreadState* __tstate = wxPyBeginAllowThreads();
3569 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3570
3571 wxPyEndAllowThreads(__tstate);
3572 if (PyErr_Occurred()) SWIG_fail;
3573 }
3574 Py_INCREF(Py_None); resultobj = Py_None;
3575 return resultobj;
3576 fail:
3577 return NULL;
3578 }
3579
3580
3581 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3582 PyObject *obj;
3583 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3584 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3585 Py_INCREF(obj);
3586 return Py_BuildValue((char *)"");
3587 }
3588 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3589 PyObject *resultobj;
3590 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3591 int arg2 = (int) 0 ;
3592 wxIconLocation *result;
3593 bool temp1 = False ;
3594 PyObject * obj0 = 0 ;
3595 PyObject * obj1 = 0 ;
3596 char *kwnames[] = {
3597 (char *) "filename",(char *) "num", NULL
3598 };
3599
3600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3601 if (obj0) {
3602 {
3603 arg1 = wxString_in_helper(obj0);
3604 if (arg1 == NULL) SWIG_fail;
3605 temp1 = True;
3606 }
3607 }
3608 if (obj1) {
3609 {
3610 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3611 if (PyErr_Occurred()) SWIG_fail;
3612 }
3613 }
3614 {
3615 PyThreadState* __tstate = wxPyBeginAllowThreads();
3616 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3617
3618 wxPyEndAllowThreads(__tstate);
3619 if (PyErr_Occurred()) SWIG_fail;
3620 }
3621 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3622 {
3623 if (temp1)
3624 delete arg1;
3625 }
3626 return resultobj;
3627 fail:
3628 {
3629 if (temp1)
3630 delete arg1;
3631 }
3632 return NULL;
3633 }
3634
3635
3636 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3637 PyObject *resultobj;
3638 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3639 PyObject * obj0 = 0 ;
3640 char *kwnames[] = {
3641 (char *) "self", NULL
3642 };
3643
3644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3645 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3646 {
3647 PyThreadState* __tstate = wxPyBeginAllowThreads();
3648 delete arg1;
3649
3650 wxPyEndAllowThreads(__tstate);
3651 if (PyErr_Occurred()) SWIG_fail;
3652 }
3653 Py_INCREF(Py_None); resultobj = Py_None;
3654 return resultobj;
3655 fail:
3656 return NULL;
3657 }
3658
3659
3660 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3661 PyObject *resultobj;
3662 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3663 bool result;
3664 PyObject * obj0 = 0 ;
3665 char *kwnames[] = {
3666 (char *) "self", NULL
3667 };
3668
3669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3671 {
3672 PyThreadState* __tstate = wxPyBeginAllowThreads();
3673 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3674
3675 wxPyEndAllowThreads(__tstate);
3676 if (PyErr_Occurred()) SWIG_fail;
3677 }
3678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3679 return resultobj;
3680 fail:
3681 return NULL;
3682 }
3683
3684
3685 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3686 PyObject *resultobj;
3687 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3688 wxString *arg2 = 0 ;
3689 bool temp2 = False ;
3690 PyObject * obj0 = 0 ;
3691 PyObject * obj1 = 0 ;
3692 char *kwnames[] = {
3693 (char *) "self",(char *) "filename", NULL
3694 };
3695
3696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3698 {
3699 arg2 = wxString_in_helper(obj1);
3700 if (arg2 == NULL) SWIG_fail;
3701 temp2 = True;
3702 }
3703 {
3704 PyThreadState* __tstate = wxPyBeginAllowThreads();
3705 (arg1)->SetFileName((wxString const &)*arg2);
3706
3707 wxPyEndAllowThreads(__tstate);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 }
3710 Py_INCREF(Py_None); resultobj = Py_None;
3711 {
3712 if (temp2)
3713 delete arg2;
3714 }
3715 return resultobj;
3716 fail:
3717 {
3718 if (temp2)
3719 delete arg2;
3720 }
3721 return NULL;
3722 }
3723
3724
3725 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3726 PyObject *resultobj;
3727 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3728 wxString *result;
3729 PyObject * obj0 = 0 ;
3730 char *kwnames[] = {
3731 (char *) "self", NULL
3732 };
3733
3734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3736 {
3737 PyThreadState* __tstate = wxPyBeginAllowThreads();
3738 {
3739 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3740 result = (wxString *) &_result_ref;
3741 }
3742
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 {
3747 #if wxUSE_UNICODE
3748 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3749 #else
3750 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3751 #endif
3752 }
3753 return resultobj;
3754 fail:
3755 return NULL;
3756 }
3757
3758
3759 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3760 PyObject *resultobj;
3761 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3762 int arg2 ;
3763 PyObject * obj0 = 0 ;
3764 PyObject * obj1 = 0 ;
3765 char *kwnames[] = {
3766 (char *) "self",(char *) "num", NULL
3767 };
3768
3769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
3770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3771 {
3772 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3773 if (PyErr_Occurred()) SWIG_fail;
3774 }
3775 {
3776 PyThreadState* __tstate = wxPyBeginAllowThreads();
3777 wxIconLocation_SetIndex(arg1,arg2);
3778
3779 wxPyEndAllowThreads(__tstate);
3780 if (PyErr_Occurred()) SWIG_fail;
3781 }
3782 Py_INCREF(Py_None); resultobj = Py_None;
3783 return resultobj;
3784 fail:
3785 return NULL;
3786 }
3787
3788
3789 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3790 PyObject *resultobj;
3791 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3792 int result;
3793 PyObject * obj0 = 0 ;
3794 char *kwnames[] = {
3795 (char *) "self", NULL
3796 };
3797
3798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3800 {
3801 PyThreadState* __tstate = wxPyBeginAllowThreads();
3802 result = (int)wxIconLocation_GetIndex(arg1);
3803
3804 wxPyEndAllowThreads(__tstate);
3805 if (PyErr_Occurred()) SWIG_fail;
3806 }
3807 resultobj = SWIG_PyObj_FromInt((int)result);
3808 return resultobj;
3809 fail:
3810 return NULL;
3811 }
3812
3813
3814 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3815 PyObject *obj;
3816 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3817 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3818 Py_INCREF(obj);
3819 return Py_BuildValue((char *)"");
3820 }
3821 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3822 PyObject *resultobj;
3823 wxIconBundle *result;
3824 char *kwnames[] = {
3825 NULL
3826 };
3827
3828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3829 {
3830 PyThreadState* __tstate = wxPyBeginAllowThreads();
3831 result = (wxIconBundle *)new wxIconBundle();
3832
3833 wxPyEndAllowThreads(__tstate);
3834 if (PyErr_Occurred()) SWIG_fail;
3835 }
3836 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3837 return resultobj;
3838 fail:
3839 return NULL;
3840 }
3841
3842
3843 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3844 PyObject *resultobj;
3845 wxString *arg1 = 0 ;
3846 long arg2 ;
3847 wxIconBundle *result;
3848 bool temp1 = False ;
3849 PyObject * obj0 = 0 ;
3850 PyObject * obj1 = 0 ;
3851 char *kwnames[] = {
3852 (char *) "file",(char *) "type", NULL
3853 };
3854
3855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
3856 {
3857 arg1 = wxString_in_helper(obj0);
3858 if (arg1 == NULL) SWIG_fail;
3859 temp1 = True;
3860 }
3861 {
3862 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3863 if (PyErr_Occurred()) SWIG_fail;
3864 }
3865 {
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3868
3869 wxPyEndAllowThreads(__tstate);
3870 if (PyErr_Occurred()) SWIG_fail;
3871 }
3872 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3873 {
3874 if (temp1)
3875 delete arg1;
3876 }
3877 return resultobj;
3878 fail:
3879 {
3880 if (temp1)
3881 delete arg1;
3882 }
3883 return NULL;
3884 }
3885
3886
3887 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3888 PyObject *resultobj;
3889 wxIcon *arg1 = 0 ;
3890 wxIconBundle *result;
3891 PyObject * obj0 = 0 ;
3892 char *kwnames[] = {
3893 (char *) "icon", NULL
3894 };
3895
3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3898 if (arg1 == NULL) {
3899 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3900 }
3901 {
3902 PyThreadState* __tstate = wxPyBeginAllowThreads();
3903 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3904
3905 wxPyEndAllowThreads(__tstate);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3909 return resultobj;
3910 fail:
3911 return NULL;
3912 }
3913
3914
3915 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3916 PyObject *resultobj;
3917 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3918 PyObject * obj0 = 0 ;
3919 char *kwnames[] = {
3920 (char *) "self", NULL
3921 };
3922
3923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3925 {
3926 PyThreadState* __tstate = wxPyBeginAllowThreads();
3927 delete arg1;
3928
3929 wxPyEndAllowThreads(__tstate);
3930 if (PyErr_Occurred()) SWIG_fail;
3931 }
3932 Py_INCREF(Py_None); resultobj = Py_None;
3933 return resultobj;
3934 fail:
3935 return NULL;
3936 }
3937
3938
3939 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3940 PyObject *resultobj;
3941 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3942 wxIcon *arg2 = 0 ;
3943 PyObject * obj0 = 0 ;
3944 PyObject * obj1 = 0 ;
3945 char *kwnames[] = {
3946 (char *) "self",(char *) "icon", NULL
3947 };
3948
3949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3951 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3952 if (arg2 == NULL) {
3953 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3954 }
3955 {
3956 PyThreadState* __tstate = wxPyBeginAllowThreads();
3957 (arg1)->AddIcon((wxIcon const &)*arg2);
3958
3959 wxPyEndAllowThreads(__tstate);
3960 if (PyErr_Occurred()) SWIG_fail;
3961 }
3962 Py_INCREF(Py_None); resultobj = Py_None;
3963 return resultobj;
3964 fail:
3965 return NULL;
3966 }
3967
3968
3969 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3970 PyObject *resultobj;
3971 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3972 wxString *arg2 = 0 ;
3973 long arg3 ;
3974 bool temp2 = False ;
3975 PyObject * obj0 = 0 ;
3976 PyObject * obj1 = 0 ;
3977 PyObject * obj2 = 0 ;
3978 char *kwnames[] = {
3979 (char *) "self",(char *) "file",(char *) "type", NULL
3980 };
3981
3982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3984 {
3985 arg2 = wxString_in_helper(obj1);
3986 if (arg2 == NULL) SWIG_fail;
3987 temp2 = True;
3988 }
3989 {
3990 arg3 = (long) SWIG_PyObj_AsLong(obj2);
3991 if (PyErr_Occurred()) SWIG_fail;
3992 }
3993 {
3994 PyThreadState* __tstate = wxPyBeginAllowThreads();
3995 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3996
3997 wxPyEndAllowThreads(__tstate);
3998 if (PyErr_Occurred()) SWIG_fail;
3999 }
4000 Py_INCREF(Py_None); resultobj = Py_None;
4001 {
4002 if (temp2)
4003 delete arg2;
4004 }
4005 return resultobj;
4006 fail:
4007 {
4008 if (temp2)
4009 delete arg2;
4010 }
4011 return NULL;
4012 }
4013
4014
4015 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4016 PyObject *resultobj;
4017 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4018 wxSize *arg2 = 0 ;
4019 wxIcon *result;
4020 wxSize temp2 ;
4021 PyObject * obj0 = 0 ;
4022 PyObject * obj1 = 0 ;
4023 char *kwnames[] = {
4024 (char *) "self",(char *) "size", NULL
4025 };
4026
4027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4028 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4029 {
4030 arg2 = &temp2;
4031 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4032 }
4033 {
4034 PyThreadState* __tstate = wxPyBeginAllowThreads();
4035 {
4036 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4037 result = (wxIcon *) &_result_ref;
4038 }
4039
4040 wxPyEndAllowThreads(__tstate);
4041 if (PyErr_Occurred()) SWIG_fail;
4042 }
4043 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
4044 return resultobj;
4045 fail:
4046 return NULL;
4047 }
4048
4049
4050 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4051 PyObject *obj;
4052 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4053 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4054 Py_INCREF(obj);
4055 return Py_BuildValue((char *)"");
4056 }
4057 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4058 PyObject *resultobj;
4059 wxString *arg1 = (wxString *) 0 ;
4060 long arg2 ;
4061 int arg3 = (int) 0 ;
4062 int arg4 = (int) 0 ;
4063 wxCursor *result;
4064 bool temp1 = False ;
4065 PyObject * obj0 = 0 ;
4066 PyObject * obj1 = 0 ;
4067 PyObject * obj2 = 0 ;
4068 PyObject * obj3 = 0 ;
4069 char *kwnames[] = {
4070 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4071 };
4072
4073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4074 {
4075 arg1 = wxString_in_helper(obj0);
4076 if (arg1 == NULL) SWIG_fail;
4077 temp1 = True;
4078 }
4079 {
4080 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4081 if (PyErr_Occurred()) SWIG_fail;
4082 }
4083 if (obj2) {
4084 {
4085 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4086 if (PyErr_Occurred()) SWIG_fail;
4087 }
4088 }
4089 if (obj3) {
4090 {
4091 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4092 if (PyErr_Occurred()) SWIG_fail;
4093 }
4094 }
4095 {
4096 PyThreadState* __tstate = wxPyBeginAllowThreads();
4097 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4098
4099 wxPyEndAllowThreads(__tstate);
4100 if (PyErr_Occurred()) SWIG_fail;
4101 }
4102 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4103 {
4104 if (temp1)
4105 delete arg1;
4106 }
4107 return resultobj;
4108 fail:
4109 {
4110 if (temp1)
4111 delete arg1;
4112 }
4113 return NULL;
4114 }
4115
4116
4117 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4118 PyObject *resultobj;
4119 wxCursor *arg1 = (wxCursor *) 0 ;
4120 PyObject * obj0 = 0 ;
4121 char *kwnames[] = {
4122 (char *) "self", NULL
4123 };
4124
4125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 delete arg1;
4130
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 Py_INCREF(Py_None); resultobj = Py_None;
4135 return resultobj;
4136 fail:
4137 return NULL;
4138 }
4139
4140
4141 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4142 PyObject *resultobj;
4143 int arg1 ;
4144 wxCursor *result;
4145 PyObject * obj0 = 0 ;
4146 char *kwnames[] = {
4147 (char *) "id", NULL
4148 };
4149
4150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4151 {
4152 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
4155 {
4156 PyThreadState* __tstate = wxPyBeginAllowThreads();
4157 result = (wxCursor *)new wxCursor(arg1);
4158
4159 wxPyEndAllowThreads(__tstate);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 }
4162 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4163 return resultobj;
4164 fail:
4165 return NULL;
4166 }
4167
4168
4169 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4170 PyObject *resultobj;
4171 wxImage *arg1 = 0 ;
4172 wxCursor *result;
4173 PyObject * obj0 = 0 ;
4174 char *kwnames[] = {
4175 (char *) "image", NULL
4176 };
4177
4178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4180 if (arg1 == NULL) {
4181 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4182 }
4183 {
4184 PyThreadState* __tstate = wxPyBeginAllowThreads();
4185 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4186
4187 wxPyEndAllowThreads(__tstate);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 }
4190 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4191 return resultobj;
4192 fail:
4193 return NULL;
4194 }
4195
4196
4197 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4198 PyObject *resultobj;
4199 PyObject *arg1 = (PyObject *) 0 ;
4200 int arg2 ;
4201 int arg3 ;
4202 int arg4 = (int) -1 ;
4203 int arg5 = (int) -1 ;
4204 PyObject *arg6 = (PyObject *) 0 ;
4205 wxCursor *result;
4206 PyObject * obj0 = 0 ;
4207 PyObject * obj1 = 0 ;
4208 PyObject * obj2 = 0 ;
4209 PyObject * obj3 = 0 ;
4210 PyObject * obj4 = 0 ;
4211 PyObject * obj5 = 0 ;
4212 char *kwnames[] = {
4213 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4214 };
4215
4216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4217 arg1 = obj0;
4218 {
4219 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4220 if (PyErr_Occurred()) SWIG_fail;
4221 }
4222 {
4223 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 if (obj3) {
4227 {
4228 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 }
4232 if (obj4) {
4233 {
4234 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
4237 }
4238 if (obj5) {
4239 arg6 = obj5;
4240 }
4241 {
4242 PyThreadState* __tstate = wxPyBeginAllowThreads();
4243 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4244
4245 wxPyEndAllowThreads(__tstate);
4246 if (PyErr_Occurred()) SWIG_fail;
4247 }
4248 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4249 return resultobj;
4250 fail:
4251 return NULL;
4252 }
4253
4254
4255 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4256 PyObject *resultobj;
4257 wxCursor *arg1 = (wxCursor *) 0 ;
4258 bool result;
4259 PyObject * obj0 = 0 ;
4260 char *kwnames[] = {
4261 (char *) "self", NULL
4262 };
4263
4264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4266 {
4267 PyThreadState* __tstate = wxPyBeginAllowThreads();
4268 result = (bool)(arg1)->Ok();
4269
4270 wxPyEndAllowThreads(__tstate);
4271 if (PyErr_Occurred()) SWIG_fail;
4272 }
4273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4274 return resultobj;
4275 fail:
4276 return NULL;
4277 }
4278
4279
4280 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4281 PyObject *obj;
4282 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4283 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4284 Py_INCREF(obj);
4285 return Py_BuildValue((char *)"");
4286 }
4287 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4288 PyObject *resultobj;
4289 int arg1 = (int) 0 ;
4290 int arg2 = (int) 0 ;
4291 int arg3 = (int) 0 ;
4292 int arg4 = (int) 0 ;
4293 wxRegion *result;
4294 PyObject * obj0 = 0 ;
4295 PyObject * obj1 = 0 ;
4296 PyObject * obj2 = 0 ;
4297 PyObject * obj3 = 0 ;
4298 char *kwnames[] = {
4299 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4300 };
4301
4302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4303 if (obj0) {
4304 {
4305 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4306 if (PyErr_Occurred()) SWIG_fail;
4307 }
4308 }
4309 if (obj1) {
4310 {
4311 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4312 if (PyErr_Occurred()) SWIG_fail;
4313 }
4314 }
4315 if (obj2) {
4316 {
4317 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4318 if (PyErr_Occurred()) SWIG_fail;
4319 }
4320 }
4321 if (obj3) {
4322 {
4323 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4324 if (PyErr_Occurred()) SWIG_fail;
4325 }
4326 }
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4330
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4335 return resultobj;
4336 fail:
4337 return NULL;
4338 }
4339
4340
4341 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj;
4343 wxBitmap *arg1 = 0 ;
4344 wxColour const &arg2_defvalue = wxNullColour ;
4345 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4346 int arg3 = (int) 0 ;
4347 wxRegion *result;
4348 wxColour temp2 ;
4349 PyObject * obj0 = 0 ;
4350 PyObject * obj1 = 0 ;
4351 PyObject * obj2 = 0 ;
4352 char *kwnames[] = {
4353 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4354 };
4355
4356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4358 if (arg1 == NULL) {
4359 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4360 }
4361 if (obj1) {
4362 {
4363 arg2 = &temp2;
4364 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4365 }
4366 }
4367 if (obj2) {
4368 {
4369 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4370 if (PyErr_Occurred()) SWIG_fail;
4371 }
4372 }
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4376
4377 wxPyEndAllowThreads(__tstate);
4378 if (PyErr_Occurred()) SWIG_fail;
4379 }
4380 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4381 return resultobj;
4382 fail:
4383 return NULL;
4384 }
4385
4386
4387 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4388 PyObject *resultobj;
4389 int arg1 ;
4390 wxPoint *arg2 = (wxPoint *) 0 ;
4391 int arg3 = (int) wxWINDING_RULE ;
4392 wxRegion *result;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4395 char *kwnames[] = {
4396 (char *) "points",(char *) "fillStyle", NULL
4397 };
4398
4399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4400 {
4401 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4402 if (arg2 == NULL) SWIG_fail;
4403 }
4404 if (obj1) {
4405 {
4406 arg3 = (int) SWIG_PyObj_AsInt(obj1);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 }
4410 {
4411 PyThreadState* __tstate = wxPyBeginAllowThreads();
4412 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4413
4414 wxPyEndAllowThreads(__tstate);
4415 if (PyErr_Occurred()) SWIG_fail;
4416 }
4417 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4418 {
4419 if (arg2) delete [] arg2;
4420 }
4421 return resultobj;
4422 fail:
4423 {
4424 if (arg2) delete [] arg2;
4425 }
4426 return NULL;
4427 }
4428
4429
4430 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4431 PyObject *resultobj;
4432 wxRegion *arg1 = (wxRegion *) 0 ;
4433 PyObject * obj0 = 0 ;
4434 char *kwnames[] = {
4435 (char *) "self", NULL
4436 };
4437
4438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4440 {
4441 PyThreadState* __tstate = wxPyBeginAllowThreads();
4442 delete arg1;
4443
4444 wxPyEndAllowThreads(__tstate);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 Py_INCREF(Py_None); resultobj = Py_None;
4448 return resultobj;
4449 fail:
4450 return NULL;
4451 }
4452
4453
4454 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4455 PyObject *resultobj;
4456 wxRegion *arg1 = (wxRegion *) 0 ;
4457 PyObject * obj0 = 0 ;
4458 char *kwnames[] = {
4459 (char *) "self", NULL
4460 };
4461
4462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4464 {
4465 PyThreadState* __tstate = wxPyBeginAllowThreads();
4466 (arg1)->Clear();
4467
4468 wxPyEndAllowThreads(__tstate);
4469 if (PyErr_Occurred()) SWIG_fail;
4470 }
4471 Py_INCREF(Py_None); resultobj = Py_None;
4472 return resultobj;
4473 fail:
4474 return NULL;
4475 }
4476
4477
4478 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4479 PyObject *resultobj;
4480 wxRegion *arg1 = (wxRegion *) 0 ;
4481 int arg2 ;
4482 int arg3 ;
4483 int result;
4484 PyObject * obj0 = 0 ;
4485 PyObject * obj1 = 0 ;
4486 PyObject * obj2 = 0 ;
4487 char *kwnames[] = {
4488 (char *) "self",(char *) "x",(char *) "y", NULL
4489 };
4490
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4493 {
4494 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4495 if (PyErr_Occurred()) SWIG_fail;
4496 }
4497 {
4498 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4499 if (PyErr_Occurred()) SWIG_fail;
4500 }
4501 {
4502 PyThreadState* __tstate = wxPyBeginAllowThreads();
4503 result = (int)(arg1)->Contains(arg2,arg3);
4504
4505 wxPyEndAllowThreads(__tstate);
4506 if (PyErr_Occurred()) SWIG_fail;
4507 }
4508 resultobj = SWIG_PyObj_FromInt((int)result);
4509 return resultobj;
4510 fail:
4511 return NULL;
4512 }
4513
4514
4515 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4516 PyObject *resultobj;
4517 wxRegion *arg1 = (wxRegion *) 0 ;
4518 wxPoint *arg2 = 0 ;
4519 int result;
4520 wxPoint temp2 ;
4521 PyObject * obj0 = 0 ;
4522 PyObject * obj1 = 0 ;
4523 char *kwnames[] = {
4524 (char *) "self",(char *) "pt", NULL
4525 };
4526
4527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4529 {
4530 arg2 = &temp2;
4531 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4532 }
4533 {
4534 PyThreadState* __tstate = wxPyBeginAllowThreads();
4535 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4536
4537 wxPyEndAllowThreads(__tstate);
4538 if (PyErr_Occurred()) SWIG_fail;
4539 }
4540 resultobj = SWIG_PyObj_FromInt((int)result);
4541 return resultobj;
4542 fail:
4543 return NULL;
4544 }
4545
4546
4547 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4548 PyObject *resultobj;
4549 wxRegion *arg1 = (wxRegion *) 0 ;
4550 wxRect *arg2 = 0 ;
4551 int result;
4552 wxRect temp2 ;
4553 PyObject * obj0 = 0 ;
4554 PyObject * obj1 = 0 ;
4555 char *kwnames[] = {
4556 (char *) "self",(char *) "rect", NULL
4557 };
4558
4559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4561 {
4562 arg2 = &temp2;
4563 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4564 }
4565 {
4566 PyThreadState* __tstate = wxPyBeginAllowThreads();
4567 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4568
4569 wxPyEndAllowThreads(__tstate);
4570 if (PyErr_Occurred()) SWIG_fail;
4571 }
4572 resultobj = SWIG_PyObj_FromInt((int)result);
4573 return resultobj;
4574 fail:
4575 return NULL;
4576 }
4577
4578
4579 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4580 PyObject *resultobj;
4581 wxRegion *arg1 = (wxRegion *) 0 ;
4582 int arg2 ;
4583 int arg3 ;
4584 int arg4 ;
4585 int arg5 ;
4586 int result;
4587 PyObject * obj0 = 0 ;
4588 PyObject * obj1 = 0 ;
4589 PyObject * obj2 = 0 ;
4590 PyObject * obj3 = 0 ;
4591 PyObject * obj4 = 0 ;
4592 char *kwnames[] = {
4593 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4594 };
4595
4596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4598 {
4599 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4600 if (PyErr_Occurred()) SWIG_fail;
4601 }
4602 {
4603 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4604 if (PyErr_Occurred()) SWIG_fail;
4605 }
4606 {
4607 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4608 if (PyErr_Occurred()) SWIG_fail;
4609 }
4610 {
4611 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4612 if (PyErr_Occurred()) SWIG_fail;
4613 }
4614 {
4615 PyThreadState* __tstate = wxPyBeginAllowThreads();
4616 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4617
4618 wxPyEndAllowThreads(__tstate);
4619 if (PyErr_Occurred()) SWIG_fail;
4620 }
4621 resultobj = SWIG_PyObj_FromInt((int)result);
4622 return resultobj;
4623 fail:
4624 return NULL;
4625 }
4626
4627
4628 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4629 PyObject *resultobj;
4630 wxRegion *arg1 = (wxRegion *) 0 ;
4631 wxRect result;
4632 PyObject * obj0 = 0 ;
4633 char *kwnames[] = {
4634 (char *) "self", NULL
4635 };
4636
4637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4639 {
4640 PyThreadState* __tstate = wxPyBeginAllowThreads();
4641 result = (arg1)->GetBox();
4642
4643 wxPyEndAllowThreads(__tstate);
4644 if (PyErr_Occurred()) SWIG_fail;
4645 }
4646 {
4647 wxRect * resultptr;
4648 resultptr = new wxRect((wxRect &) result);
4649 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4650 }
4651 return resultobj;
4652 fail:
4653 return NULL;
4654 }
4655
4656
4657 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4658 PyObject *resultobj;
4659 wxRegion *arg1 = (wxRegion *) 0 ;
4660 int arg2 ;
4661 int arg3 ;
4662 int arg4 ;
4663 int arg5 ;
4664 bool result;
4665 PyObject * obj0 = 0 ;
4666 PyObject * obj1 = 0 ;
4667 PyObject * obj2 = 0 ;
4668 PyObject * obj3 = 0 ;
4669 PyObject * obj4 = 0 ;
4670 char *kwnames[] = {
4671 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4672 };
4673
4674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4676 {
4677 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4678 if (PyErr_Occurred()) SWIG_fail;
4679 }
4680 {
4681 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4682 if (PyErr_Occurred()) SWIG_fail;
4683 }
4684 {
4685 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4686 if (PyErr_Occurred()) SWIG_fail;
4687 }
4688 {
4689 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4690 if (PyErr_Occurred()) SWIG_fail;
4691 }
4692 {
4693 PyThreadState* __tstate = wxPyBeginAllowThreads();
4694 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4695
4696 wxPyEndAllowThreads(__tstate);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4700 return resultobj;
4701 fail:
4702 return NULL;
4703 }
4704
4705
4706 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4707 PyObject *resultobj;
4708 wxRegion *arg1 = (wxRegion *) 0 ;
4709 wxRect *arg2 = 0 ;
4710 bool result;
4711 wxRect temp2 ;
4712 PyObject * obj0 = 0 ;
4713 PyObject * obj1 = 0 ;
4714 char *kwnames[] = {
4715 (char *) "self",(char *) "rect", NULL
4716 };
4717
4718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4720 {
4721 arg2 = &temp2;
4722 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4723 }
4724 {
4725 PyThreadState* __tstate = wxPyBeginAllowThreads();
4726 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4727
4728 wxPyEndAllowThreads(__tstate);
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4732 return resultobj;
4733 fail:
4734 return NULL;
4735 }
4736
4737
4738 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4739 PyObject *resultobj;
4740 wxRegion *arg1 = (wxRegion *) 0 ;
4741 wxRegion *arg2 = 0 ;
4742 bool result;
4743 PyObject * obj0 = 0 ;
4744 PyObject * obj1 = 0 ;
4745 char *kwnames[] = {
4746 (char *) "self",(char *) "region", NULL
4747 };
4748
4749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4751 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4752 if (arg2 == NULL) {
4753 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4754 }
4755 {
4756 PyThreadState* __tstate = wxPyBeginAllowThreads();
4757 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4758
4759 wxPyEndAllowThreads(__tstate);
4760 if (PyErr_Occurred()) SWIG_fail;
4761 }
4762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4763 return resultobj;
4764 fail:
4765 return NULL;
4766 }
4767
4768
4769 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4770 PyObject *resultobj;
4771 wxRegion *arg1 = (wxRegion *) 0 ;
4772 bool result;
4773 PyObject * obj0 = 0 ;
4774 char *kwnames[] = {
4775 (char *) "self", NULL
4776 };
4777
4778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4780 {
4781 PyThreadState* __tstate = wxPyBeginAllowThreads();
4782 result = (bool)(arg1)->IsEmpty();
4783
4784 wxPyEndAllowThreads(__tstate);
4785 if (PyErr_Occurred()) SWIG_fail;
4786 }
4787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4788 return resultobj;
4789 fail:
4790 return NULL;
4791 }
4792
4793
4794 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4795 PyObject *resultobj;
4796 wxRegion *arg1 = (wxRegion *) 0 ;
4797 int arg2 ;
4798 int arg3 ;
4799 int arg4 ;
4800 int arg5 ;
4801 bool result;
4802 PyObject * obj0 = 0 ;
4803 PyObject * obj1 = 0 ;
4804 PyObject * obj2 = 0 ;
4805 PyObject * obj3 = 0 ;
4806 PyObject * obj4 = 0 ;
4807 char *kwnames[] = {
4808 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4809 };
4810
4811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4813 {
4814 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 {
4818 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 {
4822 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 {
4826 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 }
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4832
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4837 return resultobj;
4838 fail:
4839 return NULL;
4840 }
4841
4842
4843 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4844 PyObject *resultobj;
4845 wxRegion *arg1 = (wxRegion *) 0 ;
4846 wxRect *arg2 = 0 ;
4847 bool result;
4848 wxRect temp2 ;
4849 PyObject * obj0 = 0 ;
4850 PyObject * obj1 = 0 ;
4851 char *kwnames[] = {
4852 (char *) "self",(char *) "rect", NULL
4853 };
4854
4855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4857 {
4858 arg2 = &temp2;
4859 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4860 }
4861 {
4862 PyThreadState* __tstate = wxPyBeginAllowThreads();
4863 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4864
4865 wxPyEndAllowThreads(__tstate);
4866 if (PyErr_Occurred()) SWIG_fail;
4867 }
4868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4869 return resultobj;
4870 fail:
4871 return NULL;
4872 }
4873
4874
4875 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4876 PyObject *resultobj;
4877 wxRegion *arg1 = (wxRegion *) 0 ;
4878 wxRegion *arg2 = 0 ;
4879 bool result;
4880 PyObject * obj0 = 0 ;
4881 PyObject * obj1 = 0 ;
4882 char *kwnames[] = {
4883 (char *) "self",(char *) "region", NULL
4884 };
4885
4886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4888 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4889 if (arg2 == NULL) {
4890 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4891 }
4892 {
4893 PyThreadState* __tstate = wxPyBeginAllowThreads();
4894 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4895
4896 wxPyEndAllowThreads(__tstate);
4897 if (PyErr_Occurred()) SWIG_fail;
4898 }
4899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4900 return resultobj;
4901 fail:
4902 return NULL;
4903 }
4904
4905
4906 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4907 PyObject *resultobj;
4908 wxRegion *arg1 = (wxRegion *) 0 ;
4909 int arg2 ;
4910 int arg3 ;
4911 int arg4 ;
4912 int arg5 ;
4913 bool result;
4914 PyObject * obj0 = 0 ;
4915 PyObject * obj1 = 0 ;
4916 PyObject * obj2 = 0 ;
4917 PyObject * obj3 = 0 ;
4918 PyObject * obj4 = 0 ;
4919 char *kwnames[] = {
4920 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4921 };
4922
4923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4925 {
4926 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4927 if (PyErr_Occurred()) SWIG_fail;
4928 }
4929 {
4930 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4931 if (PyErr_Occurred()) SWIG_fail;
4932 }
4933 {
4934 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4935 if (PyErr_Occurred()) SWIG_fail;
4936 }
4937 {
4938 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4939 if (PyErr_Occurred()) SWIG_fail;
4940 }
4941 {
4942 PyThreadState* __tstate = wxPyBeginAllowThreads();
4943 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4944
4945 wxPyEndAllowThreads(__tstate);
4946 if (PyErr_Occurred()) SWIG_fail;
4947 }
4948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4949 return resultobj;
4950 fail:
4951 return NULL;
4952 }
4953
4954
4955 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4956 PyObject *resultobj;
4957 wxRegion *arg1 = (wxRegion *) 0 ;
4958 wxRect *arg2 = 0 ;
4959 bool result;
4960 wxRect temp2 ;
4961 PyObject * obj0 = 0 ;
4962 PyObject * obj1 = 0 ;
4963 char *kwnames[] = {
4964 (char *) "self",(char *) "rect", NULL
4965 };
4966
4967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4969 {
4970 arg2 = &temp2;
4971 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4972 }
4973 {
4974 PyThreadState* __tstate = wxPyBeginAllowThreads();
4975 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4976
4977 wxPyEndAllowThreads(__tstate);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4981 return resultobj;
4982 fail:
4983 return NULL;
4984 }
4985
4986
4987 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4988 PyObject *resultobj;
4989 wxRegion *arg1 = (wxRegion *) 0 ;
4990 wxRegion *arg2 = 0 ;
4991 bool result;
4992 PyObject * obj0 = 0 ;
4993 PyObject * obj1 = 0 ;
4994 char *kwnames[] = {
4995 (char *) "self",(char *) "region", NULL
4996 };
4997
4998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5000 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5001 if (arg2 == NULL) {
5002 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5003 }
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5007
5008 wxPyEndAllowThreads(__tstate);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 }
5011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5012 return resultobj;
5013 fail:
5014 return NULL;
5015 }
5016
5017
5018 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5019 PyObject *resultobj;
5020 wxRegion *arg1 = (wxRegion *) 0 ;
5021 int arg2 ;
5022 int arg3 ;
5023 int arg4 ;
5024 int arg5 ;
5025 bool result;
5026 PyObject * obj0 = 0 ;
5027 PyObject * obj1 = 0 ;
5028 PyObject * obj2 = 0 ;
5029 PyObject * obj3 = 0 ;
5030 PyObject * obj4 = 0 ;
5031 char *kwnames[] = {
5032 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5033 };
5034
5035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5036 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5037 {
5038 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5039 if (PyErr_Occurred()) SWIG_fail;
5040 }
5041 {
5042 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5043 if (PyErr_Occurred()) SWIG_fail;
5044 }
5045 {
5046 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5047 if (PyErr_Occurred()) SWIG_fail;
5048 }
5049 {
5050 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 {
5054 PyThreadState* __tstate = wxPyBeginAllowThreads();
5055 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5056
5057 wxPyEndAllowThreads(__tstate);
5058 if (PyErr_Occurred()) SWIG_fail;
5059 }
5060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5061 return resultobj;
5062 fail:
5063 return NULL;
5064 }
5065
5066
5067 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5068 PyObject *resultobj;
5069 wxRegion *arg1 = (wxRegion *) 0 ;
5070 wxRect *arg2 = 0 ;
5071 bool result;
5072 wxRect temp2 ;
5073 PyObject * obj0 = 0 ;
5074 PyObject * obj1 = 0 ;
5075 char *kwnames[] = {
5076 (char *) "self",(char *) "rect", NULL
5077 };
5078
5079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5081 {
5082 arg2 = &temp2;
5083 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5084 }
5085 {
5086 PyThreadState* __tstate = wxPyBeginAllowThreads();
5087 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5088
5089 wxPyEndAllowThreads(__tstate);
5090 if (PyErr_Occurred()) SWIG_fail;
5091 }
5092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5093 return resultobj;
5094 fail:
5095 return NULL;
5096 }
5097
5098
5099 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5100 PyObject *resultobj;
5101 wxRegion *arg1 = (wxRegion *) 0 ;
5102 wxRegion *arg2 = 0 ;
5103 bool result;
5104 PyObject * obj0 = 0 ;
5105 PyObject * obj1 = 0 ;
5106 char *kwnames[] = {
5107 (char *) "self",(char *) "region", NULL
5108 };
5109
5110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5112 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5113 if (arg2 == NULL) {
5114 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5115 }
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5124 return resultobj;
5125 fail:
5126 return NULL;
5127 }
5128
5129
5130 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5131 PyObject *resultobj;
5132 wxRegion *arg1 = (wxRegion *) 0 ;
5133 SwigValueWrapper< wxBitmap > result;
5134 PyObject * obj0 = 0 ;
5135 char *kwnames[] = {
5136 (char *) "self", NULL
5137 };
5138
5139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5141 {
5142 PyThreadState* __tstate = wxPyBeginAllowThreads();
5143 result = (arg1)->ConvertToBitmap();
5144
5145 wxPyEndAllowThreads(__tstate);
5146 if (PyErr_Occurred()) SWIG_fail;
5147 }
5148 {
5149 wxBitmap * resultptr;
5150 resultptr = new wxBitmap((wxBitmap &) result);
5151 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5152 }
5153 return resultobj;
5154 fail:
5155 return NULL;
5156 }
5157
5158
5159 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5160 PyObject *resultobj;
5161 wxRegion *arg1 = (wxRegion *) 0 ;
5162 wxBitmap *arg2 = 0 ;
5163 wxColour const &arg3_defvalue = wxNullColour ;
5164 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5165 int arg4 = (int) 0 ;
5166 bool result;
5167 wxColour temp3 ;
5168 PyObject * obj0 = 0 ;
5169 PyObject * obj1 = 0 ;
5170 PyObject * obj2 = 0 ;
5171 PyObject * obj3 = 0 ;
5172 char *kwnames[] = {
5173 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5174 };
5175
5176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5178 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5179 if (arg2 == NULL) {
5180 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5181 }
5182 if (obj2) {
5183 {
5184 arg3 = &temp3;
5185 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5186 }
5187 }
5188 if (obj3) {
5189 {
5190 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5191 if (PyErr_Occurred()) SWIG_fail;
5192 }
5193 }
5194 {
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
5196 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5197
5198 wxPyEndAllowThreads(__tstate);
5199 if (PyErr_Occurred()) SWIG_fail;
5200 }
5201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5202 return resultobj;
5203 fail:
5204 return NULL;
5205 }
5206
5207
5208 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5209 PyObject *obj;
5210 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5211 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5212 Py_INCREF(obj);
5213 return Py_BuildValue((char *)"");
5214 }
5215 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5216 PyObject *resultobj;
5217 wxRegion *arg1 = 0 ;
5218 wxRegionIterator *result;
5219 PyObject * obj0 = 0 ;
5220 char *kwnames[] = {
5221 (char *) "region", NULL
5222 };
5223
5224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5226 if (arg1 == NULL) {
5227 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5228 }
5229 {
5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
5231 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5232
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5237 return resultobj;
5238 fail:
5239 return NULL;
5240 }
5241
5242
5243 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5244 PyObject *resultobj;
5245 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5246 PyObject * obj0 = 0 ;
5247 char *kwnames[] = {
5248 (char *) "self", NULL
5249 };
5250
5251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5253 {
5254 PyThreadState* __tstate = wxPyBeginAllowThreads();
5255 delete arg1;
5256
5257 wxPyEndAllowThreads(__tstate);
5258 if (PyErr_Occurred()) SWIG_fail;
5259 }
5260 Py_INCREF(Py_None); resultobj = Py_None;
5261 return resultobj;
5262 fail:
5263 return NULL;
5264 }
5265
5266
5267 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5268 PyObject *resultobj;
5269 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5270 int result;
5271 PyObject * obj0 = 0 ;
5272 char *kwnames[] = {
5273 (char *) "self", NULL
5274 };
5275
5276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5278 {
5279 PyThreadState* __tstate = wxPyBeginAllowThreads();
5280 result = (int)(arg1)->GetX();
5281
5282 wxPyEndAllowThreads(__tstate);
5283 if (PyErr_Occurred()) SWIG_fail;
5284 }
5285 resultobj = SWIG_PyObj_FromInt((int)result);
5286 return resultobj;
5287 fail:
5288 return NULL;
5289 }
5290
5291
5292 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject *resultobj;
5294 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5295 int result;
5296 PyObject * obj0 = 0 ;
5297 char *kwnames[] = {
5298 (char *) "self", NULL
5299 };
5300
5301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5303 {
5304 PyThreadState* __tstate = wxPyBeginAllowThreads();
5305 result = (int)(arg1)->GetY();
5306
5307 wxPyEndAllowThreads(__tstate);
5308 if (PyErr_Occurred()) SWIG_fail;
5309 }
5310 resultobj = SWIG_PyObj_FromInt((int)result);
5311 return resultobj;
5312 fail:
5313 return NULL;
5314 }
5315
5316
5317 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5318 PyObject *resultobj;
5319 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5320 int result;
5321 PyObject * obj0 = 0 ;
5322 char *kwnames[] = {
5323 (char *) "self", NULL
5324 };
5325
5326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5328 {
5329 PyThreadState* __tstate = wxPyBeginAllowThreads();
5330 result = (int)(arg1)->GetW();
5331
5332 wxPyEndAllowThreads(__tstate);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 }
5335 resultobj = SWIG_PyObj_FromInt((int)result);
5336 return resultobj;
5337 fail:
5338 return NULL;
5339 }
5340
5341
5342 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5343 PyObject *resultobj;
5344 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5345 int result;
5346 PyObject * obj0 = 0 ;
5347 char *kwnames[] = {
5348 (char *) "self", NULL
5349 };
5350
5351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5353 {
5354 PyThreadState* __tstate = wxPyBeginAllowThreads();
5355 result = (int)(arg1)->GetWidth();
5356
5357 wxPyEndAllowThreads(__tstate);
5358 if (PyErr_Occurred()) SWIG_fail;
5359 }
5360 resultobj = SWIG_PyObj_FromInt((int)result);
5361 return resultobj;
5362 fail:
5363 return NULL;
5364 }
5365
5366
5367 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5368 PyObject *resultobj;
5369 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5370 int result;
5371 PyObject * obj0 = 0 ;
5372 char *kwnames[] = {
5373 (char *) "self", NULL
5374 };
5375
5376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5378 {
5379 PyThreadState* __tstate = wxPyBeginAllowThreads();
5380 result = (int)(arg1)->GetH();
5381
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 }
5385 resultobj = SWIG_PyObj_FromInt((int)result);
5386 return resultobj;
5387 fail:
5388 return NULL;
5389 }
5390
5391
5392 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5393 PyObject *resultobj;
5394 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5395 int result;
5396 PyObject * obj0 = 0 ;
5397 char *kwnames[] = {
5398 (char *) "self", NULL
5399 };
5400
5401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5403 {
5404 PyThreadState* __tstate = wxPyBeginAllowThreads();
5405 result = (int)(arg1)->GetHeight();
5406
5407 wxPyEndAllowThreads(__tstate);
5408 if (PyErr_Occurred()) SWIG_fail;
5409 }
5410 resultobj = SWIG_PyObj_FromInt((int)result);
5411 return resultobj;
5412 fail:
5413 return NULL;
5414 }
5415
5416
5417 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5418 PyObject *resultobj;
5419 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5420 wxRect result;
5421 PyObject * obj0 = 0 ;
5422 char *kwnames[] = {
5423 (char *) "self", NULL
5424 };
5425
5426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5428 {
5429 PyThreadState* __tstate = wxPyBeginAllowThreads();
5430 result = (arg1)->GetRect();
5431
5432 wxPyEndAllowThreads(__tstate);
5433 if (PyErr_Occurred()) SWIG_fail;
5434 }
5435 {
5436 wxRect * resultptr;
5437 resultptr = new wxRect((wxRect &) result);
5438 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5439 }
5440 return resultobj;
5441 fail:
5442 return NULL;
5443 }
5444
5445
5446 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5447 PyObject *resultobj;
5448 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5449 bool result;
5450 PyObject * obj0 = 0 ;
5451 char *kwnames[] = {
5452 (char *) "self", NULL
5453 };
5454
5455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5457 {
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 result = (bool)(arg1)->HaveRects();
5460
5461 wxPyEndAllowThreads(__tstate);
5462 if (PyErr_Occurred()) SWIG_fail;
5463 }
5464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5465 return resultobj;
5466 fail:
5467 return NULL;
5468 }
5469
5470
5471 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5472 PyObject *resultobj;
5473 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5474 PyObject * obj0 = 0 ;
5475 char *kwnames[] = {
5476 (char *) "self", NULL
5477 };
5478
5479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5481 {
5482 PyThreadState* __tstate = wxPyBeginAllowThreads();
5483 (arg1)->Reset();
5484
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 Py_INCREF(Py_None); resultobj = Py_None;
5489 return resultobj;
5490 fail:
5491 return NULL;
5492 }
5493
5494
5495 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5496 PyObject *resultobj;
5497 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5498 PyObject * obj0 = 0 ;
5499 char *kwnames[] = {
5500 (char *) "self", NULL
5501 };
5502
5503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5505 {
5506 PyThreadState* __tstate = wxPyBeginAllowThreads();
5507 wxRegionIterator_Next(arg1);
5508
5509 wxPyEndAllowThreads(__tstate);
5510 if (PyErr_Occurred()) SWIG_fail;
5511 }
5512 Py_INCREF(Py_None); resultobj = Py_None;
5513 return resultobj;
5514 fail:
5515 return NULL;
5516 }
5517
5518
5519 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5520 PyObject *resultobj;
5521 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5522 bool result;
5523 PyObject * obj0 = 0 ;
5524 char *kwnames[] = {
5525 (char *) "self", NULL
5526 };
5527
5528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5530 {
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 result = (bool)wxRegionIterator___nonzero__(arg1);
5533
5534 wxPyEndAllowThreads(__tstate);
5535 if (PyErr_Occurred()) SWIG_fail;
5536 }
5537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5538 return resultobj;
5539 fail:
5540 return NULL;
5541 }
5542
5543
5544 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5545 PyObject *obj;
5546 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5547 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5548 Py_INCREF(obj);
5549 return Py_BuildValue((char *)"");
5550 }
5551 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5552 PyObject *resultobj;
5553 wxNativeFontInfo *result;
5554 char *kwnames[] = {
5555 NULL
5556 };
5557
5558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5559 {
5560 PyThreadState* __tstate = wxPyBeginAllowThreads();
5561 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5562
5563 wxPyEndAllowThreads(__tstate);
5564 if (PyErr_Occurred()) SWIG_fail;
5565 }
5566 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5567 return resultobj;
5568 fail:
5569 return NULL;
5570 }
5571
5572
5573 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5574 PyObject *resultobj;
5575 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5576 PyObject * obj0 = 0 ;
5577 char *kwnames[] = {
5578 (char *) "self", NULL
5579 };
5580
5581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5583 {
5584 PyThreadState* __tstate = wxPyBeginAllowThreads();
5585 delete arg1;
5586
5587 wxPyEndAllowThreads(__tstate);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
5590 Py_INCREF(Py_None); resultobj = Py_None;
5591 return resultobj;
5592 fail:
5593 return NULL;
5594 }
5595
5596
5597 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5598 PyObject *resultobj;
5599 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5600 PyObject * obj0 = 0 ;
5601 char *kwnames[] = {
5602 (char *) "self", NULL
5603 };
5604
5605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5607 {
5608 PyThreadState* __tstate = wxPyBeginAllowThreads();
5609 (arg1)->Init();
5610
5611 wxPyEndAllowThreads(__tstate);
5612 if (PyErr_Occurred()) SWIG_fail;
5613 }
5614 Py_INCREF(Py_None); resultobj = Py_None;
5615 return resultobj;
5616 fail:
5617 return NULL;
5618 }
5619
5620
5621 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5622 PyObject *resultobj;
5623 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5624 wxFont *arg2 = 0 ;
5625 PyObject * obj0 = 0 ;
5626 PyObject * obj1 = 0 ;
5627 char *kwnames[] = {
5628 (char *) "self",(char *) "font", NULL
5629 };
5630
5631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5633 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5634 if (arg2 == NULL) {
5635 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5636 }
5637 {
5638 PyThreadState* __tstate = wxPyBeginAllowThreads();
5639 (arg1)->InitFromFont((wxFont const &)*arg2);
5640
5641 wxPyEndAllowThreads(__tstate);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 }
5644 Py_INCREF(Py_None); resultobj = Py_None;
5645 return resultobj;
5646 fail:
5647 return NULL;
5648 }
5649
5650
5651 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5652 PyObject *resultobj;
5653 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5654 int result;
5655 PyObject * obj0 = 0 ;
5656 char *kwnames[] = {
5657 (char *) "self", NULL
5658 };
5659
5660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5662 {
5663 PyThreadState* __tstate = wxPyBeginAllowThreads();
5664 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5665
5666 wxPyEndAllowThreads(__tstate);
5667 if (PyErr_Occurred()) SWIG_fail;
5668 }
5669 resultobj = SWIG_PyObj_FromInt((int)result);
5670 return resultobj;
5671 fail:
5672 return NULL;
5673 }
5674
5675
5676 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5677 PyObject *resultobj;
5678 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5679 int result;
5680 PyObject * obj0 = 0 ;
5681 char *kwnames[] = {
5682 (char *) "self", NULL
5683 };
5684
5685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5687 {
5688 PyThreadState* __tstate = wxPyBeginAllowThreads();
5689 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5690
5691 wxPyEndAllowThreads(__tstate);
5692 if (PyErr_Occurred()) SWIG_fail;
5693 }
5694 resultobj = SWIG_PyObj_FromInt((int)result);
5695 return resultobj;
5696 fail:
5697 return NULL;
5698 }
5699
5700
5701 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5702 PyObject *resultobj;
5703 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5704 int result;
5705 PyObject * obj0 = 0 ;
5706 char *kwnames[] = {
5707 (char *) "self", NULL
5708 };
5709
5710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5712 {
5713 PyThreadState* __tstate = wxPyBeginAllowThreads();
5714 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5715
5716 wxPyEndAllowThreads(__tstate);
5717 if (PyErr_Occurred()) SWIG_fail;
5718 }
5719 resultobj = SWIG_PyObj_FromInt((int)result);
5720 return resultobj;
5721 fail:
5722 return NULL;
5723 }
5724
5725
5726 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5727 PyObject *resultobj;
5728 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5729 bool result;
5730 PyObject * obj0 = 0 ;
5731 char *kwnames[] = {
5732 (char *) "self", NULL
5733 };
5734
5735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5737 {
5738 PyThreadState* __tstate = wxPyBeginAllowThreads();
5739 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5740
5741 wxPyEndAllowThreads(__tstate);
5742 if (PyErr_Occurred()) SWIG_fail;
5743 }
5744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5745 return resultobj;
5746 fail:
5747 return NULL;
5748 }
5749
5750
5751 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5752 PyObject *resultobj;
5753 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5754 wxString result;
5755 PyObject * obj0 = 0 ;
5756 char *kwnames[] = {
5757 (char *) "self", NULL
5758 };
5759
5760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5762 {
5763 PyThreadState* __tstate = wxPyBeginAllowThreads();
5764 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5765
5766 wxPyEndAllowThreads(__tstate);
5767 if (PyErr_Occurred()) SWIG_fail;
5768 }
5769 {
5770 #if wxUSE_UNICODE
5771 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5772 #else
5773 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5774 #endif
5775 }
5776 return resultobj;
5777 fail:
5778 return NULL;
5779 }
5780
5781
5782 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5783 PyObject *resultobj;
5784 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5785 int result;
5786 PyObject * obj0 = 0 ;
5787 char *kwnames[] = {
5788 (char *) "self", NULL
5789 };
5790
5791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5792 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5793 {
5794 PyThreadState* __tstate = wxPyBeginAllowThreads();
5795 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5796
5797 wxPyEndAllowThreads(__tstate);
5798 if (PyErr_Occurred()) SWIG_fail;
5799 }
5800 resultobj = SWIG_PyObj_FromInt((int)result);
5801 return resultobj;
5802 fail:
5803 return NULL;
5804 }
5805
5806
5807 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5808 PyObject *resultobj;
5809 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5810 int result;
5811 PyObject * obj0 = 0 ;
5812 char *kwnames[] = {
5813 (char *) "self", NULL
5814 };
5815
5816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5818 {
5819 PyThreadState* __tstate = wxPyBeginAllowThreads();
5820 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5821
5822 wxPyEndAllowThreads(__tstate);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 resultobj = SWIG_PyObj_FromInt((int)result);
5826 return resultobj;
5827 fail:
5828 return NULL;
5829 }
5830
5831
5832 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5833 PyObject *resultobj;
5834 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5835 int arg2 ;
5836 PyObject * obj0 = 0 ;
5837 PyObject * obj1 = 0 ;
5838 char *kwnames[] = {
5839 (char *) "self",(char *) "pointsize", NULL
5840 };
5841
5842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
5843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5844 {
5845 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5846 if (PyErr_Occurred()) SWIG_fail;
5847 }
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 (arg1)->SetPointSize(arg2);
5851
5852 wxPyEndAllowThreads(__tstate);
5853 if (PyErr_Occurred()) SWIG_fail;
5854 }
5855 Py_INCREF(Py_None); resultobj = Py_None;
5856 return resultobj;
5857 fail:
5858 return NULL;
5859 }
5860
5861
5862 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5863 PyObject *resultobj;
5864 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5865 int arg2 ;
5866 PyObject * obj0 = 0 ;
5867 PyObject * obj1 = 0 ;
5868 char *kwnames[] = {
5869 (char *) "self",(char *) "style", NULL
5870 };
5871
5872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
5873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5874 {
5875 arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 {
5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
5880 (arg1)->SetStyle((wxFontStyle )arg2);
5881
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 Py_INCREF(Py_None); resultobj = Py_None;
5886 return resultobj;
5887 fail:
5888 return NULL;
5889 }
5890
5891
5892 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5893 PyObject *resultobj;
5894 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5895 int arg2 ;
5896 PyObject * obj0 = 0 ;
5897 PyObject * obj1 = 0 ;
5898 char *kwnames[] = {
5899 (char *) "self",(char *) "weight", NULL
5900 };
5901
5902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
5903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5904 {
5905 arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 }
5908 {
5909 PyThreadState* __tstate = wxPyBeginAllowThreads();
5910 (arg1)->SetWeight((wxFontWeight )arg2);
5911
5912 wxPyEndAllowThreads(__tstate);
5913 if (PyErr_Occurred()) SWIG_fail;
5914 }
5915 Py_INCREF(Py_None); resultobj = Py_None;
5916 return resultobj;
5917 fail:
5918 return NULL;
5919 }
5920
5921
5922 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5923 PyObject *resultobj;
5924 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5925 bool arg2 ;
5926 PyObject * obj0 = 0 ;
5927 PyObject * obj1 = 0 ;
5928 char *kwnames[] = {
5929 (char *) "self",(char *) "underlined", NULL
5930 };
5931
5932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5934 {
5935 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 {
5939 PyThreadState* __tstate = wxPyBeginAllowThreads();
5940 (arg1)->SetUnderlined(arg2);
5941
5942 wxPyEndAllowThreads(__tstate);
5943 if (PyErr_Occurred()) SWIG_fail;
5944 }
5945 Py_INCREF(Py_None); resultobj = Py_None;
5946 return resultobj;
5947 fail:
5948 return NULL;
5949 }
5950
5951
5952 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5953 PyObject *resultobj;
5954 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5955 wxString arg2 ;
5956 PyObject * obj0 = 0 ;
5957 PyObject * obj1 = 0 ;
5958 char *kwnames[] = {
5959 (char *) "self",(char *) "facename", NULL
5960 };
5961
5962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5964 {
5965 wxString* sptr = wxString_in_helper(obj1);
5966 if (sptr == NULL) SWIG_fail;
5967 arg2 = *sptr;
5968 delete sptr;
5969 }
5970 {
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 (arg1)->SetFaceName(arg2);
5973
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 Py_INCREF(Py_None); resultobj = Py_None;
5978 return resultobj;
5979 fail:
5980 return NULL;
5981 }
5982
5983
5984 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj;
5986 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5987 int arg2 ;
5988 PyObject * obj0 = 0 ;
5989 PyObject * obj1 = 0 ;
5990 char *kwnames[] = {
5991 (char *) "self",(char *) "family", NULL
5992 };
5993
5994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
5995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5996 {
5997 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
5998 if (PyErr_Occurred()) SWIG_fail;
5999 }
6000 {
6001 PyThreadState* __tstate = wxPyBeginAllowThreads();
6002 (arg1)->SetFamily((wxFontFamily )arg2);
6003
6004 wxPyEndAllowThreads(__tstate);
6005 if (PyErr_Occurred()) SWIG_fail;
6006 }
6007 Py_INCREF(Py_None); resultobj = Py_None;
6008 return resultobj;
6009 fail:
6010 return NULL;
6011 }
6012
6013
6014 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6015 PyObject *resultobj;
6016 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6017 int arg2 ;
6018 PyObject * obj0 = 0 ;
6019 PyObject * obj1 = 0 ;
6020 char *kwnames[] = {
6021 (char *) "self",(char *) "encoding", NULL
6022 };
6023
6024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6026 {
6027 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 {
6031 PyThreadState* __tstate = wxPyBeginAllowThreads();
6032 (arg1)->SetEncoding((wxFontEncoding )arg2);
6033
6034 wxPyEndAllowThreads(__tstate);
6035 if (PyErr_Occurred()) SWIG_fail;
6036 }
6037 Py_INCREF(Py_None); resultobj = Py_None;
6038 return resultobj;
6039 fail:
6040 return NULL;
6041 }
6042
6043
6044 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6045 PyObject *resultobj;
6046 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6047 wxString *arg2 = 0 ;
6048 bool result;
6049 bool temp2 = False ;
6050 PyObject * obj0 = 0 ;
6051 PyObject * obj1 = 0 ;
6052 char *kwnames[] = {
6053 (char *) "self",(char *) "s", NULL
6054 };
6055
6056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6058 {
6059 arg2 = wxString_in_helper(obj1);
6060 if (arg2 == NULL) SWIG_fail;
6061 temp2 = True;
6062 }
6063 {
6064 PyThreadState* __tstate = wxPyBeginAllowThreads();
6065 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6066
6067 wxPyEndAllowThreads(__tstate);
6068 if (PyErr_Occurred()) SWIG_fail;
6069 }
6070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6071 {
6072 if (temp2)
6073 delete arg2;
6074 }
6075 return resultobj;
6076 fail:
6077 {
6078 if (temp2)
6079 delete arg2;
6080 }
6081 return NULL;
6082 }
6083
6084
6085 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6086 PyObject *resultobj;
6087 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6088 wxString result;
6089 PyObject * obj0 = 0 ;
6090 char *kwnames[] = {
6091 (char *) "self", NULL
6092 };
6093
6094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6096 {
6097 PyThreadState* __tstate = wxPyBeginAllowThreads();
6098 result = ((wxNativeFontInfo const *)arg1)->ToString();
6099
6100 wxPyEndAllowThreads(__tstate);
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 {
6104 #if wxUSE_UNICODE
6105 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6106 #else
6107 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6108 #endif
6109 }
6110 return resultobj;
6111 fail:
6112 return NULL;
6113 }
6114
6115
6116 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6117 PyObject *resultobj;
6118 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6119 wxString result;
6120 PyObject * obj0 = 0 ;
6121 char *kwnames[] = {
6122 (char *) "self", NULL
6123 };
6124
6125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6127 {
6128 PyThreadState* __tstate = wxPyBeginAllowThreads();
6129 result = wxNativeFontInfo___str__(arg1);
6130
6131 wxPyEndAllowThreads(__tstate);
6132 if (PyErr_Occurred()) SWIG_fail;
6133 }
6134 {
6135 #if wxUSE_UNICODE
6136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6137 #else
6138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6139 #endif
6140 }
6141 return resultobj;
6142 fail:
6143 return NULL;
6144 }
6145
6146
6147 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6148 PyObject *resultobj;
6149 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6150 wxString *arg2 = 0 ;
6151 bool result;
6152 bool temp2 = False ;
6153 PyObject * obj0 = 0 ;
6154 PyObject * obj1 = 0 ;
6155 char *kwnames[] = {
6156 (char *) "self",(char *) "s", NULL
6157 };
6158
6159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6161 {
6162 arg2 = wxString_in_helper(obj1);
6163 if (arg2 == NULL) SWIG_fail;
6164 temp2 = True;
6165 }
6166 {
6167 PyThreadState* __tstate = wxPyBeginAllowThreads();
6168 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6169
6170 wxPyEndAllowThreads(__tstate);
6171 if (PyErr_Occurred()) SWIG_fail;
6172 }
6173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6174 {
6175 if (temp2)
6176 delete arg2;
6177 }
6178 return resultobj;
6179 fail:
6180 {
6181 if (temp2)
6182 delete arg2;
6183 }
6184 return NULL;
6185 }
6186
6187
6188 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6189 PyObject *resultobj;
6190 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6191 wxString result;
6192 PyObject * obj0 = 0 ;
6193 char *kwnames[] = {
6194 (char *) "self", NULL
6195 };
6196
6197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6199 {
6200 PyThreadState* __tstate = wxPyBeginAllowThreads();
6201 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6202
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 {
6207 #if wxUSE_UNICODE
6208 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6209 #else
6210 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6211 #endif
6212 }
6213 return resultobj;
6214 fail:
6215 return NULL;
6216 }
6217
6218
6219 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6220 PyObject *obj;
6221 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6222 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6223 Py_INCREF(obj);
6224 return Py_BuildValue((char *)"");
6225 }
6226 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6227 PyObject *resultobj;
6228 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6229 wxString *arg2 = (wxString *) 0 ;
6230 bool temp2 = False ;
6231 PyObject * obj0 = 0 ;
6232 PyObject * obj1 = 0 ;
6233 char *kwnames[] = {
6234 (char *) "self",(char *) "facename", NULL
6235 };
6236
6237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6238 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6239 {
6240 arg2 = wxString_in_helper(obj1);
6241 if (arg2 == NULL) SWIG_fail;
6242 temp2 = True;
6243 }
6244 if (arg1) (arg1)->facename = *arg2;
6245
6246 Py_INCREF(Py_None); resultobj = Py_None;
6247 {
6248 if (temp2)
6249 delete arg2;
6250 }
6251 return resultobj;
6252 fail:
6253 {
6254 if (temp2)
6255 delete arg2;
6256 }
6257 return NULL;
6258 }
6259
6260
6261 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6262 PyObject *resultobj;
6263 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6264 wxString *result;
6265 PyObject * obj0 = 0 ;
6266 char *kwnames[] = {
6267 (char *) "self", NULL
6268 };
6269
6270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6272 result = (wxString *)& ((arg1)->facename);
6273
6274 {
6275 #if wxUSE_UNICODE
6276 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6277 #else
6278 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6279 #endif
6280 }
6281 return resultobj;
6282 fail:
6283 return NULL;
6284 }
6285
6286
6287 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6288 PyObject *resultobj;
6289 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6290 int arg2 ;
6291 PyObject * obj0 = 0 ;
6292 PyObject * obj1 = 0 ;
6293 char *kwnames[] = {
6294 (char *) "self",(char *) "encoding", NULL
6295 };
6296
6297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6299 {
6300 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6301 if (PyErr_Occurred()) SWIG_fail;
6302 }
6303 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6304
6305 Py_INCREF(Py_None); resultobj = Py_None;
6306 return resultobj;
6307 fail:
6308 return NULL;
6309 }
6310
6311
6312 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6313 PyObject *resultobj;
6314 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 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:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6323 result = (int) ((arg1)->encoding);
6324
6325 resultobj = SWIG_PyObj_FromInt((int)result);
6326 return resultobj;
6327 fail:
6328 return NULL;
6329 }
6330
6331
6332 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6333 PyObject *resultobj;
6334 wxNativeEncodingInfo *result;
6335 char *kwnames[] = {
6336 NULL
6337 };
6338
6339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6340 {
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6343
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6348 return resultobj;
6349 fail:
6350 return NULL;
6351 }
6352
6353
6354 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6355 PyObject *resultobj;
6356 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6357 PyObject * obj0 = 0 ;
6358 char *kwnames[] = {
6359 (char *) "self", NULL
6360 };
6361
6362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6364 {
6365 PyThreadState* __tstate = wxPyBeginAllowThreads();
6366 delete arg1;
6367
6368 wxPyEndAllowThreads(__tstate);
6369 if (PyErr_Occurred()) SWIG_fail;
6370 }
6371 Py_INCREF(Py_None); resultobj = Py_None;
6372 return resultobj;
6373 fail:
6374 return NULL;
6375 }
6376
6377
6378 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6379 PyObject *resultobj;
6380 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6381 wxString *arg2 = 0 ;
6382 bool result;
6383 bool temp2 = False ;
6384 PyObject * obj0 = 0 ;
6385 PyObject * obj1 = 0 ;
6386 char *kwnames[] = {
6387 (char *) "self",(char *) "s", NULL
6388 };
6389
6390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6392 {
6393 arg2 = wxString_in_helper(obj1);
6394 if (arg2 == NULL) SWIG_fail;
6395 temp2 = True;
6396 }
6397 {
6398 PyThreadState* __tstate = wxPyBeginAllowThreads();
6399 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6400
6401 wxPyEndAllowThreads(__tstate);
6402 if (PyErr_Occurred()) SWIG_fail;
6403 }
6404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6405 {
6406 if (temp2)
6407 delete arg2;
6408 }
6409 return resultobj;
6410 fail:
6411 {
6412 if (temp2)
6413 delete arg2;
6414 }
6415 return NULL;
6416 }
6417
6418
6419 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6420 PyObject *resultobj;
6421 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6422 wxString result;
6423 PyObject * obj0 = 0 ;
6424 char *kwnames[] = {
6425 (char *) "self", NULL
6426 };
6427
6428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6430 {
6431 PyThreadState* __tstate = wxPyBeginAllowThreads();
6432 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6433
6434 wxPyEndAllowThreads(__tstate);
6435 if (PyErr_Occurred()) SWIG_fail;
6436 }
6437 {
6438 #if wxUSE_UNICODE
6439 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6440 #else
6441 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6442 #endif
6443 }
6444 return resultobj;
6445 fail:
6446 return NULL;
6447 }
6448
6449
6450 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6451 PyObject *obj;
6452 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6453 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6454 Py_INCREF(obj);
6455 return Py_BuildValue((char *)"");
6456 }
6457 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6458 PyObject *resultobj;
6459 int arg1 ;
6460 wxNativeEncodingInfo *result;
6461 PyObject * obj0 = 0 ;
6462 char *kwnames[] = {
6463 (char *) "encoding", NULL
6464 };
6465
6466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6467 {
6468 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6469 if (PyErr_Occurred()) SWIG_fail;
6470 }
6471 {
6472 PyThreadState* __tstate = wxPyBeginAllowThreads();
6473 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6474
6475 wxPyEndAllowThreads(__tstate);
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
6478 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
6479 return resultobj;
6480 fail:
6481 return NULL;
6482 }
6483
6484
6485 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6486 PyObject *resultobj;
6487 wxNativeEncodingInfo *arg1 = 0 ;
6488 bool result;
6489 PyObject * obj0 = 0 ;
6490 char *kwnames[] = {
6491 (char *) "info", NULL
6492 };
6493
6494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6496 if (arg1 == NULL) {
6497 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6498 }
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6507 return resultobj;
6508 fail:
6509 return NULL;
6510 }
6511
6512
6513 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6514 PyObject *resultobj;
6515 wxFontMapper *result;
6516 char *kwnames[] = {
6517 NULL
6518 };
6519
6520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 result = (wxFontMapper *)new wxFontMapper();
6524
6525 wxPyEndAllowThreads(__tstate);
6526 if (PyErr_Occurred()) SWIG_fail;
6527 }
6528 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
6529 return resultobj;
6530 fail:
6531 return NULL;
6532 }
6533
6534
6535 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6536 PyObject *resultobj;
6537 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6538 PyObject * obj0 = 0 ;
6539 char *kwnames[] = {
6540 (char *) "self", NULL
6541 };
6542
6543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 delete arg1;
6548
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 Py_INCREF(Py_None); resultobj = Py_None;
6553 return resultobj;
6554 fail:
6555 return NULL;
6556 }
6557
6558
6559 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6560 PyObject *resultobj;
6561 wxFontMapper *result;
6562 char *kwnames[] = {
6563 NULL
6564 };
6565
6566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6567 {
6568 PyThreadState* __tstate = wxPyBeginAllowThreads();
6569 result = (wxFontMapper *)wxFontMapper::Get();
6570
6571 wxPyEndAllowThreads(__tstate);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6575 return resultobj;
6576 fail:
6577 return NULL;
6578 }
6579
6580
6581 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6582 PyObject *resultobj;
6583 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6584 wxFontMapper *result;
6585 PyObject * obj0 = 0 ;
6586 char *kwnames[] = {
6587 (char *) "mapper", NULL
6588 };
6589
6590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6592 {
6593 PyThreadState* __tstate = wxPyBeginAllowThreads();
6594 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6595
6596 wxPyEndAllowThreads(__tstate);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6600 return resultobj;
6601 fail:
6602 return NULL;
6603 }
6604
6605
6606 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6607 PyObject *resultobj;
6608 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6609 wxString *arg2 = 0 ;
6610 bool arg3 = (bool) True ;
6611 int result;
6612 bool temp2 = False ;
6613 PyObject * obj0 = 0 ;
6614 PyObject * obj1 = 0 ;
6615 PyObject * obj2 = 0 ;
6616 char *kwnames[] = {
6617 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6618 };
6619
6620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6622 {
6623 arg2 = wxString_in_helper(obj1);
6624 if (arg2 == NULL) SWIG_fail;
6625 temp2 = True;
6626 }
6627 if (obj2) {
6628 {
6629 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 }
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6636
6637 wxPyEndAllowThreads(__tstate);
6638 if (PyErr_Occurred()) SWIG_fail;
6639 }
6640 resultobj = SWIG_PyObj_FromInt((int)result);
6641 {
6642 if (temp2)
6643 delete arg2;
6644 }
6645 return resultobj;
6646 fail:
6647 {
6648 if (temp2)
6649 delete arg2;
6650 }
6651 return NULL;
6652 }
6653
6654
6655 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6656 PyObject *resultobj;
6657 size_t result;
6658 char *kwnames[] = {
6659 NULL
6660 };
6661
6662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6666
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
6671 return resultobj;
6672 fail:
6673 return NULL;
6674 }
6675
6676
6677 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6678 PyObject *resultobj;
6679 size_t arg1 ;
6680 int result;
6681 PyObject * obj0 = 0 ;
6682 char *kwnames[] = {
6683 (char *) "n", NULL
6684 };
6685
6686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6687 {
6688 arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 }
6691 {
6692 PyThreadState* __tstate = wxPyBeginAllowThreads();
6693 result = (int)wxFontMapper::GetEncoding(arg1);
6694
6695 wxPyEndAllowThreads(__tstate);
6696 if (PyErr_Occurred()) SWIG_fail;
6697 }
6698 resultobj = SWIG_PyObj_FromInt((int)result);
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6706 PyObject *resultobj;
6707 int arg1 ;
6708 wxString result;
6709 PyObject * obj0 = 0 ;
6710 char *kwnames[] = {
6711 (char *) "encoding", NULL
6712 };
6713
6714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
6715 {
6716 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6717 if (PyErr_Occurred()) SWIG_fail;
6718 }
6719 {
6720 PyThreadState* __tstate = wxPyBeginAllowThreads();
6721 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6722
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727 #if wxUSE_UNICODE
6728 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6729 #else
6730 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6731 #endif
6732 }
6733 return resultobj;
6734 fail:
6735 return NULL;
6736 }
6737
6738
6739 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6740 PyObject *resultobj;
6741 int arg1 ;
6742 wxString result;
6743 PyObject * obj0 = 0 ;
6744 char *kwnames[] = {
6745 (char *) "encoding", NULL
6746 };
6747
6748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
6749 {
6750 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6751 if (PyErr_Occurred()) SWIG_fail;
6752 }
6753 {
6754 PyThreadState* __tstate = wxPyBeginAllowThreads();
6755 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6756
6757 wxPyEndAllowThreads(__tstate);
6758 if (PyErr_Occurred()) SWIG_fail;
6759 }
6760 {
6761 #if wxUSE_UNICODE
6762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6763 #else
6764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6765 #endif
6766 }
6767 return resultobj;
6768 fail:
6769 return NULL;
6770 }
6771
6772
6773 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj;
6775 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6776 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6777 PyObject * obj0 = 0 ;
6778 PyObject * obj1 = 0 ;
6779 char *kwnames[] = {
6780 (char *) "self",(char *) "config", NULL
6781 };
6782
6783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6785 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6786 {
6787 PyThreadState* __tstate = wxPyBeginAllowThreads();
6788 (arg1)->SetConfig(arg2);
6789
6790 wxPyEndAllowThreads(__tstate);
6791 if (PyErr_Occurred()) SWIG_fail;
6792 }
6793 Py_INCREF(Py_None); resultobj = Py_None;
6794 return resultobj;
6795 fail:
6796 return NULL;
6797 }
6798
6799
6800 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6801 PyObject *resultobj;
6802 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6803 wxString *arg2 = 0 ;
6804 bool temp2 = False ;
6805 PyObject * obj0 = 0 ;
6806 PyObject * obj1 = 0 ;
6807 char *kwnames[] = {
6808 (char *) "self",(char *) "prefix", NULL
6809 };
6810
6811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6813 {
6814 arg2 = wxString_in_helper(obj1);
6815 if (arg2 == NULL) SWIG_fail;
6816 temp2 = True;
6817 }
6818 {
6819 PyThreadState* __tstate = wxPyBeginAllowThreads();
6820 (arg1)->SetConfigPath((wxString const &)*arg2);
6821
6822 wxPyEndAllowThreads(__tstate);
6823 if (PyErr_Occurred()) SWIG_fail;
6824 }
6825 Py_INCREF(Py_None); resultobj = Py_None;
6826 {
6827 if (temp2)
6828 delete arg2;
6829 }
6830 return resultobj;
6831 fail:
6832 {
6833 if (temp2)
6834 delete arg2;
6835 }
6836 return NULL;
6837 }
6838
6839
6840 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6841 PyObject *resultobj;
6842 wxString result;
6843 char *kwnames[] = {
6844 NULL
6845 };
6846
6847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6848 {
6849 PyThreadState* __tstate = wxPyBeginAllowThreads();
6850 result = wxFontMapper::GetDefaultConfigPath();
6851
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 {
6856 #if wxUSE_UNICODE
6857 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6858 #else
6859 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6860 #endif
6861 }
6862 return resultobj;
6863 fail:
6864 return NULL;
6865 }
6866
6867
6868 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6869 PyObject *resultobj;
6870 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6871 int arg2 ;
6872 wxString const &arg3_defvalue = wxPyEmptyString ;
6873 wxString *arg3 = (wxString *) &arg3_defvalue ;
6874 bool arg4 = (bool) True ;
6875 PyObject *result;
6876 bool temp3 = False ;
6877 PyObject * obj0 = 0 ;
6878 PyObject * obj1 = 0 ;
6879 PyObject * obj2 = 0 ;
6880 PyObject * obj3 = 0 ;
6881 char *kwnames[] = {
6882 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6883 };
6884
6885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6887 {
6888 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6889 if (PyErr_Occurred()) SWIG_fail;
6890 }
6891 if (obj2) {
6892 {
6893 arg3 = wxString_in_helper(obj2);
6894 if (arg3 == NULL) SWIG_fail;
6895 temp3 = True;
6896 }
6897 }
6898 if (obj3) {
6899 {
6900 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 }
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 resultobj = result;
6912 {
6913 if (temp3)
6914 delete arg3;
6915 }
6916 return resultobj;
6917 fail:
6918 {
6919 if (temp3)
6920 delete arg3;
6921 }
6922 return NULL;
6923 }
6924
6925
6926 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6927 PyObject *resultobj;
6928 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6929 int arg2 ;
6930 wxString const &arg3_defvalue = wxPyEmptyString ;
6931 wxString *arg3 = (wxString *) &arg3_defvalue ;
6932 bool result;
6933 bool temp3 = False ;
6934 PyObject * obj0 = 0 ;
6935 PyObject * obj1 = 0 ;
6936 PyObject * obj2 = 0 ;
6937 char *kwnames[] = {
6938 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6939 };
6940
6941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
6942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6943 {
6944 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6945 if (PyErr_Occurred()) SWIG_fail;
6946 }
6947 if (obj2) {
6948 {
6949 arg3 = wxString_in_helper(obj2);
6950 if (arg3 == NULL) SWIG_fail;
6951 temp3 = True;
6952 }
6953 }
6954 {
6955 PyThreadState* __tstate = wxPyBeginAllowThreads();
6956 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6957
6958 wxPyEndAllowThreads(__tstate);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6962 {
6963 if (temp3)
6964 delete arg3;
6965 }
6966 return resultobj;
6967 fail:
6968 {
6969 if (temp3)
6970 delete arg3;
6971 }
6972 return NULL;
6973 }
6974
6975
6976 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6977 PyObject *resultobj;
6978 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6979 wxWindow *arg2 = (wxWindow *) 0 ;
6980 PyObject * obj0 = 0 ;
6981 PyObject * obj1 = 0 ;
6982 char *kwnames[] = {
6983 (char *) "self",(char *) "parent", NULL
6984 };
6985
6986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6988 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6989 {
6990 PyThreadState* __tstate = wxPyBeginAllowThreads();
6991 (arg1)->SetDialogParent(arg2);
6992
6993 wxPyEndAllowThreads(__tstate);
6994 if (PyErr_Occurred()) SWIG_fail;
6995 }
6996 Py_INCREF(Py_None); resultobj = Py_None;
6997 return resultobj;
6998 fail:
6999 return NULL;
7000 }
7001
7002
7003 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7004 PyObject *resultobj;
7005 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7006 wxString *arg2 = 0 ;
7007 bool temp2 = False ;
7008 PyObject * obj0 = 0 ;
7009 PyObject * obj1 = 0 ;
7010 char *kwnames[] = {
7011 (char *) "self",(char *) "title", NULL
7012 };
7013
7014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7016 {
7017 arg2 = wxString_in_helper(obj1);
7018 if (arg2 == NULL) SWIG_fail;
7019 temp2 = True;
7020 }
7021 {
7022 PyThreadState* __tstate = wxPyBeginAllowThreads();
7023 (arg1)->SetDialogTitle((wxString const &)*arg2);
7024
7025 wxPyEndAllowThreads(__tstate);
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 Py_INCREF(Py_None); resultobj = Py_None;
7029 {
7030 if (temp2)
7031 delete arg2;
7032 }
7033 return resultobj;
7034 fail:
7035 {
7036 if (temp2)
7037 delete arg2;
7038 }
7039 return NULL;
7040 }
7041
7042
7043 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7044 PyObject *obj;
7045 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7046 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7047 Py_INCREF(obj);
7048 return Py_BuildValue((char *)"");
7049 }
7050 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7051 PyObject *resultobj;
7052 int arg1 ;
7053 int arg2 ;
7054 int arg3 ;
7055 int arg4 ;
7056 bool arg5 = (bool) False ;
7057 wxString const &arg6_defvalue = wxPyEmptyString ;
7058 wxString *arg6 = (wxString *) &arg6_defvalue ;
7059 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7060 wxFont *result;
7061 bool temp6 = False ;
7062 PyObject * obj0 = 0 ;
7063 PyObject * obj1 = 0 ;
7064 PyObject * obj2 = 0 ;
7065 PyObject * obj3 = 0 ;
7066 PyObject * obj4 = 0 ;
7067 PyObject * obj5 = 0 ;
7068 PyObject * obj6 = 0 ;
7069 char *kwnames[] = {
7070 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7071 };
7072
7073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7074 {
7075 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7076 if (PyErr_Occurred()) SWIG_fail;
7077 }
7078 {
7079 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7080 if (PyErr_Occurred()) SWIG_fail;
7081 }
7082 {
7083 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7084 if (PyErr_Occurred()) SWIG_fail;
7085 }
7086 {
7087 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7088 if (PyErr_Occurred()) SWIG_fail;
7089 }
7090 if (obj4) {
7091 {
7092 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 }
7096 if (obj5) {
7097 {
7098 arg6 = wxString_in_helper(obj5);
7099 if (arg6 == NULL) SWIG_fail;
7100 temp6 = True;
7101 }
7102 }
7103 if (obj6) {
7104 {
7105 arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6);
7106 if (PyErr_Occurred()) SWIG_fail;
7107 }
7108 }
7109 {
7110 PyThreadState* __tstate = wxPyBeginAllowThreads();
7111 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7112
7113 wxPyEndAllowThreads(__tstate);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7117 {
7118 if (temp6)
7119 delete arg6;
7120 }
7121 return resultobj;
7122 fail:
7123 {
7124 if (temp6)
7125 delete arg6;
7126 }
7127 return NULL;
7128 }
7129
7130
7131 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7132 PyObject *resultobj;
7133 wxFont *arg1 = (wxFont *) 0 ;
7134 PyObject * obj0 = 0 ;
7135 char *kwnames[] = {
7136 (char *) "self", NULL
7137 };
7138
7139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7141 {
7142 PyThreadState* __tstate = wxPyBeginAllowThreads();
7143 delete arg1;
7144
7145 wxPyEndAllowThreads(__tstate);
7146 if (PyErr_Occurred()) SWIG_fail;
7147 }
7148 Py_INCREF(Py_None); resultobj = Py_None;
7149 return resultobj;
7150 fail:
7151 return NULL;
7152 }
7153
7154
7155 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7156 PyObject *resultobj;
7157 wxNativeFontInfo *arg1 = 0 ;
7158 wxFont *result;
7159 PyObject * obj0 = 0 ;
7160 char *kwnames[] = {
7161 (char *) "info", NULL
7162 };
7163
7164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7166 if (arg1 == NULL) {
7167 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7168 }
7169 {
7170 PyThreadState* __tstate = wxPyBeginAllowThreads();
7171 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7172
7173 wxPyEndAllowThreads(__tstate);
7174 if (PyErr_Occurred()) SWIG_fail;
7175 }
7176 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7177 return resultobj;
7178 fail:
7179 return NULL;
7180 }
7181
7182
7183 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7184 PyObject *resultobj;
7185 wxString *arg1 = 0 ;
7186 wxFont *result;
7187 bool temp1 = False ;
7188 PyObject * obj0 = 0 ;
7189 char *kwnames[] = {
7190 (char *) "info", NULL
7191 };
7192
7193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7194 {
7195 arg1 = wxString_in_helper(obj0);
7196 if (arg1 == NULL) SWIG_fail;
7197 temp1 = True;
7198 }
7199 {
7200 PyThreadState* __tstate = wxPyBeginAllowThreads();
7201 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7202
7203 wxPyEndAllowThreads(__tstate);
7204 if (PyErr_Occurred()) SWIG_fail;
7205 }
7206 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7207 {
7208 if (temp1)
7209 delete arg1;
7210 }
7211 return resultobj;
7212 fail:
7213 {
7214 if (temp1)
7215 delete arg1;
7216 }
7217 return NULL;
7218 }
7219
7220
7221 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7222 PyObject *resultobj;
7223 int arg1 ;
7224 int arg2 ;
7225 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7226 wxString const &arg4_defvalue = wxPyEmptyString ;
7227 wxString *arg4 = (wxString *) &arg4_defvalue ;
7228 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7229 wxFont *result;
7230 bool temp4 = False ;
7231 PyObject * obj0 = 0 ;
7232 PyObject * obj1 = 0 ;
7233 PyObject * obj2 = 0 ;
7234 PyObject * obj3 = 0 ;
7235 PyObject * obj4 = 0 ;
7236 char *kwnames[] = {
7237 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7238 };
7239
7240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7241 {
7242 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7243 if (PyErr_Occurred()) SWIG_fail;
7244 }
7245 {
7246 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
7247 if (PyErr_Occurred()) SWIG_fail;
7248 }
7249 if (obj2) {
7250 {
7251 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 }
7255 if (obj3) {
7256 {
7257 arg4 = wxString_in_helper(obj3);
7258 if (arg4 == NULL) SWIG_fail;
7259 temp4 = True;
7260 }
7261 }
7262 if (obj4) {
7263 {
7264 arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4);
7265 if (PyErr_Occurred()) SWIG_fail;
7266 }
7267 }
7268 {
7269 PyThreadState* __tstate = wxPyBeginAllowThreads();
7270 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7271
7272 wxPyEndAllowThreads(__tstate);
7273 if (PyErr_Occurred()) SWIG_fail;
7274 }
7275 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7276 {
7277 if (temp4)
7278 delete arg4;
7279 }
7280 return resultobj;
7281 fail:
7282 {
7283 if (temp4)
7284 delete arg4;
7285 }
7286 return NULL;
7287 }
7288
7289
7290 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7291 PyObject *resultobj;
7292 wxFont *arg1 = (wxFont *) 0 ;
7293 bool result;
7294 PyObject * obj0 = 0 ;
7295 char *kwnames[] = {
7296 (char *) "self", NULL
7297 };
7298
7299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7301 {
7302 PyThreadState* __tstate = wxPyBeginAllowThreads();
7303 result = (bool)((wxFont const *)arg1)->Ok();
7304
7305 wxPyEndAllowThreads(__tstate);
7306 if (PyErr_Occurred()) SWIG_fail;
7307 }
7308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7309 return resultobj;
7310 fail:
7311 return NULL;
7312 }
7313
7314
7315 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7316 PyObject *resultobj;
7317 wxFont *arg1 = (wxFont *) 0 ;
7318 wxFont *arg2 = 0 ;
7319 bool result;
7320 PyObject * obj0 = 0 ;
7321 PyObject * obj1 = 0 ;
7322 char *kwnames[] = {
7323 (char *) "self",(char *) "font", NULL
7324 };
7325
7326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7328 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7329 if (arg2 == NULL) {
7330 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7331 }
7332 {
7333 PyThreadState* __tstate = wxPyBeginAllowThreads();
7334 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7335
7336 wxPyEndAllowThreads(__tstate);
7337 if (PyErr_Occurred()) SWIG_fail;
7338 }
7339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7340 return resultobj;
7341 fail:
7342 return NULL;
7343 }
7344
7345
7346 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7347 PyObject *resultobj;
7348 wxFont *arg1 = (wxFont *) 0 ;
7349 wxFont *arg2 = 0 ;
7350 bool result;
7351 PyObject * obj0 = 0 ;
7352 PyObject * obj1 = 0 ;
7353 char *kwnames[] = {
7354 (char *) "self",(char *) "font", NULL
7355 };
7356
7357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7359 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7360 if (arg2 == NULL) {
7361 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7362 }
7363 {
7364 PyThreadState* __tstate = wxPyBeginAllowThreads();
7365 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7366
7367 wxPyEndAllowThreads(__tstate);
7368 if (PyErr_Occurred()) SWIG_fail;
7369 }
7370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7371 return resultobj;
7372 fail:
7373 return NULL;
7374 }
7375
7376
7377 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7378 PyObject *resultobj;
7379 wxFont *arg1 = (wxFont *) 0 ;
7380 int result;
7381 PyObject * obj0 = 0 ;
7382 char *kwnames[] = {
7383 (char *) "self", NULL
7384 };
7385
7386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7388 {
7389 PyThreadState* __tstate = wxPyBeginAllowThreads();
7390 result = (int)((wxFont const *)arg1)->GetPointSize();
7391
7392 wxPyEndAllowThreads(__tstate);
7393 if (PyErr_Occurred()) SWIG_fail;
7394 }
7395 resultobj = SWIG_PyObj_FromInt((int)result);
7396 return resultobj;
7397 fail:
7398 return NULL;
7399 }
7400
7401
7402 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7403 PyObject *resultobj;
7404 wxFont *arg1 = (wxFont *) 0 ;
7405 int result;
7406 PyObject * obj0 = 0 ;
7407 char *kwnames[] = {
7408 (char *) "self", NULL
7409 };
7410
7411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7413 {
7414 PyThreadState* __tstate = wxPyBeginAllowThreads();
7415 result = (int)((wxFont const *)arg1)->GetFamily();
7416
7417 wxPyEndAllowThreads(__tstate);
7418 if (PyErr_Occurred()) SWIG_fail;
7419 }
7420 resultobj = SWIG_PyObj_FromInt((int)result);
7421 return resultobj;
7422 fail:
7423 return NULL;
7424 }
7425
7426
7427 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7428 PyObject *resultobj;
7429 wxFont *arg1 = (wxFont *) 0 ;
7430 int result;
7431 PyObject * obj0 = 0 ;
7432 char *kwnames[] = {
7433 (char *) "self", NULL
7434 };
7435
7436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7438 {
7439 PyThreadState* __tstate = wxPyBeginAllowThreads();
7440 result = (int)((wxFont const *)arg1)->GetStyle();
7441
7442 wxPyEndAllowThreads(__tstate);
7443 if (PyErr_Occurred()) SWIG_fail;
7444 }
7445 resultobj = SWIG_PyObj_FromInt((int)result);
7446 return resultobj;
7447 fail:
7448 return NULL;
7449 }
7450
7451
7452 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7453 PyObject *resultobj;
7454 wxFont *arg1 = (wxFont *) 0 ;
7455 int result;
7456 PyObject * obj0 = 0 ;
7457 char *kwnames[] = {
7458 (char *) "self", NULL
7459 };
7460
7461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7463 {
7464 PyThreadState* __tstate = wxPyBeginAllowThreads();
7465 result = (int)((wxFont const *)arg1)->GetWeight();
7466
7467 wxPyEndAllowThreads(__tstate);
7468 if (PyErr_Occurred()) SWIG_fail;
7469 }
7470 resultobj = SWIG_PyObj_FromInt((int)result);
7471 return resultobj;
7472 fail:
7473 return NULL;
7474 }
7475
7476
7477 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7478 PyObject *resultobj;
7479 wxFont *arg1 = (wxFont *) 0 ;
7480 bool result;
7481 PyObject * obj0 = 0 ;
7482 char *kwnames[] = {
7483 (char *) "self", NULL
7484 };
7485
7486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7488 {
7489 PyThreadState* __tstate = wxPyBeginAllowThreads();
7490 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7491
7492 wxPyEndAllowThreads(__tstate);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7496 return resultobj;
7497 fail:
7498 return NULL;
7499 }
7500
7501
7502 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7503 PyObject *resultobj;
7504 wxFont *arg1 = (wxFont *) 0 ;
7505 wxString result;
7506 PyObject * obj0 = 0 ;
7507 char *kwnames[] = {
7508 (char *) "self", NULL
7509 };
7510
7511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7513 {
7514 PyThreadState* __tstate = wxPyBeginAllowThreads();
7515 result = ((wxFont const *)arg1)->GetFaceName();
7516
7517 wxPyEndAllowThreads(__tstate);
7518 if (PyErr_Occurred()) SWIG_fail;
7519 }
7520 {
7521 #if wxUSE_UNICODE
7522 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7523 #else
7524 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7525 #endif
7526 }
7527 return resultobj;
7528 fail:
7529 return NULL;
7530 }
7531
7532
7533 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7534 PyObject *resultobj;
7535 wxFont *arg1 = (wxFont *) 0 ;
7536 int result;
7537 PyObject * obj0 = 0 ;
7538 char *kwnames[] = {
7539 (char *) "self", NULL
7540 };
7541
7542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7544 {
7545 PyThreadState* __tstate = wxPyBeginAllowThreads();
7546 result = (int)((wxFont const *)arg1)->GetEncoding();
7547
7548 wxPyEndAllowThreads(__tstate);
7549 if (PyErr_Occurred()) SWIG_fail;
7550 }
7551 resultobj = SWIG_PyObj_FromInt((int)result);
7552 return resultobj;
7553 fail:
7554 return NULL;
7555 }
7556
7557
7558 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7559 PyObject *resultobj;
7560 wxFont *arg1 = (wxFont *) 0 ;
7561 wxNativeFontInfo *result;
7562 PyObject * obj0 = 0 ;
7563 char *kwnames[] = {
7564 (char *) "self", NULL
7565 };
7566
7567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7569 {
7570 PyThreadState* __tstate = wxPyBeginAllowThreads();
7571 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7572
7573 wxPyEndAllowThreads(__tstate);
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
7577 return resultobj;
7578 fail:
7579 return NULL;
7580 }
7581
7582
7583 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7584 PyObject *resultobj;
7585 wxFont *arg1 = (wxFont *) 0 ;
7586 bool result;
7587 PyObject * obj0 = 0 ;
7588 char *kwnames[] = {
7589 (char *) "self", NULL
7590 };
7591
7592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7594 {
7595 PyThreadState* __tstate = wxPyBeginAllowThreads();
7596 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7597
7598 wxPyEndAllowThreads(__tstate);
7599 if (PyErr_Occurred()) SWIG_fail;
7600 }
7601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7602 return resultobj;
7603 fail:
7604 return NULL;
7605 }
7606
7607
7608 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7609 PyObject *resultobj;
7610 wxFont *arg1 = (wxFont *) 0 ;
7611 wxString result;
7612 PyObject * obj0 = 0 ;
7613 char *kwnames[] = {
7614 (char *) "self", NULL
7615 };
7616
7617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
7618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7619 {
7620 PyThreadState* __tstate = wxPyBeginAllowThreads();
7621 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7622
7623 wxPyEndAllowThreads(__tstate);
7624 if (PyErr_Occurred()) SWIG_fail;
7625 }
7626 {
7627 #if wxUSE_UNICODE
7628 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7629 #else
7630 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7631 #endif
7632 }
7633 return resultobj;
7634 fail:
7635 return NULL;
7636 }
7637
7638
7639 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj;
7641 wxFont *arg1 = (wxFont *) 0 ;
7642 wxString result;
7643 PyObject * obj0 = 0 ;
7644 char *kwnames[] = {
7645 (char *) "self", NULL
7646 };
7647
7648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7650 {
7651 PyThreadState* __tstate = wxPyBeginAllowThreads();
7652 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7653
7654 wxPyEndAllowThreads(__tstate);
7655 if (PyErr_Occurred()) SWIG_fail;
7656 }
7657 {
7658 #if wxUSE_UNICODE
7659 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7660 #else
7661 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7662 #endif
7663 }
7664 return resultobj;
7665 fail:
7666 return NULL;
7667 }
7668
7669
7670 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7671 PyObject *resultobj;
7672 wxFont *arg1 = (wxFont *) 0 ;
7673 int arg2 ;
7674 PyObject * obj0 = 0 ;
7675 PyObject * obj1 = 0 ;
7676 char *kwnames[] = {
7677 (char *) "self",(char *) "pointSize", NULL
7678 };
7679
7680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7682 {
7683 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7684 if (PyErr_Occurred()) SWIG_fail;
7685 }
7686 {
7687 PyThreadState* __tstate = wxPyBeginAllowThreads();
7688 (arg1)->SetPointSize(arg2);
7689
7690 wxPyEndAllowThreads(__tstate);
7691 if (PyErr_Occurred()) SWIG_fail;
7692 }
7693 Py_INCREF(Py_None); resultobj = Py_None;
7694 return resultobj;
7695 fail:
7696 return NULL;
7697 }
7698
7699
7700 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7701 PyObject *resultobj;
7702 wxFont *arg1 = (wxFont *) 0 ;
7703 int arg2 ;
7704 PyObject * obj0 = 0 ;
7705 PyObject * obj1 = 0 ;
7706 char *kwnames[] = {
7707 (char *) "self",(char *) "family", NULL
7708 };
7709
7710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7712 {
7713 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 {
7717 PyThreadState* __tstate = wxPyBeginAllowThreads();
7718 (arg1)->SetFamily(arg2);
7719
7720 wxPyEndAllowThreads(__tstate);
7721 if (PyErr_Occurred()) SWIG_fail;
7722 }
7723 Py_INCREF(Py_None); resultobj = Py_None;
7724 return resultobj;
7725 fail:
7726 return NULL;
7727 }
7728
7729
7730 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7731 PyObject *resultobj;
7732 wxFont *arg1 = (wxFont *) 0 ;
7733 int arg2 ;
7734 PyObject * obj0 = 0 ;
7735 PyObject * obj1 = 0 ;
7736 char *kwnames[] = {
7737 (char *) "self",(char *) "style", NULL
7738 };
7739
7740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
7741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7742 {
7743 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7744 if (PyErr_Occurred()) SWIG_fail;
7745 }
7746 {
7747 PyThreadState* __tstate = wxPyBeginAllowThreads();
7748 (arg1)->SetStyle(arg2);
7749
7750 wxPyEndAllowThreads(__tstate);
7751 if (PyErr_Occurred()) SWIG_fail;
7752 }
7753 Py_INCREF(Py_None); resultobj = Py_None;
7754 return resultobj;
7755 fail:
7756 return NULL;
7757 }
7758
7759
7760 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7761 PyObject *resultobj;
7762 wxFont *arg1 = (wxFont *) 0 ;
7763 int arg2 ;
7764 PyObject * obj0 = 0 ;
7765 PyObject * obj1 = 0 ;
7766 char *kwnames[] = {
7767 (char *) "self",(char *) "weight", NULL
7768 };
7769
7770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
7771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7772 {
7773 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7774 if (PyErr_Occurred()) SWIG_fail;
7775 }
7776 {
7777 PyThreadState* __tstate = wxPyBeginAllowThreads();
7778 (arg1)->SetWeight(arg2);
7779
7780 wxPyEndAllowThreads(__tstate);
7781 if (PyErr_Occurred()) SWIG_fail;
7782 }
7783 Py_INCREF(Py_None); resultobj = Py_None;
7784 return resultobj;
7785 fail:
7786 return NULL;
7787 }
7788
7789
7790 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7791 PyObject *resultobj;
7792 wxFont *arg1 = (wxFont *) 0 ;
7793 wxString *arg2 = 0 ;
7794 bool temp2 = False ;
7795 PyObject * obj0 = 0 ;
7796 PyObject * obj1 = 0 ;
7797 char *kwnames[] = {
7798 (char *) "self",(char *) "faceName", NULL
7799 };
7800
7801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7802 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7803 {
7804 arg2 = wxString_in_helper(obj1);
7805 if (arg2 == NULL) SWIG_fail;
7806 temp2 = True;
7807 }
7808 {
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 (arg1)->SetFaceName((wxString const &)*arg2);
7811
7812 wxPyEndAllowThreads(__tstate);
7813 if (PyErr_Occurred()) SWIG_fail;
7814 }
7815 Py_INCREF(Py_None); resultobj = Py_None;
7816 {
7817 if (temp2)
7818 delete arg2;
7819 }
7820 return resultobj;
7821 fail:
7822 {
7823 if (temp2)
7824 delete arg2;
7825 }
7826 return NULL;
7827 }
7828
7829
7830 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7831 PyObject *resultobj;
7832 wxFont *arg1 = (wxFont *) 0 ;
7833 bool arg2 ;
7834 PyObject * obj0 = 0 ;
7835 PyObject * obj1 = 0 ;
7836 char *kwnames[] = {
7837 (char *) "self",(char *) "underlined", NULL
7838 };
7839
7840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7842 {
7843 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
7844 if (PyErr_Occurred()) SWIG_fail;
7845 }
7846 {
7847 PyThreadState* __tstate = wxPyBeginAllowThreads();
7848 (arg1)->SetUnderlined(arg2);
7849
7850 wxPyEndAllowThreads(__tstate);
7851 if (PyErr_Occurred()) SWIG_fail;
7852 }
7853 Py_INCREF(Py_None); resultobj = Py_None;
7854 return resultobj;
7855 fail:
7856 return NULL;
7857 }
7858
7859
7860 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7861 PyObject *resultobj;
7862 wxFont *arg1 = (wxFont *) 0 ;
7863 int arg2 ;
7864 PyObject * obj0 = 0 ;
7865 PyObject * obj1 = 0 ;
7866 char *kwnames[] = {
7867 (char *) "self",(char *) "encoding", NULL
7868 };
7869
7870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7872 {
7873 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7874 if (PyErr_Occurred()) SWIG_fail;
7875 }
7876 {
7877 PyThreadState* __tstate = wxPyBeginAllowThreads();
7878 (arg1)->SetEncoding((wxFontEncoding )arg2);
7879
7880 wxPyEndAllowThreads(__tstate);
7881 if (PyErr_Occurred()) SWIG_fail;
7882 }
7883 Py_INCREF(Py_None); resultobj = Py_None;
7884 return resultobj;
7885 fail:
7886 return NULL;
7887 }
7888
7889
7890 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7891 PyObject *resultobj;
7892 wxFont *arg1 = (wxFont *) 0 ;
7893 wxNativeFontInfo *arg2 = 0 ;
7894 PyObject * obj0 = 0 ;
7895 PyObject * obj1 = 0 ;
7896 char *kwnames[] = {
7897 (char *) "self",(char *) "info", NULL
7898 };
7899
7900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7902 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7903 if (arg2 == NULL) {
7904 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7905 }
7906 {
7907 PyThreadState* __tstate = wxPyBeginAllowThreads();
7908 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7909
7910 wxPyEndAllowThreads(__tstate);
7911 if (PyErr_Occurred()) SWIG_fail;
7912 }
7913 Py_INCREF(Py_None); resultobj = Py_None;
7914 return resultobj;
7915 fail:
7916 return NULL;
7917 }
7918
7919
7920 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7921 PyObject *resultobj;
7922 wxFont *arg1 = (wxFont *) 0 ;
7923 wxString *arg2 = 0 ;
7924 bool temp2 = False ;
7925 PyObject * obj0 = 0 ;
7926 PyObject * obj1 = 0 ;
7927 char *kwnames[] = {
7928 (char *) "self",(char *) "info", NULL
7929 };
7930
7931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7933 {
7934 arg2 = wxString_in_helper(obj1);
7935 if (arg2 == NULL) SWIG_fail;
7936 temp2 = True;
7937 }
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7941
7942 wxPyEndAllowThreads(__tstate);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 Py_INCREF(Py_None); resultobj = Py_None;
7946 {
7947 if (temp2)
7948 delete arg2;
7949 }
7950 return resultobj;
7951 fail:
7952 {
7953 if (temp2)
7954 delete arg2;
7955 }
7956 return NULL;
7957 }
7958
7959
7960 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7961 PyObject *resultobj;
7962 wxFont *arg1 = (wxFont *) 0 ;
7963 wxString *arg2 = 0 ;
7964 bool temp2 = False ;
7965 PyObject * obj0 = 0 ;
7966 PyObject * obj1 = 0 ;
7967 char *kwnames[] = {
7968 (char *) "self",(char *) "info", NULL
7969 };
7970
7971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7972 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7973 {
7974 arg2 = wxString_in_helper(obj1);
7975 if (arg2 == NULL) SWIG_fail;
7976 temp2 = True;
7977 }
7978 {
7979 PyThreadState* __tstate = wxPyBeginAllowThreads();
7980 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7981
7982 wxPyEndAllowThreads(__tstate);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 Py_INCREF(Py_None); resultobj = Py_None;
7986 {
7987 if (temp2)
7988 delete arg2;
7989 }
7990 return resultobj;
7991 fail:
7992 {
7993 if (temp2)
7994 delete arg2;
7995 }
7996 return NULL;
7997 }
7998
7999
8000 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8001 PyObject *resultobj;
8002 wxFont *arg1 = (wxFont *) 0 ;
8003 wxString result;
8004 PyObject * obj0 = 0 ;
8005 char *kwnames[] = {
8006 (char *) "self", NULL
8007 };
8008
8009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8011 {
8012 PyThreadState* __tstate = wxPyBeginAllowThreads();
8013 result = ((wxFont const *)arg1)->GetFamilyString();
8014
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 {
8019 #if wxUSE_UNICODE
8020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8021 #else
8022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8023 #endif
8024 }
8025 return resultobj;
8026 fail:
8027 return NULL;
8028 }
8029
8030
8031 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8032 PyObject *resultobj;
8033 wxFont *arg1 = (wxFont *) 0 ;
8034 wxString result;
8035 PyObject * obj0 = 0 ;
8036 char *kwnames[] = {
8037 (char *) "self", NULL
8038 };
8039
8040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8042 {
8043 PyThreadState* __tstate = wxPyBeginAllowThreads();
8044 result = ((wxFont const *)arg1)->GetStyleString();
8045
8046 wxPyEndAllowThreads(__tstate);
8047 if (PyErr_Occurred()) SWIG_fail;
8048 }
8049 {
8050 #if wxUSE_UNICODE
8051 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8052 #else
8053 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8054 #endif
8055 }
8056 return resultobj;
8057 fail:
8058 return NULL;
8059 }
8060
8061
8062 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8063 PyObject *resultobj;
8064 wxFont *arg1 = (wxFont *) 0 ;
8065 wxString result;
8066 PyObject * obj0 = 0 ;
8067 char *kwnames[] = {
8068 (char *) "self", NULL
8069 };
8070
8071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8073 {
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
8075 result = ((wxFont const *)arg1)->GetWeightString();
8076
8077 wxPyEndAllowThreads(__tstate);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 {
8081 #if wxUSE_UNICODE
8082 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8083 #else
8084 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8085 #endif
8086 }
8087 return resultobj;
8088 fail:
8089 return NULL;
8090 }
8091
8092
8093 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8094 PyObject *resultobj;
8095 wxFont *arg1 = (wxFont *) 0 ;
8096 bool arg2 = (bool) True ;
8097 PyObject * obj0 = 0 ;
8098 PyObject * obj1 = 0 ;
8099 char *kwnames[] = {
8100 (char *) "self",(char *) "no", NULL
8101 };
8102
8103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8105 if (obj1) {
8106 {
8107 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 }
8110 }
8111 {
8112 PyThreadState* __tstate = wxPyBeginAllowThreads();
8113 (arg1)->SetNoAntiAliasing(arg2);
8114
8115 wxPyEndAllowThreads(__tstate);
8116 if (PyErr_Occurred()) SWIG_fail;
8117 }
8118 Py_INCREF(Py_None); resultobj = Py_None;
8119 return resultobj;
8120 fail:
8121 return NULL;
8122 }
8123
8124
8125 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8126 PyObject *resultobj;
8127 wxFont *arg1 = (wxFont *) 0 ;
8128 bool result;
8129 PyObject * obj0 = 0 ;
8130 char *kwnames[] = {
8131 (char *) "self", NULL
8132 };
8133
8134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8136 {
8137 PyThreadState* __tstate = wxPyBeginAllowThreads();
8138 result = (bool)(arg1)->GetNoAntiAliasing();
8139
8140 wxPyEndAllowThreads(__tstate);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8144 return resultobj;
8145 fail:
8146 return NULL;
8147 }
8148
8149
8150 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj;
8152 int result;
8153 char *kwnames[] = {
8154 NULL
8155 };
8156
8157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8158 {
8159 PyThreadState* __tstate = wxPyBeginAllowThreads();
8160 result = (int)wxFont::GetDefaultEncoding();
8161
8162 wxPyEndAllowThreads(__tstate);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 }
8165 resultobj = SWIG_PyObj_FromInt((int)result);
8166 return resultobj;
8167 fail:
8168 return NULL;
8169 }
8170
8171
8172 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj;
8174 int arg1 ;
8175 PyObject * obj0 = 0 ;
8176 char *kwnames[] = {
8177 (char *) "encoding", NULL
8178 };
8179
8180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8181 {
8182 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
8183 if (PyErr_Occurred()) SWIG_fail;
8184 }
8185 {
8186 PyThreadState* __tstate = wxPyBeginAllowThreads();
8187 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8188
8189 wxPyEndAllowThreads(__tstate);
8190 if (PyErr_Occurred()) SWIG_fail;
8191 }
8192 Py_INCREF(Py_None); resultobj = Py_None;
8193 return resultobj;
8194 fail:
8195 return NULL;
8196 }
8197
8198
8199 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8200 PyObject *obj;
8201 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8202 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8203 Py_INCREF(obj);
8204 return Py_BuildValue((char *)"");
8205 }
8206 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8207 PyObject *resultobj;
8208 wxPyFontEnumerator *result;
8209 char *kwnames[] = {
8210 NULL
8211 };
8212
8213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8214 {
8215 PyThreadState* __tstate = wxPyBeginAllowThreads();
8216 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8217
8218 wxPyEndAllowThreads(__tstate);
8219 if (PyErr_Occurred()) SWIG_fail;
8220 }
8221 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8222 return resultobj;
8223 fail:
8224 return NULL;
8225 }
8226
8227
8228 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8229 PyObject *resultobj;
8230 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8231 PyObject * obj0 = 0 ;
8232 char *kwnames[] = {
8233 (char *) "self", NULL
8234 };
8235
8236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8238 {
8239 PyThreadState* __tstate = wxPyBeginAllowThreads();
8240 delete arg1;
8241
8242 wxPyEndAllowThreads(__tstate);
8243 if (PyErr_Occurred()) SWIG_fail;
8244 }
8245 Py_INCREF(Py_None); resultobj = Py_None;
8246 return resultobj;
8247 fail:
8248 return NULL;
8249 }
8250
8251
8252 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8253 PyObject *resultobj;
8254 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8255 PyObject *arg2 = (PyObject *) 0 ;
8256 PyObject *arg3 = (PyObject *) 0 ;
8257 bool arg4 ;
8258 PyObject * obj0 = 0 ;
8259 PyObject * obj1 = 0 ;
8260 PyObject * obj2 = 0 ;
8261 PyObject * obj3 = 0 ;
8262 char *kwnames[] = {
8263 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8264 };
8265
8266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8268 arg2 = obj1;
8269 arg3 = obj2;
8270 {
8271 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8272 if (PyErr_Occurred()) SWIG_fail;
8273 }
8274 {
8275 PyThreadState* __tstate = wxPyBeginAllowThreads();
8276 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8277
8278 wxPyEndAllowThreads(__tstate);
8279 if (PyErr_Occurred()) SWIG_fail;
8280 }
8281 Py_INCREF(Py_None); resultobj = Py_None;
8282 return resultobj;
8283 fail:
8284 return NULL;
8285 }
8286
8287
8288 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8289 PyObject *resultobj;
8290 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8291 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8292 bool arg3 = (bool) False ;
8293 bool result;
8294 PyObject * obj0 = 0 ;
8295 PyObject * obj1 = 0 ;
8296 PyObject * obj2 = 0 ;
8297 char *kwnames[] = {
8298 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8299 };
8300
8301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8303 if (obj1) {
8304 {
8305 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8306 if (PyErr_Occurred()) SWIG_fail;
8307 }
8308 }
8309 if (obj2) {
8310 {
8311 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8312 if (PyErr_Occurred()) SWIG_fail;
8313 }
8314 }
8315 {
8316 PyThreadState* __tstate = wxPyBeginAllowThreads();
8317 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8318
8319 wxPyEndAllowThreads(__tstate);
8320 if (PyErr_Occurred()) SWIG_fail;
8321 }
8322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8323 return resultobj;
8324 fail:
8325 return NULL;
8326 }
8327
8328
8329 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8330 PyObject *resultobj;
8331 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8332 wxString const &arg2_defvalue = wxPyEmptyString ;
8333 wxString *arg2 = (wxString *) &arg2_defvalue ;
8334 bool result;
8335 bool temp2 = False ;
8336 PyObject * obj0 = 0 ;
8337 PyObject * obj1 = 0 ;
8338 char *kwnames[] = {
8339 (char *) "self",(char *) "facename", NULL
8340 };
8341
8342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8344 if (obj1) {
8345 {
8346 arg2 = wxString_in_helper(obj1);
8347 if (arg2 == NULL) SWIG_fail;
8348 temp2 = True;
8349 }
8350 }
8351 {
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8354
8355 wxPyEndAllowThreads(__tstate);
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8359 {
8360 if (temp2)
8361 delete arg2;
8362 }
8363 return resultobj;
8364 fail:
8365 {
8366 if (temp2)
8367 delete arg2;
8368 }
8369 return NULL;
8370 }
8371
8372
8373 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8374 PyObject *resultobj;
8375 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8376 PyObject *result;
8377 PyObject * obj0 = 0 ;
8378 char *kwnames[] = {
8379 (char *) "self", NULL
8380 };
8381
8382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8384 {
8385 PyThreadState* __tstate = wxPyBeginAllowThreads();
8386 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8387
8388 wxPyEndAllowThreads(__tstate);
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 resultobj = result;
8392 return resultobj;
8393 fail:
8394 return NULL;
8395 }
8396
8397
8398 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8399 PyObject *resultobj;
8400 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8401 PyObject *result;
8402 PyObject * obj0 = 0 ;
8403 char *kwnames[] = {
8404 (char *) "self", NULL
8405 };
8406
8407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8409 {
8410 PyThreadState* __tstate = wxPyBeginAllowThreads();
8411 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8412
8413 wxPyEndAllowThreads(__tstate);
8414 if (PyErr_Occurred()) SWIG_fail;
8415 }
8416 resultobj = result;
8417 return resultobj;
8418 fail:
8419 return NULL;
8420 }
8421
8422
8423 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8424 PyObject *obj;
8425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8426 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8427 Py_INCREF(obj);
8428 return Py_BuildValue((char *)"");
8429 }
8430 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8431 PyObject *resultobj;
8432 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8433 int arg2 ;
8434 PyObject * obj0 = 0 ;
8435 PyObject * obj1 = 0 ;
8436 char *kwnames[] = {
8437 (char *) "self",(char *) "Language", NULL
8438 };
8439
8440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8441 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8442 {
8443 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8444 if (PyErr_Occurred()) SWIG_fail;
8445 }
8446 if (arg1) (arg1)->Language = arg2;
8447
8448 Py_INCREF(Py_None); resultobj = Py_None;
8449 return resultobj;
8450 fail:
8451 return NULL;
8452 }
8453
8454
8455 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8456 PyObject *resultobj;
8457 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8458 int result;
8459 PyObject * obj0 = 0 ;
8460 char *kwnames[] = {
8461 (char *) "self", NULL
8462 };
8463
8464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8466 result = (int) ((arg1)->Language);
8467
8468 resultobj = SWIG_PyObj_FromInt((int)result);
8469 return resultobj;
8470 fail:
8471 return NULL;
8472 }
8473
8474
8475 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8476 PyObject *resultobj;
8477 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8478 wxString *arg2 = (wxString *) 0 ;
8479 bool temp2 = False ;
8480 PyObject * obj0 = 0 ;
8481 PyObject * obj1 = 0 ;
8482 char *kwnames[] = {
8483 (char *) "self",(char *) "CanonicalName", NULL
8484 };
8485
8486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8488 {
8489 arg2 = wxString_in_helper(obj1);
8490 if (arg2 == NULL) SWIG_fail;
8491 temp2 = True;
8492 }
8493 if (arg1) (arg1)->CanonicalName = *arg2;
8494
8495 Py_INCREF(Py_None); resultobj = Py_None;
8496 {
8497 if (temp2)
8498 delete arg2;
8499 }
8500 return resultobj;
8501 fail:
8502 {
8503 if (temp2)
8504 delete arg2;
8505 }
8506 return NULL;
8507 }
8508
8509
8510 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8511 PyObject *resultobj;
8512 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8513 wxString *result;
8514 PyObject * obj0 = 0 ;
8515 char *kwnames[] = {
8516 (char *) "self", NULL
8517 };
8518
8519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8521 result = (wxString *)& ((arg1)->CanonicalName);
8522
8523 {
8524 #if wxUSE_UNICODE
8525 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8526 #else
8527 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8528 #endif
8529 }
8530 return resultobj;
8531 fail:
8532 return NULL;
8533 }
8534
8535
8536 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8537 PyObject *resultobj;
8538 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8539 wxString *arg2 = (wxString *) 0 ;
8540 bool temp2 = False ;
8541 PyObject * obj0 = 0 ;
8542 PyObject * obj1 = 0 ;
8543 char *kwnames[] = {
8544 (char *) "self",(char *) "Description", NULL
8545 };
8546
8547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8548 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8549 {
8550 arg2 = wxString_in_helper(obj1);
8551 if (arg2 == NULL) SWIG_fail;
8552 temp2 = True;
8553 }
8554 if (arg1) (arg1)->Description = *arg2;
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_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8572 PyObject *resultobj;
8573 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8574 wxString *result;
8575 PyObject * obj0 = 0 ;
8576 char *kwnames[] = {
8577 (char *) "self", NULL
8578 };
8579
8580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8582 result = (wxString *)& ((arg1)->Description);
8583
8584 {
8585 #if wxUSE_UNICODE
8586 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8587 #else
8588 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8589 #endif
8590 }
8591 return resultobj;
8592 fail:
8593 return NULL;
8594 }
8595
8596
8597 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8598 PyObject *obj;
8599 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8600 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8601 Py_INCREF(obj);
8602 return Py_BuildValue((char *)"");
8603 }
8604 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8605 PyObject *resultobj;
8606 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8607 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8608 wxLocale *result;
8609 PyObject * obj0 = 0 ;
8610 PyObject * obj1 = 0 ;
8611 char *kwnames[] = {
8612 (char *) "language",(char *) "flags", NULL
8613 };
8614
8615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
8616 if (obj0) {
8617 {
8618 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8619 if (PyErr_Occurred()) SWIG_fail;
8620 }
8621 }
8622 if (obj1) {
8623 {
8624 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 }
8627 }
8628 {
8629 PyThreadState* __tstate = wxPyBeginAllowThreads();
8630 result = (wxLocale *)new wxLocale(arg1,arg2);
8631
8632 wxPyEndAllowThreads(__tstate);
8633 if (PyErr_Occurred()) SWIG_fail;
8634 }
8635 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
8636 return resultobj;
8637 fail:
8638 return NULL;
8639 }
8640
8641
8642 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8643 PyObject *resultobj;
8644 wxLocale *arg1 = (wxLocale *) 0 ;
8645 PyObject * obj0 = 0 ;
8646 char *kwnames[] = {
8647 (char *) "self", NULL
8648 };
8649
8650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
8651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8652 {
8653 PyThreadState* __tstate = wxPyBeginAllowThreads();
8654 delete arg1;
8655
8656 wxPyEndAllowThreads(__tstate);
8657 if (PyErr_Occurred()) SWIG_fail;
8658 }
8659 Py_INCREF(Py_None); resultobj = Py_None;
8660 return resultobj;
8661 fail:
8662 return NULL;
8663 }
8664
8665
8666 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
8667 PyObject *resultobj;
8668 wxLocale *arg1 = (wxLocale *) 0 ;
8669 wxString *arg2 = 0 ;
8670 wxString const &arg3_defvalue = wxPyEmptyString ;
8671 wxString *arg3 = (wxString *) &arg3_defvalue ;
8672 wxString const &arg4_defvalue = wxPyEmptyString ;
8673 wxString *arg4 = (wxString *) &arg4_defvalue ;
8674 bool arg5 = (bool) True ;
8675 bool arg6 = (bool) False ;
8676 bool result;
8677 bool temp2 = False ;
8678 bool temp3 = False ;
8679 bool temp4 = False ;
8680 PyObject * obj0 = 0 ;
8681 PyObject * obj1 = 0 ;
8682 PyObject * obj2 = 0 ;
8683 PyObject * obj3 = 0 ;
8684 PyObject * obj4 = 0 ;
8685 PyObject * obj5 = 0 ;
8686 char *kwnames[] = {
8687 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
8688 };
8689
8690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8692 {
8693 arg2 = wxString_in_helper(obj1);
8694 if (arg2 == NULL) SWIG_fail;
8695 temp2 = True;
8696 }
8697 if (obj2) {
8698 {
8699 arg3 = wxString_in_helper(obj2);
8700 if (arg3 == NULL) SWIG_fail;
8701 temp3 = True;
8702 }
8703 }
8704 if (obj3) {
8705 {
8706 arg4 = wxString_in_helper(obj3);
8707 if (arg4 == NULL) SWIG_fail;
8708 temp4 = True;
8709 }
8710 }
8711 if (obj4) {
8712 {
8713 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
8714 if (PyErr_Occurred()) SWIG_fail;
8715 }
8716 }
8717 if (obj5) {
8718 {
8719 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
8720 if (PyErr_Occurred()) SWIG_fail;
8721 }
8722 }
8723 {
8724 PyThreadState* __tstate = wxPyBeginAllowThreads();
8725 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
8726
8727 wxPyEndAllowThreads(__tstate);
8728 if (PyErr_Occurred()) SWIG_fail;
8729 }
8730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8731 {
8732 if (temp2)
8733 delete arg2;
8734 }
8735 {
8736 if (temp3)
8737 delete arg3;
8738 }
8739 {
8740 if (temp4)
8741 delete arg4;
8742 }
8743 return resultobj;
8744 fail:
8745 {
8746 if (temp2)
8747 delete arg2;
8748 }
8749 {
8750 if (temp3)
8751 delete arg3;
8752 }
8753 {
8754 if (temp4)
8755 delete arg4;
8756 }
8757 return NULL;
8758 }
8759
8760
8761 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8762 PyObject *resultobj;
8763 wxLocale *arg1 = (wxLocale *) 0 ;
8764 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8765 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8766 bool result;
8767 PyObject * obj0 = 0 ;
8768 PyObject * obj1 = 0 ;
8769 PyObject * obj2 = 0 ;
8770 char *kwnames[] = {
8771 (char *) "self",(char *) "language",(char *) "flags", NULL
8772 };
8773
8774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
8775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8776 if (obj1) {
8777 {
8778 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8779 if (PyErr_Occurred()) SWIG_fail;
8780 }
8781 }
8782 if (obj2) {
8783 {
8784 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 }
8788 {
8789 PyThreadState* __tstate = wxPyBeginAllowThreads();
8790 result = (bool)(arg1)->Init(arg2,arg3);
8791
8792 wxPyEndAllowThreads(__tstate);
8793 if (PyErr_Occurred()) SWIG_fail;
8794 }
8795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8796 return resultobj;
8797 fail:
8798 return NULL;
8799 }
8800
8801
8802 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8803 PyObject *resultobj;
8804 int result;
8805 char *kwnames[] = {
8806 NULL
8807 };
8808
8809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8810 {
8811 PyThreadState* __tstate = wxPyBeginAllowThreads();
8812 result = (int)wxLocale::GetSystemLanguage();
8813
8814 wxPyEndAllowThreads(__tstate);
8815 if (PyErr_Occurred()) SWIG_fail;
8816 }
8817 resultobj = SWIG_PyObj_FromInt((int)result);
8818 return resultobj;
8819 fail:
8820 return NULL;
8821 }
8822
8823
8824 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8825 PyObject *resultobj;
8826 int result;
8827 char *kwnames[] = {
8828 NULL
8829 };
8830
8831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8832 {
8833 PyThreadState* __tstate = wxPyBeginAllowThreads();
8834 result = (int)wxLocale::GetSystemEncoding();
8835
8836 wxPyEndAllowThreads(__tstate);
8837 if (PyErr_Occurred()) SWIG_fail;
8838 }
8839 resultobj = SWIG_PyObj_FromInt((int)result);
8840 return resultobj;
8841 fail:
8842 return NULL;
8843 }
8844
8845
8846 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8847 PyObject *resultobj;
8848 wxString result;
8849 char *kwnames[] = {
8850 NULL
8851 };
8852
8853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8854 {
8855 PyThreadState* __tstate = wxPyBeginAllowThreads();
8856 result = wxLocale::GetSystemEncodingName();
8857
8858 wxPyEndAllowThreads(__tstate);
8859 if (PyErr_Occurred()) SWIG_fail;
8860 }
8861 {
8862 #if wxUSE_UNICODE
8863 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8864 #else
8865 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8866 #endif
8867 }
8868 return resultobj;
8869 fail:
8870 return NULL;
8871 }
8872
8873
8874 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8875 PyObject *resultobj;
8876 wxLocale *arg1 = (wxLocale *) 0 ;
8877 bool result;
8878 PyObject * obj0 = 0 ;
8879 char *kwnames[] = {
8880 (char *) "self", NULL
8881 };
8882
8883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8885 {
8886 PyThreadState* __tstate = wxPyBeginAllowThreads();
8887 result = (bool)((wxLocale const *)arg1)->IsOk();
8888
8889 wxPyEndAllowThreads(__tstate);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
8892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8893 return resultobj;
8894 fail:
8895 return NULL;
8896 }
8897
8898
8899 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8900 PyObject *resultobj;
8901 wxLocale *arg1 = (wxLocale *) 0 ;
8902 wxString result;
8903 PyObject * obj0 = 0 ;
8904 char *kwnames[] = {
8905 (char *) "self", NULL
8906 };
8907
8908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8910 {
8911 PyThreadState* __tstate = wxPyBeginAllowThreads();
8912 result = ((wxLocale const *)arg1)->GetLocale();
8913
8914 wxPyEndAllowThreads(__tstate);
8915 if (PyErr_Occurred()) SWIG_fail;
8916 }
8917 {
8918 #if wxUSE_UNICODE
8919 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8920 #else
8921 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8922 #endif
8923 }
8924 return resultobj;
8925 fail:
8926 return NULL;
8927 }
8928
8929
8930 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8931 PyObject *resultobj;
8932 wxLocale *arg1 = (wxLocale *) 0 ;
8933 int result;
8934 PyObject * obj0 = 0 ;
8935 char *kwnames[] = {
8936 (char *) "self", NULL
8937 };
8938
8939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8941 {
8942 PyThreadState* __tstate = wxPyBeginAllowThreads();
8943 result = (int)((wxLocale const *)arg1)->GetLanguage();
8944
8945 wxPyEndAllowThreads(__tstate);
8946 if (PyErr_Occurred()) SWIG_fail;
8947 }
8948 resultobj = SWIG_PyObj_FromInt((int)result);
8949 return resultobj;
8950 fail:
8951 return NULL;
8952 }
8953
8954
8955 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8956 PyObject *resultobj;
8957 wxLocale *arg1 = (wxLocale *) 0 ;
8958 wxString result;
8959 PyObject * obj0 = 0 ;
8960 char *kwnames[] = {
8961 (char *) "self", NULL
8962 };
8963
8964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8966 {
8967 PyThreadState* __tstate = wxPyBeginAllowThreads();
8968 result = ((wxLocale const *)arg1)->GetSysName();
8969
8970 wxPyEndAllowThreads(__tstate);
8971 if (PyErr_Occurred()) SWIG_fail;
8972 }
8973 {
8974 #if wxUSE_UNICODE
8975 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8976 #else
8977 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8978 #endif
8979 }
8980 return resultobj;
8981 fail:
8982 return NULL;
8983 }
8984
8985
8986 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8987 PyObject *resultobj;
8988 wxLocale *arg1 = (wxLocale *) 0 ;
8989 wxString result;
8990 PyObject * obj0 = 0 ;
8991 char *kwnames[] = {
8992 (char *) "self", NULL
8993 };
8994
8995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8997 {
8998 PyThreadState* __tstate = wxPyBeginAllowThreads();
8999 result = ((wxLocale const *)arg1)->GetCanonicalName();
9000
9001 wxPyEndAllowThreads(__tstate);
9002 if (PyErr_Occurred()) SWIG_fail;
9003 }
9004 {
9005 #if wxUSE_UNICODE
9006 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9007 #else
9008 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9009 #endif
9010 }
9011 return resultobj;
9012 fail:
9013 return NULL;
9014 }
9015
9016
9017 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9018 PyObject *resultobj;
9019 wxString *arg1 = 0 ;
9020 bool temp1 = False ;
9021 PyObject * obj0 = 0 ;
9022 char *kwnames[] = {
9023 (char *) "prefix", NULL
9024 };
9025
9026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9027 {
9028 arg1 = wxString_in_helper(obj0);
9029 if (arg1 == NULL) SWIG_fail;
9030 temp1 = True;
9031 }
9032 {
9033 PyThreadState* __tstate = wxPyBeginAllowThreads();
9034 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9035
9036 wxPyEndAllowThreads(__tstate);
9037 if (PyErr_Occurred()) SWIG_fail;
9038 }
9039 Py_INCREF(Py_None); resultobj = Py_None;
9040 {
9041 if (temp1)
9042 delete arg1;
9043 }
9044 return resultobj;
9045 fail:
9046 {
9047 if (temp1)
9048 delete arg1;
9049 }
9050 return NULL;
9051 }
9052
9053
9054 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9055 PyObject *resultobj;
9056 wxLocale *arg1 = (wxLocale *) 0 ;
9057 wxString *arg2 = 0 ;
9058 bool result;
9059 bool temp2 = False ;
9060 PyObject * obj0 = 0 ;
9061 PyObject * obj1 = 0 ;
9062 char *kwnames[] = {
9063 (char *) "self",(char *) "szDomain", NULL
9064 };
9065
9066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9068 {
9069 arg2 = wxString_in_helper(obj1);
9070 if (arg2 == NULL) SWIG_fail;
9071 temp2 = True;
9072 }
9073 {
9074 PyThreadState* __tstate = wxPyBeginAllowThreads();
9075 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9076
9077 wxPyEndAllowThreads(__tstate);
9078 if (PyErr_Occurred()) SWIG_fail;
9079 }
9080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9081 {
9082 if (temp2)
9083 delete arg2;
9084 }
9085 return resultobj;
9086 fail:
9087 {
9088 if (temp2)
9089 delete arg2;
9090 }
9091 return NULL;
9092 }
9093
9094
9095 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9096 PyObject *resultobj;
9097 wxLocale *arg1 = (wxLocale *) 0 ;
9098 wxString *arg2 = 0 ;
9099 bool result;
9100 bool temp2 = False ;
9101 PyObject * obj0 = 0 ;
9102 PyObject * obj1 = 0 ;
9103 char *kwnames[] = {
9104 (char *) "self",(char *) "szDomain", NULL
9105 };
9106
9107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9109 {
9110 arg2 = wxString_in_helper(obj1);
9111 if (arg2 == NULL) SWIG_fail;
9112 temp2 = True;
9113 }
9114 {
9115 PyThreadState* __tstate = wxPyBeginAllowThreads();
9116 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9117
9118 wxPyEndAllowThreads(__tstate);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 }
9121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9122 {
9123 if (temp2)
9124 delete arg2;
9125 }
9126 return resultobj;
9127 fail:
9128 {
9129 if (temp2)
9130 delete arg2;
9131 }
9132 return NULL;
9133 }
9134
9135
9136 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9137 PyObject *resultobj;
9138 int arg1 ;
9139 wxLanguageInfo *result;
9140 PyObject * obj0 = 0 ;
9141 char *kwnames[] = {
9142 (char *) "lang", NULL
9143 };
9144
9145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9146 {
9147 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 {
9151 PyThreadState* __tstate = wxPyBeginAllowThreads();
9152 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9153
9154 wxPyEndAllowThreads(__tstate);
9155 if (PyErr_Occurred()) SWIG_fail;
9156 }
9157 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9158 return resultobj;
9159 fail:
9160 return NULL;
9161 }
9162
9163
9164 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9165 PyObject *resultobj;
9166 int arg1 ;
9167 wxString result;
9168 PyObject * obj0 = 0 ;
9169 char *kwnames[] = {
9170 (char *) "lang", NULL
9171 };
9172
9173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9174 {
9175 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9176 if (PyErr_Occurred()) SWIG_fail;
9177 }
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 result = wxLocale::GetLanguageName(arg1);
9181
9182 wxPyEndAllowThreads(__tstate);
9183 if (PyErr_Occurred()) SWIG_fail;
9184 }
9185 {
9186 #if wxUSE_UNICODE
9187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9188 #else
9189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9190 #endif
9191 }
9192 return resultobj;
9193 fail:
9194 return NULL;
9195 }
9196
9197
9198 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9199 PyObject *resultobj;
9200 wxString *arg1 = 0 ;
9201 wxLanguageInfo *result;
9202 bool temp1 = False ;
9203 PyObject * obj0 = 0 ;
9204 char *kwnames[] = {
9205 (char *) "locale", NULL
9206 };
9207
9208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9209 {
9210 arg1 = wxString_in_helper(obj0);
9211 if (arg1 == NULL) SWIG_fail;
9212 temp1 = True;
9213 }
9214 {
9215 PyThreadState* __tstate = wxPyBeginAllowThreads();
9216 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9217
9218 wxPyEndAllowThreads(__tstate);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9222 {
9223 if (temp1)
9224 delete arg1;
9225 }
9226 return resultobj;
9227 fail:
9228 {
9229 if (temp1)
9230 delete arg1;
9231 }
9232 return NULL;
9233 }
9234
9235
9236 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9237 PyObject *resultobj;
9238 wxLanguageInfo *arg1 = 0 ;
9239 PyObject * obj0 = 0 ;
9240 char *kwnames[] = {
9241 (char *) "info", NULL
9242 };
9243
9244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9246 if (arg1 == NULL) {
9247 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9248 }
9249 {
9250 PyThreadState* __tstate = wxPyBeginAllowThreads();
9251 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9252
9253 wxPyEndAllowThreads(__tstate);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 }
9256 Py_INCREF(Py_None); resultobj = Py_None;
9257 return resultobj;
9258 fail:
9259 return NULL;
9260 }
9261
9262
9263 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9264 PyObject *resultobj;
9265 wxLocale *arg1 = (wxLocale *) 0 ;
9266 wxString *arg2 = 0 ;
9267 wxString const &arg3_defvalue = wxPyEmptyString ;
9268 wxString *arg3 = (wxString *) &arg3_defvalue ;
9269 wxString result;
9270 bool temp2 = False ;
9271 bool temp3 = False ;
9272 PyObject * obj0 = 0 ;
9273 PyObject * obj1 = 0 ;
9274 PyObject * obj2 = 0 ;
9275 char *kwnames[] = {
9276 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9277 };
9278
9279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9281 {
9282 arg2 = wxString_in_helper(obj1);
9283 if (arg2 == NULL) SWIG_fail;
9284 temp2 = True;
9285 }
9286 if (obj2) {
9287 {
9288 arg3 = wxString_in_helper(obj2);
9289 if (arg3 == NULL) SWIG_fail;
9290 temp3 = True;
9291 }
9292 }
9293 {
9294 PyThreadState* __tstate = wxPyBeginAllowThreads();
9295 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9296
9297 wxPyEndAllowThreads(__tstate);
9298 if (PyErr_Occurred()) SWIG_fail;
9299 }
9300 {
9301 #if wxUSE_UNICODE
9302 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9303 #else
9304 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9305 #endif
9306 }
9307 {
9308 if (temp2)
9309 delete arg2;
9310 }
9311 {
9312 if (temp3)
9313 delete arg3;
9314 }
9315 return resultobj;
9316 fail:
9317 {
9318 if (temp2)
9319 delete arg2;
9320 }
9321 {
9322 if (temp3)
9323 delete arg3;
9324 }
9325 return NULL;
9326 }
9327
9328
9329 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9330 PyObject *resultobj;
9331 wxLocale *arg1 = (wxLocale *) 0 ;
9332 wxString *result;
9333 PyObject * obj0 = 0 ;
9334 char *kwnames[] = {
9335 (char *) "self", NULL
9336 };
9337
9338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9340 {
9341 PyThreadState* __tstate = wxPyBeginAllowThreads();
9342 {
9343 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9344 result = (wxString *) &_result_ref;
9345 }
9346
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 {
9351 #if wxUSE_UNICODE
9352 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9353 #else
9354 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9355 #endif
9356 }
9357 return resultobj;
9358 fail:
9359 return NULL;
9360 }
9361
9362
9363 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9364 PyObject *obj;
9365 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9366 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9367 Py_INCREF(obj);
9368 return Py_BuildValue((char *)"");
9369 }
9370 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9371 PyObject *resultobj;
9372 wxLocale *result;
9373 char *kwnames[] = {
9374 NULL
9375 };
9376
9377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9378 {
9379 PyThreadState* __tstate = wxPyBeginAllowThreads();
9380 result = (wxLocale *)wxGetLocale();
9381
9382 wxPyEndAllowThreads(__tstate);
9383 if (PyErr_Occurred()) SWIG_fail;
9384 }
9385 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9386 return resultobj;
9387 fail:
9388 return NULL;
9389 }
9390
9391
9392 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9393 PyObject *resultobj;
9394 wxString *arg1 = 0 ;
9395 wxString result;
9396 bool temp1 = False ;
9397 PyObject * obj0 = 0 ;
9398
9399 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9400 {
9401 arg1 = wxString_in_helper(obj0);
9402 if (arg1 == NULL) SWIG_fail;
9403 temp1 = True;
9404 }
9405 {
9406 PyThreadState* __tstate = wxPyBeginAllowThreads();
9407 result = wxGetTranslation((wxString const &)*arg1);
9408
9409 wxPyEndAllowThreads(__tstate);
9410 if (PyErr_Occurred()) SWIG_fail;
9411 }
9412 {
9413 #if wxUSE_UNICODE
9414 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9415 #else
9416 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9417 #endif
9418 }
9419 {
9420 if (temp1)
9421 delete arg1;
9422 }
9423 return resultobj;
9424 fail:
9425 {
9426 if (temp1)
9427 delete arg1;
9428 }
9429 return NULL;
9430 }
9431
9432
9433 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9434 PyObject *resultobj;
9435 wxString *arg1 = 0 ;
9436 wxString *arg2 = 0 ;
9437 size_t arg3 ;
9438 wxString result;
9439 bool temp1 = False ;
9440 bool temp2 = False ;
9441 PyObject * obj0 = 0 ;
9442 PyObject * obj1 = 0 ;
9443 PyObject * obj2 = 0 ;
9444
9445 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9446 {
9447 arg1 = wxString_in_helper(obj0);
9448 if (arg1 == NULL) SWIG_fail;
9449 temp1 = True;
9450 }
9451 {
9452 arg2 = wxString_in_helper(obj1);
9453 if (arg2 == NULL) SWIG_fail;
9454 temp2 = True;
9455 }
9456 {
9457 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
9458 if (PyErr_Occurred()) SWIG_fail;
9459 }
9460 {
9461 PyThreadState* __tstate = wxPyBeginAllowThreads();
9462 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9463
9464 wxPyEndAllowThreads(__tstate);
9465 if (PyErr_Occurred()) SWIG_fail;
9466 }
9467 {
9468 #if wxUSE_UNICODE
9469 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9470 #else
9471 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9472 #endif
9473 }
9474 {
9475 if (temp1)
9476 delete arg1;
9477 }
9478 {
9479 if (temp2)
9480 delete arg2;
9481 }
9482 return resultobj;
9483 fail:
9484 {
9485 if (temp1)
9486 delete arg1;
9487 }
9488 {
9489 if (temp2)
9490 delete arg2;
9491 }
9492 return NULL;
9493 }
9494
9495
9496 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9497 int argc;
9498 PyObject *argv[4];
9499 int ii;
9500
9501 argc = PyObject_Length(args);
9502 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9503 argv[ii] = PyTuple_GetItem(args,ii);
9504 }
9505 if (argc == 1) {
9506 int _v;
9507 {
9508 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9509 }
9510 if (_v) {
9511 return _wrap_GetTranslation__SWIG_0(self,args);
9512 }
9513 }
9514 if (argc == 3) {
9515 int _v;
9516 {
9517 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9518 }
9519 if (_v) {
9520 {
9521 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9522 }
9523 if (_v) {
9524 {
9525 SWIG_PyObj_AsUnsignedLong(argv[2]);
9526 if (PyErr_Occurred()) {
9527 _v = 0;
9528 PyErr_Clear();
9529 } else {
9530 _v = 1;
9531 }
9532 }
9533 if (_v) {
9534 return _wrap_GetTranslation__SWIG_1(self,args);
9535 }
9536 }
9537 }
9538 }
9539
9540 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9541 return NULL;
9542 }
9543
9544
9545 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9546 PyObject *resultobj;
9547 wxEncodingConverter *result;
9548 char *kwnames[] = {
9549 NULL
9550 };
9551
9552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9553 {
9554 PyThreadState* __tstate = wxPyBeginAllowThreads();
9555 result = (wxEncodingConverter *)new wxEncodingConverter();
9556
9557 wxPyEndAllowThreads(__tstate);
9558 if (PyErr_Occurred()) SWIG_fail;
9559 }
9560 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
9561 return resultobj;
9562 fail:
9563 return NULL;
9564 }
9565
9566
9567 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9568 PyObject *resultobj;
9569 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9570 PyObject * obj0 = 0 ;
9571 char *kwnames[] = {
9572 (char *) "self", NULL
9573 };
9574
9575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9577 {
9578 PyThreadState* __tstate = wxPyBeginAllowThreads();
9579 delete arg1;
9580
9581 wxPyEndAllowThreads(__tstate);
9582 if (PyErr_Occurred()) SWIG_fail;
9583 }
9584 Py_INCREF(Py_None); resultobj = Py_None;
9585 return resultobj;
9586 fail:
9587 return NULL;
9588 }
9589
9590
9591 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj;
9593 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9594 int arg2 ;
9595 int arg3 ;
9596 int arg4 = (int) wxCONVERT_STRICT ;
9597 bool result;
9598 PyObject * obj0 = 0 ;
9599 PyObject * obj1 = 0 ;
9600 PyObject * obj2 = 0 ;
9601 PyObject * obj3 = 0 ;
9602 char *kwnames[] = {
9603 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9604 };
9605
9606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9608 {
9609 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9610 if (PyErr_Occurred()) SWIG_fail;
9611 }
9612 {
9613 arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2);
9614 if (PyErr_Occurred()) SWIG_fail;
9615 }
9616 if (obj3) {
9617 {
9618 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9619 if (PyErr_Occurred()) SWIG_fail;
9620 }
9621 }
9622 {
9623 PyThreadState* __tstate = wxPyBeginAllowThreads();
9624 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
9625
9626 wxPyEndAllowThreads(__tstate);
9627 if (PyErr_Occurred()) SWIG_fail;
9628 }
9629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9630 return resultobj;
9631 fail:
9632 return NULL;
9633 }
9634
9635
9636 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
9637 PyObject *resultobj;
9638 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9639 wxString *arg2 = 0 ;
9640 wxString result;
9641 bool temp2 = False ;
9642 PyObject * obj0 = 0 ;
9643 PyObject * obj1 = 0 ;
9644 char *kwnames[] = {
9645 (char *) "self",(char *) "input", NULL
9646 };
9647
9648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
9649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9650 {
9651 arg2 = wxString_in_helper(obj1);
9652 if (arg2 == NULL) SWIG_fail;
9653 temp2 = True;
9654 }
9655 {
9656 PyThreadState* __tstate = wxPyBeginAllowThreads();
9657 result = (arg1)->Convert((wxString const &)*arg2);
9658
9659 wxPyEndAllowThreads(__tstate);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 {
9663 #if wxUSE_UNICODE
9664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9665 #else
9666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9667 #endif
9668 }
9669 {
9670 if (temp2)
9671 delete arg2;
9672 }
9673 return resultobj;
9674 fail:
9675 {
9676 if (temp2)
9677 delete arg2;
9678 }
9679 return NULL;
9680 }
9681
9682
9683 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9684 PyObject *resultobj;
9685 int arg1 ;
9686 int arg2 = (int) wxPLATFORM_CURRENT ;
9687 wxFontEncodingArray result;
9688 PyObject * obj0 = 0 ;
9689 PyObject * obj1 = 0 ;
9690 char *kwnames[] = {
9691 (char *) "enc",(char *) "platform", NULL
9692 };
9693
9694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
9695 {
9696 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9697 if (PyErr_Occurred()) SWIG_fail;
9698 }
9699 if (obj1) {
9700 {
9701 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9702 if (PyErr_Occurred()) SWIG_fail;
9703 }
9704 }
9705 {
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
9708
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 {
9713 resultobj = PyList_New(0);
9714 for (size_t i=0; i < (&result)->GetCount(); i++) {
9715 PyObject* number = PyInt_FromLong((&result)->Item(i));
9716 PyList_Append(resultobj, number);
9717 Py_DECREF(number);
9718 }
9719 }
9720 return resultobj;
9721 fail:
9722 return NULL;
9723 }
9724
9725
9726 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9727 PyObject *resultobj;
9728 int arg1 ;
9729 wxFontEncodingArray result;
9730 PyObject * obj0 = 0 ;
9731 char *kwnames[] = {
9732 (char *) "enc", NULL
9733 };
9734
9735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
9736 {
9737 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
9742 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
9743
9744 wxPyEndAllowThreads(__tstate);
9745 if (PyErr_Occurred()) SWIG_fail;
9746 }
9747 {
9748 resultobj = PyList_New(0);
9749 for (size_t i=0; i < (&result)->GetCount(); i++) {
9750 PyObject* number = PyInt_FromLong((&result)->Item(i));
9751 PyList_Append(resultobj, number);
9752 Py_DECREF(number);
9753 }
9754 }
9755 return resultobj;
9756 fail:
9757 return NULL;
9758 }
9759
9760
9761 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
9762 PyObject *resultobj;
9763 int arg1 ;
9764 int arg2 ;
9765 bool result;
9766 PyObject * obj0 = 0 ;
9767 PyObject * obj1 = 0 ;
9768 char *kwnames[] = {
9769 (char *) "encIn",(char *) "encOut", NULL
9770 };
9771
9772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
9773 {
9774 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9775 if (PyErr_Occurred()) SWIG_fail;
9776 }
9777 {
9778 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 }
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
9784
9785 wxPyEndAllowThreads(__tstate);
9786 if (PyErr_Occurred()) SWIG_fail;
9787 }
9788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9789 return resultobj;
9790 fail:
9791 return NULL;
9792 }
9793
9794
9795 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
9796 PyObject *obj;
9797 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9798 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
9799 Py_INCREF(obj);
9800 return Py_BuildValue((char *)"");
9801 }
9802 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj;
9804 wxDC *arg1 = (wxDC *) 0 ;
9805 PyObject * obj0 = 0 ;
9806 char *kwnames[] = {
9807 (char *) "self", NULL
9808 };
9809
9810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
9811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9812 {
9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
9814 delete arg1;
9815
9816 wxPyEndAllowThreads(__tstate);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 }
9819 Py_INCREF(Py_None); resultobj = Py_None;
9820 return resultobj;
9821 fail:
9822 return NULL;
9823 }
9824
9825
9826 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9827 PyObject *resultobj;
9828 wxDC *arg1 = (wxDC *) 0 ;
9829 PyObject * obj0 = 0 ;
9830 char *kwnames[] = {
9831 (char *) "self", NULL
9832 };
9833
9834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9836 {
9837 PyThreadState* __tstate = wxPyBeginAllowThreads();
9838 (arg1)->BeginDrawing();
9839
9840 wxPyEndAllowThreads(__tstate);
9841 if (PyErr_Occurred()) SWIG_fail;
9842 }
9843 Py_INCREF(Py_None); resultobj = Py_None;
9844 return resultobj;
9845 fail:
9846 return NULL;
9847 }
9848
9849
9850 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9851 PyObject *resultobj;
9852 wxDC *arg1 = (wxDC *) 0 ;
9853 PyObject * obj0 = 0 ;
9854 char *kwnames[] = {
9855 (char *) "self", NULL
9856 };
9857
9858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 (arg1)->EndDrawing();
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_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9875 PyObject *resultobj;
9876 wxDC *arg1 = (wxDC *) 0 ;
9877 int arg2 ;
9878 int arg3 ;
9879 wxColour *arg4 = 0 ;
9880 int arg5 = (int) wxFLOOD_SURFACE ;
9881 bool result;
9882 wxColour temp4 ;
9883 PyObject * obj0 = 0 ;
9884 PyObject * obj1 = 0 ;
9885 PyObject * obj2 = 0 ;
9886 PyObject * obj3 = 0 ;
9887 PyObject * obj4 = 0 ;
9888 char *kwnames[] = {
9889 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9890 };
9891
9892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9894 {
9895 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9896 if (PyErr_Occurred()) SWIG_fail;
9897 }
9898 {
9899 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9900 if (PyErr_Occurred()) SWIG_fail;
9901 }
9902 {
9903 arg4 = &temp4;
9904 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9905 }
9906 if (obj4) {
9907 {
9908 arg5 = (int) SWIG_PyObj_AsInt(obj4);
9909 if (PyErr_Occurred()) SWIG_fail;
9910 }
9911 }
9912 {
9913 PyThreadState* __tstate = wxPyBeginAllowThreads();
9914 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9915
9916 wxPyEndAllowThreads(__tstate);
9917 if (PyErr_Occurred()) SWIG_fail;
9918 }
9919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9920 return resultobj;
9921 fail:
9922 return NULL;
9923 }
9924
9925
9926 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9927 PyObject *resultobj;
9928 wxDC *arg1 = (wxDC *) 0 ;
9929 wxPoint *arg2 = 0 ;
9930 wxColour *arg3 = 0 ;
9931 int arg4 = (int) wxFLOOD_SURFACE ;
9932 bool result;
9933 wxPoint temp2 ;
9934 wxColour temp3 ;
9935 PyObject * obj0 = 0 ;
9936 PyObject * obj1 = 0 ;
9937 PyObject * obj2 = 0 ;
9938 PyObject * obj3 = 0 ;
9939 char *kwnames[] = {
9940 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9941 };
9942
9943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9945 {
9946 arg2 = &temp2;
9947 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9948 }
9949 {
9950 arg3 = &temp3;
9951 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9952 }
9953 if (obj3) {
9954 {
9955 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9956 if (PyErr_Occurred()) SWIG_fail;
9957 }
9958 }
9959 {
9960 PyThreadState* __tstate = wxPyBeginAllowThreads();
9961 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9962
9963 wxPyEndAllowThreads(__tstate);
9964 if (PyErr_Occurred()) SWIG_fail;
9965 }
9966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9967 return resultobj;
9968 fail:
9969 return NULL;
9970 }
9971
9972
9973 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9974 PyObject *resultobj;
9975 wxDC *arg1 = (wxDC *) 0 ;
9976 int arg2 ;
9977 int arg3 ;
9978 wxColour result;
9979 PyObject * obj0 = 0 ;
9980 PyObject * obj1 = 0 ;
9981 PyObject * obj2 = 0 ;
9982 char *kwnames[] = {
9983 (char *) "self",(char *) "x",(char *) "y", NULL
9984 };
9985
9986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
9987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9988 {
9989 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9990 if (PyErr_Occurred()) SWIG_fail;
9991 }
9992 {
9993 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9994 if (PyErr_Occurred()) SWIG_fail;
9995 }
9996 {
9997 PyThreadState* __tstate = wxPyBeginAllowThreads();
9998 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9999
10000 wxPyEndAllowThreads(__tstate);
10001 if (PyErr_Occurred()) SWIG_fail;
10002 }
10003 {
10004 wxColour * resultptr;
10005 resultptr = new wxColour((wxColour &) result);
10006 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10007 }
10008 return resultobj;
10009 fail:
10010 return NULL;
10011 }
10012
10013
10014 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10015 PyObject *resultobj;
10016 wxDC *arg1 = (wxDC *) 0 ;
10017 wxPoint *arg2 = 0 ;
10018 wxColour result;
10019 wxPoint temp2 ;
10020 PyObject * obj0 = 0 ;
10021 PyObject * obj1 = 0 ;
10022 char *kwnames[] = {
10023 (char *) "self",(char *) "pt", NULL
10024 };
10025
10026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10027 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10028 {
10029 arg2 = &temp2;
10030 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10031 }
10032 {
10033 PyThreadState* __tstate = wxPyBeginAllowThreads();
10034 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10035
10036 wxPyEndAllowThreads(__tstate);
10037 if (PyErr_Occurred()) SWIG_fail;
10038 }
10039 {
10040 wxColour * resultptr;
10041 resultptr = new wxColour((wxColour &) result);
10042 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10043 }
10044 return resultobj;
10045 fail:
10046 return NULL;
10047 }
10048
10049
10050 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10051 PyObject *resultobj;
10052 wxDC *arg1 = (wxDC *) 0 ;
10053 int arg2 ;
10054 int arg3 ;
10055 int arg4 ;
10056 int arg5 ;
10057 PyObject * obj0 = 0 ;
10058 PyObject * obj1 = 0 ;
10059 PyObject * obj2 = 0 ;
10060 PyObject * obj3 = 0 ;
10061 PyObject * obj4 = 0 ;
10062 char *kwnames[] = {
10063 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10064 };
10065
10066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10068 {
10069 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10070 if (PyErr_Occurred()) SWIG_fail;
10071 }
10072 {
10073 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10074 if (PyErr_Occurred()) SWIG_fail;
10075 }
10076 {
10077 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10078 if (PyErr_Occurred()) SWIG_fail;
10079 }
10080 {
10081 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10082 if (PyErr_Occurred()) SWIG_fail;
10083 }
10084 {
10085 PyThreadState* __tstate = wxPyBeginAllowThreads();
10086 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10087
10088 wxPyEndAllowThreads(__tstate);
10089 if (PyErr_Occurred()) SWIG_fail;
10090 }
10091 Py_INCREF(Py_None); resultobj = Py_None;
10092 return resultobj;
10093 fail:
10094 return NULL;
10095 }
10096
10097
10098 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10099 PyObject *resultobj;
10100 wxDC *arg1 = (wxDC *) 0 ;
10101 wxPoint *arg2 = 0 ;
10102 wxPoint *arg3 = 0 ;
10103 wxPoint temp2 ;
10104 wxPoint temp3 ;
10105 PyObject * obj0 = 0 ;
10106 PyObject * obj1 = 0 ;
10107 PyObject * obj2 = 0 ;
10108 char *kwnames[] = {
10109 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10110 };
10111
10112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10114 {
10115 arg2 = &temp2;
10116 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10117 }
10118 {
10119 arg3 = &temp3;
10120 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10121 }
10122 {
10123 PyThreadState* __tstate = wxPyBeginAllowThreads();
10124 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10125
10126 wxPyEndAllowThreads(__tstate);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 Py_INCREF(Py_None); resultobj = Py_None;
10130 return resultobj;
10131 fail:
10132 return NULL;
10133 }
10134
10135
10136 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10137 PyObject *resultobj;
10138 wxDC *arg1 = (wxDC *) 0 ;
10139 int arg2 ;
10140 int arg3 ;
10141 PyObject * obj0 = 0 ;
10142 PyObject * obj1 = 0 ;
10143 PyObject * obj2 = 0 ;
10144 char *kwnames[] = {
10145 (char *) "self",(char *) "x",(char *) "y", NULL
10146 };
10147
10148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10150 {
10151 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10152 if (PyErr_Occurred()) SWIG_fail;
10153 }
10154 {
10155 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10156 if (PyErr_Occurred()) SWIG_fail;
10157 }
10158 {
10159 PyThreadState* __tstate = wxPyBeginAllowThreads();
10160 (arg1)->CrossHair(arg2,arg3);
10161
10162 wxPyEndAllowThreads(__tstate);
10163 if (PyErr_Occurred()) SWIG_fail;
10164 }
10165 Py_INCREF(Py_None); resultobj = Py_None;
10166 return resultobj;
10167 fail:
10168 return NULL;
10169 }
10170
10171
10172 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10173 PyObject *resultobj;
10174 wxDC *arg1 = (wxDC *) 0 ;
10175 wxPoint *arg2 = 0 ;
10176 wxPoint temp2 ;
10177 PyObject * obj0 = 0 ;
10178 PyObject * obj1 = 0 ;
10179 char *kwnames[] = {
10180 (char *) "self",(char *) "pt", NULL
10181 };
10182
10183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10185 {
10186 arg2 = &temp2;
10187 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10188 }
10189 {
10190 PyThreadState* __tstate = wxPyBeginAllowThreads();
10191 (arg1)->CrossHair((wxPoint const &)*arg2);
10192
10193 wxPyEndAllowThreads(__tstate);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 }
10196 Py_INCREF(Py_None); resultobj = Py_None;
10197 return resultobj;
10198 fail:
10199 return NULL;
10200 }
10201
10202
10203 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10204 PyObject *resultobj;
10205 wxDC *arg1 = (wxDC *) 0 ;
10206 int arg2 ;
10207 int arg3 ;
10208 int arg4 ;
10209 int arg5 ;
10210 int arg6 ;
10211 int arg7 ;
10212 PyObject * obj0 = 0 ;
10213 PyObject * obj1 = 0 ;
10214 PyObject * obj2 = 0 ;
10215 PyObject * obj3 = 0 ;
10216 PyObject * obj4 = 0 ;
10217 PyObject * obj5 = 0 ;
10218 PyObject * obj6 = 0 ;
10219 char *kwnames[] = {
10220 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10221 };
10222
10223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10225 {
10226 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10227 if (PyErr_Occurred()) SWIG_fail;
10228 }
10229 {
10230 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10231 if (PyErr_Occurred()) SWIG_fail;
10232 }
10233 {
10234 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 {
10238 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10239 if (PyErr_Occurred()) SWIG_fail;
10240 }
10241 {
10242 arg6 = (int) SWIG_PyObj_AsInt(obj5);
10243 if (PyErr_Occurred()) SWIG_fail;
10244 }
10245 {
10246 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10247 if (PyErr_Occurred()) SWIG_fail;
10248 }
10249 {
10250 PyThreadState* __tstate = wxPyBeginAllowThreads();
10251 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10252
10253 wxPyEndAllowThreads(__tstate);
10254 if (PyErr_Occurred()) SWIG_fail;
10255 }
10256 Py_INCREF(Py_None); resultobj = Py_None;
10257 return resultobj;
10258 fail:
10259 return NULL;
10260 }
10261
10262
10263 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10264 PyObject *resultobj;
10265 wxDC *arg1 = (wxDC *) 0 ;
10266 wxPoint *arg2 = 0 ;
10267 wxPoint *arg3 = 0 ;
10268 wxPoint *arg4 = 0 ;
10269 wxPoint temp2 ;
10270 wxPoint temp3 ;
10271 wxPoint temp4 ;
10272 PyObject * obj0 = 0 ;
10273 PyObject * obj1 = 0 ;
10274 PyObject * obj2 = 0 ;
10275 PyObject * obj3 = 0 ;
10276 char *kwnames[] = {
10277 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10278 };
10279
10280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10282 {
10283 arg2 = &temp2;
10284 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10285 }
10286 {
10287 arg3 = &temp3;
10288 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10289 }
10290 {
10291 arg4 = &temp4;
10292 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10293 }
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10297
10298 wxPyEndAllowThreads(__tstate);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 Py_INCREF(Py_None); resultobj = Py_None;
10302 return resultobj;
10303 fail:
10304 return NULL;
10305 }
10306
10307
10308 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10309 PyObject *resultobj;
10310 wxDC *arg1 = (wxDC *) 0 ;
10311 int arg2 ;
10312 int arg3 ;
10313 int arg4 ;
10314 int arg5 ;
10315 PyObject * obj0 = 0 ;
10316 PyObject * obj1 = 0 ;
10317 PyObject * obj2 = 0 ;
10318 PyObject * obj3 = 0 ;
10319 PyObject * obj4 = 0 ;
10320 char *kwnames[] = {
10321 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10322 };
10323
10324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10326 {
10327 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10328 if (PyErr_Occurred()) SWIG_fail;
10329 }
10330 {
10331 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 {
10335 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 {
10339 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10340 if (PyErr_Occurred()) SWIG_fail;
10341 }
10342 {
10343 PyThreadState* __tstate = wxPyBeginAllowThreads();
10344 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10345
10346 wxPyEndAllowThreads(__tstate);
10347 if (PyErr_Occurred()) SWIG_fail;
10348 }
10349 Py_INCREF(Py_None); resultobj = Py_None;
10350 return resultobj;
10351 fail:
10352 return NULL;
10353 }
10354
10355
10356 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10357 PyObject *resultobj;
10358 wxDC *arg1 = (wxDC *) 0 ;
10359 wxRect *arg2 = 0 ;
10360 wxRect temp2 ;
10361 PyObject * obj0 = 0 ;
10362 PyObject * obj1 = 0 ;
10363 char *kwnames[] = {
10364 (char *) "self",(char *) "rect", NULL
10365 };
10366
10367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10369 {
10370 arg2 = &temp2;
10371 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10372 }
10373 {
10374 PyThreadState* __tstate = wxPyBeginAllowThreads();
10375 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10376
10377 wxPyEndAllowThreads(__tstate);
10378 if (PyErr_Occurred()) SWIG_fail;
10379 }
10380 Py_INCREF(Py_None); resultobj = Py_None;
10381 return resultobj;
10382 fail:
10383 return NULL;
10384 }
10385
10386
10387 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10388 PyObject *resultobj;
10389 wxDC *arg1 = (wxDC *) 0 ;
10390 int arg2 ;
10391 int arg3 ;
10392 int arg4 ;
10393 int arg5 ;
10394 double arg6 ;
10395 double arg7 ;
10396 PyObject * obj0 = 0 ;
10397 PyObject * obj1 = 0 ;
10398 PyObject * obj2 = 0 ;
10399 PyObject * obj3 = 0 ;
10400 PyObject * obj4 = 0 ;
10401 PyObject * obj5 = 0 ;
10402 PyObject * obj6 = 0 ;
10403 char *kwnames[] = {
10404 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10405 };
10406
10407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10409 {
10410 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 }
10413 {
10414 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10415 if (PyErr_Occurred()) SWIG_fail;
10416 }
10417 {
10418 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10419 if (PyErr_Occurred()) SWIG_fail;
10420 }
10421 {
10422 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10423 if (PyErr_Occurred()) SWIG_fail;
10424 }
10425 {
10426 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10427 if (PyErr_Occurred()) SWIG_fail;
10428 }
10429 {
10430 arg7 = (double) SWIG_PyObj_AsDouble(obj6);
10431 if (PyErr_Occurred()) SWIG_fail;
10432 }
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10436
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 Py_INCREF(Py_None); resultobj = Py_None;
10441 return resultobj;
10442 fail:
10443 return NULL;
10444 }
10445
10446
10447 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10448 PyObject *resultobj;
10449 wxDC *arg1 = (wxDC *) 0 ;
10450 wxPoint *arg2 = 0 ;
10451 wxSize *arg3 = 0 ;
10452 double arg4 ;
10453 double arg5 ;
10454 wxPoint temp2 ;
10455 wxSize temp3 ;
10456 PyObject * obj0 = 0 ;
10457 PyObject * obj1 = 0 ;
10458 PyObject * obj2 = 0 ;
10459 PyObject * obj3 = 0 ;
10460 PyObject * obj4 = 0 ;
10461 char *kwnames[] = {
10462 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10463 };
10464
10465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10467 {
10468 arg2 = &temp2;
10469 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10470 }
10471 {
10472 arg3 = &temp3;
10473 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10474 }
10475 {
10476 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 }
10479 {
10480 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
10481 if (PyErr_Occurred()) SWIG_fail;
10482 }
10483 {
10484 PyThreadState* __tstate = wxPyBeginAllowThreads();
10485 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10486
10487 wxPyEndAllowThreads(__tstate);
10488 if (PyErr_Occurred()) SWIG_fail;
10489 }
10490 Py_INCREF(Py_None); resultobj = Py_None;
10491 return resultobj;
10492 fail:
10493 return NULL;
10494 }
10495
10496
10497 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10498 PyObject *resultobj;
10499 wxDC *arg1 = (wxDC *) 0 ;
10500 int arg2 ;
10501 int arg3 ;
10502 PyObject * obj0 = 0 ;
10503 PyObject * obj1 = 0 ;
10504 PyObject * obj2 = 0 ;
10505 char *kwnames[] = {
10506 (char *) "self",(char *) "x",(char *) "y", NULL
10507 };
10508
10509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10511 {
10512 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10513 if (PyErr_Occurred()) SWIG_fail;
10514 }
10515 {
10516 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 }
10519 {
10520 PyThreadState* __tstate = wxPyBeginAllowThreads();
10521 (arg1)->DrawPoint(arg2,arg3);
10522
10523 wxPyEndAllowThreads(__tstate);
10524 if (PyErr_Occurred()) SWIG_fail;
10525 }
10526 Py_INCREF(Py_None); resultobj = Py_None;
10527 return resultobj;
10528 fail:
10529 return NULL;
10530 }
10531
10532
10533 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10534 PyObject *resultobj;
10535 wxDC *arg1 = (wxDC *) 0 ;
10536 wxPoint *arg2 = 0 ;
10537 wxPoint temp2 ;
10538 PyObject * obj0 = 0 ;
10539 PyObject * obj1 = 0 ;
10540 char *kwnames[] = {
10541 (char *) "self",(char *) "pt", NULL
10542 };
10543
10544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10546 {
10547 arg2 = &temp2;
10548 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10549 }
10550 {
10551 PyThreadState* __tstate = wxPyBeginAllowThreads();
10552 (arg1)->DrawPoint((wxPoint const &)*arg2);
10553
10554 wxPyEndAllowThreads(__tstate);
10555 if (PyErr_Occurred()) SWIG_fail;
10556 }
10557 Py_INCREF(Py_None); resultobj = Py_None;
10558 return resultobj;
10559 fail:
10560 return NULL;
10561 }
10562
10563
10564 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10565 PyObject *resultobj;
10566 wxDC *arg1 = (wxDC *) 0 ;
10567 int arg2 ;
10568 int arg3 ;
10569 int arg4 ;
10570 int arg5 ;
10571 PyObject * obj0 = 0 ;
10572 PyObject * obj1 = 0 ;
10573 PyObject * obj2 = 0 ;
10574 PyObject * obj3 = 0 ;
10575 PyObject * obj4 = 0 ;
10576 char *kwnames[] = {
10577 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10578 };
10579
10580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10582 {
10583 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 }
10586 {
10587 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10588 if (PyErr_Occurred()) SWIG_fail;
10589 }
10590 {
10591 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10592 if (PyErr_Occurred()) SWIG_fail;
10593 }
10594 {
10595 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10596 if (PyErr_Occurred()) SWIG_fail;
10597 }
10598 {
10599 PyThreadState* __tstate = wxPyBeginAllowThreads();
10600 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10601
10602 wxPyEndAllowThreads(__tstate);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 }
10605 Py_INCREF(Py_None); resultobj = Py_None;
10606 return resultobj;
10607 fail:
10608 return NULL;
10609 }
10610
10611
10612 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10613 PyObject *resultobj;
10614 wxDC *arg1 = (wxDC *) 0 ;
10615 wxPoint *arg2 = 0 ;
10616 wxSize *arg3 = 0 ;
10617 wxPoint temp2 ;
10618 wxSize temp3 ;
10619 PyObject * obj0 = 0 ;
10620 PyObject * obj1 = 0 ;
10621 PyObject * obj2 = 0 ;
10622 char *kwnames[] = {
10623 (char *) "self",(char *) "pt",(char *) "sz", NULL
10624 };
10625
10626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10628 {
10629 arg2 = &temp2;
10630 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10631 }
10632 {
10633 arg3 = &temp3;
10634 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10635 }
10636 {
10637 PyThreadState* __tstate = wxPyBeginAllowThreads();
10638 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
10639
10640 wxPyEndAllowThreads(__tstate);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 }
10643 Py_INCREF(Py_None); resultobj = Py_None;
10644 return resultobj;
10645 fail:
10646 return NULL;
10647 }
10648
10649
10650 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10651 PyObject *resultobj;
10652 wxDC *arg1 = (wxDC *) 0 ;
10653 wxRect *arg2 = 0 ;
10654 wxRect temp2 ;
10655 PyObject * obj0 = 0 ;
10656 PyObject * obj1 = 0 ;
10657 char *kwnames[] = {
10658 (char *) "self",(char *) "rect", NULL
10659 };
10660
10661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10663 {
10664 arg2 = &temp2;
10665 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10666 }
10667 {
10668 PyThreadState* __tstate = wxPyBeginAllowThreads();
10669 (arg1)->DrawRectangle((wxRect const &)*arg2);
10670
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 Py_INCREF(Py_None); resultobj = Py_None;
10675 return resultobj;
10676 fail:
10677 return NULL;
10678 }
10679
10680
10681 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10682 PyObject *resultobj;
10683 wxDC *arg1 = (wxDC *) 0 ;
10684 int arg2 ;
10685 int arg3 ;
10686 int arg4 ;
10687 int arg5 ;
10688 double arg6 ;
10689 PyObject * obj0 = 0 ;
10690 PyObject * obj1 = 0 ;
10691 PyObject * obj2 = 0 ;
10692 PyObject * obj3 = 0 ;
10693 PyObject * obj4 = 0 ;
10694 PyObject * obj5 = 0 ;
10695 char *kwnames[] = {
10696 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
10697 };
10698
10699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10701 {
10702 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 {
10706 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
10709 {
10710 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10711 if (PyErr_Occurred()) SWIG_fail;
10712 }
10713 {
10714 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10715 if (PyErr_Occurred()) SWIG_fail;
10716 }
10717 {
10718 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10719 if (PyErr_Occurred()) SWIG_fail;
10720 }
10721 {
10722 PyThreadState* __tstate = wxPyBeginAllowThreads();
10723 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
10724
10725 wxPyEndAllowThreads(__tstate);
10726 if (PyErr_Occurred()) SWIG_fail;
10727 }
10728 Py_INCREF(Py_None); resultobj = Py_None;
10729 return resultobj;
10730 fail:
10731 return NULL;
10732 }
10733
10734
10735 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10736 PyObject *resultobj;
10737 wxDC *arg1 = (wxDC *) 0 ;
10738 wxPoint *arg2 = 0 ;
10739 wxSize *arg3 = 0 ;
10740 double arg4 ;
10741 wxPoint temp2 ;
10742 wxSize temp3 ;
10743 PyObject * obj0 = 0 ;
10744 PyObject * obj1 = 0 ;
10745 PyObject * obj2 = 0 ;
10746 PyObject * obj3 = 0 ;
10747 char *kwnames[] = {
10748 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
10749 };
10750
10751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10753 {
10754 arg2 = &temp2;
10755 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10756 }
10757 {
10758 arg3 = &temp3;
10759 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10760 }
10761 {
10762 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 {
10766 PyThreadState* __tstate = wxPyBeginAllowThreads();
10767 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
10768
10769 wxPyEndAllowThreads(__tstate);
10770 if (PyErr_Occurred()) SWIG_fail;
10771 }
10772 Py_INCREF(Py_None); resultobj = Py_None;
10773 return resultobj;
10774 fail:
10775 return NULL;
10776 }
10777
10778
10779 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10780 PyObject *resultobj;
10781 wxDC *arg1 = (wxDC *) 0 ;
10782 wxRect *arg2 = 0 ;
10783 double arg3 ;
10784 wxRect temp2 ;
10785 PyObject * obj0 = 0 ;
10786 PyObject * obj1 = 0 ;
10787 PyObject * obj2 = 0 ;
10788 char *kwnames[] = {
10789 (char *) "self",(char *) "r",(char *) "radius", NULL
10790 };
10791
10792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
10793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10794 {
10795 arg2 = &temp2;
10796 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10797 }
10798 {
10799 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
10800 if (PyErr_Occurred()) SWIG_fail;
10801 }
10802 {
10803 PyThreadState* __tstate = wxPyBeginAllowThreads();
10804 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
10805
10806 wxPyEndAllowThreads(__tstate);
10807 if (PyErr_Occurred()) SWIG_fail;
10808 }
10809 Py_INCREF(Py_None); resultobj = Py_None;
10810 return resultobj;
10811 fail:
10812 return NULL;
10813 }
10814
10815
10816 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10817 PyObject *resultobj;
10818 wxDC *arg1 = (wxDC *) 0 ;
10819 int arg2 ;
10820 int arg3 ;
10821 int arg4 ;
10822 PyObject * obj0 = 0 ;
10823 PyObject * obj1 = 0 ;
10824 PyObject * obj2 = 0 ;
10825 PyObject * obj3 = 0 ;
10826 char *kwnames[] = {
10827 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
10828 };
10829
10830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10832 {
10833 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 {
10837 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 }
10840 {
10841 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10842 if (PyErr_Occurred()) SWIG_fail;
10843 }
10844 {
10845 PyThreadState* __tstate = wxPyBeginAllowThreads();
10846 (arg1)->DrawCircle(arg2,arg3,arg4);
10847
10848 wxPyEndAllowThreads(__tstate);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 Py_INCREF(Py_None); resultobj = Py_None;
10852 return resultobj;
10853 fail:
10854 return NULL;
10855 }
10856
10857
10858 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
10859 PyObject *resultobj;
10860 wxDC *arg1 = (wxDC *) 0 ;
10861 wxPoint *arg2 = 0 ;
10862 int arg3 ;
10863 wxPoint temp2 ;
10864 PyObject * obj0 = 0 ;
10865 PyObject * obj1 = 0 ;
10866 PyObject * obj2 = 0 ;
10867 char *kwnames[] = {
10868 (char *) "self",(char *) "pt",(char *) "radius", NULL
10869 };
10870
10871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10873 {
10874 arg2 = &temp2;
10875 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10876 }
10877 {
10878 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10879 if (PyErr_Occurred()) SWIG_fail;
10880 }
10881 {
10882 PyThreadState* __tstate = wxPyBeginAllowThreads();
10883 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
10884
10885 wxPyEndAllowThreads(__tstate);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 }
10888 Py_INCREF(Py_None); resultobj = Py_None;
10889 return resultobj;
10890 fail:
10891 return NULL;
10892 }
10893
10894
10895 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10896 PyObject *resultobj;
10897 wxDC *arg1 = (wxDC *) 0 ;
10898 int arg2 ;
10899 int arg3 ;
10900 int arg4 ;
10901 int arg5 ;
10902 PyObject * obj0 = 0 ;
10903 PyObject * obj1 = 0 ;
10904 PyObject * obj2 = 0 ;
10905 PyObject * obj3 = 0 ;
10906 PyObject * obj4 = 0 ;
10907 char *kwnames[] = {
10908 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10909 };
10910
10911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10913 {
10914 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10915 if (PyErr_Occurred()) SWIG_fail;
10916 }
10917 {
10918 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10919 if (PyErr_Occurred()) SWIG_fail;
10920 }
10921 {
10922 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10923 if (PyErr_Occurred()) SWIG_fail;
10924 }
10925 {
10926 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 }
10929 {
10930 PyThreadState* __tstate = wxPyBeginAllowThreads();
10931 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
10932
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 Py_INCREF(Py_None); resultobj = Py_None;
10937 return resultobj;
10938 fail:
10939 return NULL;
10940 }
10941
10942
10943 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
10944 PyObject *resultobj;
10945 wxDC *arg1 = (wxDC *) 0 ;
10946 wxPoint *arg2 = 0 ;
10947 wxSize *arg3 = 0 ;
10948 wxPoint temp2 ;
10949 wxSize temp3 ;
10950 PyObject * obj0 = 0 ;
10951 PyObject * obj1 = 0 ;
10952 PyObject * obj2 = 0 ;
10953 char *kwnames[] = {
10954 (char *) "self",(char *) "pt",(char *) "sz", NULL
10955 };
10956
10957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
10958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10959 {
10960 arg2 = &temp2;
10961 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10962 }
10963 {
10964 arg3 = &temp3;
10965 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10966 }
10967 {
10968 PyThreadState* __tstate = wxPyBeginAllowThreads();
10969 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
10970
10971 wxPyEndAllowThreads(__tstate);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 }
10974 Py_INCREF(Py_None); resultobj = Py_None;
10975 return resultobj;
10976 fail:
10977 return NULL;
10978 }
10979
10980
10981 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10982 PyObject *resultobj;
10983 wxDC *arg1 = (wxDC *) 0 ;
10984 wxRect *arg2 = 0 ;
10985 wxRect temp2 ;
10986 PyObject * obj0 = 0 ;
10987 PyObject * obj1 = 0 ;
10988 char *kwnames[] = {
10989 (char *) "self",(char *) "rect", NULL
10990 };
10991
10992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
10993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10994 {
10995 arg2 = &temp2;
10996 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10997 }
10998 {
10999 PyThreadState* __tstate = wxPyBeginAllowThreads();
11000 (arg1)->DrawEllipse((wxRect const &)*arg2);
11001
11002 wxPyEndAllowThreads(__tstate);
11003 if (PyErr_Occurred()) SWIG_fail;
11004 }
11005 Py_INCREF(Py_None); resultobj = Py_None;
11006 return resultobj;
11007 fail:
11008 return NULL;
11009 }
11010
11011
11012 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11013 PyObject *resultobj;
11014 wxDC *arg1 = (wxDC *) 0 ;
11015 wxIcon *arg2 = 0 ;
11016 int arg3 ;
11017 int arg4 ;
11018 PyObject * obj0 = 0 ;
11019 PyObject * obj1 = 0 ;
11020 PyObject * obj2 = 0 ;
11021 PyObject * obj3 = 0 ;
11022 char *kwnames[] = {
11023 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11024 };
11025
11026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11027 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11028 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11029 if (arg2 == NULL) {
11030 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11031 }
11032 {
11033 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11034 if (PyErr_Occurred()) SWIG_fail;
11035 }
11036 {
11037 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 {
11041 PyThreadState* __tstate = wxPyBeginAllowThreads();
11042 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11043
11044 wxPyEndAllowThreads(__tstate);
11045 if (PyErr_Occurred()) SWIG_fail;
11046 }
11047 Py_INCREF(Py_None); resultobj = Py_None;
11048 return resultobj;
11049 fail:
11050 return NULL;
11051 }
11052
11053
11054 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11055 PyObject *resultobj;
11056 wxDC *arg1 = (wxDC *) 0 ;
11057 wxIcon *arg2 = 0 ;
11058 wxPoint *arg3 = 0 ;
11059 wxPoint temp3 ;
11060 PyObject * obj0 = 0 ;
11061 PyObject * obj1 = 0 ;
11062 PyObject * obj2 = 0 ;
11063 char *kwnames[] = {
11064 (char *) "self",(char *) "icon",(char *) "pt", NULL
11065 };
11066
11067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11069 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11070 if (arg2 == NULL) {
11071 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11072 }
11073 {
11074 arg3 = &temp3;
11075 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11076 }
11077 {
11078 PyThreadState* __tstate = wxPyBeginAllowThreads();
11079 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11080
11081 wxPyEndAllowThreads(__tstate);
11082 if (PyErr_Occurred()) SWIG_fail;
11083 }
11084 Py_INCREF(Py_None); resultobj = Py_None;
11085 return resultobj;
11086 fail:
11087 return NULL;
11088 }
11089
11090
11091 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11092 PyObject *resultobj;
11093 wxDC *arg1 = (wxDC *) 0 ;
11094 wxBitmap *arg2 = 0 ;
11095 int arg3 ;
11096 int arg4 ;
11097 bool arg5 = (bool) False ;
11098 PyObject * obj0 = 0 ;
11099 PyObject * obj1 = 0 ;
11100 PyObject * obj2 = 0 ;
11101 PyObject * obj3 = 0 ;
11102 PyObject * obj4 = 0 ;
11103 char *kwnames[] = {
11104 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11105 };
11106
11107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11109 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11110 if (arg2 == NULL) {
11111 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11112 }
11113 {
11114 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 }
11117 {
11118 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 if (obj4) {
11122 {
11123 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
11124 if (PyErr_Occurred()) SWIG_fail;
11125 }
11126 }
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11130
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 Py_INCREF(Py_None); resultobj = Py_None;
11135 return resultobj;
11136 fail:
11137 return NULL;
11138 }
11139
11140
11141 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11142 PyObject *resultobj;
11143 wxDC *arg1 = (wxDC *) 0 ;
11144 wxBitmap *arg2 = 0 ;
11145 wxPoint *arg3 = 0 ;
11146 bool arg4 = (bool) False ;
11147 wxPoint temp3 ;
11148 PyObject * obj0 = 0 ;
11149 PyObject * obj1 = 0 ;
11150 PyObject * obj2 = 0 ;
11151 PyObject * obj3 = 0 ;
11152 char *kwnames[] = {
11153 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11154 };
11155
11156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11157 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11158 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11159 if (arg2 == NULL) {
11160 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11161 }
11162 {
11163 arg3 = &temp3;
11164 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11165 }
11166 if (obj3) {
11167 {
11168 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
11169 if (PyErr_Occurred()) SWIG_fail;
11170 }
11171 }
11172 {
11173 PyThreadState* __tstate = wxPyBeginAllowThreads();
11174 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11175
11176 wxPyEndAllowThreads(__tstate);
11177 if (PyErr_Occurred()) SWIG_fail;
11178 }
11179 Py_INCREF(Py_None); resultobj = Py_None;
11180 return resultobj;
11181 fail:
11182 return NULL;
11183 }
11184
11185
11186 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11187 PyObject *resultobj;
11188 wxDC *arg1 = (wxDC *) 0 ;
11189 wxString *arg2 = 0 ;
11190 int arg3 ;
11191 int arg4 ;
11192 bool temp2 = False ;
11193 PyObject * obj0 = 0 ;
11194 PyObject * obj1 = 0 ;
11195 PyObject * obj2 = 0 ;
11196 PyObject * obj3 = 0 ;
11197 char *kwnames[] = {
11198 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11199 };
11200
11201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11203 {
11204 arg2 = wxString_in_helper(obj1);
11205 if (arg2 == NULL) SWIG_fail;
11206 temp2 = True;
11207 }
11208 {
11209 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 }
11212 {
11213 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11214 if (PyErr_Occurred()) SWIG_fail;
11215 }
11216 {
11217 PyThreadState* __tstate = wxPyBeginAllowThreads();
11218 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11219
11220 wxPyEndAllowThreads(__tstate);
11221 if (PyErr_Occurred()) SWIG_fail;
11222 }
11223 Py_INCREF(Py_None); resultobj = Py_None;
11224 {
11225 if (temp2)
11226 delete arg2;
11227 }
11228 return resultobj;
11229 fail:
11230 {
11231 if (temp2)
11232 delete arg2;
11233 }
11234 return NULL;
11235 }
11236
11237
11238 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11239 PyObject *resultobj;
11240 wxDC *arg1 = (wxDC *) 0 ;
11241 wxString *arg2 = 0 ;
11242 wxPoint *arg3 = 0 ;
11243 bool temp2 = False ;
11244 wxPoint temp3 ;
11245 PyObject * obj0 = 0 ;
11246 PyObject * obj1 = 0 ;
11247 PyObject * obj2 = 0 ;
11248 char *kwnames[] = {
11249 (char *) "self",(char *) "text",(char *) "pt", NULL
11250 };
11251
11252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11254 {
11255 arg2 = wxString_in_helper(obj1);
11256 if (arg2 == NULL) SWIG_fail;
11257 temp2 = True;
11258 }
11259 {
11260 arg3 = &temp3;
11261 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11262 }
11263 {
11264 PyThreadState* __tstate = wxPyBeginAllowThreads();
11265 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11266
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 Py_INCREF(Py_None); resultobj = Py_None;
11271 {
11272 if (temp2)
11273 delete arg2;
11274 }
11275 return resultobj;
11276 fail:
11277 {
11278 if (temp2)
11279 delete arg2;
11280 }
11281 return NULL;
11282 }
11283
11284
11285 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11286 PyObject *resultobj;
11287 wxDC *arg1 = (wxDC *) 0 ;
11288 wxString *arg2 = 0 ;
11289 int arg3 ;
11290 int arg4 ;
11291 double arg5 ;
11292 bool temp2 = False ;
11293 PyObject * obj0 = 0 ;
11294 PyObject * obj1 = 0 ;
11295 PyObject * obj2 = 0 ;
11296 PyObject * obj3 = 0 ;
11297 PyObject * obj4 = 0 ;
11298 char *kwnames[] = {
11299 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11300 };
11301
11302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11304 {
11305 arg2 = wxString_in_helper(obj1);
11306 if (arg2 == NULL) SWIG_fail;
11307 temp2 = True;
11308 }
11309 {
11310 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 }
11313 {
11314 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11315 if (PyErr_Occurred()) SWIG_fail;
11316 }
11317 {
11318 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 }
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11324
11325 wxPyEndAllowThreads(__tstate);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 Py_INCREF(Py_None); resultobj = Py_None;
11329 {
11330 if (temp2)
11331 delete arg2;
11332 }
11333 return resultobj;
11334 fail:
11335 {
11336 if (temp2)
11337 delete arg2;
11338 }
11339 return NULL;
11340 }
11341
11342
11343 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11344 PyObject *resultobj;
11345 wxDC *arg1 = (wxDC *) 0 ;
11346 wxString *arg2 = 0 ;
11347 wxPoint *arg3 = 0 ;
11348 double arg4 ;
11349 bool temp2 = False ;
11350 wxPoint temp3 ;
11351 PyObject * obj0 = 0 ;
11352 PyObject * obj1 = 0 ;
11353 PyObject * obj2 = 0 ;
11354 PyObject * obj3 = 0 ;
11355 char *kwnames[] = {
11356 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11357 };
11358
11359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11361 {
11362 arg2 = wxString_in_helper(obj1);
11363 if (arg2 == NULL) SWIG_fail;
11364 temp2 = True;
11365 }
11366 {
11367 arg3 = &temp3;
11368 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11369 }
11370 {
11371 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 {
11375 PyThreadState* __tstate = wxPyBeginAllowThreads();
11376 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11377
11378 wxPyEndAllowThreads(__tstate);
11379 if (PyErr_Occurred()) SWIG_fail;
11380 }
11381 Py_INCREF(Py_None); resultobj = Py_None;
11382 {
11383 if (temp2)
11384 delete arg2;
11385 }
11386 return resultobj;
11387 fail:
11388 {
11389 if (temp2)
11390 delete arg2;
11391 }
11392 return NULL;
11393 }
11394
11395
11396 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11397 PyObject *resultobj;
11398 wxDC *arg1 = (wxDC *) 0 ;
11399 int arg2 ;
11400 int arg3 ;
11401 int arg4 ;
11402 int arg5 ;
11403 wxDC *arg6 = (wxDC *) 0 ;
11404 int arg7 ;
11405 int arg8 ;
11406 int arg9 = (int) wxCOPY ;
11407 bool arg10 = (bool) False ;
11408 int arg11 = (int) -1 ;
11409 int arg12 = (int) -1 ;
11410 bool result;
11411 PyObject * obj0 = 0 ;
11412 PyObject * obj1 = 0 ;
11413 PyObject * obj2 = 0 ;
11414 PyObject * obj3 = 0 ;
11415 PyObject * obj4 = 0 ;
11416 PyObject * obj5 = 0 ;
11417 PyObject * obj6 = 0 ;
11418 PyObject * obj7 = 0 ;
11419 PyObject * obj8 = 0 ;
11420 PyObject * obj9 = 0 ;
11421 PyObject * obj10 = 0 ;
11422 PyObject * obj11 = 0 ;
11423 char *kwnames[] = {
11424 (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
11425 };
11426
11427 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;
11428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11429 {
11430 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 }
11433 {
11434 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 }
11437 {
11438 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11439 if (PyErr_Occurred()) SWIG_fail;
11440 }
11441 {
11442 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11446 {
11447 arg7 = (int) SWIG_PyObj_AsInt(obj6);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 {
11451 arg8 = (int) SWIG_PyObj_AsInt(obj7);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 }
11454 if (obj8) {
11455 {
11456 arg9 = (int) SWIG_PyObj_AsInt(obj8);
11457 if (PyErr_Occurred()) SWIG_fail;
11458 }
11459 }
11460 if (obj9) {
11461 {
11462 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
11463 if (PyErr_Occurred()) SWIG_fail;
11464 }
11465 }
11466 if (obj10) {
11467 {
11468 arg11 = (int) SWIG_PyObj_AsInt(obj10);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 }
11471 }
11472 if (obj11) {
11473 {
11474 arg12 = (int) SWIG_PyObj_AsInt(obj11);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 }
11477 }
11478 {
11479 PyThreadState* __tstate = wxPyBeginAllowThreads();
11480 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11481
11482 wxPyEndAllowThreads(__tstate);
11483 if (PyErr_Occurred()) SWIG_fail;
11484 }
11485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11486 return resultobj;
11487 fail:
11488 return NULL;
11489 }
11490
11491
11492 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11493 PyObject *resultobj;
11494 wxDC *arg1 = (wxDC *) 0 ;
11495 wxPoint *arg2 = 0 ;
11496 wxSize *arg3 = 0 ;
11497 wxDC *arg4 = (wxDC *) 0 ;
11498 wxPoint *arg5 = 0 ;
11499 int arg6 = (int) wxCOPY ;
11500 bool arg7 = (bool) False ;
11501 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11502 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11503 bool result;
11504 wxPoint temp2 ;
11505 wxSize temp3 ;
11506 wxPoint temp5 ;
11507 wxPoint temp8 ;
11508 PyObject * obj0 = 0 ;
11509 PyObject * obj1 = 0 ;
11510 PyObject * obj2 = 0 ;
11511 PyObject * obj3 = 0 ;
11512 PyObject * obj4 = 0 ;
11513 PyObject * obj5 = 0 ;
11514 PyObject * obj6 = 0 ;
11515 PyObject * obj7 = 0 ;
11516 char *kwnames[] = {
11517 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11518 };
11519
11520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11522 {
11523 arg2 = &temp2;
11524 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11525 }
11526 {
11527 arg3 = &temp3;
11528 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11529 }
11530 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11531 {
11532 arg5 = &temp5;
11533 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11534 }
11535 if (obj5) {
11536 {
11537 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11538 if (PyErr_Occurred()) SWIG_fail;
11539 }
11540 }
11541 if (obj6) {
11542 {
11543 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
11544 if (PyErr_Occurred()) SWIG_fail;
11545 }
11546 }
11547 if (obj7) {
11548 {
11549 arg8 = &temp8;
11550 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11551 }
11552 }
11553 {
11554 PyThreadState* __tstate = wxPyBeginAllowThreads();
11555 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11556
11557 wxPyEndAllowThreads(__tstate);
11558 if (PyErr_Occurred()) SWIG_fail;
11559 }
11560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11561 return resultobj;
11562 fail:
11563 return NULL;
11564 }
11565
11566
11567 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11568 PyObject *resultobj;
11569 wxDC *arg1 = (wxDC *) 0 ;
11570 int arg2 ;
11571 wxPoint *arg3 = (wxPoint *) 0 ;
11572 int arg4 = (int) 0 ;
11573 int arg5 = (int) 0 ;
11574 PyObject * obj0 = 0 ;
11575 PyObject * obj1 = 0 ;
11576 PyObject * obj2 = 0 ;
11577 PyObject * obj3 = 0 ;
11578 char *kwnames[] = {
11579 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11580 };
11581
11582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11584 {
11585 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11586 if (arg3 == NULL) SWIG_fail;
11587 }
11588 if (obj2) {
11589 {
11590 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11591 if (PyErr_Occurred()) SWIG_fail;
11592 }
11593 }
11594 if (obj3) {
11595 {
11596 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11597 if (PyErr_Occurred()) SWIG_fail;
11598 }
11599 }
11600 {
11601 PyThreadState* __tstate = wxPyBeginAllowThreads();
11602 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11603
11604 wxPyEndAllowThreads(__tstate);
11605 if (PyErr_Occurred()) SWIG_fail;
11606 }
11607 Py_INCREF(Py_None); resultobj = Py_None;
11608 {
11609 if (arg3) delete [] arg3;
11610 }
11611 return resultobj;
11612 fail:
11613 {
11614 if (arg3) delete [] arg3;
11615 }
11616 return NULL;
11617 }
11618
11619
11620 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
11621 PyObject *resultobj;
11622 wxDC *arg1 = (wxDC *) 0 ;
11623 int arg2 ;
11624 wxPoint *arg3 = (wxPoint *) 0 ;
11625 int arg4 = (int) 0 ;
11626 int arg5 = (int) 0 ;
11627 int arg6 = (int) wxODDEVEN_RULE ;
11628 PyObject * obj0 = 0 ;
11629 PyObject * obj1 = 0 ;
11630 PyObject * obj2 = 0 ;
11631 PyObject * obj3 = 0 ;
11632 PyObject * obj4 = 0 ;
11633 char *kwnames[] = {
11634 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
11635 };
11636
11637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11639 {
11640 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11641 if (arg3 == NULL) SWIG_fail;
11642 }
11643 if (obj2) {
11644 {
11645 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11646 if (PyErr_Occurred()) SWIG_fail;
11647 }
11648 }
11649 if (obj3) {
11650 {
11651 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11652 if (PyErr_Occurred()) SWIG_fail;
11653 }
11654 }
11655 if (obj4) {
11656 {
11657 arg6 = (int) SWIG_PyObj_AsInt(obj4);
11658 if (PyErr_Occurred()) SWIG_fail;
11659 }
11660 }
11661 {
11662 PyThreadState* __tstate = wxPyBeginAllowThreads();
11663 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
11664
11665 wxPyEndAllowThreads(__tstate);
11666 if (PyErr_Occurred()) SWIG_fail;
11667 }
11668 Py_INCREF(Py_None); resultobj = Py_None;
11669 {
11670 if (arg3) delete [] arg3;
11671 }
11672 return resultobj;
11673 fail:
11674 {
11675 if (arg3) delete [] arg3;
11676 }
11677 return NULL;
11678 }
11679
11680
11681 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11682 PyObject *resultobj;
11683 wxDC *arg1 = (wxDC *) 0 ;
11684 wxString *arg2 = 0 ;
11685 wxRect *arg3 = 0 ;
11686 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11687 int arg5 = (int) -1 ;
11688 bool temp2 = False ;
11689 wxRect temp3 ;
11690 PyObject * obj0 = 0 ;
11691 PyObject * obj1 = 0 ;
11692 PyObject * obj2 = 0 ;
11693 PyObject * obj3 = 0 ;
11694 PyObject * obj4 = 0 ;
11695 char *kwnames[] = {
11696 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11697 };
11698
11699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11701 {
11702 arg2 = wxString_in_helper(obj1);
11703 if (arg2 == NULL) SWIG_fail;
11704 temp2 = True;
11705 }
11706 {
11707 arg3 = &temp3;
11708 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
11709 }
11710 if (obj3) {
11711 {
11712 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11713 if (PyErr_Occurred()) SWIG_fail;
11714 }
11715 }
11716 if (obj4) {
11717 {
11718 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11719 if (PyErr_Occurred()) SWIG_fail;
11720 }
11721 }
11722 {
11723 PyThreadState* __tstate = wxPyBeginAllowThreads();
11724 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
11725
11726 wxPyEndAllowThreads(__tstate);
11727 if (PyErr_Occurred()) SWIG_fail;
11728 }
11729 Py_INCREF(Py_None); resultobj = Py_None;
11730 {
11731 if (temp2)
11732 delete arg2;
11733 }
11734 return resultobj;
11735 fail:
11736 {
11737 if (temp2)
11738 delete arg2;
11739 }
11740 return NULL;
11741 }
11742
11743
11744 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11745 PyObject *resultobj;
11746 wxDC *arg1 = (wxDC *) 0 ;
11747 wxString *arg2 = 0 ;
11748 wxBitmap *arg3 = 0 ;
11749 wxRect *arg4 = 0 ;
11750 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11751 int arg6 = (int) -1 ;
11752 wxRect result;
11753 bool temp2 = False ;
11754 wxRect temp4 ;
11755 PyObject * obj0 = 0 ;
11756 PyObject * obj1 = 0 ;
11757 PyObject * obj2 = 0 ;
11758 PyObject * obj3 = 0 ;
11759 PyObject * obj4 = 0 ;
11760 PyObject * obj5 = 0 ;
11761 char *kwnames[] = {
11762 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11763 };
11764
11765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11767 {
11768 arg2 = wxString_in_helper(obj1);
11769 if (arg2 == NULL) SWIG_fail;
11770 temp2 = True;
11771 }
11772 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11773 if (arg3 == NULL) {
11774 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11775 }
11776 {
11777 arg4 = &temp4;
11778 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
11779 }
11780 if (obj4) {
11781 {
11782 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 }
11785 }
11786 if (obj5) {
11787 {
11788 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 }
11792 {
11793 PyThreadState* __tstate = wxPyBeginAllowThreads();
11794 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
11795
11796 wxPyEndAllowThreads(__tstate);
11797 if (PyErr_Occurred()) SWIG_fail;
11798 }
11799 {
11800 wxRect * resultptr;
11801 resultptr = new wxRect((wxRect &) result);
11802 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11803 }
11804 {
11805 if (temp2)
11806 delete arg2;
11807 }
11808 return resultobj;
11809 fail:
11810 {
11811 if (temp2)
11812 delete arg2;
11813 }
11814 return NULL;
11815 }
11816
11817
11818 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
11819 PyObject *resultobj;
11820 wxDC *arg1 = (wxDC *) 0 ;
11821 int arg2 ;
11822 wxPoint *arg3 = (wxPoint *) 0 ;
11823 PyObject * obj0 = 0 ;
11824 PyObject * obj1 = 0 ;
11825 char *kwnames[] = {
11826 (char *) "self",(char *) "points", NULL
11827 };
11828
11829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
11830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11831 {
11832 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11833 if (arg3 == NULL) SWIG_fail;
11834 }
11835 {
11836 PyThreadState* __tstate = wxPyBeginAllowThreads();
11837 (arg1)->DrawSpline(arg2,arg3);
11838
11839 wxPyEndAllowThreads(__tstate);
11840 if (PyErr_Occurred()) SWIG_fail;
11841 }
11842 Py_INCREF(Py_None); resultobj = Py_None;
11843 {
11844 if (arg3) delete [] arg3;
11845 }
11846 return resultobj;
11847 fail:
11848 {
11849 if (arg3) delete [] arg3;
11850 }
11851 return NULL;
11852 }
11853
11854
11855 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11856 PyObject *resultobj;
11857 wxDC *arg1 = (wxDC *) 0 ;
11858 PyObject * obj0 = 0 ;
11859 char *kwnames[] = {
11860 (char *) "self", NULL
11861 };
11862
11863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
11864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 (arg1)->Clear();
11868
11869 wxPyEndAllowThreads(__tstate);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 Py_INCREF(Py_None); resultobj = Py_None;
11873 return resultobj;
11874 fail:
11875 return NULL;
11876 }
11877
11878
11879 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11880 PyObject *resultobj;
11881 wxDC *arg1 = (wxDC *) 0 ;
11882 wxString *arg2 = 0 ;
11883 bool result;
11884 bool temp2 = False ;
11885 PyObject * obj0 = 0 ;
11886 PyObject * obj1 = 0 ;
11887 char *kwnames[] = {
11888 (char *) "self",(char *) "message", NULL
11889 };
11890
11891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
11892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11893 {
11894 arg2 = wxString_in_helper(obj1);
11895 if (arg2 == NULL) SWIG_fail;
11896 temp2 = True;
11897 }
11898 {
11899 PyThreadState* __tstate = wxPyBeginAllowThreads();
11900 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
11901
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11906 {
11907 if (temp2)
11908 delete arg2;
11909 }
11910 return resultobj;
11911 fail:
11912 {
11913 if (temp2)
11914 delete arg2;
11915 }
11916 return NULL;
11917 }
11918
11919
11920 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11921 PyObject *resultobj;
11922 wxDC *arg1 = (wxDC *) 0 ;
11923 PyObject * obj0 = 0 ;
11924 char *kwnames[] = {
11925 (char *) "self", NULL
11926 };
11927
11928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
11929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11930 {
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
11932 (arg1)->EndDoc();
11933
11934 wxPyEndAllowThreads(__tstate);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 Py_INCREF(Py_None); resultobj = Py_None;
11938 return resultobj;
11939 fail:
11940 return NULL;
11941 }
11942
11943
11944 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11945 PyObject *resultobj;
11946 wxDC *arg1 = (wxDC *) 0 ;
11947 PyObject * obj0 = 0 ;
11948 char *kwnames[] = {
11949 (char *) "self", NULL
11950 };
11951
11952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
11953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11954 {
11955 PyThreadState* __tstate = wxPyBeginAllowThreads();
11956 (arg1)->StartPage();
11957
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 Py_INCREF(Py_None); resultobj = Py_None;
11962 return resultobj;
11963 fail:
11964 return NULL;
11965 }
11966
11967
11968 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11969 PyObject *resultobj;
11970 wxDC *arg1 = (wxDC *) 0 ;
11971 PyObject * obj0 = 0 ;
11972 char *kwnames[] = {
11973 (char *) "self", NULL
11974 };
11975
11976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
11977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11978 {
11979 PyThreadState* __tstate = wxPyBeginAllowThreads();
11980 (arg1)->EndPage();
11981
11982 wxPyEndAllowThreads(__tstate);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 }
11985 Py_INCREF(Py_None); resultobj = Py_None;
11986 return resultobj;
11987 fail:
11988 return NULL;
11989 }
11990
11991
11992 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11993 PyObject *resultobj;
11994 wxDC *arg1 = (wxDC *) 0 ;
11995 wxFont *arg2 = 0 ;
11996 PyObject * obj0 = 0 ;
11997 PyObject * obj1 = 0 ;
11998 char *kwnames[] = {
11999 (char *) "self",(char *) "font", NULL
12000 };
12001
12002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12004 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12005 if (arg2 == NULL) {
12006 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12007 }
12008 {
12009 PyThreadState* __tstate = wxPyBeginAllowThreads();
12010 (arg1)->SetFont((wxFont const &)*arg2);
12011
12012 wxPyEndAllowThreads(__tstate);
12013 if (PyErr_Occurred()) SWIG_fail;
12014 }
12015 Py_INCREF(Py_None); resultobj = Py_None;
12016 return resultobj;
12017 fail:
12018 return NULL;
12019 }
12020
12021
12022 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12023 PyObject *resultobj;
12024 wxDC *arg1 = (wxDC *) 0 ;
12025 wxPen *arg2 = 0 ;
12026 PyObject * obj0 = 0 ;
12027 PyObject * obj1 = 0 ;
12028 char *kwnames[] = {
12029 (char *) "self",(char *) "pen", NULL
12030 };
12031
12032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12034 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12035 if (arg2 == NULL) {
12036 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12037 }
12038 {
12039 PyThreadState* __tstate = wxPyBeginAllowThreads();
12040 (arg1)->SetPen((wxPen const &)*arg2);
12041
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
12045 Py_INCREF(Py_None); resultobj = Py_None;
12046 return resultobj;
12047 fail:
12048 return NULL;
12049 }
12050
12051
12052 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12053 PyObject *resultobj;
12054 wxDC *arg1 = (wxDC *) 0 ;
12055 wxBrush *arg2 = 0 ;
12056 PyObject * obj0 = 0 ;
12057 PyObject * obj1 = 0 ;
12058 char *kwnames[] = {
12059 (char *) "self",(char *) "brush", NULL
12060 };
12061
12062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12064 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12065 if (arg2 == NULL) {
12066 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12067 }
12068 {
12069 PyThreadState* __tstate = wxPyBeginAllowThreads();
12070 (arg1)->SetBrush((wxBrush const &)*arg2);
12071
12072 wxPyEndAllowThreads(__tstate);
12073 if (PyErr_Occurred()) SWIG_fail;
12074 }
12075 Py_INCREF(Py_None); resultobj = Py_None;
12076 return resultobj;
12077 fail:
12078 return NULL;
12079 }
12080
12081
12082 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12083 PyObject *resultobj;
12084 wxDC *arg1 = (wxDC *) 0 ;
12085 wxBrush *arg2 = 0 ;
12086 PyObject * obj0 = 0 ;
12087 PyObject * obj1 = 0 ;
12088 char *kwnames[] = {
12089 (char *) "self",(char *) "brush", NULL
12090 };
12091
12092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12094 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12095 if (arg2 == NULL) {
12096 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12097 }
12098 {
12099 PyThreadState* __tstate = wxPyBeginAllowThreads();
12100 (arg1)->SetBackground((wxBrush const &)*arg2);
12101
12102 wxPyEndAllowThreads(__tstate);
12103 if (PyErr_Occurred()) SWIG_fail;
12104 }
12105 Py_INCREF(Py_None); resultobj = Py_None;
12106 return resultobj;
12107 fail:
12108 return NULL;
12109 }
12110
12111
12112 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12113 PyObject *resultobj;
12114 wxDC *arg1 = (wxDC *) 0 ;
12115 int arg2 ;
12116 PyObject * obj0 = 0 ;
12117 PyObject * obj1 = 0 ;
12118 char *kwnames[] = {
12119 (char *) "self",(char *) "mode", NULL
12120 };
12121
12122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12124 {
12125 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12126 if (PyErr_Occurred()) SWIG_fail;
12127 }
12128 {
12129 PyThreadState* __tstate = wxPyBeginAllowThreads();
12130 (arg1)->SetBackgroundMode(arg2);
12131
12132 wxPyEndAllowThreads(__tstate);
12133 if (PyErr_Occurred()) SWIG_fail;
12134 }
12135 Py_INCREF(Py_None); resultobj = Py_None;
12136 return resultobj;
12137 fail:
12138 return NULL;
12139 }
12140
12141
12142 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12143 PyObject *resultobj;
12144 wxDC *arg1 = (wxDC *) 0 ;
12145 wxPalette *arg2 = 0 ;
12146 PyObject * obj0 = 0 ;
12147 PyObject * obj1 = 0 ;
12148 char *kwnames[] = {
12149 (char *) "self",(char *) "palette", NULL
12150 };
12151
12152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12154 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12155 if (arg2 == NULL) {
12156 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12157 }
12158 {
12159 PyThreadState* __tstate = wxPyBeginAllowThreads();
12160 (arg1)->SetPalette((wxPalette const &)*arg2);
12161
12162 wxPyEndAllowThreads(__tstate);
12163 if (PyErr_Occurred()) SWIG_fail;
12164 }
12165 Py_INCREF(Py_None); resultobj = Py_None;
12166 return resultobj;
12167 fail:
12168 return NULL;
12169 }
12170
12171
12172 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12173 PyObject *resultobj;
12174 wxDC *arg1 = (wxDC *) 0 ;
12175 int arg2 ;
12176 int arg3 ;
12177 int arg4 ;
12178 int arg5 ;
12179 PyObject * obj0 = 0 ;
12180 PyObject * obj1 = 0 ;
12181 PyObject * obj2 = 0 ;
12182 PyObject * obj3 = 0 ;
12183 PyObject * obj4 = 0 ;
12184 char *kwnames[] = {
12185 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12186 };
12187
12188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12190 {
12191 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 {
12195 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12196 if (PyErr_Occurred()) SWIG_fail;
12197 }
12198 {
12199 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12200 if (PyErr_Occurred()) SWIG_fail;
12201 }
12202 {
12203 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 {
12207 PyThreadState* __tstate = wxPyBeginAllowThreads();
12208 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12209
12210 wxPyEndAllowThreads(__tstate);
12211 if (PyErr_Occurred()) SWIG_fail;
12212 }
12213 Py_INCREF(Py_None); resultobj = Py_None;
12214 return resultobj;
12215 fail:
12216 return NULL;
12217 }
12218
12219
12220 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12221 PyObject *resultobj;
12222 wxDC *arg1 = (wxDC *) 0 ;
12223 wxPoint *arg2 = 0 ;
12224 wxSize *arg3 = 0 ;
12225 wxPoint temp2 ;
12226 wxSize temp3 ;
12227 PyObject * obj0 = 0 ;
12228 PyObject * obj1 = 0 ;
12229 PyObject * obj2 = 0 ;
12230 char *kwnames[] = {
12231 (char *) "self",(char *) "pt",(char *) "sz", NULL
12232 };
12233
12234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12236 {
12237 arg2 = &temp2;
12238 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12239 }
12240 {
12241 arg3 = &temp3;
12242 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12243 }
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12247
12248 wxPyEndAllowThreads(__tstate);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 Py_INCREF(Py_None); resultobj = Py_None;
12252 return resultobj;
12253 fail:
12254 return NULL;
12255 }
12256
12257
12258 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12259 PyObject *resultobj;
12260 wxDC *arg1 = (wxDC *) 0 ;
12261 wxRect *arg2 = 0 ;
12262 wxRect temp2 ;
12263 PyObject * obj0 = 0 ;
12264 PyObject * obj1 = 0 ;
12265 char *kwnames[] = {
12266 (char *) "self",(char *) "rect", NULL
12267 };
12268
12269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12271 {
12272 arg2 = &temp2;
12273 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12274 }
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12278
12279 wxPyEndAllowThreads(__tstate);
12280 if (PyErr_Occurred()) SWIG_fail;
12281 }
12282 Py_INCREF(Py_None); resultobj = Py_None;
12283 return resultobj;
12284 fail:
12285 return NULL;
12286 }
12287
12288
12289 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12290 PyObject *resultobj;
12291 wxDC *arg1 = (wxDC *) 0 ;
12292 wxRegion *arg2 = 0 ;
12293 PyObject * obj0 = 0 ;
12294 PyObject * obj1 = 0 ;
12295 char *kwnames[] = {
12296 (char *) "self",(char *) "region", NULL
12297 };
12298
12299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12301 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12302 if (arg2 == NULL) {
12303 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12304 }
12305 {
12306 PyThreadState* __tstate = wxPyBeginAllowThreads();
12307 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12308
12309 wxPyEndAllowThreads(__tstate);
12310 if (PyErr_Occurred()) SWIG_fail;
12311 }
12312 Py_INCREF(Py_None); resultobj = Py_None;
12313 return resultobj;
12314 fail:
12315 return NULL;
12316 }
12317
12318
12319 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12320 PyObject *resultobj;
12321 wxDC *arg1 = (wxDC *) 0 ;
12322 PyObject * obj0 = 0 ;
12323 char *kwnames[] = {
12324 (char *) "self", NULL
12325 };
12326
12327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12329 {
12330 PyThreadState* __tstate = wxPyBeginAllowThreads();
12331 (arg1)->DestroyClippingRegion();
12332
12333 wxPyEndAllowThreads(__tstate);
12334 if (PyErr_Occurred()) SWIG_fail;
12335 }
12336 Py_INCREF(Py_None); resultobj = Py_None;
12337 return resultobj;
12338 fail:
12339 return NULL;
12340 }
12341
12342
12343 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12344 PyObject *resultobj;
12345 wxDC *arg1 = (wxDC *) 0 ;
12346 int *arg2 = (int *) 0 ;
12347 int *arg3 = (int *) 0 ;
12348 int *arg4 = (int *) 0 ;
12349 int *arg5 = (int *) 0 ;
12350 int temp2 ;
12351 int temp3 ;
12352 int temp4 ;
12353 int temp5 ;
12354 PyObject * obj0 = 0 ;
12355 char *kwnames[] = {
12356 (char *) "self", NULL
12357 };
12358
12359 arg2 = &temp2;
12360 arg3 = &temp3;
12361 arg4 = &temp4;
12362 arg5 = &temp5;
12363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12368
12369 wxPyEndAllowThreads(__tstate);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 Py_INCREF(Py_None); resultobj = Py_None;
12373 {
12374 PyObject *o = PyInt_FromLong((long) (*arg2));
12375 resultobj = t_output_helper(resultobj,o);
12376 }
12377 {
12378 PyObject *o = PyInt_FromLong((long) (*arg3));
12379 resultobj = t_output_helper(resultobj,o);
12380 }
12381 {
12382 PyObject *o = PyInt_FromLong((long) (*arg4));
12383 resultobj = t_output_helper(resultobj,o);
12384 }
12385 {
12386 PyObject *o = PyInt_FromLong((long) (*arg5));
12387 resultobj = t_output_helper(resultobj,o);
12388 }
12389 return resultobj;
12390 fail:
12391 return NULL;
12392 }
12393
12394
12395 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12396 PyObject *resultobj;
12397 wxDC *arg1 = (wxDC *) 0 ;
12398 wxRect result;
12399 PyObject * obj0 = 0 ;
12400 char *kwnames[] = {
12401 (char *) "self", NULL
12402 };
12403
12404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12406 {
12407 PyThreadState* __tstate = wxPyBeginAllowThreads();
12408 result = wxDC_GetClippingRect(arg1);
12409
12410 wxPyEndAllowThreads(__tstate);
12411 if (PyErr_Occurred()) SWIG_fail;
12412 }
12413 {
12414 wxRect * resultptr;
12415 resultptr = new wxRect((wxRect &) result);
12416 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12417 }
12418 return resultobj;
12419 fail:
12420 return NULL;
12421 }
12422
12423
12424 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12425 PyObject *resultobj;
12426 wxDC *arg1 = (wxDC *) 0 ;
12427 int result;
12428 PyObject * obj0 = 0 ;
12429 char *kwnames[] = {
12430 (char *) "self", NULL
12431 };
12432
12433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12435 {
12436 PyThreadState* __tstate = wxPyBeginAllowThreads();
12437 result = (int)((wxDC const *)arg1)->GetCharHeight();
12438
12439 wxPyEndAllowThreads(__tstate);
12440 if (PyErr_Occurred()) SWIG_fail;
12441 }
12442 resultobj = SWIG_PyObj_FromInt((int)result);
12443 return resultobj;
12444 fail:
12445 return NULL;
12446 }
12447
12448
12449 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12450 PyObject *resultobj;
12451 wxDC *arg1 = (wxDC *) 0 ;
12452 int result;
12453 PyObject * obj0 = 0 ;
12454 char *kwnames[] = {
12455 (char *) "self", NULL
12456 };
12457
12458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12460 {
12461 PyThreadState* __tstate = wxPyBeginAllowThreads();
12462 result = (int)((wxDC const *)arg1)->GetCharWidth();
12463
12464 wxPyEndAllowThreads(__tstate);
12465 if (PyErr_Occurred()) SWIG_fail;
12466 }
12467 resultobj = SWIG_PyObj_FromInt((int)result);
12468 return resultobj;
12469 fail:
12470 return NULL;
12471 }
12472
12473
12474 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12475 PyObject *resultobj;
12476 wxDC *arg1 = (wxDC *) 0 ;
12477 wxString *arg2 = 0 ;
12478 int *arg3 = (int *) 0 ;
12479 int *arg4 = (int *) 0 ;
12480 bool temp2 = False ;
12481 int temp3 ;
12482 int temp4 ;
12483 PyObject * obj0 = 0 ;
12484 PyObject * obj1 = 0 ;
12485 char *kwnames[] = {
12486 (char *) "self",(char *) "string", NULL
12487 };
12488
12489 arg3 = &temp3;
12490 arg4 = &temp4;
12491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12493 {
12494 arg2 = wxString_in_helper(obj1);
12495 if (arg2 == NULL) SWIG_fail;
12496 temp2 = True;
12497 }
12498 {
12499 PyThreadState* __tstate = wxPyBeginAllowThreads();
12500 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12501
12502 wxPyEndAllowThreads(__tstate);
12503 if (PyErr_Occurred()) SWIG_fail;
12504 }
12505 Py_INCREF(Py_None); resultobj = Py_None;
12506 {
12507 PyObject *o = PyInt_FromLong((long) (*arg3));
12508 resultobj = t_output_helper(resultobj,o);
12509 }
12510 {
12511 PyObject *o = PyInt_FromLong((long) (*arg4));
12512 resultobj = t_output_helper(resultobj,o);
12513 }
12514 {
12515 if (temp2)
12516 delete arg2;
12517 }
12518 return resultobj;
12519 fail:
12520 {
12521 if (temp2)
12522 delete arg2;
12523 }
12524 return NULL;
12525 }
12526
12527
12528 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12529 PyObject *resultobj;
12530 wxDC *arg1 = (wxDC *) 0 ;
12531 wxString *arg2 = 0 ;
12532 int *arg3 = (int *) 0 ;
12533 int *arg4 = (int *) 0 ;
12534 int *arg5 = (int *) 0 ;
12535 int *arg6 = (int *) 0 ;
12536 wxFont *arg7 = (wxFont *) NULL ;
12537 bool temp2 = False ;
12538 int temp3 ;
12539 int temp4 ;
12540 int temp5 ;
12541 int temp6 ;
12542 PyObject * obj0 = 0 ;
12543 PyObject * obj1 = 0 ;
12544 PyObject * obj2 = 0 ;
12545 char *kwnames[] = {
12546 (char *) "self",(char *) "string",(char *) "font", NULL
12547 };
12548
12549 arg3 = &temp3;
12550 arg4 = &temp4;
12551 arg5 = &temp5;
12552 arg6 = &temp6;
12553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12555 {
12556 arg2 = wxString_in_helper(obj1);
12557 if (arg2 == NULL) SWIG_fail;
12558 temp2 = True;
12559 }
12560 if (obj2) {
12561 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12562 }
12563 {
12564 PyThreadState* __tstate = wxPyBeginAllowThreads();
12565 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12566
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 Py_INCREF(Py_None); resultobj = Py_None;
12571 {
12572 PyObject *o = PyInt_FromLong((long) (*arg3));
12573 resultobj = t_output_helper(resultobj,o);
12574 }
12575 {
12576 PyObject *o = PyInt_FromLong((long) (*arg4));
12577 resultobj = t_output_helper(resultobj,o);
12578 }
12579 {
12580 PyObject *o = PyInt_FromLong((long) (*arg5));
12581 resultobj = t_output_helper(resultobj,o);
12582 }
12583 {
12584 PyObject *o = PyInt_FromLong((long) (*arg6));
12585 resultobj = t_output_helper(resultobj,o);
12586 }
12587 {
12588 if (temp2)
12589 delete arg2;
12590 }
12591 return resultobj;
12592 fail:
12593 {
12594 if (temp2)
12595 delete arg2;
12596 }
12597 return NULL;
12598 }
12599
12600
12601 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12602 PyObject *resultobj;
12603 wxDC *arg1 = (wxDC *) 0 ;
12604 wxString *arg2 = 0 ;
12605 int *arg3 = (int *) 0 ;
12606 int *arg4 = (int *) 0 ;
12607 int *arg5 = (int *) 0 ;
12608 wxFont *arg6 = (wxFont *) NULL ;
12609 bool temp2 = False ;
12610 int temp3 ;
12611 int temp4 ;
12612 int temp5 ;
12613 PyObject * obj0 = 0 ;
12614 PyObject * obj1 = 0 ;
12615 PyObject * obj2 = 0 ;
12616 char *kwnames[] = {
12617 (char *) "self",(char *) "text",(char *) "font", NULL
12618 };
12619
12620 arg3 = &temp3;
12621 arg4 = &temp4;
12622 arg5 = &temp5;
12623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12625 {
12626 arg2 = wxString_in_helper(obj1);
12627 if (arg2 == NULL) SWIG_fail;
12628 temp2 = True;
12629 }
12630 if (obj2) {
12631 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12632 }
12633 {
12634 PyThreadState* __tstate = wxPyBeginAllowThreads();
12635 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12636
12637 wxPyEndAllowThreads(__tstate);
12638 if (PyErr_Occurred()) SWIG_fail;
12639 }
12640 Py_INCREF(Py_None); resultobj = Py_None;
12641 {
12642 PyObject *o = PyInt_FromLong((long) (*arg3));
12643 resultobj = t_output_helper(resultobj,o);
12644 }
12645 {
12646 PyObject *o = PyInt_FromLong((long) (*arg4));
12647 resultobj = t_output_helper(resultobj,o);
12648 }
12649 {
12650 PyObject *o = PyInt_FromLong((long) (*arg5));
12651 resultobj = t_output_helper(resultobj,o);
12652 }
12653 {
12654 if (temp2)
12655 delete arg2;
12656 }
12657 return resultobj;
12658 fail:
12659 {
12660 if (temp2)
12661 delete arg2;
12662 }
12663 return NULL;
12664 }
12665
12666
12667 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
12668 PyObject *resultobj;
12669 wxDC *arg1 = (wxDC *) 0 ;
12670 wxString *arg2 = 0 ;
12671 wxArrayInt result;
12672 bool temp2 = False ;
12673 PyObject * obj0 = 0 ;
12674 PyObject * obj1 = 0 ;
12675 char *kwnames[] = {
12676 (char *) "self",(char *) "text", NULL
12677 };
12678
12679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
12680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12681 {
12682 arg2 = wxString_in_helper(obj1);
12683 if (arg2 == NULL) SWIG_fail;
12684 temp2 = True;
12685 }
12686 {
12687 PyThreadState* __tstate = wxPyBeginAllowThreads();
12688 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
12689
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 {
12694 resultobj = PyList_New(0);
12695 size_t idx;
12696 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
12697 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
12698 PyList_Append(resultobj, val);
12699 Py_DECREF(val);
12700 }
12701 }
12702 {
12703 if (temp2)
12704 delete arg2;
12705 }
12706 return resultobj;
12707 fail:
12708 {
12709 if (temp2)
12710 delete arg2;
12711 }
12712 return NULL;
12713 }
12714
12715
12716 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12717 PyObject *resultobj;
12718 wxDC *arg1 = (wxDC *) 0 ;
12719 wxSize result;
12720 PyObject * obj0 = 0 ;
12721 char *kwnames[] = {
12722 (char *) "self", NULL
12723 };
12724
12725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
12726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12727 {
12728 PyThreadState* __tstate = wxPyBeginAllowThreads();
12729 result = (arg1)->GetSize();
12730
12731 wxPyEndAllowThreads(__tstate);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 {
12735 wxSize * resultptr;
12736 resultptr = new wxSize((wxSize &) result);
12737 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12738 }
12739 return resultobj;
12740 fail:
12741 return NULL;
12742 }
12743
12744
12745 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12746 PyObject *resultobj;
12747 wxDC *arg1 = (wxDC *) 0 ;
12748 int *arg2 = (int *) 0 ;
12749 int *arg3 = (int *) 0 ;
12750 int temp2 ;
12751 int temp3 ;
12752 PyObject * obj0 = 0 ;
12753 char *kwnames[] = {
12754 (char *) "self", NULL
12755 };
12756
12757 arg2 = &temp2;
12758 arg3 = &temp3;
12759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
12760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12761 {
12762 PyThreadState* __tstate = wxPyBeginAllowThreads();
12763 (arg1)->GetSize(arg2,arg3);
12764
12765 wxPyEndAllowThreads(__tstate);
12766 if (PyErr_Occurred()) SWIG_fail;
12767 }
12768 Py_INCREF(Py_None); resultobj = Py_None;
12769 {
12770 PyObject *o = PyInt_FromLong((long) (*arg2));
12771 resultobj = t_output_helper(resultobj,o);
12772 }
12773 {
12774 PyObject *o = PyInt_FromLong((long) (*arg3));
12775 resultobj = t_output_helper(resultobj,o);
12776 }
12777 return resultobj;
12778 fail:
12779 return NULL;
12780 }
12781
12782
12783 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
12784 PyObject *resultobj;
12785 wxDC *arg1 = (wxDC *) 0 ;
12786 wxSize result;
12787 PyObject * obj0 = 0 ;
12788 char *kwnames[] = {
12789 (char *) "self", NULL
12790 };
12791
12792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
12793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12794 {
12795 PyThreadState* __tstate = wxPyBeginAllowThreads();
12796 result = ((wxDC const *)arg1)->GetSizeMM();
12797
12798 wxPyEndAllowThreads(__tstate);
12799 if (PyErr_Occurred()) SWIG_fail;
12800 }
12801 {
12802 wxSize * resultptr;
12803 resultptr = new wxSize((wxSize &) result);
12804 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12805 }
12806 return resultobj;
12807 fail:
12808 return NULL;
12809 }
12810
12811
12812 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj;
12814 wxDC *arg1 = (wxDC *) 0 ;
12815 int *arg2 = (int *) 0 ;
12816 int *arg3 = (int *) 0 ;
12817 int temp2 ;
12818 int temp3 ;
12819 PyObject * obj0 = 0 ;
12820 char *kwnames[] = {
12821 (char *) "self", NULL
12822 };
12823
12824 arg2 = &temp2;
12825 arg3 = &temp3;
12826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
12827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12828 {
12829 PyThreadState* __tstate = wxPyBeginAllowThreads();
12830 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
12831
12832 wxPyEndAllowThreads(__tstate);
12833 if (PyErr_Occurred()) SWIG_fail;
12834 }
12835 Py_INCREF(Py_None); resultobj = Py_None;
12836 {
12837 PyObject *o = PyInt_FromLong((long) (*arg2));
12838 resultobj = t_output_helper(resultobj,o);
12839 }
12840 {
12841 PyObject *o = PyInt_FromLong((long) (*arg3));
12842 resultobj = t_output_helper(resultobj,o);
12843 }
12844 return resultobj;
12845 fail:
12846 return NULL;
12847 }
12848
12849
12850 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
12851 PyObject *resultobj;
12852 wxDC *arg1 = (wxDC *) 0 ;
12853 int arg2 ;
12854 int result;
12855 PyObject * obj0 = 0 ;
12856 PyObject * obj1 = 0 ;
12857 char *kwnames[] = {
12858 (char *) "self",(char *) "x", NULL
12859 };
12860
12861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
12862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12863 {
12864 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12865 if (PyErr_Occurred()) SWIG_fail;
12866 }
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
12870
12871 wxPyEndAllowThreads(__tstate);
12872 if (PyErr_Occurred()) SWIG_fail;
12873 }
12874 resultobj = SWIG_PyObj_FromInt((int)result);
12875 return resultobj;
12876 fail:
12877 return NULL;
12878 }
12879
12880
12881 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
12882 PyObject *resultobj;
12883 wxDC *arg1 = (wxDC *) 0 ;
12884 int arg2 ;
12885 int result;
12886 PyObject * obj0 = 0 ;
12887 PyObject * obj1 = 0 ;
12888 char *kwnames[] = {
12889 (char *) "self",(char *) "y", NULL
12890 };
12891
12892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
12893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12894 {
12895 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12896 if (PyErr_Occurred()) SWIG_fail;
12897 }
12898 {
12899 PyThreadState* __tstate = wxPyBeginAllowThreads();
12900 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
12901
12902 wxPyEndAllowThreads(__tstate);
12903 if (PyErr_Occurred()) SWIG_fail;
12904 }
12905 resultobj = SWIG_PyObj_FromInt((int)result);
12906 return resultobj;
12907 fail:
12908 return NULL;
12909 }
12910
12911
12912 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12913 PyObject *resultobj;
12914 wxDC *arg1 = (wxDC *) 0 ;
12915 int arg2 ;
12916 int result;
12917 PyObject * obj0 = 0 ;
12918 PyObject * obj1 = 0 ;
12919 char *kwnames[] = {
12920 (char *) "self",(char *) "x", NULL
12921 };
12922
12923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
12924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12925 {
12926 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12927 if (PyErr_Occurred()) SWIG_fail;
12928 }
12929 {
12930 PyThreadState* __tstate = wxPyBeginAllowThreads();
12931 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
12932
12933 wxPyEndAllowThreads(__tstate);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 }
12936 resultobj = SWIG_PyObj_FromInt((int)result);
12937 return resultobj;
12938 fail:
12939 return NULL;
12940 }
12941
12942
12943 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12944 PyObject *resultobj;
12945 wxDC *arg1 = (wxDC *) 0 ;
12946 int arg2 ;
12947 int result;
12948 PyObject * obj0 = 0 ;
12949 PyObject * obj1 = 0 ;
12950 char *kwnames[] = {
12951 (char *) "self",(char *) "y", NULL
12952 };
12953
12954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
12955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12956 {
12957 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12958 if (PyErr_Occurred()) SWIG_fail;
12959 }
12960 {
12961 PyThreadState* __tstate = wxPyBeginAllowThreads();
12962 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
12963
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 resultobj = SWIG_PyObj_FromInt((int)result);
12968 return resultobj;
12969 fail:
12970 return NULL;
12971 }
12972
12973
12974 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
12975 PyObject *resultobj;
12976 wxDC *arg1 = (wxDC *) 0 ;
12977 int arg2 ;
12978 int result;
12979 PyObject * obj0 = 0 ;
12980 PyObject * obj1 = 0 ;
12981 char *kwnames[] = {
12982 (char *) "self",(char *) "x", NULL
12983 };
12984
12985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
12986 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12987 {
12988 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12989 if (PyErr_Occurred()) SWIG_fail;
12990 }
12991 {
12992 PyThreadState* __tstate = wxPyBeginAllowThreads();
12993 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
12994
12995 wxPyEndAllowThreads(__tstate);
12996 if (PyErr_Occurred()) SWIG_fail;
12997 }
12998 resultobj = SWIG_PyObj_FromInt((int)result);
12999 return resultobj;
13000 fail:
13001 return NULL;
13002 }
13003
13004
13005 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13006 PyObject *resultobj;
13007 wxDC *arg1 = (wxDC *) 0 ;
13008 int arg2 ;
13009 int result;
13010 PyObject * obj0 = 0 ;
13011 PyObject * obj1 = 0 ;
13012 char *kwnames[] = {
13013 (char *) "self",(char *) "y", NULL
13014 };
13015
13016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13018 {
13019 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13020 if (PyErr_Occurred()) SWIG_fail;
13021 }
13022 {
13023 PyThreadState* __tstate = wxPyBeginAllowThreads();
13024 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13025
13026 wxPyEndAllowThreads(__tstate);
13027 if (PyErr_Occurred()) SWIG_fail;
13028 }
13029 resultobj = SWIG_PyObj_FromInt((int)result);
13030 return resultobj;
13031 fail:
13032 return NULL;
13033 }
13034
13035
13036 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13037 PyObject *resultobj;
13038 wxDC *arg1 = (wxDC *) 0 ;
13039 int arg2 ;
13040 int result;
13041 PyObject * obj0 = 0 ;
13042 PyObject * obj1 = 0 ;
13043 char *kwnames[] = {
13044 (char *) "self",(char *) "x", NULL
13045 };
13046
13047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13049 {
13050 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13051 if (PyErr_Occurred()) SWIG_fail;
13052 }
13053 {
13054 PyThreadState* __tstate = wxPyBeginAllowThreads();
13055 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13056
13057 wxPyEndAllowThreads(__tstate);
13058 if (PyErr_Occurred()) SWIG_fail;
13059 }
13060 resultobj = SWIG_PyObj_FromInt((int)result);
13061 return resultobj;
13062 fail:
13063 return NULL;
13064 }
13065
13066
13067 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13068 PyObject *resultobj;
13069 wxDC *arg1 = (wxDC *) 0 ;
13070 int arg2 ;
13071 int result;
13072 PyObject * obj0 = 0 ;
13073 PyObject * obj1 = 0 ;
13074 char *kwnames[] = {
13075 (char *) "self",(char *) "y", NULL
13076 };
13077
13078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13080 {
13081 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13082 if (PyErr_Occurred()) SWIG_fail;
13083 }
13084 {
13085 PyThreadState* __tstate = wxPyBeginAllowThreads();
13086 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13087
13088 wxPyEndAllowThreads(__tstate);
13089 if (PyErr_Occurred()) SWIG_fail;
13090 }
13091 resultobj = SWIG_PyObj_FromInt((int)result);
13092 return resultobj;
13093 fail:
13094 return NULL;
13095 }
13096
13097
13098 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13099 PyObject *resultobj;
13100 wxDC *arg1 = (wxDC *) 0 ;
13101 bool result;
13102 PyObject * obj0 = 0 ;
13103 char *kwnames[] = {
13104 (char *) "self", NULL
13105 };
13106
13107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13109 {
13110 PyThreadState* __tstate = wxPyBeginAllowThreads();
13111 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13112
13113 wxPyEndAllowThreads(__tstate);
13114 if (PyErr_Occurred()) SWIG_fail;
13115 }
13116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13117 return resultobj;
13118 fail:
13119 return NULL;
13120 }
13121
13122
13123 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13124 PyObject *resultobj;
13125 wxDC *arg1 = (wxDC *) 0 ;
13126 bool result;
13127 PyObject * obj0 = 0 ;
13128 char *kwnames[] = {
13129 (char *) "self", NULL
13130 };
13131
13132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13133 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13134 {
13135 PyThreadState* __tstate = wxPyBeginAllowThreads();
13136 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13137
13138 wxPyEndAllowThreads(__tstate);
13139 if (PyErr_Occurred()) SWIG_fail;
13140 }
13141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13142 return resultobj;
13143 fail:
13144 return NULL;
13145 }
13146
13147
13148 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13149 PyObject *resultobj;
13150 wxDC *arg1 = (wxDC *) 0 ;
13151 int result;
13152 PyObject * obj0 = 0 ;
13153 char *kwnames[] = {
13154 (char *) "self", NULL
13155 };
13156
13157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13159 {
13160 PyThreadState* __tstate = wxPyBeginAllowThreads();
13161 result = (int)((wxDC const *)arg1)->GetDepth();
13162
13163 wxPyEndAllowThreads(__tstate);
13164 if (PyErr_Occurred()) SWIG_fail;
13165 }
13166 resultobj = SWIG_PyObj_FromInt((int)result);
13167 return resultobj;
13168 fail:
13169 return NULL;
13170 }
13171
13172
13173 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13174 PyObject *resultobj;
13175 wxDC *arg1 = (wxDC *) 0 ;
13176 wxSize result;
13177 PyObject * obj0 = 0 ;
13178 char *kwnames[] = {
13179 (char *) "self", NULL
13180 };
13181
13182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13184 {
13185 PyThreadState* __tstate = wxPyBeginAllowThreads();
13186 result = ((wxDC const *)arg1)->GetPPI();
13187
13188 wxPyEndAllowThreads(__tstate);
13189 if (PyErr_Occurred()) SWIG_fail;
13190 }
13191 {
13192 wxSize * resultptr;
13193 resultptr = new wxSize((wxSize &) result);
13194 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13195 }
13196 return resultobj;
13197 fail:
13198 return NULL;
13199 }
13200
13201
13202 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13203 PyObject *resultobj;
13204 wxDC *arg1 = (wxDC *) 0 ;
13205 bool result;
13206 PyObject * obj0 = 0 ;
13207 char *kwnames[] = {
13208 (char *) "self", NULL
13209 };
13210
13211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13213 {
13214 PyThreadState* __tstate = wxPyBeginAllowThreads();
13215 result = (bool)((wxDC const *)arg1)->Ok();
13216
13217 wxPyEndAllowThreads(__tstate);
13218 if (PyErr_Occurred()) SWIG_fail;
13219 }
13220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13221 return resultobj;
13222 fail:
13223 return NULL;
13224 }
13225
13226
13227 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13228 PyObject *resultobj;
13229 wxDC *arg1 = (wxDC *) 0 ;
13230 int result;
13231 PyObject * obj0 = 0 ;
13232 char *kwnames[] = {
13233 (char *) "self", NULL
13234 };
13235
13236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13241
13242 wxPyEndAllowThreads(__tstate);
13243 if (PyErr_Occurred()) SWIG_fail;
13244 }
13245 resultobj = SWIG_PyObj_FromInt((int)result);
13246 return resultobj;
13247 fail:
13248 return NULL;
13249 }
13250
13251
13252 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13253 PyObject *resultobj;
13254 wxDC *arg1 = (wxDC *) 0 ;
13255 wxBrush *result;
13256 PyObject * obj0 = 0 ;
13257 char *kwnames[] = {
13258 (char *) "self", NULL
13259 };
13260
13261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13263 {
13264 PyThreadState* __tstate = wxPyBeginAllowThreads();
13265 {
13266 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13267 result = (wxBrush *) &_result_ref;
13268 }
13269
13270 wxPyEndAllowThreads(__tstate);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13274 return resultobj;
13275 fail:
13276 return NULL;
13277 }
13278
13279
13280 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13281 PyObject *resultobj;
13282 wxDC *arg1 = (wxDC *) 0 ;
13283 wxBrush *result;
13284 PyObject * obj0 = 0 ;
13285 char *kwnames[] = {
13286 (char *) "self", NULL
13287 };
13288
13289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 {
13294 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13295 result = (wxBrush *) &_result_ref;
13296 }
13297
13298 wxPyEndAllowThreads(__tstate);
13299 if (PyErr_Occurred()) SWIG_fail;
13300 }
13301 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13302 return resultobj;
13303 fail:
13304 return NULL;
13305 }
13306
13307
13308 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13309 PyObject *resultobj;
13310 wxDC *arg1 = (wxDC *) 0 ;
13311 wxFont *result;
13312 PyObject * obj0 = 0 ;
13313 char *kwnames[] = {
13314 (char *) "self", NULL
13315 };
13316
13317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 {
13322 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13323 result = (wxFont *) &_result_ref;
13324 }
13325
13326 wxPyEndAllowThreads(__tstate);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
13330 return resultobj;
13331 fail:
13332 return NULL;
13333 }
13334
13335
13336 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13337 PyObject *resultobj;
13338 wxDC *arg1 = (wxDC *) 0 ;
13339 wxPen *result;
13340 PyObject * obj0 = 0 ;
13341 char *kwnames[] = {
13342 (char *) "self", NULL
13343 };
13344
13345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 {
13350 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13351 result = (wxPen *) &_result_ref;
13352 }
13353
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
13358 return resultobj;
13359 fail:
13360 return NULL;
13361 }
13362
13363
13364 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13365 PyObject *resultobj;
13366 wxDC *arg1 = (wxDC *) 0 ;
13367 wxColour *result;
13368 PyObject * obj0 = 0 ;
13369 char *kwnames[] = {
13370 (char *) "self", NULL
13371 };
13372
13373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13375 {
13376 PyThreadState* __tstate = wxPyBeginAllowThreads();
13377 {
13378 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13379 result = (wxColour *) &_result_ref;
13380 }
13381
13382 wxPyEndAllowThreads(__tstate);
13383 if (PyErr_Occurred()) SWIG_fail;
13384 }
13385 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13386 return resultobj;
13387 fail:
13388 return NULL;
13389 }
13390
13391
13392 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13393 PyObject *resultobj;
13394 wxDC *arg1 = (wxDC *) 0 ;
13395 wxColour *result;
13396 PyObject * obj0 = 0 ;
13397 char *kwnames[] = {
13398 (char *) "self", NULL
13399 };
13400
13401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13403 {
13404 PyThreadState* __tstate = wxPyBeginAllowThreads();
13405 {
13406 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13407 result = (wxColour *) &_result_ref;
13408 }
13409
13410 wxPyEndAllowThreads(__tstate);
13411 if (PyErr_Occurred()) SWIG_fail;
13412 }
13413 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13414 return resultobj;
13415 fail:
13416 return NULL;
13417 }
13418
13419
13420 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13421 PyObject *resultobj;
13422 wxDC *arg1 = (wxDC *) 0 ;
13423 wxColour *arg2 = 0 ;
13424 wxColour temp2 ;
13425 PyObject * obj0 = 0 ;
13426 PyObject * obj1 = 0 ;
13427 char *kwnames[] = {
13428 (char *) "self",(char *) "colour", NULL
13429 };
13430
13431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13432 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13433 {
13434 arg2 = &temp2;
13435 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13436 }
13437 {
13438 PyThreadState* __tstate = wxPyBeginAllowThreads();
13439 (arg1)->SetTextForeground((wxColour const &)*arg2);
13440
13441 wxPyEndAllowThreads(__tstate);
13442 if (PyErr_Occurred()) SWIG_fail;
13443 }
13444 Py_INCREF(Py_None); resultobj = Py_None;
13445 return resultobj;
13446 fail:
13447 return NULL;
13448 }
13449
13450
13451 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13452 PyObject *resultobj;
13453 wxDC *arg1 = (wxDC *) 0 ;
13454 wxColour *arg2 = 0 ;
13455 wxColour temp2 ;
13456 PyObject * obj0 = 0 ;
13457 PyObject * obj1 = 0 ;
13458 char *kwnames[] = {
13459 (char *) "self",(char *) "colour", NULL
13460 };
13461
13462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13464 {
13465 arg2 = &temp2;
13466 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13467 }
13468 {
13469 PyThreadState* __tstate = wxPyBeginAllowThreads();
13470 (arg1)->SetTextBackground((wxColour const &)*arg2);
13471
13472 wxPyEndAllowThreads(__tstate);
13473 if (PyErr_Occurred()) SWIG_fail;
13474 }
13475 Py_INCREF(Py_None); resultobj = Py_None;
13476 return resultobj;
13477 fail:
13478 return NULL;
13479 }
13480
13481
13482 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13483 PyObject *resultobj;
13484 wxDC *arg1 = (wxDC *) 0 ;
13485 int result;
13486 PyObject * obj0 = 0 ;
13487 char *kwnames[] = {
13488 (char *) "self", NULL
13489 };
13490
13491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13493 {
13494 PyThreadState* __tstate = wxPyBeginAllowThreads();
13495 result = (int)((wxDC const *)arg1)->GetMapMode();
13496
13497 wxPyEndAllowThreads(__tstate);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 }
13500 resultobj = SWIG_PyObj_FromInt((int)result);
13501 return resultobj;
13502 fail:
13503 return NULL;
13504 }
13505
13506
13507 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13508 PyObject *resultobj;
13509 wxDC *arg1 = (wxDC *) 0 ;
13510 int arg2 ;
13511 PyObject * obj0 = 0 ;
13512 PyObject * obj1 = 0 ;
13513 char *kwnames[] = {
13514 (char *) "self",(char *) "mode", NULL
13515 };
13516
13517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13519 {
13520 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 {
13524 PyThreadState* __tstate = wxPyBeginAllowThreads();
13525 (arg1)->SetMapMode(arg2);
13526
13527 wxPyEndAllowThreads(__tstate);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 }
13530 Py_INCREF(Py_None); resultobj = Py_None;
13531 return resultobj;
13532 fail:
13533 return NULL;
13534 }
13535
13536
13537 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13538 PyObject *resultobj;
13539 wxDC *arg1 = (wxDC *) 0 ;
13540 double *arg2 = (double *) 0 ;
13541 double *arg3 = (double *) 0 ;
13542 double temp2 ;
13543 double temp3 ;
13544 PyObject * obj0 = 0 ;
13545 char *kwnames[] = {
13546 (char *) "self", NULL
13547 };
13548
13549 arg2 = &temp2;
13550 arg3 = &temp3;
13551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13553 {
13554 PyThreadState* __tstate = wxPyBeginAllowThreads();
13555 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13556
13557 wxPyEndAllowThreads(__tstate);
13558 if (PyErr_Occurred()) SWIG_fail;
13559 }
13560 Py_INCREF(Py_None); resultobj = Py_None;
13561 {
13562 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13563 resultobj = t_output_helper(resultobj,o);
13564 }
13565 {
13566 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13567 resultobj = t_output_helper(resultobj,o);
13568 }
13569 return resultobj;
13570 fail:
13571 return NULL;
13572 }
13573
13574
13575 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13576 PyObject *resultobj;
13577 wxDC *arg1 = (wxDC *) 0 ;
13578 double arg2 ;
13579 double arg3 ;
13580 PyObject * obj0 = 0 ;
13581 PyObject * obj1 = 0 ;
13582 PyObject * obj2 = 0 ;
13583 char *kwnames[] = {
13584 (char *) "self",(char *) "x",(char *) "y", NULL
13585 };
13586
13587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13589 {
13590 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13591 if (PyErr_Occurred()) SWIG_fail;
13592 }
13593 {
13594 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13595 if (PyErr_Occurred()) SWIG_fail;
13596 }
13597 {
13598 PyThreadState* __tstate = wxPyBeginAllowThreads();
13599 (arg1)->SetUserScale(arg2,arg3);
13600
13601 wxPyEndAllowThreads(__tstate);
13602 if (PyErr_Occurred()) SWIG_fail;
13603 }
13604 Py_INCREF(Py_None); resultobj = Py_None;
13605 return resultobj;
13606 fail:
13607 return NULL;
13608 }
13609
13610
13611 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13612 PyObject *resultobj;
13613 wxDC *arg1 = (wxDC *) 0 ;
13614 double *arg2 = (double *) 0 ;
13615 double *arg3 = (double *) 0 ;
13616 double temp2 ;
13617 double temp3 ;
13618 PyObject * obj0 = 0 ;
13619 char *kwnames[] = {
13620 (char *) "self", NULL
13621 };
13622
13623 arg2 = &temp2;
13624 arg3 = &temp3;
13625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
13626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13627 {
13628 PyThreadState* __tstate = wxPyBeginAllowThreads();
13629 (arg1)->GetLogicalScale(arg2,arg3);
13630
13631 wxPyEndAllowThreads(__tstate);
13632 if (PyErr_Occurred()) SWIG_fail;
13633 }
13634 Py_INCREF(Py_None); resultobj = Py_None;
13635 {
13636 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13637 resultobj = t_output_helper(resultobj,o);
13638 }
13639 {
13640 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13641 resultobj = t_output_helper(resultobj,o);
13642 }
13643 return resultobj;
13644 fail:
13645 return NULL;
13646 }
13647
13648
13649 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj;
13651 wxDC *arg1 = (wxDC *) 0 ;
13652 double arg2 ;
13653 double arg3 ;
13654 PyObject * obj0 = 0 ;
13655 PyObject * obj1 = 0 ;
13656 PyObject * obj2 = 0 ;
13657 char *kwnames[] = {
13658 (char *) "self",(char *) "x",(char *) "y", NULL
13659 };
13660
13661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13663 {
13664 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13665 if (PyErr_Occurred()) SWIG_fail;
13666 }
13667 {
13668 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 {
13672 PyThreadState* __tstate = wxPyBeginAllowThreads();
13673 (arg1)->SetLogicalScale(arg2,arg3);
13674
13675 wxPyEndAllowThreads(__tstate);
13676 if (PyErr_Occurred()) SWIG_fail;
13677 }
13678 Py_INCREF(Py_None); resultobj = Py_None;
13679 return resultobj;
13680 fail:
13681 return NULL;
13682 }
13683
13684
13685 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13686 PyObject *resultobj;
13687 wxDC *arg1 = (wxDC *) 0 ;
13688 wxPoint result;
13689 PyObject * obj0 = 0 ;
13690 char *kwnames[] = {
13691 (char *) "self", NULL
13692 };
13693
13694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
13695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13696 {
13697 PyThreadState* __tstate = wxPyBeginAllowThreads();
13698 result = ((wxDC const *)arg1)->GetLogicalOrigin();
13699
13700 wxPyEndAllowThreads(__tstate);
13701 if (PyErr_Occurred()) SWIG_fail;
13702 }
13703 {
13704 wxPoint * resultptr;
13705 resultptr = new wxPoint((wxPoint &) result);
13706 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13707 }
13708 return resultobj;
13709 fail:
13710 return NULL;
13711 }
13712
13713
13714 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13715 PyObject *resultobj;
13716 wxDC *arg1 = (wxDC *) 0 ;
13717 int *arg2 = (int *) 0 ;
13718 int *arg3 = (int *) 0 ;
13719 int temp2 ;
13720 int temp3 ;
13721 PyObject * obj0 = 0 ;
13722 char *kwnames[] = {
13723 (char *) "self", NULL
13724 };
13725
13726 arg2 = &temp2;
13727 arg3 = &temp3;
13728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
13729 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13730 {
13731 PyThreadState* __tstate = wxPyBeginAllowThreads();
13732 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
13733
13734 wxPyEndAllowThreads(__tstate);
13735 if (PyErr_Occurred()) SWIG_fail;
13736 }
13737 Py_INCREF(Py_None); resultobj = Py_None;
13738 {
13739 PyObject *o = PyInt_FromLong((long) (*arg2));
13740 resultobj = t_output_helper(resultobj,o);
13741 }
13742 {
13743 PyObject *o = PyInt_FromLong((long) (*arg3));
13744 resultobj = t_output_helper(resultobj,o);
13745 }
13746 return resultobj;
13747 fail:
13748 return NULL;
13749 }
13750
13751
13752 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13753 PyObject *resultobj;
13754 wxDC *arg1 = (wxDC *) 0 ;
13755 int arg2 ;
13756 int arg3 ;
13757 PyObject * obj0 = 0 ;
13758 PyObject * obj1 = 0 ;
13759 PyObject * obj2 = 0 ;
13760 char *kwnames[] = {
13761 (char *) "self",(char *) "x",(char *) "y", NULL
13762 };
13763
13764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13766 {
13767 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13768 if (PyErr_Occurred()) SWIG_fail;
13769 }
13770 {
13771 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 }
13774 {
13775 PyThreadState* __tstate = wxPyBeginAllowThreads();
13776 (arg1)->SetLogicalOrigin(arg2,arg3);
13777
13778 wxPyEndAllowThreads(__tstate);
13779 if (PyErr_Occurred()) SWIG_fail;
13780 }
13781 Py_INCREF(Py_None); resultobj = Py_None;
13782 return resultobj;
13783 fail:
13784 return NULL;
13785 }
13786
13787
13788 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13789 PyObject *resultobj;
13790 wxDC *arg1 = (wxDC *) 0 ;
13791 wxPoint result;
13792 PyObject * obj0 = 0 ;
13793 char *kwnames[] = {
13794 (char *) "self", NULL
13795 };
13796
13797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
13798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13799 {
13800 PyThreadState* __tstate = wxPyBeginAllowThreads();
13801 result = ((wxDC const *)arg1)->GetDeviceOrigin();
13802
13803 wxPyEndAllowThreads(__tstate);
13804 if (PyErr_Occurred()) SWIG_fail;
13805 }
13806 {
13807 wxPoint * resultptr;
13808 resultptr = new wxPoint((wxPoint &) result);
13809 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13810 }
13811 return resultobj;
13812 fail:
13813 return NULL;
13814 }
13815
13816
13817 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13818 PyObject *resultobj;
13819 wxDC *arg1 = (wxDC *) 0 ;
13820 int *arg2 = (int *) 0 ;
13821 int *arg3 = (int *) 0 ;
13822 int temp2 ;
13823 int temp3 ;
13824 PyObject * obj0 = 0 ;
13825 char *kwnames[] = {
13826 (char *) "self", NULL
13827 };
13828
13829 arg2 = &temp2;
13830 arg3 = &temp3;
13831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
13832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13833 {
13834 PyThreadState* __tstate = wxPyBeginAllowThreads();
13835 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
13836
13837 wxPyEndAllowThreads(__tstate);
13838 if (PyErr_Occurred()) SWIG_fail;
13839 }
13840 Py_INCREF(Py_None); resultobj = Py_None;
13841 {
13842 PyObject *o = PyInt_FromLong((long) (*arg2));
13843 resultobj = t_output_helper(resultobj,o);
13844 }
13845 {
13846 PyObject *o = PyInt_FromLong((long) (*arg3));
13847 resultobj = t_output_helper(resultobj,o);
13848 }
13849 return resultobj;
13850 fail:
13851 return NULL;
13852 }
13853
13854
13855 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13856 PyObject *resultobj;
13857 wxDC *arg1 = (wxDC *) 0 ;
13858 int arg2 ;
13859 int arg3 ;
13860 PyObject * obj0 = 0 ;
13861 PyObject * obj1 = 0 ;
13862 PyObject * obj2 = 0 ;
13863 char *kwnames[] = {
13864 (char *) "self",(char *) "x",(char *) "y", NULL
13865 };
13866
13867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13869 {
13870 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 {
13874 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13875 if (PyErr_Occurred()) SWIG_fail;
13876 }
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
13879 (arg1)->SetDeviceOrigin(arg2,arg3);
13880
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 Py_INCREF(Py_None); resultobj = Py_None;
13885 return resultobj;
13886 fail:
13887 return NULL;
13888 }
13889
13890
13891 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13892 PyObject *resultobj;
13893 wxDC *arg1 = (wxDC *) 0 ;
13894 bool arg2 ;
13895 bool arg3 ;
13896 PyObject * obj0 = 0 ;
13897 PyObject * obj1 = 0 ;
13898 PyObject * obj2 = 0 ;
13899 char *kwnames[] = {
13900 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
13901 };
13902
13903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
13904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13905 {
13906 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13907 if (PyErr_Occurred()) SWIG_fail;
13908 }
13909 {
13910 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
13911 if (PyErr_Occurred()) SWIG_fail;
13912 }
13913 {
13914 PyThreadState* __tstate = wxPyBeginAllowThreads();
13915 (arg1)->SetAxisOrientation(arg2,arg3);
13916
13917 wxPyEndAllowThreads(__tstate);
13918 if (PyErr_Occurred()) SWIG_fail;
13919 }
13920 Py_INCREF(Py_None); resultobj = Py_None;
13921 return resultobj;
13922 fail:
13923 return NULL;
13924 }
13925
13926
13927 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13928 PyObject *resultobj;
13929 wxDC *arg1 = (wxDC *) 0 ;
13930 int result;
13931 PyObject * obj0 = 0 ;
13932 char *kwnames[] = {
13933 (char *) "self", NULL
13934 };
13935
13936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
13937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13938 {
13939 PyThreadState* __tstate = wxPyBeginAllowThreads();
13940 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
13941
13942 wxPyEndAllowThreads(__tstate);
13943 if (PyErr_Occurred()) SWIG_fail;
13944 }
13945 resultobj = SWIG_PyObj_FromInt((int)result);
13946 return resultobj;
13947 fail:
13948 return NULL;
13949 }
13950
13951
13952 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13953 PyObject *resultobj;
13954 wxDC *arg1 = (wxDC *) 0 ;
13955 int arg2 ;
13956 PyObject * obj0 = 0 ;
13957 PyObject * obj1 = 0 ;
13958 char *kwnames[] = {
13959 (char *) "self",(char *) "function", NULL
13960 };
13961
13962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
13963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13964 {
13965 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13966 if (PyErr_Occurred()) SWIG_fail;
13967 }
13968 {
13969 PyThreadState* __tstate = wxPyBeginAllowThreads();
13970 (arg1)->SetLogicalFunction(arg2);
13971
13972 wxPyEndAllowThreads(__tstate);
13973 if (PyErr_Occurred()) SWIG_fail;
13974 }
13975 Py_INCREF(Py_None); resultobj = Py_None;
13976 return resultobj;
13977 fail:
13978 return NULL;
13979 }
13980
13981
13982 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
13983 PyObject *resultobj;
13984 wxDC *arg1 = (wxDC *) 0 ;
13985 bool arg2 ;
13986 PyObject * obj0 = 0 ;
13987 PyObject * obj1 = 0 ;
13988 char *kwnames[] = {
13989 (char *) "self",(char *) "opt", NULL
13990 };
13991
13992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
13993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13994 {
13995 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13996 if (PyErr_Occurred()) SWIG_fail;
13997 }
13998 {
13999 PyThreadState* __tstate = wxPyBeginAllowThreads();
14000 (arg1)->SetOptimization(arg2);
14001
14002 wxPyEndAllowThreads(__tstate);
14003 if (PyErr_Occurred()) SWIG_fail;
14004 }
14005 Py_INCREF(Py_None); resultobj = Py_None;
14006 return resultobj;
14007 fail:
14008 return NULL;
14009 }
14010
14011
14012 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14013 PyObject *resultobj;
14014 wxDC *arg1 = (wxDC *) 0 ;
14015 bool result;
14016 PyObject * obj0 = 0 ;
14017 char *kwnames[] = {
14018 (char *) "self", NULL
14019 };
14020
14021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14023 {
14024 PyThreadState* __tstate = wxPyBeginAllowThreads();
14025 result = (bool)(arg1)->GetOptimization();
14026
14027 wxPyEndAllowThreads(__tstate);
14028 if (PyErr_Occurred()) SWIG_fail;
14029 }
14030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14031 return resultobj;
14032 fail:
14033 return NULL;
14034 }
14035
14036
14037 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14038 PyObject *resultobj;
14039 wxDC *arg1 = (wxDC *) 0 ;
14040 int arg2 ;
14041 int arg3 ;
14042 PyObject * obj0 = 0 ;
14043 PyObject * obj1 = 0 ;
14044 PyObject * obj2 = 0 ;
14045 char *kwnames[] = {
14046 (char *) "self",(char *) "x",(char *) "y", NULL
14047 };
14048
14049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14051 {
14052 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14053 if (PyErr_Occurred()) SWIG_fail;
14054 }
14055 {
14056 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14057 if (PyErr_Occurred()) SWIG_fail;
14058 }
14059 {
14060 PyThreadState* __tstate = wxPyBeginAllowThreads();
14061 (arg1)->CalcBoundingBox(arg2,arg3);
14062
14063 wxPyEndAllowThreads(__tstate);
14064 if (PyErr_Occurred()) SWIG_fail;
14065 }
14066 Py_INCREF(Py_None); resultobj = Py_None;
14067 return resultobj;
14068 fail:
14069 return NULL;
14070 }
14071
14072
14073 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14074 PyObject *resultobj;
14075 wxDC *arg1 = (wxDC *) 0 ;
14076 PyObject * obj0 = 0 ;
14077 char *kwnames[] = {
14078 (char *) "self", NULL
14079 };
14080
14081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14083 {
14084 PyThreadState* __tstate = wxPyBeginAllowThreads();
14085 (arg1)->ResetBoundingBox();
14086
14087 wxPyEndAllowThreads(__tstate);
14088 if (PyErr_Occurred()) SWIG_fail;
14089 }
14090 Py_INCREF(Py_None); resultobj = Py_None;
14091 return resultobj;
14092 fail:
14093 return NULL;
14094 }
14095
14096
14097 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14098 PyObject *resultobj;
14099 wxDC *arg1 = (wxDC *) 0 ;
14100 int result;
14101 PyObject * obj0 = 0 ;
14102 char *kwnames[] = {
14103 (char *) "self", NULL
14104 };
14105
14106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14108 {
14109 PyThreadState* __tstate = wxPyBeginAllowThreads();
14110 result = (int)((wxDC const *)arg1)->MinX();
14111
14112 wxPyEndAllowThreads(__tstate);
14113 if (PyErr_Occurred()) SWIG_fail;
14114 }
14115 resultobj = SWIG_PyObj_FromInt((int)result);
14116 return resultobj;
14117 fail:
14118 return NULL;
14119 }
14120
14121
14122 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14123 PyObject *resultobj;
14124 wxDC *arg1 = (wxDC *) 0 ;
14125 int result;
14126 PyObject * obj0 = 0 ;
14127 char *kwnames[] = {
14128 (char *) "self", NULL
14129 };
14130
14131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14133 {
14134 PyThreadState* __tstate = wxPyBeginAllowThreads();
14135 result = (int)((wxDC const *)arg1)->MaxX();
14136
14137 wxPyEndAllowThreads(__tstate);
14138 if (PyErr_Occurred()) SWIG_fail;
14139 }
14140 resultobj = SWIG_PyObj_FromInt((int)result);
14141 return resultobj;
14142 fail:
14143 return NULL;
14144 }
14145
14146
14147 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14148 PyObject *resultobj;
14149 wxDC *arg1 = (wxDC *) 0 ;
14150 int result;
14151 PyObject * obj0 = 0 ;
14152 char *kwnames[] = {
14153 (char *) "self", NULL
14154 };
14155
14156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14157 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14158 {
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 result = (int)((wxDC const *)arg1)->MinY();
14161
14162 wxPyEndAllowThreads(__tstate);
14163 if (PyErr_Occurred()) SWIG_fail;
14164 }
14165 resultobj = SWIG_PyObj_FromInt((int)result);
14166 return resultobj;
14167 fail:
14168 return NULL;
14169 }
14170
14171
14172 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14173 PyObject *resultobj;
14174 wxDC *arg1 = (wxDC *) 0 ;
14175 int result;
14176 PyObject * obj0 = 0 ;
14177 char *kwnames[] = {
14178 (char *) "self", NULL
14179 };
14180
14181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14183 {
14184 PyThreadState* __tstate = wxPyBeginAllowThreads();
14185 result = (int)((wxDC const *)arg1)->MaxY();
14186
14187 wxPyEndAllowThreads(__tstate);
14188 if (PyErr_Occurred()) SWIG_fail;
14189 }
14190 resultobj = SWIG_PyObj_FromInt((int)result);
14191 return resultobj;
14192 fail:
14193 return NULL;
14194 }
14195
14196
14197 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14198 PyObject *resultobj;
14199 wxDC *arg1 = (wxDC *) 0 ;
14200 int *arg2 = (int *) 0 ;
14201 int *arg3 = (int *) 0 ;
14202 int *arg4 = (int *) 0 ;
14203 int *arg5 = (int *) 0 ;
14204 int temp2 ;
14205 int temp3 ;
14206 int temp4 ;
14207 int temp5 ;
14208 PyObject * obj0 = 0 ;
14209 char *kwnames[] = {
14210 (char *) "self", NULL
14211 };
14212
14213 arg2 = &temp2;
14214 arg3 = &temp3;
14215 arg4 = &temp4;
14216 arg5 = &temp5;
14217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14219 {
14220 PyThreadState* __tstate = wxPyBeginAllowThreads();
14221 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14222
14223 wxPyEndAllowThreads(__tstate);
14224 if (PyErr_Occurred()) SWIG_fail;
14225 }
14226 Py_INCREF(Py_None); resultobj = Py_None;
14227 {
14228 PyObject *o = PyInt_FromLong((long) (*arg2));
14229 resultobj = t_output_helper(resultobj,o);
14230 }
14231 {
14232 PyObject *o = PyInt_FromLong((long) (*arg3));
14233 resultobj = t_output_helper(resultobj,o);
14234 }
14235 {
14236 PyObject *o = PyInt_FromLong((long) (*arg4));
14237 resultobj = t_output_helper(resultobj,o);
14238 }
14239 {
14240 PyObject *o = PyInt_FromLong((long) (*arg5));
14241 resultobj = t_output_helper(resultobj,o);
14242 }
14243 return resultobj;
14244 fail:
14245 return NULL;
14246 }
14247
14248
14249 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14250 PyObject *resultobj;
14251 wxDC *arg1 = (wxDC *) 0 ;
14252 PyObject *arg2 = (PyObject *) 0 ;
14253 PyObject *arg3 = (PyObject *) 0 ;
14254 PyObject *arg4 = (PyObject *) 0 ;
14255 PyObject *result;
14256 PyObject * obj0 = 0 ;
14257 PyObject * obj1 = 0 ;
14258 PyObject * obj2 = 0 ;
14259 PyObject * obj3 = 0 ;
14260 char *kwnames[] = {
14261 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14262 };
14263
14264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14266 arg2 = obj1;
14267 arg3 = obj2;
14268 arg4 = obj3;
14269 {
14270 PyThreadState* __tstate = wxPyBeginAllowThreads();
14271 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14272
14273 wxPyEndAllowThreads(__tstate);
14274 if (PyErr_Occurred()) SWIG_fail;
14275 }
14276 resultobj = result;
14277 return resultobj;
14278 fail:
14279 return NULL;
14280 }
14281
14282
14283 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14284 PyObject *resultobj;
14285 wxDC *arg1 = (wxDC *) 0 ;
14286 PyObject *arg2 = (PyObject *) 0 ;
14287 PyObject *arg3 = (PyObject *) 0 ;
14288 PyObject *arg4 = (PyObject *) 0 ;
14289 PyObject *result;
14290 PyObject * obj0 = 0 ;
14291 PyObject * obj1 = 0 ;
14292 PyObject * obj2 = 0 ;
14293 PyObject * obj3 = 0 ;
14294 char *kwnames[] = {
14295 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14296 };
14297
14298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14300 arg2 = obj1;
14301 arg3 = obj2;
14302 arg4 = obj3;
14303 {
14304 PyThreadState* __tstate = wxPyBeginAllowThreads();
14305 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14306
14307 wxPyEndAllowThreads(__tstate);
14308 if (PyErr_Occurred()) SWIG_fail;
14309 }
14310 resultobj = result;
14311 return resultobj;
14312 fail:
14313 return NULL;
14314 }
14315
14316
14317 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14318 PyObject *resultobj;
14319 wxDC *arg1 = (wxDC *) 0 ;
14320 PyObject *arg2 = (PyObject *) 0 ;
14321 PyObject *arg3 = (PyObject *) 0 ;
14322 PyObject *arg4 = (PyObject *) 0 ;
14323 PyObject *result;
14324 PyObject * obj0 = 0 ;
14325 PyObject * obj1 = 0 ;
14326 PyObject * obj2 = 0 ;
14327 PyObject * obj3 = 0 ;
14328 char *kwnames[] = {
14329 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14330 };
14331
14332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14334 arg2 = obj1;
14335 arg3 = obj2;
14336 arg4 = obj3;
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14340
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 resultobj = result;
14345 return resultobj;
14346 fail:
14347 return NULL;
14348 }
14349
14350
14351 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14352 PyObject *resultobj;
14353 wxDC *arg1 = (wxDC *) 0 ;
14354 PyObject *arg2 = (PyObject *) 0 ;
14355 PyObject *arg3 = (PyObject *) 0 ;
14356 PyObject *arg4 = (PyObject *) 0 ;
14357 PyObject *result;
14358 PyObject * obj0 = 0 ;
14359 PyObject * obj1 = 0 ;
14360 PyObject * obj2 = 0 ;
14361 PyObject * obj3 = 0 ;
14362 char *kwnames[] = {
14363 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14364 };
14365
14366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14368 arg2 = obj1;
14369 arg3 = obj2;
14370 arg4 = obj3;
14371 {
14372 PyThreadState* __tstate = wxPyBeginAllowThreads();
14373 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14374
14375 wxPyEndAllowThreads(__tstate);
14376 if (PyErr_Occurred()) SWIG_fail;
14377 }
14378 resultobj = result;
14379 return resultobj;
14380 fail:
14381 return NULL;
14382 }
14383
14384
14385 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14386 PyObject *resultobj;
14387 wxDC *arg1 = (wxDC *) 0 ;
14388 PyObject *arg2 = (PyObject *) 0 ;
14389 PyObject *arg3 = (PyObject *) 0 ;
14390 PyObject *arg4 = (PyObject *) 0 ;
14391 PyObject *result;
14392 PyObject * obj0 = 0 ;
14393 PyObject * obj1 = 0 ;
14394 PyObject * obj2 = 0 ;
14395 PyObject * obj3 = 0 ;
14396 char *kwnames[] = {
14397 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14398 };
14399
14400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14402 arg2 = obj1;
14403 arg3 = obj2;
14404 arg4 = obj3;
14405 {
14406 PyThreadState* __tstate = wxPyBeginAllowThreads();
14407 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14408
14409 wxPyEndAllowThreads(__tstate);
14410 if (PyErr_Occurred()) SWIG_fail;
14411 }
14412 resultobj = result;
14413 return resultobj;
14414 fail:
14415 return NULL;
14416 }
14417
14418
14419 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14420 PyObject *resultobj;
14421 wxDC *arg1 = (wxDC *) 0 ;
14422 PyObject *arg2 = (PyObject *) 0 ;
14423 PyObject *arg3 = (PyObject *) 0 ;
14424 PyObject *arg4 = (PyObject *) 0 ;
14425 PyObject *arg5 = (PyObject *) 0 ;
14426 PyObject *result;
14427 PyObject * obj0 = 0 ;
14428 PyObject * obj1 = 0 ;
14429 PyObject * obj2 = 0 ;
14430 PyObject * obj3 = 0 ;
14431 PyObject * obj4 = 0 ;
14432 char *kwnames[] = {
14433 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14434 };
14435
14436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14438 arg2 = obj1;
14439 arg3 = obj2;
14440 arg4 = obj3;
14441 arg5 = obj4;
14442 {
14443 PyThreadState* __tstate = wxPyBeginAllowThreads();
14444 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14445
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 resultobj = result;
14450 return resultobj;
14451 fail:
14452 return NULL;
14453 }
14454
14455
14456 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14457 PyObject *obj;
14458 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14459 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14460 Py_INCREF(obj);
14461 return Py_BuildValue((char *)"");
14462 }
14463 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14464 PyObject *resultobj;
14465 wxMemoryDC *result;
14466 char *kwnames[] = {
14467 NULL
14468 };
14469
14470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14471 {
14472 PyThreadState* __tstate = wxPyBeginAllowThreads();
14473 result = (wxMemoryDC *)new wxMemoryDC();
14474
14475 wxPyEndAllowThreads(__tstate);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 }
14478 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14479 return resultobj;
14480 fail:
14481 return NULL;
14482 }
14483
14484
14485 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14486 PyObject *resultobj;
14487 wxDC *arg1 = (wxDC *) 0 ;
14488 wxMemoryDC *result;
14489 PyObject * obj0 = 0 ;
14490 char *kwnames[] = {
14491 (char *) "oldDC", NULL
14492 };
14493
14494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14496 {
14497 PyThreadState* __tstate = wxPyBeginAllowThreads();
14498 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14499
14500 wxPyEndAllowThreads(__tstate);
14501 if (PyErr_Occurred()) SWIG_fail;
14502 }
14503 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14504 return resultobj;
14505 fail:
14506 return NULL;
14507 }
14508
14509
14510 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14511 PyObject *resultobj;
14512 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14513 wxBitmap *arg2 = 0 ;
14514 PyObject * obj0 = 0 ;
14515 PyObject * obj1 = 0 ;
14516 char *kwnames[] = {
14517 (char *) "self",(char *) "bitmap", NULL
14518 };
14519
14520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14522 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14523 if (arg2 == NULL) {
14524 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14525 }
14526 {
14527 PyThreadState* __tstate = wxPyBeginAllowThreads();
14528 (arg1)->SelectObject((wxBitmap const &)*arg2);
14529
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 Py_INCREF(Py_None); resultobj = Py_None;
14534 return resultobj;
14535 fail:
14536 return NULL;
14537 }
14538
14539
14540 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14541 PyObject *obj;
14542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14543 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14544 Py_INCREF(obj);
14545 return Py_BuildValue((char *)"");
14546 }
14547 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
14548 PyObject *resultobj;
14549 wxDC *arg1 = (wxDC *) 0 ;
14550 wxBitmap *arg2 = 0 ;
14551 wxBufferedDC *result;
14552 PyObject * obj0 = 0 ;
14553 PyObject * obj1 = 0 ;
14554
14555 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
14556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14557 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14558 if (arg2 == NULL) {
14559 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14560 }
14561 {
14562 PyThreadState* __tstate = wxPyBeginAllowThreads();
14563 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
14564
14565 wxPyEndAllowThreads(__tstate);
14566 if (PyErr_Occurred()) SWIG_fail;
14567 }
14568 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14569 return resultobj;
14570 fail:
14571 return NULL;
14572 }
14573
14574
14575 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
14576 PyObject *resultobj;
14577 wxDC *arg1 = (wxDC *) 0 ;
14578 wxSize *arg2 = 0 ;
14579 int arg3 = (int) wxBUFFER_DC_DEFAULT ;
14580 wxBufferedDC *result;
14581 wxSize temp2 ;
14582 PyObject * obj0 = 0 ;
14583 PyObject * obj1 = 0 ;
14584 PyObject * obj2 = 0 ;
14585
14586 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
14587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14588 {
14589 arg2 = &temp2;
14590 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14591 }
14592 if (obj2) {
14593 {
14594 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14595 if (PyErr_Occurred()) SWIG_fail;
14596 }
14597 }
14598 {
14599 PyThreadState* __tstate = wxPyBeginAllowThreads();
14600 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
14601
14602 wxPyEndAllowThreads(__tstate);
14603 if (PyErr_Occurred()) SWIG_fail;
14604 }
14605 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14606 return resultobj;
14607 fail:
14608 return NULL;
14609 }
14610
14611
14612 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
14613 int argc;
14614 PyObject *argv[4];
14615 int ii;
14616
14617 argc = PyObject_Length(args);
14618 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
14619 argv[ii] = PyTuple_GetItem(args,ii);
14620 }
14621 if (argc == 2) {
14622 int _v;
14623 {
14624 void *ptr;
14625 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
14626 _v = 0;
14627 PyErr_Clear();
14628 } else {
14629 _v = 1;
14630 }
14631 }
14632 if (_v) {
14633 {
14634 void *ptr;
14635 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
14636 _v = 0;
14637 PyErr_Clear();
14638 } else {
14639 _v = 1;
14640 }
14641 }
14642 if (_v) {
14643 return _wrap_new_BufferedDC__SWIG_0(self,args);
14644 }
14645 }
14646 }
14647 if ((argc >= 2) && (argc <= 3)) {
14648 int _v;
14649 {
14650 void *ptr;
14651 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
14652 _v = 0;
14653 PyErr_Clear();
14654 } else {
14655 _v = 1;
14656 }
14657 }
14658 if (_v) {
14659 {
14660 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
14661 }
14662 if (_v) {
14663 if (argc <= 2) {
14664 return _wrap_new_BufferedDC__SWIG_1(self,args);
14665 }
14666 {
14667 SWIG_PyObj_AsInt(argv[2]);
14668 if (PyErr_Occurred()) {
14669 _v = 0;
14670 PyErr_Clear();
14671 } else {
14672 _v = 1;
14673 }
14674 }
14675 if (_v) {
14676 return _wrap_new_BufferedDC__SWIG_1(self,args);
14677 }
14678 }
14679 }
14680 }
14681
14682 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
14683 return NULL;
14684 }
14685
14686
14687 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
14688 PyObject *resultobj;
14689 wxDC *arg1 = (wxDC *) 0 ;
14690 wxSize *arg2 = 0 ;
14691 int arg3 = (int) wxBUFFER_DC_DEFAULT ;
14692 wxBufferedDC *result;
14693 wxSize temp2 ;
14694 PyObject * obj0 = 0 ;
14695 PyObject * obj1 = 0 ;
14696 PyObject * obj2 = 0 ;
14697
14698 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDCInternalBuffer",&obj0,&obj1,&obj2)) goto fail;
14699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14700 {
14701 arg2 = &temp2;
14702 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14703 }
14704 if (obj2) {
14705 {
14706 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14707 if (PyErr_Occurred()) SWIG_fail;
14708 }
14709 }
14710 {
14711 PyThreadState* __tstate = wxPyBeginAllowThreads();
14712 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
14713
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14718 return resultobj;
14719 fail:
14720 return NULL;
14721 }
14722
14723
14724 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
14725 PyObject *resultobj;
14726 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
14727 PyObject * obj0 = 0 ;
14728 char *kwnames[] = {
14729 (char *) "self", NULL
14730 };
14731
14732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
14733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 (arg1)->UnMask();
14737
14738 wxPyEndAllowThreads(__tstate);
14739 if (PyErr_Occurred()) SWIG_fail;
14740 }
14741 Py_INCREF(Py_None); resultobj = Py_None;
14742 return resultobj;
14743 fail:
14744 return NULL;
14745 }
14746
14747
14748 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
14749 PyObject *obj;
14750 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14751 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
14752 Py_INCREF(obj);
14753 return Py_BuildValue((char *)"");
14754 }
14755 static PyObject *_wrap_new_BufferedPaintDC__SWIG_0(PyObject *self, PyObject *args) {
14756 PyObject *resultobj;
14757 wxWindow *arg1 = (wxWindow *) 0 ;
14758 wxBitmap *arg2 = 0 ;
14759 wxBufferedPaintDC *result;
14760 PyObject * obj0 = 0 ;
14761 PyObject * obj1 = 0 ;
14762
14763 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedPaintDC",&obj0,&obj1)) goto fail;
14764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14765 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14766 if (arg2 == NULL) {
14767 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14768 }
14769 {
14770 PyThreadState* __tstate = wxPyBeginAllowThreads();
14771 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
14772
14773 wxPyEndAllowThreads(__tstate);
14774 if (PyErr_Occurred()) SWIG_fail;
14775 }
14776 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
14777 return resultobj;
14778 fail:
14779 return NULL;
14780 }
14781
14782
14783 static PyObject *_wrap_new_BufferedPaintDC__SWIG_1(PyObject *self, PyObject *args) {
14784 PyObject *resultobj;
14785 wxWindow *arg1 = (wxWindow *) 0 ;
14786 int arg2 = (int) wxBUFFER_DC_DEFAULT ;
14787 wxBufferedPaintDC *result;
14788 PyObject * obj0 = 0 ;
14789 PyObject * obj1 = 0 ;
14790
14791 if(!PyArg_ParseTuple(args,(char *)"O|O:new_BufferedPaintDC",&obj0,&obj1)) goto fail;
14792 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14793 if (obj1) {
14794 {
14795 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 }
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,arg2);
14802
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
14807 return resultobj;
14808 fail:
14809 return NULL;
14810 }
14811
14812
14813 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args) {
14814 int argc;
14815 PyObject *argv[3];
14816 int ii;
14817
14818 argc = PyObject_Length(args);
14819 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
14820 argv[ii] = PyTuple_GetItem(args,ii);
14821 }
14822 if ((argc >= 1) && (argc <= 2)) {
14823 int _v;
14824 {
14825 void *ptr;
14826 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
14827 _v = 0;
14828 PyErr_Clear();
14829 } else {
14830 _v = 1;
14831 }
14832 }
14833 if (_v) {
14834 if (argc <= 1) {
14835 return _wrap_new_BufferedPaintDC__SWIG_1(self,args);
14836 }
14837 {
14838 SWIG_PyObj_AsInt(argv[1]);
14839 if (PyErr_Occurred()) {
14840 _v = 0;
14841 PyErr_Clear();
14842 } else {
14843 _v = 1;
14844 }
14845 }
14846 if (_v) {
14847 return _wrap_new_BufferedPaintDC__SWIG_1(self,args);
14848 }
14849 }
14850 }
14851 if (argc == 2) {
14852 int _v;
14853 {
14854 void *ptr;
14855 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
14856 _v = 0;
14857 PyErr_Clear();
14858 } else {
14859 _v = 1;
14860 }
14861 }
14862 if (_v) {
14863 {
14864 void *ptr;
14865 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
14866 _v = 0;
14867 PyErr_Clear();
14868 } else {
14869 _v = 1;
14870 }
14871 }
14872 if (_v) {
14873 return _wrap_new_BufferedPaintDC__SWIG_0(self,args);
14874 }
14875 }
14876 }
14877
14878 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedPaintDC'");
14879 return NULL;
14880 }
14881
14882
14883 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
14884 PyObject *obj;
14885 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14886 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
14887 Py_INCREF(obj);
14888 return Py_BuildValue((char *)"");
14889 }
14890 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14891 PyObject *resultobj;
14892 wxScreenDC *result;
14893 char *kwnames[] = {
14894 NULL
14895 };
14896
14897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
14898 {
14899 PyThreadState* __tstate = wxPyBeginAllowThreads();
14900 result = (wxScreenDC *)new wxScreenDC();
14901
14902 wxPyEndAllowThreads(__tstate);
14903 if (PyErr_Occurred()) SWIG_fail;
14904 }
14905 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
14906 return resultobj;
14907 fail:
14908 return NULL;
14909 }
14910
14911
14912 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
14913 PyObject *resultobj;
14914 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14915 wxWindow *arg2 = (wxWindow *) 0 ;
14916 bool result;
14917 PyObject * obj0 = 0 ;
14918 PyObject * obj1 = 0 ;
14919 char *kwnames[] = {
14920 (char *) "self",(char *) "window", NULL
14921 };
14922
14923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
14924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14925 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14926 {
14927 PyThreadState* __tstate = wxPyBeginAllowThreads();
14928 result = (bool)(arg1)->StartDrawingOnTop(arg2);
14929
14930 wxPyEndAllowThreads(__tstate);
14931 if (PyErr_Occurred()) SWIG_fail;
14932 }
14933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14934 return resultobj;
14935 fail:
14936 return NULL;
14937 }
14938
14939
14940 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
14941 PyObject *resultobj;
14942 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14943 wxRect *arg2 = (wxRect *) NULL ;
14944 bool result;
14945 PyObject * obj0 = 0 ;
14946 PyObject * obj1 = 0 ;
14947 char *kwnames[] = {
14948 (char *) "self",(char *) "rect", NULL
14949 };
14950
14951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
14952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14953 if (obj1) {
14954 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14955 }
14956 {
14957 PyThreadState* __tstate = wxPyBeginAllowThreads();
14958 result = (bool)(arg1)->StartDrawingOnTop(arg2);
14959
14960 wxPyEndAllowThreads(__tstate);
14961 if (PyErr_Occurred()) SWIG_fail;
14962 }
14963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14964 return resultobj;
14965 fail:
14966 return NULL;
14967 }
14968
14969
14970 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
14971 PyObject *resultobj;
14972 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14973 bool result;
14974 PyObject * obj0 = 0 ;
14975 char *kwnames[] = {
14976 (char *) "self", NULL
14977 };
14978
14979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
14980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14981 {
14982 PyThreadState* __tstate = wxPyBeginAllowThreads();
14983 result = (bool)(arg1)->EndDrawingOnTop();
14984
14985 wxPyEndAllowThreads(__tstate);
14986 if (PyErr_Occurred()) SWIG_fail;
14987 }
14988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14989 return resultobj;
14990 fail:
14991 return NULL;
14992 }
14993
14994
14995 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
14996 PyObject *obj;
14997 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14998 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
14999 Py_INCREF(obj);
15000 return Py_BuildValue((char *)"");
15001 }
15002 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15003 PyObject *resultobj;
15004 wxWindow *arg1 = (wxWindow *) 0 ;
15005 wxClientDC *result;
15006 PyObject * obj0 = 0 ;
15007 char *kwnames[] = {
15008 (char *) "win", NULL
15009 };
15010
15011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15013 {
15014 PyThreadState* __tstate = wxPyBeginAllowThreads();
15015 result = (wxClientDC *)new wxClientDC(arg1);
15016
15017 wxPyEndAllowThreads(__tstate);
15018 if (PyErr_Occurred()) SWIG_fail;
15019 }
15020 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
15021 return resultobj;
15022 fail:
15023 return NULL;
15024 }
15025
15026
15027 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15028 PyObject *obj;
15029 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15030 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15031 Py_INCREF(obj);
15032 return Py_BuildValue((char *)"");
15033 }
15034 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15035 PyObject *resultobj;
15036 wxWindow *arg1 = (wxWindow *) 0 ;
15037 wxPaintDC *result;
15038 PyObject * obj0 = 0 ;
15039 char *kwnames[] = {
15040 (char *) "win", NULL
15041 };
15042
15043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15045 {
15046 PyThreadState* __tstate = wxPyBeginAllowThreads();
15047 result = (wxPaintDC *)new wxPaintDC(arg1);
15048
15049 wxPyEndAllowThreads(__tstate);
15050 if (PyErr_Occurred()) SWIG_fail;
15051 }
15052 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
15053 return resultobj;
15054 fail:
15055 return NULL;
15056 }
15057
15058
15059 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15060 PyObject *obj;
15061 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15062 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15063 Py_INCREF(obj);
15064 return Py_BuildValue((char *)"");
15065 }
15066 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15067 PyObject *resultobj;
15068 wxWindow *arg1 = (wxWindow *) 0 ;
15069 wxWindowDC *result;
15070 PyObject * obj0 = 0 ;
15071 char *kwnames[] = {
15072 (char *) "win", NULL
15073 };
15074
15075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 result = (wxWindowDC *)new wxWindowDC(arg1);
15080
15081 wxPyEndAllowThreads(__tstate);
15082 if (PyErr_Occurred()) SWIG_fail;
15083 }
15084 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
15085 return resultobj;
15086 fail:
15087 return NULL;
15088 }
15089
15090
15091 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15092 PyObject *obj;
15093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15094 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15095 Py_INCREF(obj);
15096 return Py_BuildValue((char *)"");
15097 }
15098 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15099 PyObject *resultobj;
15100 wxDC *arg1 = 0 ;
15101 bool arg2 ;
15102 wxMirrorDC *result;
15103 PyObject * obj0 = 0 ;
15104 PyObject * obj1 = 0 ;
15105 char *kwnames[] = {
15106 (char *) "dc",(char *) "mirror", NULL
15107 };
15108
15109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15111 if (arg1 == NULL) {
15112 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15113 }
15114 {
15115 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15116 if (PyErr_Occurred()) SWIG_fail;
15117 }
15118 {
15119 PyThreadState* __tstate = wxPyBeginAllowThreads();
15120 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15121
15122 wxPyEndAllowThreads(__tstate);
15123 if (PyErr_Occurred()) SWIG_fail;
15124 }
15125 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
15126 return resultobj;
15127 fail:
15128 return NULL;
15129 }
15130
15131
15132 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15133 PyObject *obj;
15134 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15135 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15136 Py_INCREF(obj);
15137 return Py_BuildValue((char *)"");
15138 }
15139 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15140 PyObject *resultobj;
15141 wxPrintData *arg1 = 0 ;
15142 wxPostScriptDC *result;
15143 PyObject * obj0 = 0 ;
15144 char *kwnames[] = {
15145 (char *) "printData", NULL
15146 };
15147
15148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15150 if (arg1 == NULL) {
15151 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15152 }
15153 {
15154 PyThreadState* __tstate = wxPyBeginAllowThreads();
15155 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15156
15157 wxPyEndAllowThreads(__tstate);
15158 if (PyErr_Occurred()) SWIG_fail;
15159 }
15160 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
15161 return resultobj;
15162 fail:
15163 return NULL;
15164 }
15165
15166
15167 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15168 PyObject *resultobj;
15169 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15170 wxPrintData *result;
15171 PyObject * obj0 = 0 ;
15172 char *kwnames[] = {
15173 (char *) "self", NULL
15174 };
15175
15176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15178 {
15179 PyThreadState* __tstate = wxPyBeginAllowThreads();
15180 {
15181 wxPrintData &_result_ref = (arg1)->GetPrintData();
15182 result = (wxPrintData *) &_result_ref;
15183 }
15184
15185 wxPyEndAllowThreads(__tstate);
15186 if (PyErr_Occurred()) SWIG_fail;
15187 }
15188 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
15189 return resultobj;
15190 fail:
15191 return NULL;
15192 }
15193
15194
15195 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15196 PyObject *resultobj;
15197 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15198 wxPrintData *arg2 = 0 ;
15199 PyObject * obj0 = 0 ;
15200 PyObject * obj1 = 0 ;
15201 char *kwnames[] = {
15202 (char *) "self",(char *) "data", NULL
15203 };
15204
15205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15207 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15208 if (arg2 == NULL) {
15209 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15210 }
15211 {
15212 PyThreadState* __tstate = wxPyBeginAllowThreads();
15213 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15214
15215 wxPyEndAllowThreads(__tstate);
15216 if (PyErr_Occurred()) SWIG_fail;
15217 }
15218 Py_INCREF(Py_None); resultobj = Py_None;
15219 return resultobj;
15220 fail:
15221 return NULL;
15222 }
15223
15224
15225 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15226 PyObject *resultobj;
15227 int arg1 ;
15228 PyObject * obj0 = 0 ;
15229 char *kwnames[] = {
15230 (char *) "ppi", NULL
15231 };
15232
15233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15234 {
15235 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15236 if (PyErr_Occurred()) SWIG_fail;
15237 }
15238 {
15239 PyThreadState* __tstate = wxPyBeginAllowThreads();
15240 wxPostScriptDC::SetResolution(arg1);
15241
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 Py_INCREF(Py_None); resultobj = Py_None;
15246 return resultobj;
15247 fail:
15248 return NULL;
15249 }
15250
15251
15252 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15253 PyObject *resultobj;
15254 int result;
15255 char *kwnames[] = {
15256 NULL
15257 };
15258
15259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15260 {
15261 PyThreadState* __tstate = wxPyBeginAllowThreads();
15262 result = (int)wxPostScriptDC::GetResolution();
15263
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 resultobj = SWIG_PyObj_FromInt((int)result);
15268 return resultobj;
15269 fail:
15270 return NULL;
15271 }
15272
15273
15274 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15275 PyObject *obj;
15276 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15277 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15278 Py_INCREF(obj);
15279 return Py_BuildValue((char *)"");
15280 }
15281 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15282 PyObject *resultobj;
15283 wxString const &arg1_defvalue = wxPyEmptyString ;
15284 wxString *arg1 = (wxString *) &arg1_defvalue ;
15285 wxMetaFile *result;
15286 bool temp1 = False ;
15287 PyObject * obj0 = 0 ;
15288 char *kwnames[] = {
15289 (char *) "filename", NULL
15290 };
15291
15292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15293 if (obj0) {
15294 {
15295 arg1 = wxString_in_helper(obj0);
15296 if (arg1 == NULL) SWIG_fail;
15297 temp1 = True;
15298 }
15299 }
15300 {
15301 PyThreadState* __tstate = wxPyBeginAllowThreads();
15302 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15303
15304 wxPyEndAllowThreads(__tstate);
15305 if (PyErr_Occurred()) SWIG_fail;
15306 }
15307 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
15308 {
15309 if (temp1)
15310 delete arg1;
15311 }
15312 return resultobj;
15313 fail:
15314 {
15315 if (temp1)
15316 delete arg1;
15317 }
15318 return NULL;
15319 }
15320
15321
15322 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15323 PyObject *obj;
15324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15325 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15326 Py_INCREF(obj);
15327 return Py_BuildValue((char *)"");
15328 }
15329 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15330 PyObject *resultobj;
15331 wxString const &arg1_defvalue = wxPyEmptyString ;
15332 wxString *arg1 = (wxString *) &arg1_defvalue ;
15333 int arg2 = (int) 0 ;
15334 int arg3 = (int) 0 ;
15335 wxString const &arg4_defvalue = wxPyEmptyString ;
15336 wxString *arg4 = (wxString *) &arg4_defvalue ;
15337 wxMetaFileDC *result;
15338 bool temp1 = False ;
15339 bool temp4 = False ;
15340 PyObject * obj0 = 0 ;
15341 PyObject * obj1 = 0 ;
15342 PyObject * obj2 = 0 ;
15343 PyObject * obj3 = 0 ;
15344 char *kwnames[] = {
15345 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15346 };
15347
15348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15349 if (obj0) {
15350 {
15351 arg1 = wxString_in_helper(obj0);
15352 if (arg1 == NULL) SWIG_fail;
15353 temp1 = True;
15354 }
15355 }
15356 if (obj1) {
15357 {
15358 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15359 if (PyErr_Occurred()) SWIG_fail;
15360 }
15361 }
15362 if (obj2) {
15363 {
15364 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15365 if (PyErr_Occurred()) SWIG_fail;
15366 }
15367 }
15368 if (obj3) {
15369 {
15370 arg4 = wxString_in_helper(obj3);
15371 if (arg4 == NULL) SWIG_fail;
15372 temp4 = True;
15373 }
15374 }
15375 {
15376 PyThreadState* __tstate = wxPyBeginAllowThreads();
15377 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15378
15379 wxPyEndAllowThreads(__tstate);
15380 if (PyErr_Occurred()) SWIG_fail;
15381 }
15382 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
15383 {
15384 if (temp1)
15385 delete arg1;
15386 }
15387 {
15388 if (temp4)
15389 delete arg4;
15390 }
15391 return resultobj;
15392 fail:
15393 {
15394 if (temp1)
15395 delete arg1;
15396 }
15397 {
15398 if (temp4)
15399 delete arg4;
15400 }
15401 return NULL;
15402 }
15403
15404
15405 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15406 PyObject *obj;
15407 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15408 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15409 Py_INCREF(obj);
15410 return Py_BuildValue((char *)"");
15411 }
15412 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15413 PyObject *resultobj;
15414 wxPrintData *arg1 = 0 ;
15415 wxPrinterDC *result;
15416 PyObject * obj0 = 0 ;
15417 char *kwnames[] = {
15418 (char *) "printData", NULL
15419 };
15420
15421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15423 if (arg1 == NULL) {
15424 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15425 }
15426 {
15427 PyThreadState* __tstate = wxPyBeginAllowThreads();
15428 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15429
15430 wxPyEndAllowThreads(__tstate);
15431 if (PyErr_Occurred()) SWIG_fail;
15432 }
15433 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
15434 return resultobj;
15435 fail:
15436 return NULL;
15437 }
15438
15439
15440 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15441 PyObject *obj;
15442 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15443 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15444 Py_INCREF(obj);
15445 return Py_BuildValue((char *)"");
15446 }
15447 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15448 PyObject *resultobj;
15449 int arg1 ;
15450 int arg2 ;
15451 int arg3 = (int) True ;
15452 int arg4 = (int) 1 ;
15453 wxImageList *result;
15454 PyObject * obj0 = 0 ;
15455 PyObject * obj1 = 0 ;
15456 PyObject * obj2 = 0 ;
15457 PyObject * obj3 = 0 ;
15458 char *kwnames[] = {
15459 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15460 };
15461
15462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15463 {
15464 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
15467 {
15468 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15469 if (PyErr_Occurred()) SWIG_fail;
15470 }
15471 if (obj2) {
15472 {
15473 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15474 if (PyErr_Occurred()) SWIG_fail;
15475 }
15476 }
15477 if (obj3) {
15478 {
15479 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 }
15482 }
15483 {
15484 PyThreadState* __tstate = wxPyBeginAllowThreads();
15485 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15486
15487 wxPyEndAllowThreads(__tstate);
15488 if (PyErr_Occurred()) SWIG_fail;
15489 }
15490 {
15491 resultobj = wxPyMake_wxObject(result);
15492 }
15493 return resultobj;
15494 fail:
15495 return NULL;
15496 }
15497
15498
15499 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15500 PyObject *resultobj;
15501 wxImageList *arg1 = (wxImageList *) 0 ;
15502 PyObject * obj0 = 0 ;
15503 char *kwnames[] = {
15504 (char *) "self", NULL
15505 };
15506
15507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15509 {
15510 PyThreadState* __tstate = wxPyBeginAllowThreads();
15511 delete arg1;
15512
15513 wxPyEndAllowThreads(__tstate);
15514 if (PyErr_Occurred()) SWIG_fail;
15515 }
15516 Py_INCREF(Py_None); resultobj = Py_None;
15517 return resultobj;
15518 fail:
15519 return NULL;
15520 }
15521
15522
15523 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
15524 PyObject *resultobj;
15525 wxImageList *arg1 = (wxImageList *) 0 ;
15526 wxBitmap *arg2 = 0 ;
15527 wxBitmap const &arg3_defvalue = wxNullBitmap ;
15528 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
15529 int result;
15530 PyObject * obj0 = 0 ;
15531 PyObject * obj1 = 0 ;
15532 PyObject * obj2 = 0 ;
15533 char *kwnames[] = {
15534 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
15535 };
15536
15537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15539 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15540 if (arg2 == NULL) {
15541 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15542 }
15543 if (obj2) {
15544 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15545 if (arg3 == NULL) {
15546 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15547 }
15548 }
15549 {
15550 PyThreadState* __tstate = wxPyBeginAllowThreads();
15551 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
15552
15553 wxPyEndAllowThreads(__tstate);
15554 if (PyErr_Occurred()) SWIG_fail;
15555 }
15556 resultobj = SWIG_PyObj_FromInt((int)result);
15557 return resultobj;
15558 fail:
15559 return NULL;
15560 }
15561
15562
15563 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15564 PyObject *resultobj;
15565 wxImageList *arg1 = (wxImageList *) 0 ;
15566 wxBitmap *arg2 = 0 ;
15567 wxColour *arg3 = 0 ;
15568 int result;
15569 wxColour temp3 ;
15570 PyObject * obj0 = 0 ;
15571 PyObject * obj1 = 0 ;
15572 PyObject * obj2 = 0 ;
15573 char *kwnames[] = {
15574 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
15575 };
15576
15577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15579 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15580 if (arg2 == NULL) {
15581 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15582 }
15583 {
15584 arg3 = &temp3;
15585 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15586 }
15587 {
15588 PyThreadState* __tstate = wxPyBeginAllowThreads();
15589 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
15590
15591 wxPyEndAllowThreads(__tstate);
15592 if (PyErr_Occurred()) SWIG_fail;
15593 }
15594 resultobj = SWIG_PyObj_FromInt((int)result);
15595 return resultobj;
15596 fail:
15597 return NULL;
15598 }
15599
15600
15601 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
15602 PyObject *resultobj;
15603 wxImageList *arg1 = (wxImageList *) 0 ;
15604 wxIcon *arg2 = 0 ;
15605 int result;
15606 PyObject * obj0 = 0 ;
15607 PyObject * obj1 = 0 ;
15608 char *kwnames[] = {
15609 (char *) "self",(char *) "icon", NULL
15610 };
15611
15612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15614 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15615 if (arg2 == NULL) {
15616 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15617 }
15618 {
15619 PyThreadState* __tstate = wxPyBeginAllowThreads();
15620 result = (int)(arg1)->Add((wxIcon const &)*arg2);
15621
15622 wxPyEndAllowThreads(__tstate);
15623 if (PyErr_Occurred()) SWIG_fail;
15624 }
15625 resultobj = SWIG_PyObj_FromInt((int)result);
15626 return resultobj;
15627 fail:
15628 return NULL;
15629 }
15630
15631
15632 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
15633 PyObject *resultobj;
15634 wxImageList *arg1 = (wxImageList *) 0 ;
15635 int arg2 ;
15636 wxBitmap *arg3 = 0 ;
15637 bool result;
15638 PyObject * obj0 = 0 ;
15639 PyObject * obj1 = 0 ;
15640 PyObject * obj2 = 0 ;
15641 char *kwnames[] = {
15642 (char *) "self",(char *) "index",(char *) "bitmap", NULL
15643 };
15644
15645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
15646 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15647 {
15648 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15649 if (PyErr_Occurred()) SWIG_fail;
15650 }
15651 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15652 if (arg3 == NULL) {
15653 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15654 }
15655 {
15656 PyThreadState* __tstate = wxPyBeginAllowThreads();
15657 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
15658
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15663 return resultobj;
15664 fail:
15665 return NULL;
15666 }
15667
15668
15669 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
15670 PyObject *resultobj;
15671 wxImageList *arg1 = (wxImageList *) 0 ;
15672 int arg2 ;
15673 wxDC *arg3 = 0 ;
15674 int arg4 ;
15675 int arg5 ;
15676 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
15677 bool arg7 = (bool) (bool)False ;
15678 bool result;
15679 PyObject * obj0 = 0 ;
15680 PyObject * obj1 = 0 ;
15681 PyObject * obj2 = 0 ;
15682 PyObject * obj3 = 0 ;
15683 PyObject * obj4 = 0 ;
15684 PyObject * obj5 = 0 ;
15685 PyObject * obj6 = 0 ;
15686 char *kwnames[] = {
15687 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
15688 };
15689
15690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15692 {
15693 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15694 if (PyErr_Occurred()) SWIG_fail;
15695 }
15696 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15697 if (arg3 == NULL) {
15698 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15699 }
15700 {
15701 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15702 if (PyErr_Occurred()) SWIG_fail;
15703 }
15704 {
15705 arg5 = (int) SWIG_PyObj_AsInt(obj4);
15706 if (PyErr_Occurred()) SWIG_fail;
15707 }
15708 if (obj5) {
15709 {
15710 arg6 = (int) SWIG_PyObj_AsInt(obj5);
15711 if (PyErr_Occurred()) SWIG_fail;
15712 }
15713 }
15714 if (obj6) {
15715 {
15716 arg7 = (bool const) SWIG_PyObj_AsBool(obj6);
15717 if (PyErr_Occurred()) SWIG_fail;
15718 }
15719 }
15720 {
15721 PyThreadState* __tstate = wxPyBeginAllowThreads();
15722 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
15723
15724 wxPyEndAllowThreads(__tstate);
15725 if (PyErr_Occurred()) SWIG_fail;
15726 }
15727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15728 return resultobj;
15729 fail:
15730 return NULL;
15731 }
15732
15733
15734 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15735 PyObject *resultobj;
15736 wxImageList *arg1 = (wxImageList *) 0 ;
15737 int result;
15738 PyObject * obj0 = 0 ;
15739 char *kwnames[] = {
15740 (char *) "self", NULL
15741 };
15742
15743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
15744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 result = (int)(arg1)->GetImageCount();
15748
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 resultobj = SWIG_PyObj_FromInt((int)result);
15753 return resultobj;
15754 fail:
15755 return NULL;
15756 }
15757
15758
15759 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
15760 PyObject *resultobj;
15761 wxImageList *arg1 = (wxImageList *) 0 ;
15762 int arg2 ;
15763 bool result;
15764 PyObject * obj0 = 0 ;
15765 PyObject * obj1 = 0 ;
15766 char *kwnames[] = {
15767 (char *) "self",(char *) "index", NULL
15768 };
15769
15770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
15771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15772 {
15773 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15774 if (PyErr_Occurred()) SWIG_fail;
15775 }
15776 {
15777 PyThreadState* __tstate = wxPyBeginAllowThreads();
15778 result = (bool)(arg1)->Remove(arg2);
15779
15780 wxPyEndAllowThreads(__tstate);
15781 if (PyErr_Occurred()) SWIG_fail;
15782 }
15783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15784 return resultobj;
15785 fail:
15786 return NULL;
15787 }
15788
15789
15790 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15791 PyObject *resultobj;
15792 wxImageList *arg1 = (wxImageList *) 0 ;
15793 bool result;
15794 PyObject * obj0 = 0 ;
15795 char *kwnames[] = {
15796 (char *) "self", NULL
15797 };
15798
15799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
15800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15801 {
15802 PyThreadState* __tstate = wxPyBeginAllowThreads();
15803 result = (bool)(arg1)->RemoveAll();
15804
15805 wxPyEndAllowThreads(__tstate);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15809 return resultobj;
15810 fail:
15811 return NULL;
15812 }
15813
15814
15815 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15816 PyObject *resultobj;
15817 wxImageList *arg1 = (wxImageList *) 0 ;
15818 int arg2 ;
15819 int *arg3 = 0 ;
15820 int *arg4 = 0 ;
15821 int temp3 ;
15822 int temp4 ;
15823 PyObject * obj0 = 0 ;
15824 PyObject * obj1 = 0 ;
15825 char *kwnames[] = {
15826 (char *) "self",(char *) "index", NULL
15827 };
15828
15829 arg3 = &temp3;
15830 arg4 = &temp4;
15831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
15832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15833 {
15834 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15835 if (PyErr_Occurred()) SWIG_fail;
15836 }
15837 {
15838 PyThreadState* __tstate = wxPyBeginAllowThreads();
15839 (arg1)->GetSize(arg2,*arg3,*arg4);
15840
15841 wxPyEndAllowThreads(__tstate);
15842 if (PyErr_Occurred()) SWIG_fail;
15843 }
15844 Py_INCREF(Py_None); resultobj = Py_None;
15845 {
15846 PyObject *o = PyInt_FromLong((long) (*arg3));
15847 resultobj = t_output_helper(resultobj,o);
15848 }
15849 {
15850 PyObject *o = PyInt_FromLong((long) (*arg4));
15851 resultobj = t_output_helper(resultobj,o);
15852 }
15853 return resultobj;
15854 fail:
15855 return NULL;
15856 }
15857
15858
15859 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
15860 PyObject *obj;
15861 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15862 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
15863 Py_INCREF(obj);
15864 return Py_BuildValue((char *)"");
15865 }
15866 static int _wrap_NORMAL_FONT_set(PyObject *) {
15867 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
15868 return 1;
15869 }
15870
15871
15872 static PyObject *_wrap_NORMAL_FONT_get() {
15873 PyObject *pyobj;
15874
15875 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
15876 return pyobj;
15877 }
15878
15879
15880 static int _wrap_SMALL_FONT_set(PyObject *) {
15881 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
15882 return 1;
15883 }
15884
15885
15886 static PyObject *_wrap_SMALL_FONT_get() {
15887 PyObject *pyobj;
15888
15889 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
15890 return pyobj;
15891 }
15892
15893
15894 static int _wrap_ITALIC_FONT_set(PyObject *) {
15895 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
15896 return 1;
15897 }
15898
15899
15900 static PyObject *_wrap_ITALIC_FONT_get() {
15901 PyObject *pyobj;
15902
15903 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
15904 return pyobj;
15905 }
15906
15907
15908 static int _wrap_SWISS_FONT_set(PyObject *) {
15909 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
15910 return 1;
15911 }
15912
15913
15914 static PyObject *_wrap_SWISS_FONT_get() {
15915 PyObject *pyobj;
15916
15917 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
15918 return pyobj;
15919 }
15920
15921
15922 static int _wrap_RED_PEN_set(PyObject *) {
15923 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
15924 return 1;
15925 }
15926
15927
15928 static PyObject *_wrap_RED_PEN_get() {
15929 PyObject *pyobj;
15930
15931 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
15932 return pyobj;
15933 }
15934
15935
15936 static int _wrap_CYAN_PEN_set(PyObject *) {
15937 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
15938 return 1;
15939 }
15940
15941
15942 static PyObject *_wrap_CYAN_PEN_get() {
15943 PyObject *pyobj;
15944
15945 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
15946 return pyobj;
15947 }
15948
15949
15950 static int _wrap_GREEN_PEN_set(PyObject *) {
15951 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
15952 return 1;
15953 }
15954
15955
15956 static PyObject *_wrap_GREEN_PEN_get() {
15957 PyObject *pyobj;
15958
15959 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
15960 return pyobj;
15961 }
15962
15963
15964 static int _wrap_BLACK_PEN_set(PyObject *) {
15965 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
15966 return 1;
15967 }
15968
15969
15970 static PyObject *_wrap_BLACK_PEN_get() {
15971 PyObject *pyobj;
15972
15973 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
15974 return pyobj;
15975 }
15976
15977
15978 static int _wrap_WHITE_PEN_set(PyObject *) {
15979 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
15980 return 1;
15981 }
15982
15983
15984 static PyObject *_wrap_WHITE_PEN_get() {
15985 PyObject *pyobj;
15986
15987 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
15988 return pyobj;
15989 }
15990
15991
15992 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
15993 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
15994 return 1;
15995 }
15996
15997
15998 static PyObject *_wrap_TRANSPARENT_PEN_get() {
15999 PyObject *pyobj;
16000
16001 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
16002 return pyobj;
16003 }
16004
16005
16006 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16007 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16008 return 1;
16009 }
16010
16011
16012 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16013 PyObject *pyobj;
16014
16015 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
16016 return pyobj;
16017 }
16018
16019
16020 static int _wrap_GREY_PEN_set(PyObject *) {
16021 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16022 return 1;
16023 }
16024
16025
16026 static PyObject *_wrap_GREY_PEN_get() {
16027 PyObject *pyobj;
16028
16029 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
16030 return pyobj;
16031 }
16032
16033
16034 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16035 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16036 return 1;
16037 }
16038
16039
16040 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16041 PyObject *pyobj;
16042
16043 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16044 return pyobj;
16045 }
16046
16047
16048 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16049 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16050 return 1;
16051 }
16052
16053
16054 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16055 PyObject *pyobj;
16056
16057 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16058 return pyobj;
16059 }
16060
16061
16062 static int _wrap_BLUE_BRUSH_set(PyObject *) {
16063 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16064 return 1;
16065 }
16066
16067
16068 static PyObject *_wrap_BLUE_BRUSH_get() {
16069 PyObject *pyobj;
16070
16071 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16072 return pyobj;
16073 }
16074
16075
16076 static int _wrap_GREEN_BRUSH_set(PyObject *) {
16077 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16078 return 1;
16079 }
16080
16081
16082 static PyObject *_wrap_GREEN_BRUSH_get() {
16083 PyObject *pyobj;
16084
16085 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16086 return pyobj;
16087 }
16088
16089
16090 static int _wrap_WHITE_BRUSH_set(PyObject *) {
16091 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16092 return 1;
16093 }
16094
16095
16096 static PyObject *_wrap_WHITE_BRUSH_get() {
16097 PyObject *pyobj;
16098
16099 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16100 return pyobj;
16101 }
16102
16103
16104 static int _wrap_BLACK_BRUSH_set(PyObject *) {
16105 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16106 return 1;
16107 }
16108
16109
16110 static PyObject *_wrap_BLACK_BRUSH_get() {
16111 PyObject *pyobj;
16112
16113 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
16114 return pyobj;
16115 }
16116
16117
16118 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
16119 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16120 return 1;
16121 }
16122
16123
16124 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16125 PyObject *pyobj;
16126
16127 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
16128 return pyobj;
16129 }
16130
16131
16132 static int _wrap_CYAN_BRUSH_set(PyObject *) {
16133 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16134 return 1;
16135 }
16136
16137
16138 static PyObject *_wrap_CYAN_BRUSH_get() {
16139 PyObject *pyobj;
16140
16141 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16142 return pyobj;
16143 }
16144
16145
16146 static int _wrap_RED_BRUSH_set(PyObject *) {
16147 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16148 return 1;
16149 }
16150
16151
16152 static PyObject *_wrap_RED_BRUSH_get() {
16153 PyObject *pyobj;
16154
16155 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
16156 return pyobj;
16157 }
16158
16159
16160 static int _wrap_GREY_BRUSH_set(PyObject *) {
16161 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16162 return 1;
16163 }
16164
16165
16166 static PyObject *_wrap_GREY_BRUSH_get() {
16167 PyObject *pyobj;
16168
16169 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16170 return pyobj;
16171 }
16172
16173
16174 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
16175 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16176 return 1;
16177 }
16178
16179
16180 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16181 PyObject *pyobj;
16182
16183 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16184 return pyobj;
16185 }
16186
16187
16188 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
16189 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16190 return 1;
16191 }
16192
16193
16194 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16195 PyObject *pyobj;
16196
16197 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16198 return pyobj;
16199 }
16200
16201
16202 static int _wrap_BLACK_set(PyObject *) {
16203 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16204 return 1;
16205 }
16206
16207
16208 static PyObject *_wrap_BLACK_get() {
16209 PyObject *pyobj;
16210
16211 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
16212 return pyobj;
16213 }
16214
16215
16216 static int _wrap_WHITE_set(PyObject *) {
16217 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16218 return 1;
16219 }
16220
16221
16222 static PyObject *_wrap_WHITE_get() {
16223 PyObject *pyobj;
16224
16225 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
16226 return pyobj;
16227 }
16228
16229
16230 static int _wrap_RED_set(PyObject *) {
16231 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16232 return 1;
16233 }
16234
16235
16236 static PyObject *_wrap_RED_get() {
16237 PyObject *pyobj;
16238
16239 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
16240 return pyobj;
16241 }
16242
16243
16244 static int _wrap_BLUE_set(PyObject *) {
16245 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16246 return 1;
16247 }
16248
16249
16250 static PyObject *_wrap_BLUE_get() {
16251 PyObject *pyobj;
16252
16253 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
16254 return pyobj;
16255 }
16256
16257
16258 static int _wrap_GREEN_set(PyObject *) {
16259 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16260 return 1;
16261 }
16262
16263
16264 static PyObject *_wrap_GREEN_get() {
16265 PyObject *pyobj;
16266
16267 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
16268 return pyobj;
16269 }
16270
16271
16272 static int _wrap_CYAN_set(PyObject *) {
16273 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16274 return 1;
16275 }
16276
16277
16278 static PyObject *_wrap_CYAN_get() {
16279 PyObject *pyobj;
16280
16281 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
16282 return pyobj;
16283 }
16284
16285
16286 static int _wrap_LIGHT_GREY_set(PyObject *) {
16287 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16288 return 1;
16289 }
16290
16291
16292 static PyObject *_wrap_LIGHT_GREY_get() {
16293 PyObject *pyobj;
16294
16295 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
16296 return pyobj;
16297 }
16298
16299
16300 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
16301 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16302 return 1;
16303 }
16304
16305
16306 static PyObject *_wrap_STANDARD_CURSOR_get() {
16307 PyObject *pyobj;
16308
16309 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
16310 return pyobj;
16311 }
16312
16313
16314 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
16315 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16316 return 1;
16317 }
16318
16319
16320 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16321 PyObject *pyobj;
16322
16323 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16324 return pyobj;
16325 }
16326
16327
16328 static int _wrap_CROSS_CURSOR_set(PyObject *) {
16329 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16330 return 1;
16331 }
16332
16333
16334 static PyObject *_wrap_CROSS_CURSOR_get() {
16335 PyObject *pyobj;
16336
16337 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16338 return pyobj;
16339 }
16340
16341
16342 static int _wrap_NullBitmap_set(PyObject *) {
16343 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16344 return 1;
16345 }
16346
16347
16348 static PyObject *_wrap_NullBitmap_get() {
16349 PyObject *pyobj;
16350
16351 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
16352 return pyobj;
16353 }
16354
16355
16356 static int _wrap_NullIcon_set(PyObject *) {
16357 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16358 return 1;
16359 }
16360
16361
16362 static PyObject *_wrap_NullIcon_get() {
16363 PyObject *pyobj;
16364
16365 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
16366 return pyobj;
16367 }
16368
16369
16370 static int _wrap_NullCursor_set(PyObject *) {
16371 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16372 return 1;
16373 }
16374
16375
16376 static PyObject *_wrap_NullCursor_get() {
16377 PyObject *pyobj;
16378
16379 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
16380 return pyobj;
16381 }
16382
16383
16384 static int _wrap_NullPen_set(PyObject *) {
16385 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16386 return 1;
16387 }
16388
16389
16390 static PyObject *_wrap_NullPen_get() {
16391 PyObject *pyobj;
16392
16393 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
16394 return pyobj;
16395 }
16396
16397
16398 static int _wrap_NullBrush_set(PyObject *) {
16399 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16400 return 1;
16401 }
16402
16403
16404 static PyObject *_wrap_NullBrush_get() {
16405 PyObject *pyobj;
16406
16407 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
16408 return pyobj;
16409 }
16410
16411
16412 static int _wrap_NullPalette_set(PyObject *) {
16413 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16414 return 1;
16415 }
16416
16417
16418 static PyObject *_wrap_NullPalette_get() {
16419 PyObject *pyobj;
16420
16421 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
16422 return pyobj;
16423 }
16424
16425
16426 static int _wrap_NullFont_set(PyObject *) {
16427 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16428 return 1;
16429 }
16430
16431
16432 static PyObject *_wrap_NullFont_get() {
16433 PyObject *pyobj;
16434
16435 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
16436 return pyobj;
16437 }
16438
16439
16440 static int _wrap_NullColour_set(PyObject *) {
16441 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16442 return 1;
16443 }
16444
16445
16446 static PyObject *_wrap_NullColour_get() {
16447 PyObject *pyobj;
16448
16449 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
16450 return pyobj;
16451 }
16452
16453
16454 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16455 PyObject *resultobj;
16456 wxPenList *arg1 = (wxPenList *) 0 ;
16457 wxPen *arg2 = (wxPen *) 0 ;
16458 PyObject * obj0 = 0 ;
16459 PyObject * obj1 = 0 ;
16460 char *kwnames[] = {
16461 (char *) "self",(char *) "pen", NULL
16462 };
16463
16464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
16465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16466 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 (arg1)->AddPen(arg2);
16470
16471 wxPyEndAllowThreads(__tstate);
16472 if (PyErr_Occurred()) SWIG_fail;
16473 }
16474 Py_INCREF(Py_None); resultobj = Py_None;
16475 return resultobj;
16476 fail:
16477 return NULL;
16478 }
16479
16480
16481 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 wxPenList *arg1 = (wxPenList *) 0 ;
16484 wxColour *arg2 = 0 ;
16485 int arg3 ;
16486 int arg4 ;
16487 wxPen *result;
16488 wxColour temp2 ;
16489 PyObject * obj0 = 0 ;
16490 PyObject * obj1 = 0 ;
16491 PyObject * obj2 = 0 ;
16492 PyObject * obj3 = 0 ;
16493 char *kwnames[] = {
16494 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16495 };
16496
16497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16499 {
16500 arg2 = &temp2;
16501 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16502 }
16503 {
16504 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16505 if (PyErr_Occurred()) SWIG_fail;
16506 }
16507 {
16508 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16509 if (PyErr_Occurred()) SWIG_fail;
16510 }
16511 {
16512 PyThreadState* __tstate = wxPyBeginAllowThreads();
16513 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
16514
16515 wxPyEndAllowThreads(__tstate);
16516 if (PyErr_Occurred()) SWIG_fail;
16517 }
16518 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
16519 return resultobj;
16520 fail:
16521 return NULL;
16522 }
16523
16524
16525 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16526 PyObject *resultobj;
16527 wxPenList *arg1 = (wxPenList *) 0 ;
16528 wxPen *arg2 = (wxPen *) 0 ;
16529 PyObject * obj0 = 0 ;
16530 PyObject * obj1 = 0 ;
16531 char *kwnames[] = {
16532 (char *) "self",(char *) "pen", NULL
16533 };
16534
16535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
16536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16537 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16538 {
16539 PyThreadState* __tstate = wxPyBeginAllowThreads();
16540 (arg1)->RemovePen(arg2);
16541
16542 wxPyEndAllowThreads(__tstate);
16543 if (PyErr_Occurred()) SWIG_fail;
16544 }
16545 Py_INCREF(Py_None); resultobj = Py_None;
16546 return resultobj;
16547 fail:
16548 return NULL;
16549 }
16550
16551
16552 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16553 PyObject *resultobj;
16554 wxPenList *arg1 = (wxPenList *) 0 ;
16555 int result;
16556 PyObject * obj0 = 0 ;
16557 char *kwnames[] = {
16558 (char *) "self", NULL
16559 };
16560
16561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
16562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16563 {
16564 PyThreadState* __tstate = wxPyBeginAllowThreads();
16565 result = (int)(arg1)->GetCount();
16566
16567 wxPyEndAllowThreads(__tstate);
16568 if (PyErr_Occurred()) SWIG_fail;
16569 }
16570 resultobj = SWIG_PyObj_FromInt((int)result);
16571 return resultobj;
16572 fail:
16573 return NULL;
16574 }
16575
16576
16577 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
16578 PyObject *obj;
16579 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16580 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
16581 Py_INCREF(obj);
16582 return Py_BuildValue((char *)"");
16583 }
16584 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16585 PyObject *resultobj;
16586 wxBrushList *arg1 = (wxBrushList *) 0 ;
16587 wxBrush *arg2 = (wxBrush *) 0 ;
16588 PyObject * obj0 = 0 ;
16589 PyObject * obj1 = 0 ;
16590 char *kwnames[] = {
16591 (char *) "self",(char *) "brush", NULL
16592 };
16593
16594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
16595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16596 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
16599 (arg1)->AddBrush(arg2);
16600
16601 wxPyEndAllowThreads(__tstate);
16602 if (PyErr_Occurred()) SWIG_fail;
16603 }
16604 Py_INCREF(Py_None); resultobj = Py_None;
16605 return resultobj;
16606 fail:
16607 return NULL;
16608 }
16609
16610
16611 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16612 PyObject *resultobj;
16613 wxBrushList *arg1 = (wxBrushList *) 0 ;
16614 wxColour *arg2 = 0 ;
16615 int arg3 ;
16616 wxBrush *result;
16617 wxColour temp2 ;
16618 PyObject * obj0 = 0 ;
16619 PyObject * obj1 = 0 ;
16620 PyObject * obj2 = 0 ;
16621 char *kwnames[] = {
16622 (char *) "self",(char *) "colour",(char *) "style", NULL
16623 };
16624
16625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
16626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16627 {
16628 arg2 = &temp2;
16629 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16630 }
16631 {
16632 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16633 if (PyErr_Occurred()) SWIG_fail;
16634 }
16635 {
16636 PyThreadState* __tstate = wxPyBeginAllowThreads();
16637 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
16638
16639 wxPyEndAllowThreads(__tstate);
16640 if (PyErr_Occurred()) SWIG_fail;
16641 }
16642 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
16643 return resultobj;
16644 fail:
16645 return NULL;
16646 }
16647
16648
16649 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16650 PyObject *resultobj;
16651 wxBrushList *arg1 = (wxBrushList *) 0 ;
16652 wxBrush *arg2 = (wxBrush *) 0 ;
16653 PyObject * obj0 = 0 ;
16654 PyObject * obj1 = 0 ;
16655 char *kwnames[] = {
16656 (char *) "self",(char *) "brush", NULL
16657 };
16658
16659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
16660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16661 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16662 {
16663 PyThreadState* __tstate = wxPyBeginAllowThreads();
16664 (arg1)->RemoveBrush(arg2);
16665
16666 wxPyEndAllowThreads(__tstate);
16667 if (PyErr_Occurred()) SWIG_fail;
16668 }
16669 Py_INCREF(Py_None); resultobj = Py_None;
16670 return resultobj;
16671 fail:
16672 return NULL;
16673 }
16674
16675
16676 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16677 PyObject *resultobj;
16678 wxBrushList *arg1 = (wxBrushList *) 0 ;
16679 int result;
16680 PyObject * obj0 = 0 ;
16681 char *kwnames[] = {
16682 (char *) "self", NULL
16683 };
16684
16685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
16686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16687 {
16688 PyThreadState* __tstate = wxPyBeginAllowThreads();
16689 result = (int)(arg1)->GetCount();
16690
16691 wxPyEndAllowThreads(__tstate);
16692 if (PyErr_Occurred()) SWIG_fail;
16693 }
16694 resultobj = SWIG_PyObj_FromInt((int)result);
16695 return resultobj;
16696 fail:
16697 return NULL;
16698 }
16699
16700
16701 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
16702 PyObject *obj;
16703 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16704 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
16705 Py_INCREF(obj);
16706 return Py_BuildValue((char *)"");
16707 }
16708 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16709 PyObject *resultobj;
16710 wxColourDatabase *result;
16711 char *kwnames[] = {
16712 NULL
16713 };
16714
16715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
16716 {
16717 PyThreadState* __tstate = wxPyBeginAllowThreads();
16718 result = (wxColourDatabase *)new wxColourDatabase();
16719
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
16723 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
16724 return resultobj;
16725 fail:
16726 return NULL;
16727 }
16728
16729
16730 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16731 PyObject *resultobj;
16732 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16733 PyObject * obj0 = 0 ;
16734 char *kwnames[] = {
16735 (char *) "self", NULL
16736 };
16737
16738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
16739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16740 {
16741 PyThreadState* __tstate = wxPyBeginAllowThreads();
16742 delete arg1;
16743
16744 wxPyEndAllowThreads(__tstate);
16745 if (PyErr_Occurred()) SWIG_fail;
16746 }
16747 Py_INCREF(Py_None); resultobj = Py_None;
16748 return resultobj;
16749 fail:
16750 return NULL;
16751 }
16752
16753
16754 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
16755 PyObject *resultobj;
16756 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16757 wxString *arg2 = 0 ;
16758 wxColour result;
16759 bool temp2 = False ;
16760 PyObject * obj0 = 0 ;
16761 PyObject * obj1 = 0 ;
16762 char *kwnames[] = {
16763 (char *) "self",(char *) "name", NULL
16764 };
16765
16766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
16767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16768 {
16769 arg2 = wxString_in_helper(obj1);
16770 if (arg2 == NULL) SWIG_fail;
16771 temp2 = True;
16772 }
16773 {
16774 PyThreadState* __tstate = wxPyBeginAllowThreads();
16775 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
16776
16777 wxPyEndAllowThreads(__tstate);
16778 if (PyErr_Occurred()) SWIG_fail;
16779 }
16780 {
16781 wxColour * resultptr;
16782 resultptr = new wxColour((wxColour &) result);
16783 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16784 }
16785 {
16786 if (temp2)
16787 delete arg2;
16788 }
16789 return resultobj;
16790 fail:
16791 {
16792 if (temp2)
16793 delete arg2;
16794 }
16795 return NULL;
16796 }
16797
16798
16799 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
16800 PyObject *resultobj;
16801 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16802 wxColour *arg2 = 0 ;
16803 wxString result;
16804 wxColour temp2 ;
16805 PyObject * obj0 = 0 ;
16806 PyObject * obj1 = 0 ;
16807 char *kwnames[] = {
16808 (char *) "self",(char *) "colour", NULL
16809 };
16810
16811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
16812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16813 {
16814 arg2 = &temp2;
16815 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16816 }
16817 {
16818 PyThreadState* __tstate = wxPyBeginAllowThreads();
16819 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
16820
16821 wxPyEndAllowThreads(__tstate);
16822 if (PyErr_Occurred()) SWIG_fail;
16823 }
16824 {
16825 #if wxUSE_UNICODE
16826 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16827 #else
16828 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16829 #endif
16830 }
16831 return resultobj;
16832 fail:
16833 return NULL;
16834 }
16835
16836
16837 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16838 PyObject *resultobj;
16839 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16840 wxString *arg2 = 0 ;
16841 wxColour *arg3 = 0 ;
16842 bool temp2 = False ;
16843 wxColour temp3 ;
16844 PyObject * obj0 = 0 ;
16845 PyObject * obj1 = 0 ;
16846 PyObject * obj2 = 0 ;
16847 char *kwnames[] = {
16848 (char *) "self",(char *) "name",(char *) "colour", NULL
16849 };
16850
16851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
16852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16853 {
16854 arg2 = wxString_in_helper(obj1);
16855 if (arg2 == NULL) SWIG_fail;
16856 temp2 = True;
16857 }
16858 {
16859 arg3 = &temp3;
16860 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16861 }
16862 {
16863 PyThreadState* __tstate = wxPyBeginAllowThreads();
16864 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
16865
16866 wxPyEndAllowThreads(__tstate);
16867 if (PyErr_Occurred()) SWIG_fail;
16868 }
16869 Py_INCREF(Py_None); resultobj = Py_None;
16870 {
16871 if (temp2)
16872 delete arg2;
16873 }
16874 return resultobj;
16875 fail:
16876 {
16877 if (temp2)
16878 delete arg2;
16879 }
16880 return NULL;
16881 }
16882
16883
16884 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
16885 PyObject *resultobj;
16886 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16887 wxString *arg2 = 0 ;
16888 int arg3 ;
16889 int arg4 ;
16890 int arg5 ;
16891 bool temp2 = False ;
16892 PyObject * obj0 = 0 ;
16893 PyObject * obj1 = 0 ;
16894 PyObject * obj2 = 0 ;
16895 PyObject * obj3 = 0 ;
16896 PyObject * obj4 = 0 ;
16897 char *kwnames[] = {
16898 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
16899 };
16900
16901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16903 {
16904 arg2 = wxString_in_helper(obj1);
16905 if (arg2 == NULL) SWIG_fail;
16906 temp2 = True;
16907 }
16908 {
16909 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16910 if (PyErr_Occurred()) SWIG_fail;
16911 }
16912 {
16913 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16914 if (PyErr_Occurred()) SWIG_fail;
16915 }
16916 {
16917 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16918 if (PyErr_Occurred()) SWIG_fail;
16919 }
16920 {
16921 PyThreadState* __tstate = wxPyBeginAllowThreads();
16922 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
16923
16924 wxPyEndAllowThreads(__tstate);
16925 if (PyErr_Occurred()) SWIG_fail;
16926 }
16927 Py_INCREF(Py_None); resultobj = Py_None;
16928 {
16929 if (temp2)
16930 delete arg2;
16931 }
16932 return resultobj;
16933 fail:
16934 {
16935 if (temp2)
16936 delete arg2;
16937 }
16938 return NULL;
16939 }
16940
16941
16942 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
16943 PyObject *obj;
16944 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16945 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
16946 Py_INCREF(obj);
16947 return Py_BuildValue((char *)"");
16948 }
16949 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
16950 PyObject *resultobj;
16951 wxFontList *arg1 = (wxFontList *) 0 ;
16952 wxFont *arg2 = (wxFont *) 0 ;
16953 PyObject * obj0 = 0 ;
16954 PyObject * obj1 = 0 ;
16955 char *kwnames[] = {
16956 (char *) "self",(char *) "font", NULL
16957 };
16958
16959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
16960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16961 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16962 {
16963 PyThreadState* __tstate = wxPyBeginAllowThreads();
16964 (arg1)->AddFont(arg2);
16965
16966 wxPyEndAllowThreads(__tstate);
16967 if (PyErr_Occurred()) SWIG_fail;
16968 }
16969 Py_INCREF(Py_None); resultobj = Py_None;
16970 return resultobj;
16971 fail:
16972 return NULL;
16973 }
16974
16975
16976 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
16977 PyObject *resultobj;
16978 wxFontList *arg1 = (wxFontList *) 0 ;
16979 int arg2 ;
16980 int arg3 ;
16981 int arg4 ;
16982 int arg5 ;
16983 bool arg6 = (bool) False ;
16984 wxString const &arg7_defvalue = wxPyEmptyString ;
16985 wxString *arg7 = (wxString *) &arg7_defvalue ;
16986 int arg8 = (int) wxFONTENCODING_DEFAULT ;
16987 wxFont *result;
16988 bool temp7 = False ;
16989 PyObject * obj0 = 0 ;
16990 PyObject * obj1 = 0 ;
16991 PyObject * obj2 = 0 ;
16992 PyObject * obj3 = 0 ;
16993 PyObject * obj4 = 0 ;
16994 PyObject * obj5 = 0 ;
16995 PyObject * obj6 = 0 ;
16996 PyObject * obj7 = 0 ;
16997 char *kwnames[] = {
16998 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
16999 };
17000
17001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17003 {
17004 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17005 if (PyErr_Occurred()) SWIG_fail;
17006 }
17007 {
17008 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17009 if (PyErr_Occurred()) SWIG_fail;
17010 }
17011 {
17012 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17013 if (PyErr_Occurred()) SWIG_fail;
17014 }
17015 {
17016 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17017 if (PyErr_Occurred()) SWIG_fail;
17018 }
17019 if (obj5) {
17020 {
17021 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
17022 if (PyErr_Occurred()) SWIG_fail;
17023 }
17024 }
17025 if (obj6) {
17026 {
17027 arg7 = wxString_in_helper(obj6);
17028 if (arg7 == NULL) SWIG_fail;
17029 temp7 = True;
17030 }
17031 }
17032 if (obj7) {
17033 {
17034 arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7);
17035 if (PyErr_Occurred()) SWIG_fail;
17036 }
17037 }
17038 {
17039 PyThreadState* __tstate = wxPyBeginAllowThreads();
17040 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17041
17042 wxPyEndAllowThreads(__tstate);
17043 if (PyErr_Occurred()) SWIG_fail;
17044 }
17045 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
17046 {
17047 if (temp7)
17048 delete arg7;
17049 }
17050 return resultobj;
17051 fail:
17052 {
17053 if (temp7)
17054 delete arg7;
17055 }
17056 return NULL;
17057 }
17058
17059
17060 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17061 PyObject *resultobj;
17062 wxFontList *arg1 = (wxFontList *) 0 ;
17063 wxFont *arg2 = (wxFont *) 0 ;
17064 PyObject * obj0 = 0 ;
17065 PyObject * obj1 = 0 ;
17066 char *kwnames[] = {
17067 (char *) "self",(char *) "font", NULL
17068 };
17069
17070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17072 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17073 {
17074 PyThreadState* __tstate = wxPyBeginAllowThreads();
17075 (arg1)->RemoveFont(arg2);
17076
17077 wxPyEndAllowThreads(__tstate);
17078 if (PyErr_Occurred()) SWIG_fail;
17079 }
17080 Py_INCREF(Py_None); resultobj = Py_None;
17081 return resultobj;
17082 fail:
17083 return NULL;
17084 }
17085
17086
17087 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17088 PyObject *resultobj;
17089 wxFontList *arg1 = (wxFontList *) 0 ;
17090 int result;
17091 PyObject * obj0 = 0 ;
17092 char *kwnames[] = {
17093 (char *) "self", NULL
17094 };
17095
17096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17098 {
17099 PyThreadState* __tstate = wxPyBeginAllowThreads();
17100 result = (int)(arg1)->GetCount();
17101
17102 wxPyEndAllowThreads(__tstate);
17103 if (PyErr_Occurred()) SWIG_fail;
17104 }
17105 resultobj = SWIG_PyObj_FromInt((int)result);
17106 return resultobj;
17107 fail:
17108 return NULL;
17109 }
17110
17111
17112 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17113 PyObject *obj;
17114 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17115 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17116 Py_INCREF(obj);
17117 return Py_BuildValue((char *)"");
17118 }
17119 static int _wrap_TheFontList_set(PyObject *) {
17120 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17121 return 1;
17122 }
17123
17124
17125 static PyObject *_wrap_TheFontList_get() {
17126 PyObject *pyobj;
17127
17128 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
17129 return pyobj;
17130 }
17131
17132
17133 static int _wrap_ThePenList_set(PyObject *) {
17134 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17135 return 1;
17136 }
17137
17138
17139 static PyObject *_wrap_ThePenList_get() {
17140 PyObject *pyobj;
17141
17142 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
17143 return pyobj;
17144 }
17145
17146
17147 static int _wrap_TheBrushList_set(PyObject *) {
17148 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17149 return 1;
17150 }
17151
17152
17153 static PyObject *_wrap_TheBrushList_get() {
17154 PyObject *pyobj;
17155
17156 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
17157 return pyobj;
17158 }
17159
17160
17161 static int _wrap_TheColourDatabase_set(PyObject *) {
17162 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17163 return 1;
17164 }
17165
17166
17167 static PyObject *_wrap_TheColourDatabase_get() {
17168 PyObject *pyobj;
17169
17170 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
17171 return pyobj;
17172 }
17173
17174
17175 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17176 PyObject *resultobj;
17177 wxEffects *result;
17178 char *kwnames[] = {
17179 NULL
17180 };
17181
17182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17183 {
17184 PyThreadState* __tstate = wxPyBeginAllowThreads();
17185 result = (wxEffects *)new wxEffects();
17186
17187 wxPyEndAllowThreads(__tstate);
17188 if (PyErr_Occurred()) SWIG_fail;
17189 }
17190 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
17191 return resultobj;
17192 fail:
17193 return NULL;
17194 }
17195
17196
17197 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17198 PyObject *resultobj;
17199 wxEffects *arg1 = (wxEffects *) 0 ;
17200 wxColour result;
17201 PyObject * obj0 = 0 ;
17202 char *kwnames[] = {
17203 (char *) "self", NULL
17204 };
17205
17206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17208 {
17209 PyThreadState* __tstate = wxPyBeginAllowThreads();
17210 result = ((wxEffects const *)arg1)->GetHighlightColour();
17211
17212 wxPyEndAllowThreads(__tstate);
17213 if (PyErr_Occurred()) SWIG_fail;
17214 }
17215 {
17216 wxColour * resultptr;
17217 resultptr = new wxColour((wxColour &) result);
17218 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17219 }
17220 return resultobj;
17221 fail:
17222 return NULL;
17223 }
17224
17225
17226 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17227 PyObject *resultobj;
17228 wxEffects *arg1 = (wxEffects *) 0 ;
17229 wxColour result;
17230 PyObject * obj0 = 0 ;
17231 char *kwnames[] = {
17232 (char *) "self", NULL
17233 };
17234
17235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17237 {
17238 PyThreadState* __tstate = wxPyBeginAllowThreads();
17239 result = ((wxEffects const *)arg1)->GetLightShadow();
17240
17241 wxPyEndAllowThreads(__tstate);
17242 if (PyErr_Occurred()) SWIG_fail;
17243 }
17244 {
17245 wxColour * resultptr;
17246 resultptr = new wxColour((wxColour &) result);
17247 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17248 }
17249 return resultobj;
17250 fail:
17251 return NULL;
17252 }
17253
17254
17255 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17256 PyObject *resultobj;
17257 wxEffects *arg1 = (wxEffects *) 0 ;
17258 wxColour result;
17259 PyObject * obj0 = 0 ;
17260 char *kwnames[] = {
17261 (char *) "self", NULL
17262 };
17263
17264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17266 {
17267 PyThreadState* __tstate = wxPyBeginAllowThreads();
17268 result = ((wxEffects const *)arg1)->GetFaceColour();
17269
17270 wxPyEndAllowThreads(__tstate);
17271 if (PyErr_Occurred()) SWIG_fail;
17272 }
17273 {
17274 wxColour * resultptr;
17275 resultptr = new wxColour((wxColour &) result);
17276 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17277 }
17278 return resultobj;
17279 fail:
17280 return NULL;
17281 }
17282
17283
17284 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17285 PyObject *resultobj;
17286 wxEffects *arg1 = (wxEffects *) 0 ;
17287 wxColour result;
17288 PyObject * obj0 = 0 ;
17289 char *kwnames[] = {
17290 (char *) "self", NULL
17291 };
17292
17293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17295 {
17296 PyThreadState* __tstate = wxPyBeginAllowThreads();
17297 result = ((wxEffects const *)arg1)->GetMediumShadow();
17298
17299 wxPyEndAllowThreads(__tstate);
17300 if (PyErr_Occurred()) SWIG_fail;
17301 }
17302 {
17303 wxColour * resultptr;
17304 resultptr = new wxColour((wxColour &) result);
17305 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17306 }
17307 return resultobj;
17308 fail:
17309 return NULL;
17310 }
17311
17312
17313 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17314 PyObject *resultobj;
17315 wxEffects *arg1 = (wxEffects *) 0 ;
17316 wxColour result;
17317 PyObject * obj0 = 0 ;
17318 char *kwnames[] = {
17319 (char *) "self", NULL
17320 };
17321
17322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17324 {
17325 PyThreadState* __tstate = wxPyBeginAllowThreads();
17326 result = ((wxEffects const *)arg1)->GetDarkShadow();
17327
17328 wxPyEndAllowThreads(__tstate);
17329 if (PyErr_Occurred()) SWIG_fail;
17330 }
17331 {
17332 wxColour * resultptr;
17333 resultptr = new wxColour((wxColour &) result);
17334 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17335 }
17336 return resultobj;
17337 fail:
17338 return NULL;
17339 }
17340
17341
17342 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17343 PyObject *resultobj;
17344 wxEffects *arg1 = (wxEffects *) 0 ;
17345 wxColour *arg2 = 0 ;
17346 wxColour temp2 ;
17347 PyObject * obj0 = 0 ;
17348 PyObject * obj1 = 0 ;
17349 char *kwnames[] = {
17350 (char *) "self",(char *) "c", NULL
17351 };
17352
17353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17355 {
17356 arg2 = &temp2;
17357 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17358 }
17359 {
17360 PyThreadState* __tstate = wxPyBeginAllowThreads();
17361 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17362
17363 wxPyEndAllowThreads(__tstate);
17364 if (PyErr_Occurred()) SWIG_fail;
17365 }
17366 Py_INCREF(Py_None); resultobj = Py_None;
17367 return resultobj;
17368 fail:
17369 return NULL;
17370 }
17371
17372
17373 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17374 PyObject *resultobj;
17375 wxEffects *arg1 = (wxEffects *) 0 ;
17376 wxColour *arg2 = 0 ;
17377 wxColour temp2 ;
17378 PyObject * obj0 = 0 ;
17379 PyObject * obj1 = 0 ;
17380 char *kwnames[] = {
17381 (char *) "self",(char *) "c", NULL
17382 };
17383
17384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17386 {
17387 arg2 = &temp2;
17388 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17389 }
17390 {
17391 PyThreadState* __tstate = wxPyBeginAllowThreads();
17392 (arg1)->SetLightShadow((wxColour const &)*arg2);
17393
17394 wxPyEndAllowThreads(__tstate);
17395 if (PyErr_Occurred()) SWIG_fail;
17396 }
17397 Py_INCREF(Py_None); resultobj = Py_None;
17398 return resultobj;
17399 fail:
17400 return NULL;
17401 }
17402
17403
17404 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17405 PyObject *resultobj;
17406 wxEffects *arg1 = (wxEffects *) 0 ;
17407 wxColour *arg2 = 0 ;
17408 wxColour temp2 ;
17409 PyObject * obj0 = 0 ;
17410 PyObject * obj1 = 0 ;
17411 char *kwnames[] = {
17412 (char *) "self",(char *) "c", NULL
17413 };
17414
17415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17416 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17417 {
17418 arg2 = &temp2;
17419 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17420 }
17421 {
17422 PyThreadState* __tstate = wxPyBeginAllowThreads();
17423 (arg1)->SetFaceColour((wxColour const &)*arg2);
17424
17425 wxPyEndAllowThreads(__tstate);
17426 if (PyErr_Occurred()) SWIG_fail;
17427 }
17428 Py_INCREF(Py_None); resultobj = Py_None;
17429 return resultobj;
17430 fail:
17431 return NULL;
17432 }
17433
17434
17435 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17436 PyObject *resultobj;
17437 wxEffects *arg1 = (wxEffects *) 0 ;
17438 wxColour *arg2 = 0 ;
17439 wxColour temp2 ;
17440 PyObject * obj0 = 0 ;
17441 PyObject * obj1 = 0 ;
17442 char *kwnames[] = {
17443 (char *) "self",(char *) "c", NULL
17444 };
17445
17446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17448 {
17449 arg2 = &temp2;
17450 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17451 }
17452 {
17453 PyThreadState* __tstate = wxPyBeginAllowThreads();
17454 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17455
17456 wxPyEndAllowThreads(__tstate);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 }
17459 Py_INCREF(Py_None); resultobj = Py_None;
17460 return resultobj;
17461 fail:
17462 return NULL;
17463 }
17464
17465
17466 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17467 PyObject *resultobj;
17468 wxEffects *arg1 = (wxEffects *) 0 ;
17469 wxColour *arg2 = 0 ;
17470 wxColour temp2 ;
17471 PyObject * obj0 = 0 ;
17472 PyObject * obj1 = 0 ;
17473 char *kwnames[] = {
17474 (char *) "self",(char *) "c", NULL
17475 };
17476
17477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
17478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17479 {
17480 arg2 = &temp2;
17481 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17482 }
17483 {
17484 PyThreadState* __tstate = wxPyBeginAllowThreads();
17485 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17486
17487 wxPyEndAllowThreads(__tstate);
17488 if (PyErr_Occurred()) SWIG_fail;
17489 }
17490 Py_INCREF(Py_None); resultobj = Py_None;
17491 return resultobj;
17492 fail:
17493 return NULL;
17494 }
17495
17496
17497 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17498 PyObject *resultobj;
17499 wxEffects *arg1 = (wxEffects *) 0 ;
17500 wxColour *arg2 = 0 ;
17501 wxColour *arg3 = 0 ;
17502 wxColour *arg4 = 0 ;
17503 wxColour *arg5 = 0 ;
17504 wxColour *arg6 = 0 ;
17505 wxColour temp2 ;
17506 wxColour temp3 ;
17507 wxColour temp4 ;
17508 wxColour temp5 ;
17509 wxColour temp6 ;
17510 PyObject * obj0 = 0 ;
17511 PyObject * obj1 = 0 ;
17512 PyObject * obj2 = 0 ;
17513 PyObject * obj3 = 0 ;
17514 PyObject * obj4 = 0 ;
17515 PyObject * obj5 = 0 ;
17516 char *kwnames[] = {
17517 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
17518 };
17519
17520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17522 {
17523 arg2 = &temp2;
17524 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17525 }
17526 {
17527 arg3 = &temp3;
17528 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17529 }
17530 {
17531 arg4 = &temp4;
17532 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17533 }
17534 {
17535 arg5 = &temp5;
17536 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
17537 }
17538 {
17539 arg6 = &temp6;
17540 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
17541 }
17542 {
17543 PyThreadState* __tstate = wxPyBeginAllowThreads();
17544 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
17545
17546 wxPyEndAllowThreads(__tstate);
17547 if (PyErr_Occurred()) SWIG_fail;
17548 }
17549 Py_INCREF(Py_None); resultobj = Py_None;
17550 return resultobj;
17551 fail:
17552 return NULL;
17553 }
17554
17555
17556 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
17557 PyObject *resultobj;
17558 wxEffects *arg1 = (wxEffects *) 0 ;
17559 wxDC *arg2 = 0 ;
17560 wxRect *arg3 = 0 ;
17561 int arg4 = (int) 1 ;
17562 wxRect temp3 ;
17563 PyObject * obj0 = 0 ;
17564 PyObject * obj1 = 0 ;
17565 PyObject * obj2 = 0 ;
17566 PyObject * obj3 = 0 ;
17567 char *kwnames[] = {
17568 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
17569 };
17570
17571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17573 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17574 if (arg2 == NULL) {
17575 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17576 }
17577 {
17578 arg3 = &temp3;
17579 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17580 }
17581 if (obj3) {
17582 {
17583 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17584 if (PyErr_Occurred()) SWIG_fail;
17585 }
17586 }
17587 {
17588 PyThreadState* __tstate = wxPyBeginAllowThreads();
17589 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
17590
17591 wxPyEndAllowThreads(__tstate);
17592 if (PyErr_Occurred()) SWIG_fail;
17593 }
17594 Py_INCREF(Py_None); resultobj = Py_None;
17595 return resultobj;
17596 fail:
17597 return NULL;
17598 }
17599
17600
17601 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
17602 PyObject *resultobj;
17603 wxEffects *arg1 = (wxEffects *) 0 ;
17604 wxRect *arg2 = 0 ;
17605 wxDC *arg3 = 0 ;
17606 wxBitmap *arg4 = 0 ;
17607 bool result;
17608 wxRect temp2 ;
17609 PyObject * obj0 = 0 ;
17610 PyObject * obj1 = 0 ;
17611 PyObject * obj2 = 0 ;
17612 PyObject * obj3 = 0 ;
17613 char *kwnames[] = {
17614 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
17615 };
17616
17617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17619 {
17620 arg2 = &temp2;
17621 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17622 }
17623 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17624 if (arg3 == NULL) {
17625 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17626 }
17627 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17628 if (arg4 == NULL) {
17629 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17630 }
17631 {
17632 PyThreadState* __tstate = wxPyBeginAllowThreads();
17633 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
17634
17635 wxPyEndAllowThreads(__tstate);
17636 if (PyErr_Occurred()) SWIG_fail;
17637 }
17638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17639 return resultobj;
17640 fail:
17641 return NULL;
17642 }
17643
17644
17645 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
17646 PyObject *obj;
17647 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17648 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
17649 Py_INCREF(obj);
17650 return Py_BuildValue((char *)"");
17651 }
17652 static PyMethodDef SwigMethods[] = {
17653 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
17654 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
17655 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
17656 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
17657 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
17658 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
17659 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
17660 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
17661 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
17662 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
17663 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
17664 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
17665 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
17666 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
17667 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
17668 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
17669 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
17670 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
17671 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
17672 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
17673 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
17674 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
17675 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
17676 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
17677 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
17678 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
17679 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
17680 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
17681 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
17682 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
17683 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
17684 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
17685 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
17686 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
17687 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
17688 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
17689 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
17690 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
17691 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
17692 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
17693 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17694 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
17695 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
17696 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
17697 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
17698 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
17699 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17700 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
17701 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
17702 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
17703 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
17704 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
17705 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
17706 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
17707 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
17708 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
17709 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
17710 { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS },
17711 { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS },
17712 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
17713 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
17714 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
17715 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
17716 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
17717 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
17718 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
17719 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
17720 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
17721 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
17722 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
17723 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
17724 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
17725 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
17726 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
17727 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
17728 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
17729 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
17730 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
17731 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
17732 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
17733 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
17734 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
17735 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
17736 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
17737 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
17738 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
17739 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
17740 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
17741 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
17742 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
17743 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
17744 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
17745 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
17746 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
17747 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
17748 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
17749 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
17750 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
17751 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
17752 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
17753 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
17754 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
17755 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
17756 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
17757 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
17758 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
17759 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
17760 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
17761 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
17762 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
17763 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
17764 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
17765 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
17766 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
17767 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
17768 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
17769 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
17770 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
17771 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
17772 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
17773 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
17774 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
17775 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
17776 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
17777 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
17778 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
17779 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
17780 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
17781 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
17782 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
17783 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
17784 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
17785 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
17786 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
17787 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
17788 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
17789 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
17790 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
17791 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
17792 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
17793 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
17794 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
17795 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
17796 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
17797 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
17798 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
17799 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
17800 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
17801 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
17802 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17803 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17804 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
17805 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
17806 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
17807 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
17808 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
17809 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
17810 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
17811 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
17812 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
17813 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
17814 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
17815 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
17816 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17817 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17818 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
17819 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
17820 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17821 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
17822 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
17823 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17824 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17825 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
17826 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17827 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17828 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
17829 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
17830 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17831 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17832 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
17833 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17834 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17835 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17836 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
17837 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
17838 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
17839 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
17840 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
17841 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
17842 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
17843 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
17844 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17845 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17846 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17847 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17848 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
17849 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
17850 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
17851 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
17852 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
17853 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
17854 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
17855 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
17856 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
17857 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17858 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
17859 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
17860 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
17861 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
17862 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
17863 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
17864 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
17865 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
17866 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
17867 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
17868 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
17869 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
17870 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
17871 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
17872 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
17873 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
17874 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
17875 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
17876 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17877 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
17878 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
17879 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
17880 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17881 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17882 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17883 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17884 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
17885 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
17886 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17887 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17888 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
17889 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
17890 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
17891 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17892 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17893 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17894 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17895 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
17896 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17897 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
17898 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
17899 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
17900 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17901 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17902 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17903 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17904 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
17905 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17906 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17907 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
17908 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
17909 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
17910 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
17911 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
17912 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
17913 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
17914 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
17915 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
17916 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
17917 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
17918 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
17919 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
17920 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
17921 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
17922 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
17923 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
17924 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
17925 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
17926 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
17927 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
17928 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
17929 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
17930 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
17931 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
17932 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
17933 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
17934 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
17935 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
17936 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
17937 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
17938 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
17939 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
17940 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
17941 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
17942 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
17943 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
17944 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
17945 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
17946 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
17947 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
17948 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
17949 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
17950 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
17951 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
17952 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
17953 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
17954 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
17955 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
17956 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
17957 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
17958 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
17959 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
17960 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
17961 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
17962 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
17963 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
17964 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
17965 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
17966 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
17967 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
17968 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
17969 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
17970 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
17971 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
17972 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
17973 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
17974 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
17975 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
17976 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
17977 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
17978 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
17979 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
17980 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
17981 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
17982 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
17983 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
17984 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
17985 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
17986 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
17987 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
17988 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
17989 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
17990 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
17991 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
17992 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
17993 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
17994 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
17995 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
17996 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
17997 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
17998 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
17999 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18000 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18001 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18002 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18003 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18004 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18005 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18006 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18007 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18008 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18009 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18010 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18011 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18012 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18013 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18014 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18015 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18016 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18017 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18018 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18019 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18020 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18021 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18022 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18023 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18024 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18025 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18026 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18027 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18028 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18029 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18030 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18031 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18032 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18033 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18034 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18035 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18036 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18037 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18038 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18039 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18040 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18041 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18042 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18043 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18044 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18045 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18046 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18047 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18048 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18049 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18050 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18051 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18052 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18053 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18054 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18055 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18056 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18057 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18058 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18059 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18060 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18061 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18062 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18063 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18064 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18065 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18066 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18067 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18068 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18069 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18070 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18071 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18072 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18073 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18074 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18075 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18076 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18077 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18078 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18079 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18080 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18081 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18082 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18083 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18084 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18085 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18086 { (char *)"new_BufferedPaintDC", _wrap_new_BufferedPaintDC, METH_VARARGS },
18087 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18088 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18089 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18090 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18091 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18092 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18093 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18094 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18095 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18096 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18097 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18098 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18099 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18100 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18101 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18102 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18103 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18104 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18105 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18106 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18107 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18108 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18109 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18110 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18111 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18112 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18113 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18114 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18115 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18116 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18117 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18118 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18119 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18120 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18121 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18122 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18123 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18124 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18125 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18126 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18127 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18128 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18129 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18130 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18131 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18132 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18133 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18134 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18135 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18136 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18137 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18138 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18139 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18140 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18141 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18142 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18143 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18144 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18145 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18146 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18147 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18148 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18149 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18150 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18151 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18152 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18153 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18154 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18155 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18156 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18157 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18158 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18159 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18160 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18161 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18162 { NULL, NULL }
18163 };
18164
18165
18166 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18167
18168 static void *_p_wxControlTo_p_wxWindow(void *x) {
18169 return (void *)((wxWindow *) ((wxControl *) x));
18170 }
18171 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18172 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18173 }
18174 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18175 return (void *)((wxWindow *) ((wxMenuBar *) x));
18176 }
18177 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18178 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18179 }
18180 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18181 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18182 }
18183 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18184 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18185 }
18186 static void *_p_wxPenTo_p_wxObject(void *x) {
18187 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18188 }
18189 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18190 return (void *)((wxObject *) ((wxRegionIterator *) x));
18191 }
18192 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18193 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18194 }
18195 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18196 return (void *)((wxObject *) ((wxSizerItem *) x));
18197 }
18198 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18199 return (void *)((wxObject *) ((wxColourDatabase *) x));
18200 }
18201 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18202 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18203 }
18204 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18205 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18206 }
18207 static void *_p_wxIconTo_p_wxObject(void *x) {
18208 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18209 }
18210 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18211 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18212 }
18213 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18214 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18215 }
18216 static void *_p_wxSizerTo_p_wxObject(void *x) {
18217 return (void *)((wxObject *) ((wxSizer *) x));
18218 }
18219 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18220 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18221 }
18222 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18223 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18224 }
18225 static void *_p_wxPenListTo_p_wxObject(void *x) {
18226 return (void *)((wxObject *) ((wxPenList *) x));
18227 }
18228 static void *_p_wxEventTo_p_wxObject(void *x) {
18229 return (void *)((wxObject *) ((wxEvent *) x));
18230 }
18231 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18232 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18233 }
18234 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18235 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18236 }
18237 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18238 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18239 }
18240 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18241 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18242 }
18243 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18244 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18245 }
18246 static void *_p_wxDCTo_p_wxObject(void *x) {
18247 return (void *)((wxObject *) ((wxDC *) x));
18248 }
18249 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18250 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18251 }
18252 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18253 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18254 }
18255 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18256 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18257 }
18258 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18259 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18260 }
18261 static void *_p_wxControlTo_p_wxObject(void *x) {
18262 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18263 }
18264 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18265 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18266 }
18267 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18268 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18269 }
18270 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18271 return (void *)((wxObject *) ((wxFSFile *) x));
18272 }
18273 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18274 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18275 }
18276 static void *_p_wxRegionTo_p_wxObject(void *x) {
18277 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18278 }
18279 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18280 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18281 }
18282 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18283 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18284 }
18285 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18286 return (void *)((wxObject *) ((wxGDIObject *) x));
18287 }
18288 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18289 return (void *)((wxObject *) ((wxEffects *) x));
18290 }
18291 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18292 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18293 }
18294 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18295 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18296 }
18297 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18298 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18299 }
18300 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18301 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18302 }
18303 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18304 return (void *)((wxObject *) ((wxMenuItem *) x));
18305 }
18306 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18307 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18308 }
18309 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18310 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18311 }
18312 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18313 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18314 }
18315 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18316 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18317 }
18318 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18319 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18320 }
18321 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18322 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18323 }
18324 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18325 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18326 }
18327 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18328 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18329 }
18330 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18331 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18332 }
18333 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18334 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18335 }
18336 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18337 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18338 }
18339 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18340 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18341 }
18342 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18343 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18344 }
18345 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18346 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18347 }
18348 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18349 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18350 }
18351 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18352 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18353 }
18354 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18355 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18356 }
18357 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18358 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18359 }
18360 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18361 return (void *)((wxObject *) ((wxImageHandler *) x));
18362 }
18363 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18364 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18365 }
18366 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18367 return (void *)((wxObject *) ((wxEvtHandler *) x));
18368 }
18369 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18370 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18371 }
18372 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18373 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18374 }
18375 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18376 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18377 }
18378 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18379 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18380 }
18381 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18382 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18383 }
18384 static void *_p_wxImageTo_p_wxObject(void *x) {
18385 return (void *)((wxObject *) ((wxImage *) x));
18386 }
18387 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18388 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18389 }
18390 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18391 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18392 }
18393 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18394 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18395 }
18396 static void *_p_wxImageListTo_p_wxObject(void *x) {
18397 return (void *)((wxObject *) ((wxImageList *) x));
18398 }
18399 static void *_p_wxCursorTo_p_wxObject(void *x) {
18400 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18401 }
18402 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18403 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18404 }
18405 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18406 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18407 }
18408 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18409 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18410 }
18411 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18412 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18413 }
18414 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18415 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18416 }
18417 static void *_p_wxWindowTo_p_wxObject(void *x) {
18418 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18419 }
18420 static void *_p_wxMenuTo_p_wxObject(void *x) {
18421 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18422 }
18423 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18424 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18425 }
18426 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18427 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18428 }
18429 static void *_p_wxBrushListTo_p_wxObject(void *x) {
18430 return (void *)((wxObject *) ((wxBrushList *) x));
18431 }
18432 static void *_p_wxPyPenTo_p_wxObject(void *x) {
18433 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
18434 }
18435 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18436 return (void *)((wxObject *) ((wxFileSystem *) x));
18437 }
18438 static void *_p_wxBitmapTo_p_wxObject(void *x) {
18439 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18440 }
18441 static void *_p_wxMaskTo_p_wxObject(void *x) {
18442 return (void *)((wxObject *) ((wxMask *) x));
18443 }
18444 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18445 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18446 }
18447 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18448 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18449 }
18450 static void *_p_wxPyAppTo_p_wxObject(void *x) {
18451 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18452 }
18453 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18454 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18455 }
18456 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18457 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18458 }
18459 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18460 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18461 }
18462 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18463 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18464 }
18465 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18466 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18467 }
18468 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18469 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18470 }
18471 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
18472 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
18473 }
18474 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
18475 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
18476 }
18477 static void *_p_wxFontTo_p_wxObject(void *x) {
18478 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
18479 }
18480 static void *_p_wxBrushTo_p_wxObject(void *x) {
18481 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
18482 }
18483 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
18484 return (void *)((wxObject *) ((wxMetaFile *) x));
18485 }
18486 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
18487 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
18488 }
18489 static void *_p_wxColourTo_p_wxObject(void *x) {
18490 return (void *)((wxObject *) ((wxColour *) x));
18491 }
18492 static void *_p_wxFontListTo_p_wxObject(void *x) {
18493 return (void *)((wxObject *) ((wxFontList *) x));
18494 }
18495 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
18496 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
18497 }
18498 static void *_p_wxValidatorTo_p_wxObject(void *x) {
18499 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
18500 }
18501 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
18502 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
18503 }
18504 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
18505 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
18506 }
18507 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
18508 return (void *)((wxDC *) ((wxScreenDC *) x));
18509 }
18510 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
18511 return (void *)((wxDC *) ((wxMirrorDC *) x));
18512 }
18513 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
18514 return (void *)((wxDC *) ((wxMemoryDC *) x));
18515 }
18516 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
18517 return (void *)((wxDC *) ((wxWindowDC *) x));
18518 }
18519 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
18520 return (void *)((wxDC *) ((wxMetaFileDC *) x));
18521 }
18522 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
18523 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18524 }
18525 static void *_p_wxClientDCTo_p_wxDC(void *x) {
18526 return (void *)((wxDC *) ((wxClientDC *) x));
18527 }
18528 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
18529 return (void *)((wxDC *) ((wxPaintDC *) x));
18530 }
18531 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
18532 return (void *)((wxDC *) ((wxPostScriptDC *) x));
18533 }
18534 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
18535 return (void *)((wxDC *) ((wxPrinterDC *) x));
18536 }
18537 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
18538 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
18539 }
18540 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
18541 return (void *)((wxGDIObject *) ((wxIcon *) x));
18542 }
18543 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
18544 return (void *)((wxGDIObject *) ((wxPalette *) x));
18545 }
18546 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
18547 return (void *)((wxGDIObject *) ((wxPen *) x));
18548 }
18549 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
18550 return (void *)((wxGDIObject *) ((wxFont *) x));
18551 }
18552 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
18553 return (void *)((wxGDIObject *) ((wxCursor *) x));
18554 }
18555 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
18556 return (void *)((wxGDIObject *) ((wxBitmap *) x));
18557 }
18558 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
18559 return (void *)((wxGDIObject *) ((wxRegion *) x));
18560 }
18561 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
18562 return (void *)((wxGDIObject *) ((wxBrush *) x));
18563 }
18564 static void *_p_wxPyPenTo_p_wxPen(void *x) {
18565 return (void *)((wxPen *) ((wxPyPen *) x));
18566 }
18567 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
18568 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
18569 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
18570 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}};
18571 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
18572 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18573 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
18574 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
18575 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
18576 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
18577 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
18578 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
18579 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
18580 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}};
18581 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
18582 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
18583 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}};
18584 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
18585 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
18586 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
18587 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
18588 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
18589 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}};
18590 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
18591 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
18592 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
18593 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
18594 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
18595 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
18596 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
18597 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
18598 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
18599 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
18600 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
18601 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
18602 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18603 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}};
18604 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
18605 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
18606 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
18607 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
18608 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
18609 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
18610 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
18611 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
18612 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
18613 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
18614 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
18615 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
18616 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
18617 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
18618 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
18619 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
18620 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
18621 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
18622 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
18623
18624 static swig_type_info *swig_types_initial[] = {
18625 _swigt__p_wxPostScriptDC,
18626 _swigt__p_wxBrush,
18627 _swigt__p_wxColour,
18628 _swigt__p_wxDC,
18629 _swigt__p_wxMirrorDC,
18630 _swigt__p_byte,
18631 _swigt__p_wxPyFontEnumerator,
18632 _swigt__p_char,
18633 _swigt__p_wxIconLocation,
18634 _swigt__p_wxImage,
18635 _swigt__p_wxMetaFileDC,
18636 _swigt__p_wxMask,
18637 _swigt__p_wxFont,
18638 _swigt__p_wxWindow,
18639 _swigt__p_wxSize,
18640 _swigt__p_double,
18641 _swigt__p_wxMemoryDC,
18642 _swigt__p_wxFontMapper,
18643 _swigt__p_wxEffects,
18644 _swigt__p_wxNativeEncodingInfo,
18645 _swigt__p_wxPalette,
18646 _swigt__p_wxBitmap,
18647 _swigt__p_wxObject,
18648 _swigt__p_wxRegionIterator,
18649 _swigt__p_wxRect,
18650 _swigt__p_wxString,
18651 _swigt__p_wxPrinterDC,
18652 _swigt__p_wxIconBundle,
18653 _swigt__p_wxPoint,
18654 _swigt__p_wxDash,
18655 _swigt__p_wxScreenDC,
18656 _swigt__p_wxCursor,
18657 _swigt__p_wxClientDC,
18658 _swigt__p_wxBufferedDC,
18659 _swigt__p_wxImageList,
18660 _swigt__p_unsigned_char,
18661 _swigt__p_wxGDIObject,
18662 _swigt__p_wxIcon,
18663 _swigt__p_wxLocale,
18664 _swigt__p_wxRegion,
18665 _swigt__p_wxLanguageInfo,
18666 _swigt__p_wxConfigBase,
18667 _swigt__p_wxWindowDC,
18668 _swigt__p_wxPrintData,
18669 _swigt__p_wxBrushList,
18670 _swigt__p_wxFontList,
18671 _swigt__p_wxPen,
18672 _swigt__p_wxBufferedPaintDC,
18673 _swigt__p_wxPaintDC,
18674 _swigt__p_wxPenList,
18675 _swigt__p_wxPyPen,
18676 _swigt__p_int,
18677 _swigt__p_wxMetaFile,
18678 _swigt__p_wxNativeFontInfo,
18679 _swigt__p_wxEncodingConverter,
18680 _swigt__p_wxColourDatabase,
18681 0
18682 };
18683
18684
18685 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
18686
18687 static swig_const_info swig_const_table[] = {
18688 {0}};
18689
18690 #ifdef __cplusplus
18691 }
18692 #endif
18693
18694 #ifdef __cplusplus
18695 extern "C"
18696 #endif
18697 SWIGEXPORT(void) SWIG_init(void) {
18698 static PyObject *SWIG_globals = 0;
18699 static int typeinit = 0;
18700 PyObject *m, *d;
18701 int i;
18702 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
18703 m = Py_InitModule((char *) SWIG_name, SwigMethods);
18704 d = PyModule_GetDict(m);
18705
18706 if (!typeinit) {
18707 for (i = 0; swig_types_initial[i]; i++) {
18708 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
18709 }
18710 typeinit = 1;
18711 }
18712 SWIG_InstallConstants(d,swig_const_table);
18713
18714 PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion));
18715 PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion));
18716 PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion));
18717 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT));
18718 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE));
18719 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN));
18720 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT));
18721 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS));
18722 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN));
18723 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE));
18724 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX));
18725 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN));
18726 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL));
18727 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC));
18728 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT));
18729 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX));
18730 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL));
18731 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT));
18732 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD));
18733 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX));
18734 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT));
18735 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC));
18736 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT));
18737 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT));
18738 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD));
18739 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED));
18740 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
18741 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED));
18742 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
18743 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK));
18744 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM));
18745 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT));
18746 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1));
18747 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2));
18748 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3));
18749 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4));
18750 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5));
18751 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6));
18752 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7));
18753 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8));
18754 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9));
18755 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10));
18756 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11));
18757 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12));
18758 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13));
18759 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14));
18760 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15));
18761 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX));
18762 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8));
18763 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE));
18764 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN));
18765 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437));
18766 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850));
18767 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852));
18768 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855));
18769 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866));
18770 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874));
18771 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932));
18772 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936));
18773 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949));
18774 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950));
18775 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250));
18776 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251));
18777 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252));
18778 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253));
18779 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254));
18780 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255));
18781 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256));
18782 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257));
18783 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX));
18784 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7));
18785 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8));
18786 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP));
18787 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE));
18788 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE));
18789 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE));
18790 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE));
18791 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN));
18792 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE));
18793 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
18794 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN));
18795 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC));
18796 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW));
18797 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK));
18798 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC));
18799 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
18800 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI));
18801 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI));
18802 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA));
18803 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI));
18804 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL));
18805 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU));
18806 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA));
18807 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM));
18808 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE));
18809 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE));
18810 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER));
18811 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI));
18812 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN));
18813 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN));
18814 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN));
18815 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
18816 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN));
18817 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
18818 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC));
18819 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
18820 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
18821 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT));
18822 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL));
18823 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS));
18824 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH));
18825 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN));
18826 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC));
18827 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN));
18828 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC));
18829 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC));
18830 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD));
18831 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN));
18832 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX));
18833 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX));
18834 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16));
18835 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32));
18836 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE));
18837 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312));
18838 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5));
18839 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS));
18840
18841 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
18842
18843 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT));
18844 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN));
18845 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN));
18846 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR));
18847 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS));
18848 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN));
18849 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC));
18850 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC));
18851 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
18852 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
18853 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
18854 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
18855 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
18856 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
18857 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
18858 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
18859 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
18860 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
18861 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
18862 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
18863 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
18864 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
18865 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
18866 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE));
18867 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
18868 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN));
18869 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE));
18870 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA));
18871 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI));
18872 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
18873 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN));
18874 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR));
18875 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE));
18876 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN));
18877 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI));
18878 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI));
18879 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI));
18880 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA));
18881 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON));
18882 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN));
18883 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE));
18884 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN));
18885 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN));
18886 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE));
18887 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
18888 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
18889 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
18890 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
18891 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
18892 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
18893 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN));
18894 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN));
18895 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH));
18896 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH));
18897 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH));
18898 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
18899 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH));
18900 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK));
18901 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US));
18902 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
18903 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
18904 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
18905 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
18906 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
18907 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
18908 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
18909 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
18910 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
18911 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
18912 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
18913 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
18914 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
18915 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO));
18916 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN));
18917 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE));
18918 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI));
18919 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI));
18920 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH));
18921 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH));
18922 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
18923 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
18924 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
18925 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
18926 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
18927 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN));
18928 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN));
18929 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN));
18930 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN));
18931 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
18932 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
18933 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
18934 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
18935 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
18936 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK));
18937 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC));
18938 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI));
18939 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI));
18940 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA));
18941 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW));
18942 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI));
18943 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN));
18944 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC));
18945 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN));
18946 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA));
18947 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE));
18948 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT));
18949 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK));
18950 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH));
18951 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN));
18952 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
18953 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE));
18954 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE));
18955 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA));
18956 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI));
18957 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
18958 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH));
18959 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK));
18960 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA));
18961 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ));
18962 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI));
18963 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI));
18964 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN));
18965 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH));
18966 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN));
18967 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN));
18968 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN));
18969 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA));
18970 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN));
18971 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN));
18972 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY));
18973 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY));
18974 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM));
18975 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
18976 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
18977 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE));
18978 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI));
18979 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI));
18980 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI));
18981 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN));
18982 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN));
18983 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU));
18984 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI));
18985 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
18986 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
18987 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
18988 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN));
18989 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA));
18990 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO));
18991 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO));
18992 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH));
18993 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE));
18994 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
18995 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI));
18996 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA));
18997 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
18998 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN));
18999 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN));
19000 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19001 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN));
19002 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO));
19003 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT));
19004 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19005 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN));
19006 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19007 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19008 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19009 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO));
19010 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA));
19011 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA));
19012 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI));
19013 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE));
19014 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI));
19015 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK));
19016 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN));
19017 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI));
19018 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH));
19019 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19020 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19021 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19022 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19023 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19024 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19025 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19026 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19027 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19028 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19029 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19030 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19031 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19032 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19033 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19034 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19035 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19036 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19037 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US));
19038 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19039 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE));
19040 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI));
19041 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH));
19042 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19043 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG));
19044 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK));
19045 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL));
19046 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR));
19047 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU));
19048 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI));
19049 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN));
19050 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA));
19051 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA));
19052 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA));
19053 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH));
19054 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN));
19055 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI));
19056 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR));
19057 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN));
19058 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU));
19059 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA));
19060 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19061 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK));
19062 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19063 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19064 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE));
19065 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK));
19066 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH));
19067 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF));
19068 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA));
19069 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH));
19070 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA));
19071 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG));
19072 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU));
19073 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED));
19074 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER));
19075 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE));
19076 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY));
19077 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX));
19078 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19079 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT));
19080 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19081 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING));
19082 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT));
19083 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE));
19084 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT));
19085 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX));
19086 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS));
19087 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2));
19088 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC));
19089 PyDict_SetItemString(d,"BUFFER_DC_OVERWRITE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_OVERWRITE_BG));
19090 PyDict_SetItemString(d,"BUFFER_DC_PRESERVE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_PRESERVE_BG));
19091 PyDict_SetItemString(d,"BUFFER_DC_DEFAULT", SWIG_PyObj_FromInt((int)wxBUFFER_DC_DEFAULT));
19092 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19093 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19094 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19095 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19096 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL));
19097 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL));
19098 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE));
19099 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19100 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19101 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19102 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19103 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19104 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19105 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19106 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19107 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19108 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19109 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19110 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19111 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19112 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19113 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19114 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19115 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19116 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19117 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19118 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19119 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19120 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19121 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19122 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19123 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19124 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19125 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19126 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19127 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19128 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19129 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19130 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19131 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19132 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19133 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19134 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19135 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19136 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19137 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19138 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19139 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19140 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19141 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19142 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19143 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19144 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19145 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19146
19147 // Work around a chicken/egg problem in drawlist.cpp
19148 wxPyDrawList_SetAPIPtr();
19149
19150 }
19151